/* File: assets/styles.css */
/* ============================================================
   グリーンクリア歯科クリニック — Editorial LP テンプレート
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* @color メインカラー（黄緑） */
  --green: #6cbf7a;
  --green-rgb: 108, 191, 122;

  /* @color アクセントカラー（アクア） */
  --aqua: #7fd2c6;
  --aqua-rgb: 127, 210, 198;

  /* @color 見出し・濃色グリーン */
  --green-deep: #2f7a52;
  --green-deep-rgb: 47, 122, 82;

  /* @color 本文テキスト色 */
  --ink: #243029;
  --ink-rgb: 36, 48, 41;

  /* @color 背景色 */
  --bg: #f4faf5;
  --bg-rgb: 244, 250, 245;

  /* 派生・内部色（@colorなし = ユーザーに露出しない）。
     主トークンから color-mix で導出し、親色変更に追従させる（hex/rgbaはフォールバック）。 */
  --green-light:  #aeda8e;
  --green-light:  color-mix(in srgb, var(--green) 58%, #ffffff);
  --green-deeper-rgb: 35, 94, 63; /* color-mix 非対応ブラウザ用フォールバック */
  --green-deeper: #235e3f;
  --green-deeper: color-mix(in srgb, var(--green-deep) 76%, #000000);
  --green-pale:   rgba(var(--green-rgb), 0.12);
  --aqua-pale:    rgba(var(--aqua-rgb), 0.14);
  --surface:      #ffffff;
  --ink-soft:     rgba(var(--ink-rgb), 0.66);
  --ink-faint:    rgba(var(--ink-rgb), 0.46);
  --line:         rgba(var(--green-deep-rgb), 0.12);

  --f-round: 'Zen Maru Gothic', sans-serif;
  --f-body:  'Zen Kaku Gothic New', sans-serif;
  --f-en:    'Outfit', sans-serif;

  --content-max: 1180px;

  --shadow-sm: 0 8px 28px rgba(var(--green-deep-rgb), 0.07);
  --shadow-md: 0 22px 56px rgba(var(--green-deep-rgb), 0.12);
  --shadow-lg: 0 44px 100px rgba(var(--green-deep-rgb), 0.16);

  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 100% 0%, var(--aqua-pale) 0%, transparent 55%),
    radial-gradient(900px 500px at 0% 40%, var(--green-pale) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   TOP HEADER (global navigation)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,0.55);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 16px;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 26px rgba(var(--green-deep-rgb), 0.08);
  padding-block: 9px;
}
.site-header__inner {
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: 48px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-header__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--aqua));
}

/* brand (shared with footer) */
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--green), var(--aqua));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-round); font-weight: 700; font-size: 21px; line-height: 1;
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand:hover .brand__mark { transform: rotate(-10deg) scale(1.06); }
.brand__name { display: block; font-family: var(--f-round); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; line-height: 1.25; color: var(--ink); }
.brand__sub { display: block; font-family: var(--f-en); font-size: 9px; letter-spacing: 0.22em; color: var(--green-deep); font-weight: 600; }

/* horizontal nav */
.gnav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.gnav a {
  font-family: var(--f-round); font-weight: 500; font-size: 15px; letter-spacing: 0.03em;
  color: var(--ink); position: relative; padding-block: 7px; white-space: nowrap;
  transition: color .3s;
}
.gnav a .idx { font-family: var(--f-en); font-weight: 600; font-size: 9px; color: var(--green); letter-spacing: 0.1em; margin-right: 5px; vertical-align: 2px; opacity: .8; }
.gnav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.gnav a:hover { color: var(--green-deep); }
.gnav a:hover::after, .gnav a.active::after { transform: scaleX(1); }
.gnav a.active { color: var(--green-deep); font-weight: 700; }

