/* 案件固有のスタイル。型(styles.css)は編集禁止 — 上書きはすべてここに書く。
   読み込み順は styles.css → custom.css なので、同じセレクタ/変数はこちらが勝つ。 */

:root {
  --mold-version: 9;
  /* font-preset: serene */
  --lh-body: 1.95;
  --lh-display: 1.35;
  --ls-en: .10em;
  --ls-body: .02em;
  --ls-display: .04em;
  --fw-strong: 700;
  --fw-body: 400;
  --fw-display: 500;
  --font-en: "Cormorant Garamond", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Zen Old Mincho", serif;
  /* 配色: 石垣の海(design-dna-lock.md)。抽出値は文字に薄すぎるため、カンプ実測の紺とコーラルで確定 */
  --ink: #10233d;
  --muted: #4d6378;
  --paper: #fbfaf6;
  --soft: #e6f3f2;
  --line: rgba(16, 35, 61, 0.13);
  --gold: #0e7c8c;          /* アクセント(型の変数名のまま) */
  --coral: #f75b45;
  --coral-deep: #e2462f;
  --deep: #0b2a3f;
  --aqua: #8fd6d0;
  --shadow: 0 28px 80px rgba(11, 42, 63, 0.16);
}

.sp-only { display: none; }
@media (max-width: 620px) { .sp-only { display: inline; } }

