/* =========================================================
   Relymate Corporate Site
   ========================================================= */
:root {
  --ink: #22262e;
  --ink-light: #565c66;
  --paper: #fdfcfa;
  --paper-warm: #f5f3ee;
  --navy: #1c3557;
  --navy-dark: #142744;
  --line: #ddd9d1;
  --line-dark: #b9b4a9;
  --header-h: 80px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
}
/* 紙の質感（微細ノイズ） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.035'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.6; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 840px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 40px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn--fill { background: var(--navy); color: #fff; }
.btn--fill:hover { background: var(--navy-dark); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: rgba(28, 53, 87, 0.06); }
.btn .btn__arrow { font-family: var(--sans); transition: transform 0.3s ease; }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, height 0.3s ease;
}
.header--scrolled { height: 66px; border-bottom-color: var(--line); }
.header__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  color: var(--ink);
}
.logo__en {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.06em;
}
.logo__ja { font-size: 10.5px; letter-spacing: 0.28em; color: var(--ink-light); }
.header .logo { flex-direction: row; align-items: center; gap: 12px; }
.logo__mark { width: 44px; height: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.3; }

.gnav { display: flex; align-items: center; gap: 12px; }
.gnav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.gnav__link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  position: relative;
}
.gnav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.gnav__link:hover::after,
.gnav__link.is-current::after { transform: scaleX(1); }
.gnav__cta { padding: 11px 26px; font-size: 13.5px; margin-left: 8px; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.menu-btn span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (TOP) ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; }
.hero__label {
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--ink-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__label::before { content: ""; width: 40px; height: 1px; background: var(--line-dark); }
.hero__title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.hero__lead {
  margin-top: 32px;
  max-width: 560px;
  font-size: 15.5px;
  color: var(--ink-light);
}
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

html.js [data-hero-seq] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero.is-loaded [data-hero-seq] { opacity: 1; transform: none; }
.hero.is-loaded [data-hero-seq="2"] { transition-delay: 0.2s; }
.hero.is-loaded [data-hero-seq="3"] { transition-delay: 0.4s; }
.hero.is-loaded [data-hero-seq="4"] { transition-delay: 0.6s; }

/* ---------- Sections ---------- */
main { counter-reset: sec; }
.section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  counter-increment: sec;
}
.section--warm { background: var(--paper-warm); }
/* 同心円モチーフをセクション背景に展開 */
.section::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 89px, rgba(28, 53, 87, 0.055) 89px 90px);
  pointer-events: none;
  right: -280px;
  top: -280px;
}
.section:nth-of-type(even)::before { right: auto; left: -280px; top: auto; bottom: -280px; }
/* 薄いセクション番号 */
.section > .container { position: relative; }
.section-head { margin-bottom: 56px; position: relative; }
.section-head::after {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: -34px;
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 500;
  line-height: 1;
  color: rgba(28, 53, 87, 0.055);
  pointer-events: none;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-label::before { content: ""; width: 32px; height: 1px; background: var(--line-dark); }
.section-title { font-size: clamp(25px, 3.2vw, 36px); letter-spacing: 0.06em; }
.section-lead { margin-top: 22px; max-width: 680px; color: var(--ink-light); }

/* ---------- Photo slots ---------- */
.photo-slot {
  position: relative;
  border: 1px solid var(--line-dark);
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 39px, rgba(28, 53, 87, 0.06) 39px 40px),
    var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-slot--43 { aspect-ratio: 4 / 3; }
.photo-slot--11 { aspect-ratio: 1 / 1; }
.photo-slot__label {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  text-align: center;
  line-height: 2.2;
  padding: 0 16px;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* <picture> でラップしても img のレイアウトを変えない */
picture { display: contents; }

/* ---------- Photo band (TOP) ---------- */
.photo-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 32vw, 400px);
  object-fit: cover;
}