/* header contact + cta */
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel { text-align: right; line-height: 1.12; white-space: nowrap; }
.header-tel .lbl { display: block; font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-soft); }
.header-tel .num { font-family: var(--f-en); font-weight: 700; font-size: 21px; color: var(--green-deep); letter-spacing: 0.01em; white-space: nowrap; }
.header-book {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 100px;
  background: var(--green); color: #fff;
  font-family: var(--f-round); font-weight: 700; font-size: 14.5px; letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(var(--green-rgb), 0.4); white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s;
}
.header-book svg { width: 17px; height: 17px; }
.header-book:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(var(--green-rgb), 0.5); filter: brightness(0.95); }

/* hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  place-items: center;
  background: rgba(var(--green-rgb), 0.1);
  color: var(--green-deep);
}
.nav-toggle span { position: relative; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MAIN
   ============================================================ */
.main { position: relative; }
.block { position: relative; padding: 150px 88px; }
.block__inner { max-width: var(--content-max); margin-inline: auto; position: relative; z-index: 2; }
.block.alt { background: linear-gradient(180deg, rgba(var(--green-rgb),0.10), rgba(var(--green-rgb),0.02)); }

/* giant outline index numeral + eyebrow header */
.ed-head { position: relative; margin-bottom: 70px; }
.ed-num {
  position: absolute;
  top: -78px; left: -18px;
  font-family: var(--f-en);
  font-weight: 800;
  font-size: 200px;
  line-height: 1;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px rgba(var(--green-rgb), 0.28);
  color: transparent;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.ed-eyebrow {
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 12px;
  position: relative; z-index: 2;
}
.ed-eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--green); border-radius: 2px; }
.ed-title {
  position: relative; z-index: 2;
  font-family: var(--f-round);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin-top: 18px;
}
.ed-title .accent { color: var(--green-deep); }
.ed-lead { position: relative; z-index: 2; margin-top: 22px; color: var(--ink-soft); font-size: 16.5px; max-width: 640px; }

/* floating index numeral for sections without an .ed-head (e.g. greeting) */
.ed-num--float { position: absolute; top: -84px; left: -18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--f-round); font-weight: 700; font-size: 16px; letter-spacing: 0.05em;
  padding: 17px 34px; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s, background .3s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(var(--green-rgb), 0.42); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(var(--green-rgb), 0.52); filter: brightness(0.95); }
.btn--line { background: transparent; color: var(--green-deep); border: 2px solid var(--green); }
.btn--line:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.6); }