/* ---------- 共通の色の置き換え ---------- */
.section { background: linear-gradient(180deg, rgba(43, 179, 166, .07), rgba(251, 250, 246, 0) 320px); }
.ghost { color: rgba(14, 124, 140, .07); }
.btn--primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn--ghost { color: var(--ink); border-color: var(--ink); background: rgba(255, 255, 255, .92); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; }
.sticky-cta { background: var(--coral); box-shadow: 0 16px 40px rgba(247, 91, 69, .35); }
.marquee__inner { color: var(--gold); }
.voice { background: #eef6f5; }
.voice__grid blockquote::before { color: rgba(14, 124, 140, .5); }
.quality { background: #e9f4f3; }
.quality__photo { border-radius: 0 120px 0 0; }
.proof-band, .numbers, .contact { background: var(--deep); }
.proof-row__num, .numbers__kicker, .access dt { color: var(--aqua); }
.numbers__kicker::before { background: var(--aqua); }
.numbers__grid strong em { color: var(--aqua); }
.numbers__bg { opacity: .32; }
.footer { background: #071d2c; }
.footer__brand svg { width: 64px; height: 22px; color: var(--aqua); }
.footer__sns a { color: var(--aqua); }
.footer__sns a:hover, .footer__sns a:focus-visible { border-color: var(--aqua); }
.contact .btn { background: var(--coral); border-color: var(--coral); color: #fff; }
.contact__bg { opacity: .22; }
.quality-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.quality-track span { padding: 14px 18px; border-color: rgba(14, 124, 140, .22); background: rgba(255, 255, 255, .7); }
@media (max-width: 620px) {
  .quality-track { grid-template-columns: 1fr; }
}
.text-link { color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s var(--ease-out-expo); }
.text-link:hover, .text-link:focus-visible { color: var(--coral-deep); }
@media (hover: hover) {
  .price-table dl div:hover { background: rgba(14, 124, 140, .07); }
}

/* シグネチャー: セクション境界のゆるい波線(art-direction-lock.md) */
.proof-band::before, .numbers::before, .contact::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(18px, 2.6vw, 40px);
  background: var(--wave-fill, var(--paper));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v14c-120 18-240 26-360 18S840 2 720 6 480 34 360 34 120 22 0 12z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v14c-120 18-240 26-360 18S840 2 720 6 480 34 360 34 120 22 0 12z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.proof-band::before { --wave-fill: #fff; }
.numbers::before { --wave-fill: #fbfaf6; }
.contact::before { --wave-fill: #e9f4f3; }

/* ツアーカード: 写真がゆっくり寄る(見せ場) */
.service-card figure img { transition: transform .8s var(--ease-out-expo); }
.service-card:hover figure img, .service-card:focus-visible figure img { transform: scale(1.04); }
.service-card span { color: var(--gold); font-family: var(--font-body); letter-spacing: .06em; font-size: .82rem; }
.service-card strong { font-size: 1.15rem; color: var(--coral-deep); }
.price-table dd { font-family: var(--font-body); font-size: .92rem; color: var(--ink); text-align: right; }

/* 予約フォーム(.contact の右列。型の .contact-form と同じ並び) */
.reserve-form { display: grid; gap: 16px; align-content: start; }
.reserve-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reserve-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 14px 16px;
  font: inherit;
}
.reserve-form select option { color: var(--ink); }
.reserve-form input[type="date"] { color-scheme: dark; }
.reserve-form .btn { width: 100%; margin-top: 6px; }

/* ---------- ルートAヒーロー(make_hero_bg.py の座標。カンプ 1672x941 の px を --u で換算) ---------- */
@media (min-width: 1041px) {
  .site-header {
    --hu: calc(100vw / 1672);
    grid-template-columns: auto 1fr auto;
    gap: calc(var(--hu) * 33);
    height: calc(var(--hu) * 82);
    padding: 0 calc(var(--hu) * 35) 0 calc(var(--hu) * 47);
    background: #fff;
    border-bottom: 1px solid rgba(16, 35, 61, .1);
    backdrop-filter: none;
  }
  .brand { gap: calc(var(--hu) * 14); }
  .brand__mark { width: calc(var(--hu) * 100); height: calc(var(--hu) * 34); }
  .brand__text {
    display: grid;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: calc(var(--hu) * 25);
    letter-spacing: .07em;
    line-height: 1.15;
    color: var(--ink);
  }
  .brand__text small { font-family: var(--font-body); font-size: calc(var(--hu) * 13); letter-spacing: .3em; font-weight: 500; }
  .nav {
    gap: calc(var(--hu) * 31);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: calc(var(--hu) * 16.5);
    letter-spacing: .02em;
    color: var(--ink);
  }
  .nav a:hover, .nav a:focus-visible { color: var(--gold); }
  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--hu) * 14);
    width: calc(var(--hu) * 164);
    height: calc(var(--hu) * 51);
    border-radius: calc(var(--hu) * 13);
    background: var(--coral);
    color: #fff;
    font-weight: 500;
    font-size: calc(var(--hu) * 17);
    letter-spacing: .04em;
    transition: background .35s var(--ease-out-expo), transform .35s var(--ease-out-expo);
  }
  .header-cta svg { width: calc(var(--hu) * 18); height: auto; transition: transform .35s var(--ease-out-expo); }
  .header-cta:hover, .header-cta:focus-visible { background: var(--coral-deep); transform: translateY(-2px); }
  .header-cta:hover svg, .header-cta:focus-visible svg { transform: translateX(4px); }

  .hero {
    position: relative;
    aspect-ratio: 1672 / 941;
    padding-top: 0;
    background: url('assets/fv-bg.jpg') center / cover no-repeat;
    container-type: inline-size;
    --u: calc(100cqw / 1672);
  }
  .hero__stage { position: absolute; inset: 0; }
  .hero__photo-wrap { display: none; }
  .hero__copy {
    position: absolute;
    inset: auto;
    left: calc(var(--u) * 104);
    top: calc(var(--u) * 214);
    width: calc(var(--u) * 900);
    display: block;
    padding: 0;
  }
  .hero h1 {
    font-weight: 700;
    font-size: calc(var(--u) * 68);
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--ink);
    margin: 0 0 calc(var(--u) * 22);
  }
  .hero__lead {
    max-width: none;
    margin: 0 0 calc(var(--u) * 42);
    font-size: calc(var(--u) * 24.5);
    line-height: 1.64;
    font-weight: 500;
    letter-spacing: .02em;
    color: #182a40;
  }
  .hero__actions { display: flex; gap: calc(var(--u) * 24); }
  .hero .btn {
    min-height: 0;
    height: calc(var(--u) * 84);
    justify-content: flex-start;
    border-width: 2px;
    border-radius: calc(var(--u) * 13);
    font-size: calc(var(--u) * 23);
    font-weight: 500;
    letter-spacing: .06em;
  }
  .hero .btn--primary { width: calc(var(--u) * 391); padding: 0 0 0 calc(var(--u) * 46); }
  .hero .btn--ghost { width: calc(var(--u) * 279); padding: 0 0 0 calc(var(--u) * 54); }
  .hero .btn svg { right: calc(var(--u) * 33); width: calc(var(--u) * 22); }
  .hero__band {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--u) * 825);
    height: calc(var(--u) * 116);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .hero__band li {
    position: absolute;
    top: calc(var(--u) * 26);
    height: calc(var(--u) * 64);
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 26);
    font-size: calc(var(--u) * 23);
    font-weight: 500;
    letter-spacing: .02em;
    color: #182a40;
    white-space: nowrap;
  }
  .hero__band li:nth-child(1) { left: calc(var(--u) * 106); }
  .hero__band li:nth-child(2) { left: calc(var(--u) * 506); }
  .hero__band li:nth-child(3) { left: calc(var(--u) * 926); }
  .hero__band li:nth-child(4) { left: calc(var(--u) * 1293); }
  .hero__band li + li::before {
    content: "";
    position: absolute;
    left: calc(var(--u) * -70);
    top: calc(var(--u) * 7);
    width: 1px;
    height: calc(var(--u) * 50);
    background: rgba(16, 35, 61, .16);
  }
  .hero__band svg { width: calc(var(--u) * 60); height: calc(var(--u) * 60); flex: none; }
}

