/* ============================================================
   top.css — トップページ各セクション
   HIDAMARI DENTAL — DELTA アンカー（無彩色プレミアム）
   ============================================================ */

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--header-h);
  padding-bottom: clamp(150px, 20vh, 230px);
}
.hero__mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(74vw, 660px); z-index: 0; pointer-events: none;
}
.hero__mark svg { width: 100%; height: auto; transform-origin: 50% 55%; animation: hero-mark-spin 52s linear infinite; }
.hero__mark circle, .hero__mark path { stroke: var(--grey); opacity: 0.45; }
@keyframes hero-mark-spin { to { transform: rotate(360deg); } }

.hero__marquee {
  position: absolute; inset: 0; display: flex; align-items: center;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.hero__marquee span {
  flex: none; font-family: var(--font-en); font-weight: 600;
  font-size: clamp(92px, 17vw, 224px); line-height: 1; letter-spacing: 0.01em;
  color: #ECE9E4; white-space: nowrap;
  animation: hero-marq 34s linear infinite;
}
@keyframes hero-marq { to { transform: translateX(-100%); } }

.hero__content { position: relative; z-index: 2; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-en); font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; color: var(--ink-2); text-transform: uppercase; margin-bottom: clamp(24px, 3vw, 40px);
}
.hero__eyebrow-bar { display: inline-block; width: clamp(28px, 4vw, 60px); height: 1px; background: var(--ink-2); flex: none; }

/* FV タイポグラフィ（スケールを大胆に振った段組・line-heightは見切れ防止に余裕を持たせる） */
.hero__title { font-family: var(--font-ja); color: var(--ink); margin-bottom: clamp(30px, 3.4vw, 48px); }
.hero__t { display: block; }
.hero__t--lead { font-size: clamp(22px, 3vw, 42px); font-weight: 400; letter-spacing: 0.12em; line-height: 1.3; color: var(--ink-2); }
.hero__t--big { font-size: clamp(60px, 10vw, 148px); font-weight: 600; letter-spacing: 0.004em; line-height: 1.14; }
.hero__t--mid { font-size: clamp(38px, 6vw, 98px); font-weight: 500; letter-spacing: 0.02em; line-height: 1.12; }

/* PC：タイトルを右・サブ（リード＋ボタン）を左の左右分割（右の余白を埋める） */
@media (min-width: 1024px) {
  .hero__content {
    max-width: 1640px;
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) 1.18fr;
    grid-template-areas: "eyebrow title" "intro title";
    column-gap: clamp(48px, 5vw, 100px);
    align-items: center;
  }
  .hero__eyebrow { grid-area: eyebrow; align-self: end; margin-bottom: clamp(18px, 2vw, 30px); }
  .hero__intro { grid-area: intro; align-self: start; }
  .hero__title { grid-area: title; align-self: center; text-align: right; margin-bottom: 0; }
}

/* 左の余白を埋める縦組み英字キッカー（PCのみ） */
.hero__vtag {
  position: absolute; left: clamp(24px, 3.2vw, 58px); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-en); font-size: 13px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-3); z-index: 2; white-space: nowrap;
}
.hero__lead {
  font-size: clamp(14px, 1.6vw, 16px); line-height: 2.0; letter-spacing: 0.06em;
  color: var(--ink-2); margin-bottom: 44px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* FV バナー（DELTAの特集バナー帯を踏襲） */
.hero__banners {
  position: absolute; left: clamp(20px, 6vw, 64px); bottom: clamp(24px, 4.5vh, 50px);
  display: flex; gap: 14px; z-index: 2; max-width: calc(100% - 40px);
}
.hero__banner {
  position: relative; display: block; flex: none;
  width: clamp(132px, 13.5vw, 196px); aspect-ratio: 16 / 10;
  overflow: hidden; border-radius: 7px; box-shadow: 0 14px 36px rgba(27,27,27,0.16);
}
.hero__banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.hero__banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,16,14,0.78) 0%, rgba(18,16,14,0.28) 48%, rgba(18,16,14,0.05) 100%);
}
.hero__banner:hover img { transform: scale(1.07); }
.hero__banner-tag {
  position: absolute; top: 9px; left: 9px; z-index: 1;
  font-family: var(--font-en); font-size: 9px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: rgba(27,27,27,0.45);
  backdrop-filter: none; padding: 3px 8px; border-radius: 100px;
}
.hero__banner-label {
  position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 1;
  font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: 0.02em; color: #fff;
}