/* ============================================================
   IMAGE PLACEHOLDER (.ph) + 設定後 (.editable-img)
   ============================================================ */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(var(--green-rgb), 0.10);
  background-image: repeating-linear-gradient(135deg, rgba(var(--green-rgb),0.10) 0 14px, rgba(var(--aqua-rgb),0.06) 14px 28px);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center; isolation: isolate;
}
.ph[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.ph[data-ratio="4/5"]  { aspect-ratio: 4 / 5; }
.ph[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }
.ph[data-ratio="16/11"] { aspect-ratio: 16 / 11; }
.ph::after {
  content: attr(data-label);
  font-family: var(--f-en); font-size: 12px; letter-spacing: 0.12em;
  color: var(--green-deep); opacity: 0.6; text-align: center; line-height: 1.5;
  padding: 8px 14px; border: 1px dashed rgba(var(--green-deep-rgb), 0.4); border-radius: 100px;
  background: rgba(255,255,255,0.55); max-width: 84%;
}

/* CMSが .ph → .editable-img に置換 */
.editable-img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.editable-img[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.editable-img[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.editable-img[data-ratio="4/5"]  { aspect-ratio: 4 / 5; }
.editable-img[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }
.editable-img[data-ratio="16/11"] { aspect-ratio: 16 / 11; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: stretch; padding: 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.hero__left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 70px 80px 88px;
  position: relative; z-index: 3;
}
.hero__kicker {
  font-family: var(--f-en); font-weight: 500; letter-spacing: 0.26em; font-size: 13px;
  color: var(--green-deep); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.hero__kicker::before { content:''; width: 40px; height: 2px; background: var(--green); }
.hero h1 {
  font-family: var(--f-round); font-weight: 900;
  font-size: clamp(44px, 4.2vw, 76px);
  line-height: 1.32; letter-spacing: 0.02em; color: var(--ink);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--green-deep), var(--aqua-deep, var(--aqua)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 30px; font-size: 18px; line-height: 2; color: var(--ink-soft); max-width: 480px; }
.hero__actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__right { position: relative; overflow: hidden; }
.hero__right .ph, .hero__right .editable-img { position: absolute; inset: 0; height: 100%; border-radius: 0; aspect-ratio: auto; }
.hero__right .ph { animation: kb 20s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero__seam {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: -1px; width: 120px;
  background: radial-gradient(120px 100% at 0% 50%, var(--bg) 0%, var(--bg) 40%, transparent 72%);
  pointer-events: none;
}
.hero__stat {
  position: absolute; z-index: 5; left: calc(50% - 60px); bottom: 11%;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 22px; padding: 22px 26px; box-shadow: var(--shadow-md);
  display: flex; gap: 22px;
}
.hero__stat .si { text-align: left; }
.hero__stat .si + .si { border-left: 1px solid var(--line); padding-left: 22px; }
.hero__stat .si .v { font-family: var(--f-en); font-weight: 700; font-size: 30px; color: var(--green-deep); line-height: 1; }
.hero__stat .si .v small { font-size: 15px; }
.hero__stat .si .l { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   REASONS — staggered rows (連番=CSSカウンター)
   ============================================================ */
.reasons { display: flex; flex-direction: column; gap: 30px; counter-reset: reason; }
.reason-row {
  counter-increment: reason;
  display: grid; grid-template-columns: 96px 1fr 360px; gap: 44px; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.84));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.8);
  outline: 1px solid var(--line); outline-offset: -1px;
  border-radius: var(--radius); padding: 40px 46px; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.reason-row:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.reason-row:nth-child(even) { grid-template-columns: 360px 1fr 96px; }
.reason-row:nth-child(even) .reason-row__media { order: -1; }
.reason-row:nth-child(even) .reason-row__no { order: 3; }
.reason-row__no { font-family: var(--f-en); font-weight: 800; font-size: 64px; line-height: 1; -webkit-text-stroke: 1.5px var(--green); color: transparent; }
.reason-row__no::before { content: counter(reason, decimal-leading-zero); }
.reason-row__body h3 { font-family: var(--f-round); font-weight: 700; font-size: 27px; line-height: 1.5; letter-spacing: 0.03em; margin-bottom: 14px; }
.reason-row__body h3 .ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(150deg, var(--aqua-pale), var(--green-pale)); color: var(--green-deep); vertical-align: -10px; margin-right: 12px; }
.reason-row__body h3 .ic svg { width: 22px; height: 22px; }
.reason-row__body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.95; }
.reason-row__media .ph, .reason-row__media .editable-img { aspect-ratio: 16/11; }

/* ============================================================
   GREETING
   ============================================================ */
.greet { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 70px; align-items: center; }
.greet__media { position: relative; }
.greet__media .ph, .greet__media .editable-img { aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.greet__media .deco { position: absolute; inset: -26px -26px auto auto; width: 120px; height: 120px; border: 2px solid var(--green-light); border-radius: 30px; z-index: -1; }
.greet__badge {
  position: absolute; right: -28px; bottom: 44px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 22px; padding: 20px 26px; box-shadow: var(--shadow-md); text-align: center; z-index: 2;
}
.greet__badge .en { font-family: var(--f-en); font-size: 11px; letter-spacing: 0.2em; color: var(--green); }
.greet__badge .ja { font-family: var(--f-round); font-weight: 700; font-size: 18px; color: var(--ink); margin-top: 2px; }
.greet__body .gt { font-family: var(--f-round); font-weight: 700; font-size: 36px; line-height: 1.6; letter-spacing: 0.03em; margin: 18px 0 28px; }
.greet__body p { color: var(--ink-soft); margin-bottom: 20px; font-size: 16px; }
.greet__sign { display: flex; align-items: baseline; gap: 16px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.greet__sign .role { font-size: 14px; color: var(--ink-soft); }
.greet__sign .name { font-family: var(--f-round); font-weight: 700; font-size: 25px; letter-spacing: 0.08em; }
.greet__sign .name small { font-family: var(--f-en); font-size: 13px; color: var(--ink-faint); margin-left: 10px; }

/* ============================================================
   SERVICES — horizontal scroll (連番=CSSカウンター)
   ============================================================ */
.svc-rail-wrap { position: relative; }
.svc-scroll {
  display: flex; gap: 26px; overflow-x: auto;
  padding: 8px 88px 30px; margin: 0 -88px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  counter-reset: svc;
}
.svc-scroll::-webkit-scrollbar { display: none; }
.svc-card {
  counter-increment: svc;
  flex: 0 0 360px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.svc-card__media { aspect-ratio: 4/3; }
.svc-card:hover .svc-card__media { transform: scale(1.0); }
.svc-card__body { padding: 28px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.svc-card__no { font-family: var(--f-en); font-weight: 600; font-size: 13px; color: var(--green); letter-spacing: 0.1em; }
.svc-card__no::before { content: counter(svc, decimal-leading-zero); }
.svc-card h3 { font-family: var(--f-round); font-weight: 700; font-size: 22px; margin: 8px 0 12px; letter-spacing: 0.03em; }
.svc-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; flex: 1; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-card__tags span { font-size: 12px; font-family: var(--f-round); color: var(--green-deep); background: var(--green-pale); padding: 5px 13px; border-radius: 100px; }

.svc-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.svc-track { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.svc-track__bar { height: 100%; width: 30%; background: linear-gradient(90deg, var(--green), var(--aqua)); border-radius: 3px; }
.svc-arrows { display: flex; gap: 10px; }
.svc-arrow {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--green-deep);
  transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.svc-arrow:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-2px); }
.svc-arrow svg { width: 20px; height: 20px; }
.svc-hint { font-family: var(--f-en); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint); }

/* ============================================================
   FACILITY — mosaic
   ============================================================ */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 168px; gap: 20px; }
.mosaic .ph, .mosaic .editable-img { transition: transform .5s var(--ease); height: 100%; aspect-ratio: auto; }
.mosaic .ph:hover { transform: scale(0.985); }
.m-a { grid-column: span 4; grid-row: span 2; }
.m-b { grid-column: span 2; grid-row: span 2; }
.m-c { grid-column: span 2; grid-row: span 2; }
.m-d { grid-column: span 2; grid-row: span 1; }
.m-e { grid-column: span 2; grid-row: span 1; }
.m-cap {
  position: absolute; z-index: 2; left: 18px; bottom: 16px;
  background: rgba(255,255,255,0.84); backdrop-filter: blur(8px);
  color: var(--green-deep); font-family: var(--f-round); font-weight: 700; font-size: 13.5px;
  padding: 7px 16px; border-radius: 100px;
}

/* ============================================================
   FLOW — horizontal timeline (連番=CSSカウンター)
   ============================================================ */
.flow-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; counter-reset: step; }
.flow-h::before { content: ''; position: absolute; top: 47px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--green-light), var(--aqua)); z-index: 0; }
.fstep { position: relative; z-index: 1; text-align: center; counter-increment: step; }
.fstep__node {
  width: 94px; height: 94px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--surface);
  border: 2px solid var(--green-light); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding-bottom: 8px;
}
.fstep__node .en { font-family: var(--f-en); font-size: 9.5px; letter-spacing: 0.18em; color: var(--green); }
.fstep__node .n { font-family: var(--f-round); font-weight: 900; font-size: 32px; color: var(--green-deep); line-height: 1; }
.fstep__node .n::before { content: counter(step); }
.fstep__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 28px; box-shadow: var(--shadow-sm); }
.fstep__card .ph, .fstep__card .editable-img { aspect-ratio: 4/3; margin-bottom: 18px; border-radius: 16px; }
.fstep__card h3 { font-family: var(--f-round); font-weight: 700; font-size: 19px; margin-bottom: 10px; letter-spacing: 0.03em; }
.fstep__card p { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.price-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.price-card__head { background: linear-gradient(120deg, var(--green-deep), var(--aqua)); color: #fff; padding: 24px 32px; font-family: var(--f-round); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; display: flex; align-items: center; gap: 12px; }
.price-card__head svg { width: 23px; height: 23px; flex: none; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 32px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row .pname { font-family: var(--f-round); font-weight: 500; font-size: 16px; min-width: 0; }
.price-row .pname small { display: block; font-size: 12.5px; color: var(--ink-faint); font-weight: 400; margin-top: 2px; }
.price-row .pval { font-family: var(--f-en); font-weight: 700; font-size: 23px; color: var(--green-deep); white-space: nowrap; }
.price-row .pval span { font-family: var(--f-body); font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.price-note { margin-top: 26px; font-size: 13px; color: var(--ink-faint); line-height: 1.8; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-items: start; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .4s var(--ease), border-color .4s; height: fit-content; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--green-light); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; font-family: var(--f-round); font-weight: 700; font-size: 16.5px; color: var(--ink); letter-spacing: 0.02em; }
.faq-q .q-mark { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--green-pale); color: var(--green-deep); font-family: var(--f-en); font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.faq-q .q-txt { flex: 1; line-height: 1.5; }
.faq-q .q-toggle { width: 26px; height: 26px; flex: none; position: relative; }
.faq-q .q-toggle::before, .faq-q .q-toggle::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--green); border-radius: 2px; transition: transform .4s var(--ease); }
.faq-q .q-toggle::before { width: 14px; height: 2.5px; }
.faq-q .q-toggle::after { width: 2.5px; height: 14px; }
.faq-item.open .q-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a__inner p { padding: 0 24px 24px 76px; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }

/* ============================================================
   ACCESS
   ============================================================ */
.info-grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: 56px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 17px 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.info-table th { font-family: var(--f-round); font-weight: 700; color: var(--green-deep); width: 120px; white-space: nowrap; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.hours-table th, .hours-table td { text-align: center; padding: 13px 4px; border: 1px solid var(--line); font-size: 14.5px; }
.hours-table thead th { background: var(--green-pale); font-family: var(--f-round); color: var(--green-deeper); font-weight: 700; }
.hours-table tbody th { font-family: var(--f-round); color: var(--green-deep); background: rgba(var(--green-rgb), 0.05); font-weight: 700; white-space: nowrap; }
.hours-table td .o { color: var(--green-deep); font-weight: 700; }
.hours-table td .x { color: var(--ink-faint); }
.hours-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.info-card .info-en { font-family: var(--f-en); font-size: 12px; letter-spacing: 0.2em; color: var(--green); text-transform: uppercase; }
.info-card h3 { font-family: var(--f-round); font-weight: 700; font-size: 23px; margin-bottom: 8px; letter-spacing: 0.03em; }
.map .ph, .map .editable-img { aspect-ratio: 16/9; margin-top: 18px; }
.map [data-dynamic="google-map"] { margin-top: 18px; border-radius: var(--radius); overflow: hidden; min-height: 280px; }
.map [data-dynamic="google-map"] iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
.access-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.access-item { display: flex; gap: 13px; align-items: flex-start; }
.access-item svg { width: 21px; height: 21px; flex: none; color: var(--green-deep); margin-top: 4px; }
.access-item .t { font-family: var(--f-round); font-weight: 700; font-size: 15px; }
.access-item .s { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--green-light) 0%, var(--aqua) 100%); text-align: center; padding: 120px 88px; }
.cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(720px 420px at 78% 92%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%), radial-gradient(640px 380px at 12% 4%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 58%); pointer-events: none; }
.cta .ed-eyebrow { color: var(--green-deeper); justify-content: center; position: relative; z-index: 2; }
.cta .ed-eyebrow::before { background: var(--green-deeper); }
.cta h2 { font-family: var(--f-round); font-weight: 900; font-size: 44px; line-height: 1.5; letter-spacing: 0.03em; margin: 18px 0 16px; position: relative; z-index: 2; color: var(--green-deeper); text-shadow: 0 1px 14px rgba(255,255,255,0.35); }
.cta p { color: rgba(var(--green-deeper-rgb), 0.86); color: color-mix(in srgb, var(--green-deeper) 88%, transparent); font-size: 17px; position: relative; z-index: 2; }
.cta__actions { margin-top: 40px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta .btn--primary { background: #fff; color: var(--green-deep); box-shadow: 0 14px 32px rgba(var(--green-deep-rgb), 0.22); }
.cta .btn--primary:hover { background: rgba(255,255,255,0.9); filter: none; }
.cta .btn--line { background: rgba(255,255,255,0.6); color: var(--green-deeper); border-color: rgba(255,255,255,0.9); backdrop-filter: blur(6px); }
.cta .btn--line:hover { background: rgba(255,255,255,0.85); }
.cta__tel { margin-top: 32px; position: relative; z-index: 2; }
.cta__tel .num { font-family: var(--f-en); font-weight: 700; font-size: 40px; color: var(--green-deeper); }
.cta__tel .num a { color: inherit; }
.cta__tel .sub { font-size: 14px; color: rgba(var(--green-deeper-rgb), 0.8); color: color-mix(in srgb, var(--green-deeper) 82%, transparent); }

.footer { background: linear-gradient(180deg, rgba(var(--green-rgb),0.12) 0%, rgba(var(--green-rgb),0.18) 100%); color: var(--ink-soft); padding: 64px 88px 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.footer .brand__name { color: var(--ink); }
.footer .brand__sub { color: var(--green-deep); }
.footer__desc { margin-top: 20px; font-size: 14px; line-height: 1.9; max-width: 360px; }
.footer h4 { font-family: var(--f-round); font-weight: 700; color: var(--green-deep); font-size: 15px; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; transition: color .3s; }
.footer__links a:hover { color: var(--green-deep); }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; flex-wrap: wrap; gap: 12px; color: var(--ink-faint); }
.footer__bottom .copy { font-family: var(--f-en); letter-spacing: 0.04em; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__right .ph { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
  .gnav { gap: 16px; }
  .gnav a { font-size: 13.5px; }
  .header-tel { display: none; }
  .reason-row, .reason-row:nth-child(even) { grid-template-columns: 70px 1fr; }
  .reason-row__media { display: none; }
}
@media (max-width: 1080px) {
  .site-header__inner { padding-inline: 24px; gap: 16px; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .gnav {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin-left: 0; padding: 12px 24px 22px;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .site-header.nav-open .gnav { opacity: 1; transform: none; pointer-events: auto; }
  .gnav a { font-size: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .gnav a::after { display: none; }
  .block { padding: 96px 32px; }
  .svc-scroll { padding-inline: 32px; margin-inline: -32px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__left { padding: 128px 32px 60px; }
  .hero__right { min-height: 52vh; }
  .hero__stat { left: 24px; }
  .greet, .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow-h { grid-template-columns: repeat(2, 1fr); }
  .flow-h::before { display: none; }
  .faq { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .m-a, .m-b, .m-c, .m-d, .m-e { grid-column: span 1; grid-row: span 1; }
  .ed-num { font-size: 120px; top: -50px; }
}
@media (max-width: 767px) {
  .block { padding: 72px 22px; }
  .svc-scroll { padding-inline: 22px; margin-inline: -22px; }
  /* header compaction so brand + CTA + hamburger fit at 375px */
  .site-header__inner { gap: 10px; }
  .brand { min-width: 0; }
  .brand__mark { width: 38px; height: 38px; font-size: 17px; }
  .brand__name { font-size: 14.5px; }
  .header-cta { gap: 8px; }
  .header-book { padding: 10px 14px; font-size: 13px; }
  .header-book svg { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .ed-title { font-size: 30px; }
  .ed-num { font-size: 92px; top: -38px; left: -8px; }
  .svc-card { flex: 0 0 80vw; }
  .cta { padding: 80px 24px; }
  .cta h2 { font-size: 30px; }
  .cta__tel .num { font-size: 30px; }
  .footer { padding: 56px 24px 28px; }
  .reason-row, .reason-row:nth-child(even) { grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 24px; }
  .reason-row__no { font-size: 44px; }
  .reason-row__body h3 { font-size: 21px; }
  /* hours table compaction for 375px */
  .hours-table th, .hours-table td { padding: 9px 2px; font-size: 11.5px; }
  .hours-table tbody th { font-size: 11px; white-space: nowrap; }
  .info-table th { width: 92px; font-size: 14px; }
  .info-table td { font-size: 14px; }
}
/* TEC-1365: reason-row-order-reset */
@media (max-width: 1280px) {
  .reason-row:nth-child(even) .reason-row__no { order: 0; }
}
/* TEC-1370: mosaic-caption-base */
.m-item { position: relative; }
/* TEC-1371-2: mosaic-layout-by-count */
.mosaic { grid-auto-flow: row dense; }
/* 6列（1081px 以上）: 写真の枚数ごとに割り付ける。1段は 168px */
@media (min-width: 1081px) {
  .m-item { grid-column: span 2; grid-row: span 1; }
  .m-item:only-child { grid-column: span 6; grid-row: span 2; }
  .m-item:first-child:nth-last-child(2), .m-item:first-child:nth-last-child(2) ~ .m-item { grid-column: span 3; grid-row: span 2; }
  /* 3枚以上: 1枚目を左に大きく、2・3枚目を右に縦に並べる */
  .m-item:first-child:nth-last-child(n+3) { grid-column: span 4; grid-row: span 2; }
  /* 4枚: 2枚目を右に縦長、3・4枚目を下の段に半分ずつ */
  .m-item:first-child:nth-last-child(4) ~ .m-item:nth-child(2) { grid-row: span 2; }
  .m-item:first-child:nth-last-child(4) ~ .m-item:nth-child(n+3) { grid-column: span 3; }
  /* 5枚: 4・5枚目を下の段に半分ずつ */
  .m-item:first-child:nth-last-child(5) ~ .m-item:nth-child(n+4) { grid-column: span 3; }
  /* 7枚以上: 4枚目以降は1段に3枚。最後の段が2枚なら半分ずつ、1枚余るなら最後の4枚を半分ずつ2段にする */
  .m-item:nth-child(3n+7):nth-last-child(2), .m-item:nth-child(3n+8):last-child { grid-column: span 3; }
  .m-item:nth-child(3n+4):nth-last-child(4), .m-item:nth-child(3n+5):nth-last-child(3),
  .m-item:nth-child(3n+6):nth-last-child(2), .m-item:nth-child(3n+7):last-child { grid-column: span 3; }
}
/* 2列（1080px 以下）: 全部同じ大きさで並べ、枚数が奇数なら1枚目を2列×2段にして端数を出さない */
@media (max-width: 1080px) {
  .m-item:first-child:nth-last-child(odd) { grid-column: span 2; grid-row: span 2; }
}