/* ---------- About grid (TOP) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Radius concept ---------- */
.radius-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.radius-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 26px 32px;
  background: var(--paper);
}
.radius-item__circle { height: 64px; display: flex; align-items: flex-end; margin-bottom: 20px; }
.radius-item__circle span {
  display: block;
  border: 1px solid var(--navy);
  border-radius: 50%;
  opacity: 0.75;
}
.radius-item:nth-child(1) .radius-item__circle span { width: 16px; height: 16px; }
.radius-item:nth-child(2) .radius-item__circle span { width: 30px; height: 30px; }
.radius-item:nth-child(3) .radius-item__circle span { width: 46px; height: 46px; }
.radius-item:nth-child(4) .radius-item__circle span { width: 62px; height: 62px; }
.radius-item__tag {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
.radius-item__title { font-size: 14.5px; font-weight: 700; font-family: var(--sans); margin: 6px 0 12px; }
.radius-item__text { font-size: 13.5px; line-height: 1.9; color: var(--ink-light); }
.radius-grid + .radius-note { margin-top: 20px; font-size: 13px; color: var(--ink-light); }

/* ---------- Service rows (TOP) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: 1px solid var(--line); }
.service-row__num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-light);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.service-row__title { font-size: 22px; line-height: 1.8; }
.service-row__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 3px 14px;
}
.service-row__text { color: var(--ink-light); font-size: 15px; }
.service-row__specs {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service-row__specs li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.service-row__specs .spec-label { color: var(--ink-light); letter-spacing: 0.06em; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 3px;
}
.text-link::after { content: "→"; transition: transform 0.3s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Timeline steps ---------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tstep; }
.timeline__item {
  position: relative;
  counter-increment: tstep;
  display: grid;
  grid-template-columns: 72px 220px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__item:first-child { border-top: 1px solid var(--line); }
.timeline__item::before {
  content: counter(tstep, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.4;
}
.timeline__title { font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.9; }
.timeline__title small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-light); }
.timeline__text { font-size: 14px; color: var(--ink-light); line-height: 2; }

/* ---------- Tables ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 20px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
  font-weight: 400;
}
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 1px solid var(--line-dark); }
.info-table th { width: 190px; color: var(--ink-light); letter-spacing: 0.08em; white-space: nowrap; }

/* curriculum table */
.curriculum { width: 100%; border-collapse: collapse; }
.curriculum th, .curriculum td {
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.curriculum tr:first-child th, .curriculum tr:first-child td { border-top: 1px solid var(--line-dark); }
.curriculum .curriculum__no {
  width: 60px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  white-space: nowrap;
}
.curriculum .curriculum__title { width: 300px; font-weight: 700; font-size: 15px; padding-right: 24px; }
.curriculum .curriculum__title small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-light); letter-spacing: 0.06em; }
.curriculum .curriculum__desc { font-size: 13.5px; color: var(--ink-light); line-height: 2; }

/* ---------- Service detail ---------- */
.detail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.detail-head__tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 4px 16px;
}
.detail-head__title { font-size: clamp(22px, 2.8vw, 30px); letter-spacing: 0.04em; }
.sub-head {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  margin: 56px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 15px;
  border-bottom: 1px dotted var(--line);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: calc(10px + 1em - 4px);
  width: 8px; height: 8px;
  background: var(--navy);
}
/* 項目数が多いリストの小見出し */
.check-group + .check-group { margin-top: 32px; }
.check-group__label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
  margin-bottom: 4px;
}
.note { font-size: 12.5px; color: var(--ink-light); margin-top: 14px; }

