@charset "utf-8";

/* =========================
   Base / Variables
   ========================= */
:root {
  --maxw: 1100px;
  --bp-sp: 566px;
  --c-main: #1e78d7;
  --c-main-deep: #165db4;
  --c-sub: #69b7ff;
  --c-accent: #00a8a8;
  --c-bg: #f5faff;
  --c-card: #ffffff;
  --c-text: #1c2b3a;
  --c-muted: #5a6b7c;
  --c-border: #dbe8f6;
  --c-danger: #b72626;
  --c-danger-bg: #fff2f2;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(23, 72, 133, .10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--c-text);
  background: linear-gradient(180deg, #f8fcff 0%, #f2f8ff 100%);
  line-height: 1.9;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #e6eef8;
}

.topline {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
}

.topline h1 {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.8rem);
  line-height: 1;
  color: #555;
  letter-spacing: .01em;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
}

.color_red {
  color: #C42626;
}

.color_blue {
  color: var(--c-main);
}

.com {
  font-weight: normal;
  font-size: clamp(0.8rem, 4vw, 1.4rem);
  letter-spacing: -.05em;
}

.logo-link {
  flex-shrink: 0;
}

.subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #2d4d70;
  font-weight: normal;
  text-align: right;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-variant: normal;
  font-style: normal;
}

