:root {
  --paper: #fffaf6;
  --paper-soft: #f8efe5;
  --ink: #3e332d;
  --muted: #77695f;
  --tiffany: #86d5d8;
  --tiffany-deep: #63c7cb;
  --rose: #b76573;
  --rose-dark: #8f4654;
  --sage: #73845f;
  --gold: #b69055;
  --line: #ead8cd;
  --white: #fffdfb;
  --shadow: 0 18px 42px rgb(82 50 43 / 14%);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  z-index: 10;
  background: var(--white);
}

.utility,
.header-main,
.global-nav,
.section,
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.utility {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.utility p {
  margin: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand strong {
  display: block;
  color: #6e4b2e;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.25;
}

.brand span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0;
}

.header-actions,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-contact {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.header-phone {
  color: #b17d22;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.contact-caption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.consult-actions {
  display: grid;
  gap: 7px;
  min-width: 230px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1.35;
}

.button.primary {
  background: var(--rose);
  color: white;
}

.button.primary:hover {
  background: var(--rose-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--rose-dark);
}

.button.line {
  background: #bdaa75;
  color: white;
}

.button.male,
.button.female {
  min-height: 36px;
  border-width: 2px;
  background: white;
  padding-top: 6px;
  padding-bottom: 6px;
}

.button.male {
  border-color: #18a4b1;
  color: #1395a0;
}

.button.female {
  border-color: #de5d91;
  color: #d44b83;
}

.global-nav {
  display: flex;
  justify-content: flex-start;
  max-width: none;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--tiffany);
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-top: 0;
  padding-bottom: 0;
}

.global-nav::-webkit-scrollbar {
  display: none;
}

.global-nav a {
  min-width: 140px;
  padding: 13px 18px;
  color: white;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a:first-child {
  background: var(--tiffany-deep);
}

.hero {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #e8fbf7;
}

.eyebrow,
.section-title span,
.small-heading {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 12px 0 18px;
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.5;
}

.hero-lead {
  margin: 0 0 26px;
  color: #67564d;
  font-size: 17px;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-points li::before,
.check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  width: 100%;
  padding: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
}

.counselor-card {
  position: absolute;
  right: 24px;
  bottom: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  width: min(360px, calc(100% - 48px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 32px rgb(64 40 34 / 16%);
}

.counselor-card img {
  width: 92px;
  height: 118px;
  border-radius: 4px;
  object-fit: cover;
  object-position: 50% 14%;
  box-shadow: none;
}

.counselor-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.counselor-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.match-showcase {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 72%), rgb(255 255 255 / 84%)),
    url("assets/konkatsu/section-bg.jpg") center / cover no-repeat;
}

.match-inner,
.faq-preview-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 78px;
}

.showcase-title {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.showcase-title span {
  height: 1px;
  background: #bfa16b;
}

.showcase-title h2 {
  margin: 0;
  color: #8a6537;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.match-inner > p {
  max-width: 1000px;
  margin: 0 auto 14px;
  color: #67564d;
  font-weight: 700;
}

.match-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}

.match-data h3 {
  margin: 0 0 14px;
  color: #8a6537;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}

.match-data table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  color: #7d6048;
  font-weight: 700;
  text-align: center;
}

.match-data th,
.match-data td {
  border: 2px solid white;
  padding: 12px 16px;
  background: rgb(244 252 252 / 88%);
}

.match-data th {
  background: rgb(210 243 245 / 90%);
}

.match-data p {
  margin: 0;
  color: #67564d;
  font-weight: 700;
}

.match-photo {
  margin: 0;
}

.match-photo img,
.faq-preview-layout img {
  width: 100%;
  border-radius: 0;
  box-shadow: 0 18px 46px rgb(76 68 56 / 12%);
}

.showcase-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(430px, 100%);
  min-height: 44px;
  margin: 34px auto 0;
  background: var(--tiffany-deep);
  color: white;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.showcase-button::before {
  content: "›";
  margin-right: 14px;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.faq-preview {
  background: #e5fbf7;
}

.faq-preview-inner {
  padding-top: 70px;
}

.faq-preview .ornament-title h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.faq-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 52px;
  align-items: center;
}

.section-title {
  margin-bottom: 28px;
}

.section-title h2,
.ornament-title h2 {
  margin: 5px 0 0;
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.45;
}

.intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
}

.intro-photo img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.intro-copy p,
.plan-copy p,
.ibj-copy p,
.contact-copy p {
  margin: 0 0 16px;
}

.signature {
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: 18px;
}

.band {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ornament-title {
  margin-bottom: 30px;
  text-align: center;
}

.ornament-title p {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-style: italic;
}

.reason-grid,
.faq-grid,
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason-card,
.faq-card,
.data-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 24px;
}

.reason-card img {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
}

.reason-card h3,
.plan-copy h3,
.faq-card h3,
.data-card strong {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
}

.reason-card p,
.faq-card p,
.data-card p {
  margin: 0;
  color: var(--muted);
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: center;
}

.plan img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.ibj {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.data-grid {
  grid-template-columns: repeat(2, 1fr);
}

.data-card strong {
  display: block;
  font-size: 28px;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.faq-preview .faq-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.faq-preview .faq-card {
  border: 0;
  border-bottom: 3px dotted #d2b77a;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.faq-preview .faq-card h3 {
  margin: 0;
  color: #6e4b2e;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
}

.faq-preview .faq-card h3::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border: 2px solid #d2b77a;
  color: var(--tiffany-deep);
  font-weight: 900;
}

.faq-preview .faq-card p {
  display: none;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow);
}

.phone-number {
  display: block;
  margin: 6px 0 18px;
  color: var(--rose-dark);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-panel img {
  width: 170px;
  margin-top: 18px;
}

.map {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 6px;
}

.site-footer {
  background: #4b3a35;
  color: #fff8f4;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .utility,
  .header-main,
  .footer-inner {
    display: block;
  }

  .utility p + p,
  .header-actions {
    margin-top: 10px;
  }

  .brand strong {
    font-size: 30px;
  }

  .header-contact {
    justify-items: start;
    margin-top: 18px;
  }

  .global-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .global-nav a {
    white-space: nowrap;
    min-width: 140px;
  }

  .hero,
  .intro,
  .plan,
  .ibj,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-visual img {
    height: auto;
    max-height: none;
  }

  .counselor-card {
    right: 14px;
    bottom: -38px;
  }

  .reason-grid,
  .faq-grid,
  .data-grid,
  .check-list,
  .match-content,
  .faq-preview-layout {
    grid-template-columns: 1fr;
  }

  .match-inner,
  .faq-preview-inner {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .showcase-title {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .showcase-title span {
    display: none;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner nav {
    margin-top: 14px;
  }
}

@media (max-width: 540px) {
  .utility,
  .header-main,
  .global-nav,
  .section,
  .footer-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-actions,
  .hero-actions,
  .consult-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-visual img {
    height: auto;
  }

  .counselor-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .phone-number {
    font-size: 28px;
  }
}