/* 型はヒーロー内の reveal に 42px の初期ずれを付けるが、表示後も残るため表示後は戻す(静止状態=カンプ) */
.hero__copy [data-reveal].is-visible { transform: none; }

/* H1 3行目の行マスク遅延(型は2行分のみ定義) */
.is-loaded .hero h1 .l:nth-child(3) > span { transform: none; transition-delay: .5s; }

/* ---------- モバイル: 縦積み(コピー → 写真 → 安心の帯) ---------- */
@media (max-width: 1040px) {
  .header-cta { display: none; }
  .brand__mark { width: 52px; height: 18px; }
  .brand__text { display: grid; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .1em; line-height: 1.2; }
  .brand__text small { font-family: var(--font-body); font-size: .62rem; letter-spacing: .3em; }
  .hero { background: var(--paper); }
  .hero__copy { padding: 40px 22px 28px; }
  .hero h1 { font-weight: 700; font-size: clamp(1.5rem, 6.8vw, 3.2rem); line-height: 1.45; letter-spacing: 0; color: var(--ink); }
  .hero__lead { font-size: clamp(.92rem, 3.6vw, 1.1rem); line-height: 1.8; color: #182a40; font-weight: 500; margin-bottom: 26px; }
  .hero__actions { display: grid; gap: 12px; }
  .hero .btn { min-height: 56px; border-radius: 12px; border-width: 2px; font-size: 1rem; letter-spacing: .06em; padding: 0 52px 0 24px; }
  .hero .btn svg { width: 20px; right: 20px; }
  .hero__photo { aspect-ratio: 732 / 736; }
  .hero__band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    margin: 0;
    padding: 22px 22px 26px;
    list-style: none;
    background: #fff;
  }
  .hero__band li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: #182a40; }
  .hero__band svg { width: 34px; height: 34px; flex: none; }
  .reserve-form__row { grid-template-columns: 1fr; }
}