.global-nav {
  background: linear-gradient(90deg, var(--c-main) 0%, #2f90f5 100%);
  border-top: 1px solid rgba(255, 255, 255, .35);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.global-nav li {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, .25);
}

.global-nav li:first-child {
  border-left: 1px solid rgba(255, 255, 255, .25);
}

.global-nav a {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 10px;
  transition: background .2s ease;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: .08em;
}

.global-nav a:hover {
  background: rgba(255, 255, 255, .13);
}

.global-nav a[aria-current="page"] {
  background: rgba(0, 0, 0, .16);
}

/* =========================
   Page Hero
   ========================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef7ff 0%, #e8f4ff 100%);
  border-bottom: 1px solid #d8e9fb;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 220px at 10% 0%, rgba(115, 185, 255, .16), transparent 65%),
    radial-gradient(900px 180px at 90% 20%, rgba(54, 146, 233, .12), transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 38px 0 34px;
  position: relative;
  z-index: 1;
}

.hero-icon-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #d6e7fa;
  box-shadow: 0 8px 20px rgba(26, 94, 165, .12);
  display: grid;
  place-items: center;
}

.hero-icon {
  width: 74px;
  height: auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #2f7dcf;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  color: #175ba8;
  font-weight: 800;
}

.page-hero .lead {
  margin: 0;
  color: #295981;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.8;
}

/* =========================
   divider wave
   ========================= */
.section-divider-wave {
  position: relative;
  z-index: 6;
  line-height: 0;
  pointer-events: none;
  height: 92px;
  margin-top: -24px;
  margin-bottom: -22px;
  background: linear-gradient(180deg, rgba(232, 244, 255, 0) 0%, #D9ECFB 62%, #F6FBFF 100%);
}

.section-divider-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-divider-wave .wave-back {
  fill: #B0D7F5;
}

.section-divider-wave .wave-mid {
  fill: #C2E1F8;
}

.section-divider-wave .wave-front {
  fill: url(#waveBottomGradContact);
}

.section-divider-wave .wave-under {
  fill: url(#waveUnderGradContact);
}

.section-divider-wave .wave-line {
  fill: none;
  stroke: #9FCEF3;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   Generic Section
   ========================= */
.section {
  padding: 44px 0;
}

.contact-main {
  padding-top: 56px;
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  color: #1968bf;
  line-height: 1.35;
  font-weight: 800;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(194, 224, 247, 1) 0%, rgba(213, 233, 249, 1) 100%);
  padding: 0.6rem 1rem;
  text-align: center;
}

.lead-text {
  margin: 0 0 20px;
  color: #264562;
  font-size: 1rem;
  font-weight: 700;
}

/* =========================
   Form
   ========================= */
.form-error-summary {
  border: 1px solid #f0c9c9;
  background: #fff6f6;
  color: #9a2b2b;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 6px;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.form-field {
  min-width: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f4f83;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.req {
  display: inline-block;
  background: #c42626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
  padding: 4px 7px 5px;
  letter-spacing: .02em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid #cfe1f4;
  border-radius: 10px;
  background: #fff;
  color: #1f3d59;
  font-size: 1rem;
  line-height: 1.6;
  padding: 11px 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #3b82d0 50%),
    linear-gradient(135deg, #3b82d0 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    100% 0;
  background-size: 6px 6px, 6px 6px, 2.2em 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3f95e7;
  box-shadow: 0 0 0 3px rgba(63, 149, 231, .16);
  background: #fff;
}

.is-invalid {
  border-color: #d95353 !important;
  box-shadow: 0 0 0 3px rgba(217, 83, 83, .14) !important;
  background: #fffdfd !important;
}

.field-note {
  margin: 6px 2px 0;
  color: #5f7690;
  font-size: 0.84rem;
  line-height: 1.5;
}

.field-error {
  margin: 4px 2px 0;
  color: var(--c-danger);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  min-height: 1.45em;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 280px;
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(180deg, rgba(196, 38, 38, 1) 0%, rgba(220, 77, 77, 1) 68.4%, rgba(196, 38, 38, 1) 100%);
  box-shadow: 0 8px 18px #FCF2F2;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(196, 38, 38, .35);
}

.btn-submit:disabled {
  opacity: .7;
  cursor: default;
  transform: none;
  box-shadow: 0 6px 14px rgba(196, 38, 38, .2);
}

/* =========================
   Contact strip
   ========================= */
.contact-strip {
  padding: 36px 0 28px;
  background: linear-gradient(180deg, #eaf5ff 0%, #e2f1ff 100%);
  border-top: 1px solid #d5e8fb;
  border-bottom: 1px solid #d5e8fb;
}

.contact-strip .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.contact-strip p {
  margin: 0;
  color: #244f7b;
  font-weight: 700;
}

.btn-contact {
  flex-shrink: 0;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background-image: linear-gradient(180deg, rgba(196, 38, 38, 1) 0%, rgba(220, 77, 77, 1) 68.4%, rgba(196, 38, 38, 1) 100%);
  box-shadow: 0 8px 18px #FCF2F2;
  transition: transform .15s ease, box-shadow .2s ease;
}

.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(196, 38, 38, .35);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #eef6ff;
  border-top: 1px solid #dbeafa;
  padding: 22px 0 24px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.footer-links a {
  color: #2c567f;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

.footer-links a:hover {
  color: #1c6cc8;
  border-color: #1c6cc8;
}

.copyright {
  margin: 14px 0 0;
  text-align: center;
  color: #4f6881;
  font-size: .92rem;
  font-weight: 700;
}

/* =========================
   Medium
   ========================= */
@media (max-width: 800px) {
  .global-nav li {
    text-align: center;
  }

  .global-nav a {
    font-size: 0.92rem;
    padding: 11px 8px;
    letter-spacing: 0;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .page-hero-inner {
    min-height: 220px;
  }

  .hero-icon-wrap {
    width: 104px;
    height: 104px;
  }

  .hero-icon {
    width: 66px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }
}

/* =========================
   Responsive (SP): 566px以下
   ========================= */
@media (max-width: 566px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .inner {
    width: min(100% - 24px, var(--maxw));
  }

  .site-header {
    position: static;
  }

  .topline {
    min-height: auto;
    display: block;
    padding: 12px 0 10px;
  }

  .topline h1 {
    display: block;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
  }

  .subtitle {
    margin-top: 8px;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .global-nav ul {
    flex-wrap: wrap;
  }

  .global-nav li {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
  }

  .global-nav li:nth-child(3),
  .global-nav li:nth-child(5) {
    border-left: 1px solid rgba(255, 255, 255, .25);
  }

  .global-nav a {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    text-align: center;
    color: #fff;
    font-weight: normal;
    font-size: 0.98rem;
    padding: 12px 10px;
    transition: background .2s ease;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    letter-spacing: .08em;
    font-variant: normal;
    font-style: normal;
  }

  .page-hero-inner {
    min-height: 180px;
    padding: 22px 0 18px;
    align-items: center;
  }

  .hero-icon-wrap {
    display: none;
  }

  .eyebrow {
    font-size: .78rem;
  }

  .page-title {
    font-size: 1.72rem;
    margin-bottom: 6px;
  }

  .page-hero .lead {
    font-size: .96rem;
    line-height: 1.65;
  }

  .section-divider-wave {
    height: 68px;
    margin-top: -24px;
    margin-bottom: -14px;
  }

  .section-divider-wave .wave-line {
    stroke-width: 1.8;
  }

  .section {
    padding: 30px 0;
  }

  .contact-main {
    padding-top: 40px;
  }

  .card {
    padding: 18px 14px;
  }

  .section-title {
    margin-bottom: 14px;
    font-size: 1.35rem;
    border-radius: 14px;
    padding: .58rem .72rem;
  }

  .lead-text {
    font-size: 0.93rem;
  }

  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px; /* iOS拡大対策 */
  }

  .btn-submit {
    min-width: 0;
    width: 100%;
    max-width: 340px;
    padding: 12px 14px;
  }

  .contact-strip {
    padding: 22px 0;
  }

  .contact-strip .inner {
    display: block;
    text-align: center;
  }

  .contact-strip p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .btn-contact {
    width: 100%;
    max-width: 320px;
    padding: 12px 14px;
  }

  .footer-links {
    gap: 8px 10px;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .copyright {
    font-size: 0.85rem;
  }
}