.hero__scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2;
}
.hero__scroll-text { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-2); text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 64px; background: var(--ink-2); transform-origin: top; animation: scroll-line 2.4s var(--ease-out) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 40% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================ 背景図形（白背景セクションで常時回転） ============================ */
.has-bg-figure { position: relative; overflow-x: clip; }
.has-bg-figure > * { position: relative; z-index: 1; }
.has-bg-figure > .bg-figure { z-index: 0; }
.bg-figure {
  position: absolute; pointer-events: none;
  top: 50%; left: 72%; width: min(68vw, 700px); opacity: 0.5;
  transform: translate(-50%, -50%);
}
.bg-figure svg { width: 100%; height: auto; transform-origin: 50% 50%; animation: bg-figure-spin 70s linear infinite; }
.bg-figure svg circle, .bg-figure svg path { stroke: var(--grey); opacity: 0.36; }
.bg-figure--1 { left: 22%; top: 34%; width: min(50vw, 520px); animation-duration: 84s; }
.bg-figure--2 { left: 84%; top: 62%; width: min(58vw, 600px); }
@keyframes bg-figure-spin { to { transform: rotate(360deg); } }

/* ============================ INFO BAR ============================ */
.info-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.04em;
}
.info-bar__news { display: flex; align-items: center; gap: 16px; min-width: 0; }
.info-bar__badge { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); border: 1px solid var(--ink); padding: 3px 10px; border-radius: 100px; flex-shrink: 0; }
.info-bar__date { font-family: var(--font-en); color: var(--ink-3); letter-spacing: 0.08em; flex-shrink: 0; }
.info-bar__text { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-bar__hours { color: var(--ink-2); flex-shrink: 0; }

/* ============================ CONCEPT ============================ */
.concept__grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.concept__lead { margin-bottom: 28px; color: var(--ink); }
.concept__desc { font-size: 15px; line-height: 2.1; letter-spacing: 0.05em; color: var(--ink-2); }
.concept__sign { margin-top: 32px; font-size: 14px; letter-spacing: 0.1em; color: var(--ink); }
.concept__media { position: relative; }
.concept__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.concept__cap { position: absolute; left: -10px; bottom: 22px; writing-mode: vertical-rl; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); background: var(--bg); padding: 8px 4px; }

/* ============================ 横スクロール画像帯（スクロール連動） ============================ */
.h-scroll { overflow: hidden; padding-block: clamp(36px, 5vw, 80px); }
.h-scroll__track { display: flex; gap: clamp(16px, 2vw, 26px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.h-scroll__item { flex: none; width: clamp(232px, 27vw, 410px); aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.h-scroll__item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================ ABOUT preview（縦長ポートレートのオフセットクラスタ） ============================ */
.about-pre__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-cluster { position: relative; min-height: clamp(380px, 46vw, 560px); }
.about-cluster__cell { position: absolute; border-radius: 4px; box-shadow: 0 20px 48px rgba(27,27,27,0.12); }
.about-cluster__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-cluster__cell--a { top: 0; left: 0; width: 58%; aspect-ratio: 3 / 4; z-index: 1; }
.about-cluster__cell--b { top: 15%; right: 0; width: 42%; aspect-ratio: 3 / 4; z-index: 2; }
.about-cluster__cell--c { bottom: -5%; left: 13%; width: 34%; aspect-ratio: 1 / 1; z-index: 3; }
/* 多段リビール（fade-up + stagger）で速度差＝擬似パララックスの見た目を安全に再現 */
.about-pre__copy { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; line-height: 1.8; letter-spacing: 0.05em; margin-bottom: 24px; }
.about-pre__desc { font-size: 15px; line-height: 2.1; letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: 32px; }

/* ============================ FEATURE（ピン留め：背の高い区間をstickyで固定し01→06を順に表示） ============================ */
.feature__pinwrap { position: relative; height: 520vh; }
.feature__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.feature__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.92fr); gap: clamp(40px, 5vw, 84px); align-items: center; width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.feature__media { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 140px); border-radius: 6px; overflow: hidden; box-shadow: 0 34px 80px rgba(27,27,27,0.18); background: var(--bg-2); }
.feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity 0.9s var(--ease-delta), transform 1.6s var(--ease-delta); }
.feature__img.is-active { opacity: 1; transform: scale(1); }
.feature__media-index { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.feature__media-sep { margin: 0 5px; opacity: 0.55; }
.feature__panels { position: relative; min-height: 300px; }
.feature__panel { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease-delta), transform 0.8s var(--ease-delta); pointer-events: none; }
.feature__panel.is-current { opacity: 1; transform: none; pointer-events: auto; }
.feature__panel-fig { display: none; }
.feature__num { display: block; font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 22px; }
.feature__title { font-size: clamp(22px, 2.8vw, 34px); font-weight: 500; letter-spacing: 0.03em; line-height: 1.5; margin-bottom: 22px; }
.feature__desc { font-size: clamp(15px, 1.1vw, 16px); line-height: 2.0; letter-spacing: 0.05em; color: var(--ink-2); max-width: 30em; }

