/* ============================================================
   Omiai 紹介ページ — スタイル
   ------------------------------------------------------------
   方針:
     ・モバイル優先。max-width 700px の1カラムで PC でも読ませる
     ・見出しは明朝体。婚活カテゴリの語感に寄せる
     ・配色は暖色系。Omiai のブランドカラー（青）は使わない
     ・画像が無くてもグラデーションで成立するように作る
   ============================================================ */

/* ---------- トークン ---------- */
:root {
  --bg:        #FDF8F4;
  --bg-alt:    #F7EDE6;
  --surface:   #FFFFFF;
  --ink:       #2E2724;
  --ink-soft:  #6B5F58;
  --ink-faint: #9A8D85;
  --line:      #EADCD2;
  --accent:      #E0566E;
  --accent-deep: #C43F57;
  --accent-soft: #FBE9EC;

  --sans:  "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Times New Roman", serif;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(46, 39, 36, .05);
  --shadow-md: 0 6px 24px rgba(46, 39, 36, .08);

  --header-h: 60px;
  --dock-h:   68px;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  /* モバイルの追従バーに本文が隠れないよう余白を確保 */
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.45; }

.wrap {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(224, 86, 110, .32);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.97); }

.btn--lg   { width: 100%; padding: 19px 28px; font-size: 17.5px; letter-spacing: .02em; }
.btn--block{ width: 100%; }
.btn--sm   { padding: 9px 18px; font-size: 13.5px; box-shadow: none; }
.btn--dock { width: 100%; padding: 16px 20px; font-size: 16px; }

.btn-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}

.cta-block { margin-top: 26px; }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 244, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  margin-right: auto;
}
.wordmark__main {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}
.wordmark__tag {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-faint);
}

/* ステマ規制対応：広告であることの常時表示 */
.pr-badge {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(224, 86, 110, .3);
  border-radius: 999px;
  padding: 3px 9px;
}

.site-header__cta { flex: none; }