/* price */
.price-block { border: 1px solid var(--line-dark); padding: 36px 40px; background: var(--paper); }
.price-block__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.price-block__label { font-size: 14px; color: var(--ink-light); letter-spacing: 0.1em; }
.price-block__value { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--navy); }
.price-block__value small { font-size: 15px; }
.price-block__sub { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.price-block__sub strong { color: var(--navy); }

/* fee table */
.fee-table-wrap { margin-top: 24px; overflow-x: auto; }
.fee-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.fee-table th, .fee-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;
}
.fee-table thead th {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-align: right;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}
.fee-table thead th:first-child, .fee-table .fee-table__head { text-align: left; }
.fee-table .fee-table__head { font-weight: 700; }
.fee-table .fee-table__net { color: var(--navy); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 40px;
  font-weight: 500;
  font-size: 15.5px;
  position: relative;
  line-height: 1.9;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 4px; top: 26px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 17px;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq__body {
  padding: 0 40px 28px;
  position: relative;
  color: var(--ink-light);
  font-size: 14.5px;
}
.faq .faq__body::before {
  content: "A";
  position: absolute;
  left: 4px; top: 0;
  font-family: var(--serif);
  color: var(--ink-light);
  font-size: 17px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 70px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero__circles {
  position: absolute;
  top: 50%; right: -220px;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  pointer-events: none;
}
.page-hero__circles circle { fill: none; stroke: #d5dae2; stroke-width: 1; }
.page-hero__label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-hero__label::before { content: ""; width: 32px; height: 1px; background: var(--line-dark); }
.page-hero__title { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: 0.08em; position: relative; }
.page-hero__lead { margin-top: 18px; max-width: 640px; color: var(--ink-light); position: relative; }

/* ---------- Company ---------- */
.mission__statement {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 2;
  margin: 28px 0;
}
.greeting-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.greeting__body p { text-indent: 1em; }
.greeting-photo { margin: 0; }
.greeting-photo__name { margin-top: 18px; font-size: 12.5px; color: var(--ink-light); letter-spacing: 0.08em; }
.greeting-photo__name strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  letter-spacing: 0.1em;
}
.map-wrap { border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(35%); }

/* ---------- Prose (privacy) ---------- */
.prose h2 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  margin: 48px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}
.prose ul { margin: 12px 0; }
.prose .prose__date { color: var(--ink-light); font-size: 13.5px; margin-top: 48px; text-align: right; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); background: var(--paper-warm); padding: 96px 0; }
.cta__inner { max-width: 840px; margin: 0 auto; padding: 0 28px; text-align: center; }
.cta__title { font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.08em; }
.cta__text { margin-top: 20px; color: var(--ink-light); }
.cta__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.85); padding: 72px 0 36px; font-size: 14px; line-height: 2.1; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 44px; }
.footer .logo { color: #fff; }
.footer .logo__ja { color: rgba(255, 255, 255, 0.6); }
.footer__addr { margin-top: 20px; font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 13.5px; }
/* iOS Safari が電話番号を自動リンク化して青字になるのを防ぐ */
.footer__addr a { color: inherit; text-decoration: none; }
.footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__nav a { color: rgba(255, 255, 255, 0.85); font-size: 13.5px; letter-spacing: 0.08em; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.65); }

/* ---------- Reveal ----------
   JS無効環境で非表示のままにならないよう html.js 配下のみ適用 */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.6, 0.3, 1), transform 0.9s cubic-bezier(0.25, 0.6, 0.3, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
.radius-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.radius-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.radius-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, [data-hero-seq] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .radius-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .timeline__item { grid-template-columns: 56px 1fr; }
  .timeline__text { grid-column: 2; }
  .curriculum .curriculum__title { width: auto; }
  .curriculum__desc-cell { display: none; }
  .curriculum .curriculum__title small { margin-top: 4px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .greeting-grid { grid-template-columns: 1fr; gap: 36px; }
  .greeting-grid .photo-slot { max-width: 280px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 76px 0; }
  .section-head::after { font-size: 72px; top: -20px; }
  .menu-btn { display: block; }
  /* ヘッダーを低く。ドロップダウンと段差が出ないよう背景は不透明にする */
  :root { --header-h: 60px; }
  .header { backdrop-filter: none; background: var(--paper); }
  .header--scrolled { height: 54px; }
  .logo__mark { width: 32px; }
  .header .logo { gap: 10px; }
  .header .logo__en { font-size: 18px; }
  .header .logo__ja { font-size: 9.5px; letter-spacing: 0.16em; }
  /* ヘッダー直下に開くドロップダウン（.header が包含ブロック） */
  .gnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(20, 26, 38, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 28px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; text-align: right; }
  .gnav__list li + li { border-top: 1px solid var(--line); }
  .gnav__link { display: block; padding: 16px 2px; font-size: 15px; }
  .gnav__link::after { left: auto; right: 2px; width: 18px; bottom: 11px; }
  .gnav__cta { margin: 20px 0 0; text-align: center; }
  /* メニュー展開中の暗幕（ヘッダーより下、本文より上） */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 26, 38, 0.32);
  }
  .hero { padding: calc(var(--header-h) + 50px) 0 80px; }
  /* SPでは演出を短くする。段差0.6秒＋フェード0.9秒だと表示完了が遅れる */
  html.js [data-hero-seq] { transition-duration: 0.5s; }
  .hero.is-loaded [data-hero-seq="2"],
  .hero.is-loaded [data-hero-seq="3"],
  .hero.is-loaded [data-hero-seq="4"] { transition-delay: 0s; }
  .radius-grid { grid-template-columns: 1fr; }
  .info-table th { width: auto; min-width: 96px; white-space: normal; }
  .curriculum .curriculum__no { width: 40px; }
  .timeline__item { grid-template-columns: 44px 1fr; gap: 16px; }
  .price-block { padding: 26px 24px; }
  .fee-table th, .fee-table td { padding: 12px 10px; font-size: 13.5px; }
  .faq summary { padding: 22px 40px 22px 32px; }
  .faq .faq__body { padding: 0 16px 24px 32px; }
  .footer__inner { flex-direction: column; }
}