/* ============================ TREATMENT highlight（ダーク） ============================ */
.treatment-hl__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.treatment-hl__img { overflow: hidden; border-radius: 4px; margin-bottom: 26px; }
.treatment-hl__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.treatment-hl__item:hover .treatment-hl__img img { transform: scale(1.05); }
.treatment-hl__title { font-size: clamp(19px, 2.1vw, 23px); font-weight: 500; letter-spacing: 0.04em; margin: 12px 0 14px; }
.treatment-hl__desc { font-size: 14px; line-height: 1.95; letter-spacing: 0.04em; color: var(--on-dark-2); margin-bottom: 22px; }
.treatment-hl__more { text-align: center; margin-top: clamp(48px, 6vw, 80px); }

/* ============================ GALLERY ============================ */
.gallery-marquee { overflow: hidden; width: 100%; margin-block: clamp(20px, 3vw, 36px); }
.gallery-marquee__track { display: flex; gap: 18px; width: max-content; animation: gallery-marq 48s linear infinite; }
@keyframes gallery-marq { to { transform: translateX(-50%); } }
.gallery-marquee__img { width: clamp(176px, 20vw, 286px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; flex: none; }

.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; margin-top: clamp(28px, 4vw, 48px); }
.gallery-mosaic__item { overflow: hidden; border-radius: 4px; }
.gallery-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.gallery-mosaic__item:hover img { transform: scale(1.05); }
.gallery-mosaic__item--tall { grid-row: span 2; }
.gallery-mosaic__item--wide { grid-column: span 2; }