/* Reduced-motion(output-contracts.md の標準ブロック) */
@media (prefers-reduced-motion: reduce) {
  /* 動き(移動・拡大・拭き上げ)は止めるが、opacityのフェードは残す。パッと出さない */
  body [data-reveal] {
    transform: none !important;
    clip-path: none !important;
    transition: opacity .6s ease !important;
  }
  .hero__ambient { display: none; }           /* 常時ゆらぐ装飾だけ消す */
  .marquee__inner { animation-duration: 55s; } /* 流れる帯は速度を落とすだけ */
}

/* v3: ツアーは2つ */
.service-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1040px) { .service-grid--two { grid-template-columns: 1fr; } }

/* ---------- v4（2026-11-24）: 5プラン・予約先リンク・運営者欄 ---------- */
.service-card__go { display: inline-flex; align-items: center; gap: 8px; margin: 14px 24px 24px; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--coral-deep); }
.service-card__go::after { content: "→"; transition: transform .3s var(--ease-out-expo); }
.service-card:hover .service-card__go::after { transform: translateX(4px); }
.section__head--sub { margin-top: 96px; }
.section__head--sub .section__lead { max-width: 640px; margin-top: 18px; }
.about-list { max-width: 880px; margin: 40px 0 0; display: grid; gap: 0; }
.about-list div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(16, 35, 61, .14); }
.about-list div:last-child { border-bottom: 1px solid rgba(16, 35, 61, .14); }
.about-list dt { font-weight: 700; color: var(--ink); }
.about-list dd { margin: 0; line-height: 1.9; color: var(--ink); }
.todo { background: #fff3b0; color: #5a4300; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.reserve-list { display: grid; gap: 12px; align-content: start; }
.reserve-list__label { margin: 14px 0 0; color: var(--aqua) !important; font-size: .85rem; letter-spacing: .1em; }
.reserve-list__label:first-child { margin-top: 0; }
.reserve-list a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 60px; padding: 14px 20px; border-radius: 12px; background: #c8371f; color: #fff; font-weight: 700; text-decoration: none; transition: background .3s var(--ease-out-expo), transform .3s var(--ease-out-expo); }
.reserve-list a:hover, .reserve-list a:focus-visible { background: #a92c17; transform: translateY(-2px); }
.reserve-list a em { font-style: normal; font-size: .9rem; white-space: nowrap; }
.reserve-list a em::after { content: "  →"; }
.reserve-list__tel { margin-top: 10px; }
@media (max-width: 1040px) {
  .about-list div { grid-template-columns: 1fr; gap: 4px; }
  .section__head--sub { margin-top: 64px; }
  .reserve-list a { font-size: .95rem; }
}
@media (max-width: 640px) {
  .price-table dl div { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .price-table dd { text-align: left; }
}

/* ---------- v5（2026-11-26）: AI画像の注記・連絡先・予約フォーム準備中 ---------- */
.contact-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.reserve-list__tel { line-height: 2; }
.service-card--soon { cursor: default; }
.service-card__soon { display: inline-block; margin: 14px 24px 24px; padding: 6px 14px; border: 1px dashed #26364d; border-radius: 8px; background: #e3e8ee; color: #26364d; font-style: normal; font-weight: 700; font-size: .9rem; }
.reserve-list__soon { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 60px; padding: 14px 20px; border: 1px dashed #26364d; border-radius: 12px; background: #e3e8ee; color: #26364d; font-weight: 700; }
.reserve-list__soon small { display: block; font-size: .8rem; }
.reserve-list__soon em { font-style: normal; font-size: .9rem; white-space: nowrap; }
@media (max-width: 1040px) { .reserve-list__soon { font-size: .95rem; } }
/* 連絡先は予約ボタンと見分けられる下線の文字にする */
.reserve-list a.contact-link { display: inline; min-height: 0; padding: 0; border-radius: 0; background: none; color: #fff; text-decoration: underline; }
.reserve-list a.contact-link:hover, .reserve-list a.contact-link:focus-visible { background: none; transform: none; }

/* v6: 体験ダイビングの写真は海底に触れる部分を外した横長 */
.service-grid--two .service-card figure img { aspect-ratio: 2 / 1; }