/* ---------- Subtle background gradients ----------
   分かるか分からないか程度の階調（全ページ適用） */
.hero {
  background:
    linear-gradient(97deg, rgba(253, 252, 250, 0.97) 0%, rgba(253, 252, 250, 0.9) 42%, rgba(250, 247, 241, 0.52) 78%, rgba(250, 247, 241, 0.34) 100%),
    url("../assets/hero-background.png") center right / cover no-repeat;
}
/* WebP 対応ブラウザは軽い方を読む（未対応は上の PNG のまま） */
.hero {
  background:
    linear-gradient(97deg, rgba(253, 252, 250, 0.97) 0%, rgba(253, 252, 250, 0.9) 42%, rgba(250, 247, 241, 0.52) 78%, rgba(250, 247, 241, 0.34) 100%),
    image-set(url("../assets/hero-background.webp") type("image/webp"), url("../assets/hero-background.png") type("image/png")) center right / cover no-repeat;
}
@media (max-width: 1024px) {
  .hero {
    background:
      linear-gradient(rgba(253, 252, 250, 0.94), rgba(253, 252, 250, 0.88)),
      url("../assets/hero-background.png") center right / cover no-repeat;
  }
  .hero {
    background:
      linear-gradient(rgba(253, 252, 250, 0.94), rgba(253, 252, 250, 0.88)),
      image-set(url("../assets/hero-background.webp") type("image/webp"), url("../assets/hero-background.png") type("image/png")) center right / cover no-repeat;
  }
}
/* SPは表示幅390〜412pxなので800px版で足りる（109KB → 11KB）。
   白オーバーレイが88〜94%かかるため、圧縮を強めても見た目は変わらない */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(rgba(253, 252, 250, 0.94), rgba(253, 252, 250, 0.88)),
      image-set(url("../assets/hero-background-sp.webp") type("image/webp"), url("../assets/hero-background.png") type("image/png")) center right / cover no-repeat;
  }
}
.page-hero {
  background:
    radial-gradient(720px 520px at 88% 20%, rgba(28, 53, 87, 0.055), transparent 62%),
    linear-gradient(168deg, #fefdfb 0%, #f9f6f0 100%);
}
.section {
  background-image: radial-gradient(960px 620px at 12% -6%, rgba(28, 53, 87, 0.045), transparent 62%);
}
.section--warm {
  background-image:
    radial-gradient(960px 620px at 88% 106%, rgba(28, 53, 87, 0.04), transparent 62%),
    linear-gradient(180deg, #f6f4ef 0%, #f2efe8 100%);
}
.cta {
  background:
    radial-gradient(720px 480px at 50% 120%, rgba(28, 53, 87, 0.075), transparent 65%),
    linear-gradient(180deg, #f6f4ef 0%, #ebe6db 100%);
}
.footer {
  background: linear-gradient(180deg, #182c4f 0%, #0e1c33 100%);
}

/* ===== Program / Works / Form (2026-07-30) ===== */

/* ---------- Flow cards（全体像 3ステップ） ---------- */
.flow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.flow-card {
  position: relative;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: 34px 30px 30px;
}
.flow-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -23px;
  top: 50%;
  width: 18px;
  text-align: center;
  transform: translateY(-50%);
  color: var(--navy);
  font-size: 16px;
}
.flow-card__step {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--navy);
  margin-bottom: 12px;
}
.flow-card__title { font-size: 20px; }
.flow-card__badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  border: 1px solid var(--line-dark);
  padding: 2px 12px;
  margin: 12px 0 14px;
}
.flow-card__text { font-size: 13.5px; color: var(--ink-light); line-height: 1.9; margin: 0; }

/* ---------- Order steps（進める順番） ---------- */
.order-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 28px;
}
.order-step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 24px 26px;
  background: var(--paper);
}
.order-step__num { font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.order-step__title { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.order-step__text { font-size: 13px; line-height: 1.9; color: var(--ink-light); margin: 0; }

/* ---------- Approach（3つの関わり方） ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.approach {
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: 32px 28px;
}
.approach__num { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--navy); margin-bottom: 12px; }
.approach__title { font-size: 19px; margin-bottom: 14px; }
.approach__text { font-size: 13.5px; color: var(--ink-light); line-height: 1.9; margin: 0; }

/* ---------- Patterns（進め方4パターン） ---------- */
.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.pattern {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 26px 26px;
}
.pattern__name { font-family: var(--sans); font-size: 15.5px; font-weight: 700; margin: 0 0 8px; }
.pattern__text { font-size: 13px; color: var(--ink-light); line-height: 1.9; margin: 0 0 24px; }
.pattern__phases { display: flex; gap: 12px; align-items: flex-end; }
.pattern-phase { flex: 1; min-width: 0; }
.pattern-phase__bar { display: block; width: 100%; background: var(--navy); }
.pattern-phase__bar--h { height: 56px; }
.pattern-phase__bar--m { height: 34px; opacity: 0.8; }
.pattern-phase__bar--l { height: 16px; opacity: 0.55; }
.pattern-phase__bar--zero { height: 0; border-bottom: 2px dashed var(--line-dark); }
.pattern-phase__name { font-size: 12.5px; font-weight: 700; margin: 10px 0 2px; }
.pattern-phase__desc { font-size: 11.5px; color: var(--ink-light); margin: 0; }

/* ---------- Works（開発例） ---------- */
.works-cat {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin: 52px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.work-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 26px 28px 24px;
}
.work-card__no { font-family: var(--serif); font-size: 13px; letter-spacing: 0.15em; color: var(--navy); margin-bottom: 6px; }
.work-card__title { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 0 0 12px; line-height: 1.7; }
.work-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 1px 10px;
  margin-left: 10px;
  vertical-align: middle;
}
.work-card__pain {
  font-size: 13px;
  color: var(--ink-light);
  border-left: 2px solid var(--line-dark);
  padding-left: 12px;
  margin: 0 0 10px;
  line-height: 1.8;
}
.work-card__how { font-size: 13.5px; margin: 0; line-height: 1.9; }
.works-standard {
  margin-top: 44px;
  border: 1px solid var(--navy);
  background: var(--paper);
  padding: 30px 32px;
}
.works-standard__label { font-size: 12px; letter-spacing: 0.15em; color: var(--navy); font-weight: 700; margin: 0 0 8px; }
.works-standard__title { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.works-standard__text { font-size: 13.5px; color: var(--ink-light); margin: 0; }

/* ---------- Year flow（導入から自走までの約1年） ---------- */
.year-flow {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 3fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.year-phase {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 26px 26px;
  background: var(--paper);
}
.year-phase__months { font-family: var(--serif); font-size: 14px; letter-spacing: 0.1em; color: var(--navy); margin: 0; }
.year-phase__bar { height: 4px; background: var(--navy); margin: 14px 0 18px; }
.year-phase:nth-child(2) .year-phase__bar { opacity: 0.8; }
.year-phase:nth-child(3) .year-phase__bar { opacity: 0.6; }
.year-phase:nth-child(4) .year-phase__bar { opacity: 0.4; }
.year-phase__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  border: 1px solid var(--line-dark);
  padding: 1px 10px;
  margin: 0 0 12px;
}
.year-phase__title { font-family: var(--sans); font-size: 15.5px; font-weight: 700; margin: 0 0 10px; }
.year-phase__text { font-size: 13px; color: var(--ink-light); line-height: 1.9; margin: 0; }

/* ---------- MTG steps（基本5回の伴走ミーティング） ---------- */
.mtg-steps { list-style: none; margin: 28px 0 0; padding: 0; }
.mtg-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: center; padding-bottom: 26px; }
.mtg-step:last-child { padding-bottom: 0; }
.mtg-step::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--line-dark); }
.mtg-step:first-child::before { top: 50%; }
.mtg-step:last-child::before { bottom: auto; height: 50%; }
.mtg-step__no {
  width: 56px;
  height: 56px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.mtg-step__body { border: 1px solid var(--line); background: var(--paper); padding: 20px 26px 18px; }
.mtg-step__title { font-family: var(--sans); font-size: 15.5px; font-weight: 700; margin: 0; }
.mtg-step__title small { font-weight: 400; font-size: 12px; color: var(--ink-light); margin-left: 12px; }
.mtg-step__text { font-size: 13.5px; color: var(--ink-light); line-height: 1.9; margin: 8px 0 0; }

/* ---------- Contact form ---------- */
.form {
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: 52px 56px;
  position: relative;
}
.form__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__row { margin-bottom: 30px; }
.form__fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.form__label { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.form__req,
.form__opt {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}
.form__req { color: #fff; background: var(--navy); }
.form__opt { color: var(--ink-light); border: 1px solid var(--line-dark); }
.form__input,
.form__textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.form__input:focus,
.form__textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.form__input::placeholder,
.form__textarea::placeholder { color: #b3aea4; }
.form__textarea { min-height: 180px; resize: vertical; }
.form__radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.form__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  background: #fff;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.form__radio input { accent-color: var(--navy); margin: 0; }
.form__radio:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: rgba(28, 53, 87, 0.04);
}
.form__agree { display: inline-flex; align-items: baseline; gap: 10px; font-size: 14.5px; cursor: pointer; }
.form__agree input { accent-color: var(--navy); transform: translateY(2px); }
.form__actions { text-align: center; margin-top: 38px; }
.form__submit { min-width: 280px; }
.form__note { text-align: center; font-size: 12.5px; color: var(--ink-light); margin-top: 16px; }
.form-done {
  border: 1px solid var(--navy);
  background: var(--paper);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 56px;
}
.form-done__title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.form-done__text { font-size: 14.5px; color: var(--ink-light); margin: 0; }
.form-error {
  border: 1px solid #a2453a;
  background: #fdf4f2;
  color: #7c3229;
  padding: 20px 26px;
  font-size: 14px;
  margin-bottom: 32px;
}
.form-error p { margin: 0; }
.form-error__list { margin: 0; padding-left: 1.2em; }
.form-error__list li { margin: 4px 0; }

/* ---------- Responsive（追加分） ---------- */
@media (max-width: 1024px) {
  .flow-cards { grid-template-columns: 1fr; gap: 34px; max-width: 640px; }
  .flow-card:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -28px;
    transform: translateX(-50%);
  }
  .order-steps { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .year-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .order-steps { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .year-flow { grid-template-columns: 1fr; }
  .mtg-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .mtg-step::before { left: 22px; }
  .mtg-step__no { width: 44px; height: 44px; font-size: 16px; }
  .form { padding: 34px 22px; }
  .form__submit { width: 100%; min-width: 0; }
}