/* ============================================================
   1. ファーストビュー
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* 画像が無いときの下地。暖色のグラデーション。 */
  background:
    radial-gradient(120% 80% at 78% 12%, #F6D9D3 0%, transparent 58%),
    radial-gradient(100% 70% at 12% 92%, #EFDDD2 0%, transparent 62%),
    linear-gradient(168deg, #FDF3EC 0%, #F6E4DA 100%);
}

/* 画像は「帯」。文字はその下の背景の上に置く。
   ------------------------------------------------------------
   全画面に敷いて文字を載せる案は、この写真では成立しない。原図は
   3000x2000 の横位置で 2 人が横に並んでおり（顔の間隔は約 900px）、
   縦長の枠に cover すると object-position をどう動かしても顔が切れる
   ——実測で 5 通り試して 5 通りとも切れた。デスクトップでも被写体は
   画面の縦 32〜55% にいて、420px 超の文字ブロックと必ず衝突する。
   帯にして上下に分ければ、その衝突自体が起こらない。 */
.hero__media { position: relative; }

.hero__media picture { display: block; }

.hero__img {
  display: block;
  width: 100%;
  height: auto;   /* 原図の比率のまま。object-fit で切らない */
}

/* <source> の width/height を読まないブラウザ用の保険。
   デスクトップでは 3:1 の帯、モバイルでは img の属性どおり 3:2。
   ⚠ この media 条件は index.html の <source media> と必ず揃えること。
     ずれると、選ばれた画像と確保した箱の比率が食い違って画像が歪む。 */
@media (min-width: 769px) {
  .hero__img { aspect-ratio: 3 / 1; }
}

/* 帯の下端を背景になじませる。
   — 画像が無くても下地が明るいので害はない。 */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  padding-top: clamp(26px, 4vw, 46px);
  padding-bottom: clamp(34px, 6.5vw, 70px);
}

.hero__eyebrow {
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(30px, 8.6vw, 46px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* ============================================================
   共通セクション
   ============================================================ */
.section { padding: clamp(52px, 11vw, 88px) 0; }
.section--empathy { background: var(--bg); }
.section--features { background: var(--bg-alt); }
.section--price { background: var(--bg); }
.section--faq { background: var(--bg-alt); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 26px;
}

.section__lead {
  margin-top: -16px;
  margin-bottom: 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 15.5px; }
.prose p:last-child { margin-bottom: 0; color: var(--ink); }

/* ============================================================
   実績バー
   ============================================================ */
.stats { background: var(--ink); color: #F7EDE6; padding: 26px 0; }
.stats__inner { text-align: center; }
.stats__value {
  font-family: var(--serif);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: .02em;
}
.stats__source { margin-top: 6px; font-size: 11px; color: rgba(247, 237, 230, .65); }

/* ============================================================
   3つの理由
   ============================================================ */
.features { display: grid; gap: 16px; counter-reset: f; }

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}

.feature__num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature__body { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }

/* ============================================================
   出会いのイメージ
   ============================================================ */
.section--gallery { background: var(--bg); }

.gallery { display: grid; gap: 14px; }

/* 狭い画面では 1 枚ずつ。2 枚並べると 1 人あたりが小さくなりすぎる。 */
@media (min-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 38%;
}

/* ============================================================
   料金
   ============================================================ */
.price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.price__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.price__card--male { border-color: rgba(224, 86, 110, .35); }

.price__label {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.price__value {
  font-family: var(--serif);
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.35;
  word-break: break-word;
}

.price__note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-faint);
}

.price__fallback {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--accent-deep);
  text-align: center;
}

.assure {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.assure li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.assure li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.fine {
  margin-top: 22px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-faint);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 10px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__q {
  position: relative;
  padding: 18px 46px 18px 20px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-deep); }

/* ＋ / − インジケータ */
.faq__q::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 12px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform .2s ease;
}
.faq__q::before {
  content: "";
  position: absolute;
  right: 25px; top: 50%;
  width: 2px; height: 12px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.faq__item[open] .faq__q::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }

.faq__a { padding: 0 20px 20px; }
.faq__a p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }

/* ============================================================
   6. 結び CTA
   ============================================================ */
.closing {
  background:
    radial-gradient(120% 90% at 50% 0%, #FBE9EC 0%, transparent 60%),
    var(--bg-alt);
  padding: clamp(56px, 12vw, 92px) 0;
  text-align: center;
}

.closing__title {
  font-family: var(--serif);
  font-size: clamp(24px, 6.6vw, 33px);
  font-weight: 700;
  margin-bottom: 12px;
}

.closing__lead { font-size: 14.5px; color: var(--ink-soft); }

.closing .cta-block { max-width: 420px; margin-inline: auto; }

/* チャネル共通のチップ列 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.chips li {
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.chips--closing { justify-content: center; }

/* ============================================================
   フッター
   ============================================================ */
.footer { background: var(--ink); color: rgba(247, 237, 230, .72); padding: 34px 0; }

.footer__disclaimer {
  font-size: 11.5px;
  line-height: 1.9;
  margin-bottom: 18px;
  color: rgba(247, 237, 230, .6);
}

.footer__meta { font-size: 11.5px; color: rgba(247, 237, 230, .45); }

/* ============================================================
   モバイル追従バー
   ・PC ではヘッダーのボタンで足りるので出さない
   ・結びセクションが見えたら隠す（is-hidden）
   ============================================================ */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 248, 244, .93);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .28s ease, opacity .28s ease;
}
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  .dock { display: block; }
}

/* ============================================================
   表示アニメーション
   .reveal は JS が付ける。JS が無ければただの静的表示。
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ============================================================
   印刷
   ============================================================ */
@media print {
  .site-header, .dock, .btn { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}

/* ============================================================
   警告バナー（PROMO_URL 未設定時に main.js が出す）
   ============================================================ */
.setup-warning {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: #B3261E;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
}