/* ============================ SYMPTOM（症状からさがす） ============================ */
.symptom__intro { max-width: 680px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; font-size: 15px; line-height: 2.0; letter-spacing: 0.05em; color: var(--ink-2); }
.symptom__list { display: flex; flex-direction: column; }
.symptom__row { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.symptom__row:last-child { border-bottom: 1px solid var(--line); }
.symptom__cat { font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: 0.04em; line-height: 1.6; color: var(--ink); display: flex; align-items: baseline; gap: 14px; }
.symptom__cat-no { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-3); }
.symptom__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.symptom__link { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 10px; border: 1px solid transparent; border-radius: 6px; transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.symptom__link:hover { background: var(--bg-2); border-color: var(--line); transform: translateY(-3px); }
.symptom__ic { width: 52px; height: 52px; color: var(--ink); }
.symptom__ic svg { width: 100%; height: 100%; }
.symptom__sym { font-size: 13px; font-weight: 500; letter-spacing: 0.03em; line-height: 1.6; color: var(--ink); }
.symptom__treat { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.symptom__treat::before { content: ''; display: block; width: 20px; height: 1px; background: var(--line); margin: 8px auto 6px; }

/* ============================ STATS（ダーク） ============================ */
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); text-align: center; }
.stats__item .caption { display: block; margin-bottom: 18px; color: var(--on-dark-2); }
.stats__item .num-en { color: var(--on-dark); display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.stats__unit { font-size: clamp(14px, 1.6vw, 18px); font-weight: 500; letter-spacing: 0.06em; color: var(--on-dark-2); }
.stats__text { margin-top: 18px; font-size: 13px; line-height: 1.8; letter-spacing: 0.05em; color: var(--on-dark-2); }

/* ============================ SNS ============================ */
.sns-ig, .sns-yt { max-width: 920px; margin: 0 auto; }
.sns-yt { margin-top: clamp(48px, 6vw, 80px); }
.sns-ig__head, .sns-yt__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.sns-ig__icon, .sns-yt__icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.sns-ig__icon svg, .sns-yt__icon svg { width: 22px; height: 22px; }
.sns-ig__name { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; }
.sns-ig__handle { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.sns-ig__follow, .sns-yt__head .link-more { margin-left: auto; }

.sns-ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sns-ig__cell { overflow: hidden; border-radius: 4px; aspect-ratio: 1; }
.sns-ig__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.4s; }
.sns-ig__cell:hover img { transform: scale(1.06); opacity: 0.9; }

.sns-yt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sns-yt__thumb { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.sns-yt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sns-yt__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: rgba(245,243,242,0.92); border-radius: 50%; color: var(--ink); }
.sns-yt__play svg { width: 22px; height: 22px; margin-left: 2px; }
.sns-yt__title { font-size: 14px; line-height: 1.7; letter-spacing: 0.03em; color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .feature__inner { gap: clamp(28px, 4vw, 56px); }
  .treatment-hl__list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .treatment-hl__item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
  .treatment-hl__img { margin-bottom: 0; }
  .symptom__row { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 767px) {
  .hero { min-height: 92vh; min-height: 92svh; }
  .hero__marquee span { font-size: 24vw; }
  .hero__vtag { display: none; }
  .hero__t--big { margin-left: clamp(8px, 3vw, 40px); }
  .hero__banners { gap: 10px; bottom: 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hero__banners::-webkit-scrollbar { display: none; }
  .hero__banner { width: 134px; }
  .hero__scroll { display: none; }
  .info-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .info-bar__text { white-space: normal; }
  .info-bar__hours { font-size: 12px; }
  .concept__grid { grid-template-columns: 1fr; gap: 48px; }
  .concept__media { max-width: 420px; }
  .concept__cap { left: auto; right: -8px; }
  .about-pre__grid { grid-template-columns: 1fr; gap: 48px; }
  .about-cluster { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; margin-inline: auto; }
  .about-cluster__cell { position: static; width: auto; box-shadow: 0 12px 30px rgba(27,27,27,0.10); }
  .about-cluster__cell--a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .about-cluster__cell--b { aspect-ratio: 3 / 4; }
  .about-cluster__cell--c { aspect-ratio: 3 / 4; }
  .symptom__row { gap: 16px; padding: 28px 0; }
  .symptom__items { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .symptom__link { padding: 18px 8px; }
  .symptom__ic { width: 46px; height: 46px; }
  .treatment-hl__item { grid-template-columns: 1fr; }
  .treatment-hl__img { margin-bottom: 18px; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .gallery-mosaic__item--wide { grid-column: span 1; }
  .gallery-mosaic__item--tall { grid-row: span 1; }
  /* SP：concept本文のPC用改行を解除して自然に流す（日本語改行フロー書 §4出し分け） */
  .concept__desc br { display: none; }
  /* SP：症状ラベルの折れ＋治療名のズレを補正（フォント微縮＋高さ揃え） */
  .symptom__sym { font-size: 12px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
  /* FEATURE：SPはピンを使わず縦積みフォールバック */
  .feature__pinwrap { height: auto; }
  .feature__pin { position: static; height: auto; display: block; }
  .feature__inner { display: block; max-width: 520px; margin-inline: auto; padding-inline: var(--gutter); }
  .feature__media { display: none; }
  .feature__panels { min-height: 0; }
  .feature__panel { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: clamp(40px, 8vw, 64px); }
  .feature__panel:last-child { margin-bottom: 0; }
  .feature__panel-fig { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
  .feature__panel-fig img { width: 100%; height: 100%; object-fit: cover; }
  .feature__num { margin-bottom: 12px; }
  .feature__title { margin-bottom: 14px; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .sns-ig__grid { grid-template-columns: repeat(3, 1fr); }
  .sns-yt__grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .stats__grid { gap: 40px; }
}

/* クライアント判断（2026-06）：DELTA同様に prefers-reduced-motion を無視し常時アニメ再生。
   よってマーキー/回転/スクロールラインの無効化は行わない。 */
