/* ============================================================
   カートに入れる LP スタイル（聖地カメラのLPを土台に配色だけ差し替え）
   構成: トークン → ベース → レイアウト → ヒーロー → 本文
        → 部品(ライトボックス/追従バー) → モーション
   ============================================================ */

/* --- トークン ------------------------------------------------ */
:root {
  /* アクセント（CTAとキャプションの下線のみに使う。面積を広げない） */
  --accent: #b3541e;
  --accent-line: #93441a;
  --on-accent: #ffffff;

  /* 文字（明度3段階で階層を作る。色相では作らない） */
  --ink: #211f1c;
  --text: #2b2925;
  --muted: #736e66;
  --link: #93441a;

  /* 面と線 */
  --bg: #f9f6f1;
  --line: #e3ded6;       /* 区切り線（details / footer / 追従バー） */
  --line-soft: #e8e2d8;  /* 画像やチップの枠線 */
}

/* --- ベース -------------------------------------------------- */
* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans TC", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.7; -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 3px; }

/* --- レイアウト ---------------------------------------------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px; position: relative; }

/* 上部の夕景グラデーション（アプリアイコンの配色から） */
body::before {
  content: ""; display: block; position: absolute; inset: 0 0 auto 0; height: 640px;
  background: linear-gradient(180deg,
    rgba(179, 84, 30, .13) 0%,
    rgba(202, 166, 79, .09) 40%,
    rgba(95, 115, 80, .06) 66%,
    transparent 92%);
  pointer-events: none;
}

.langbar { font-size: .82rem; position: relative; }
.langbar .wrap { display: flex; flex-wrap: wrap; gap: .9em; padding-top: 14px; }
.langbar a { color: var(--muted); text-decoration: none; }
.langbar a[aria-current] { color: var(--text); font-weight: 600; }

/* ブラウザの言語設定に合わせた案内（JSが差し込む） */
.langsuggest { font-size: .86rem; }
.langsuggest .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px;
}
.langsuggest .wrap > * { flex: none; }
.langsuggest a {
  color: var(--link); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.langsuggest button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 4px 8px; border-radius: 6px;
}

/* --- ヒーロー ------------------------------------------------ */
.hero { text-align: center; padding: clamp(30px, 5vw, 56px) 0 0; }
.hero img.icon {
  width: clamp(76px, 9vw, 104px); height: clamp(76px, 9vw, 104px); border-radius: 22%;
}
.hero h1 {
  font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 1.4;
  margin: clamp(16px, 2.5vw, 24px) 0 10px;
  color: var(--ink); letter-spacing: .01em;
}
.hero p.one {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  margin: 0 0 clamp(22px, 3vw, 30px); color: var(--text);
}
.hero img.shot {
  width: 100%; max-width: clamp(210px, 26vw, 270px); border-radius: 16px;
  border: 2px solid var(--line-soft); display: block; margin: 0 auto 22px;
}

.cta {
  display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700;
  text-decoration: none; border-radius: 999px;
  padding: clamp(15px, 1.8vw, 18px) clamp(38px, 5vw, 48px);
  font-size: clamp(1.06rem, 1.5vw, 1.16rem);
  transition: background .18s ease, transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
/* 押した瞬間に沈む。ホバーで浮いた分を押し戻す比喩で統一する */
.cta:active { background: var(--accent-line); transform: translateY(0) scale(.965); box-shadow: none; transition-duration: .08s; }
.cta:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }

/* --- 訴求3点 ------------------------------------------------- */
.points {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: stretch;
}
.points li {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 14px 10px 12px; color: var(--ink);
  text-align: center; line-height: 1.5; text-wrap: balance;
  font-size: clamp(.9rem, 1.25vw, 1rem); font-weight: 700;
}
.points li::before {
  content: ""; display: block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 0 auto 8px;
}
@media (max-width: 420px) {
  .points { grid-template-columns: 1fr; }
  .points li { padding: 10px; }
}

/* --- 3ステップ（スクリーンショット） -------------------------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 44px 0 18px; }
.trio figure { margin: 0; }
.trio img { width: 100%; border-radius: 10px; border: 2px solid var(--line-soft); display: block; }
.trio figcaption {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem); font-weight: 700; color: var(--ink);
  text-align: center; margin-top: 12px; letter-spacing: .02em;
}
.trio figcaption::before {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 0 auto 8px;
}

/* --- 補足文・タグ -------------------------------------------- */
.note {
  text-align: center; color: var(--muted);
  font-size: clamp(.9rem, 1.2vw, .98rem); margin: 0 0 8px;
}

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0 6px; }
.tags span {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 4px 11px; font-size: .74rem; color: var(--text); white-space: nowrap;
}

/* --- FAQ ----------------------------------------------------- */
.faq { margin-top: 34px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details summary {
  cursor: pointer; font-size: .94rem; color: var(--text);
  transition: color .15s ease, transform .15s ease;
}
details summary:active { transform: translateY(1px); color: var(--ink); transition-duration: .08s; }
details summary:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 4px; }
details p { margin: .5em 0 0; color: var(--muted); font-size: .9rem; }

/* --- フッター ------------------------------------------------ */
footer {
  border-top: 1px solid var(--line); margin-top: 34px; padding: 22px 0 44px;
  color: var(--muted); font-size: .84rem; text-align: center;
}
footer a { margin: 0 .6em; }

/* --- ライトボックス（画像の全画面表示） ----------------------- */
.hero img.shot, .trio img {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.2, .7, .3, 1);
}
.hero img.shot:active, .trio img:active {
  transform: scale(.97); transition-duration: .08s;
}
.hero img.shot:focus-visible, .trio img:focus-visible {
  outline: 2px solid var(--accent-line); outline-offset: 3px;
}

/* hidden 属性を display:flex が上書きしてしまうため、明示的に打ち消す。
   これが無いと透明なオーバーレイが常時ページを覆い、全てのクリックを吸収する */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24, 20, 16, .94);
  padding: 72px 20px 28px; cursor: default;
  opacity: 0; transition: opacity .18s ease;
}
.lightbox.is-open { opacity: 1; }

.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 100px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px; display: block;
  outline: 1px solid rgba(255, 255, 255, .22); outline-offset: 0;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .55);
  transform: scale(.94); opacity: 0;
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), opacity .18s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); opacity: 1; }

.lightbox__close {
  position: fixed; top: 14px; right: 14px; z-index: 101;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__close { transition: background .15s ease, transform .2s cubic-bezier(.2, .7, .3, 1); }
.lightbox__close:active { transform: scale(.92); transition-duration: .08s; }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 前後の画像へ。hidden 属性が display に負けないよう明示的に打ち消す */
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 101;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 4px;
  transition: background .15s ease, transform .2s cubic-bezier(.2, .7, .3, 1);
}
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: max(10px, 2vw); }
.lightbox__nav--next { right: max(10px, 2vw); }
.lightbox__nav:active { transform: translateY(-50%) scale(.9); transition-duration: .08s; }
.lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lightbox__count {
  position: fixed; left: 0; right: 0; bottom: 16px; z-index: 101;
  text-align: center; color: rgba(255, 255, 255, .72);
  font-size: .82rem; letter-spacing: .06em; pointer-events: none;
}
.lightbox__count[hidden] { display: none; }

/* --- 追従バー（ヒーローを過ぎたら見出し＋CTA） ---------------- */
.stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px max(14px, 3vw);
  background: rgba(249, 246, 241, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .22s ease;
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__title {
  font-weight: 700; color: var(--ink); font-size: clamp(.86rem, 1.5vw, 1.05rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stickybar__cta {
  flex: none; background: var(--accent); color: var(--on-accent); font-weight: 700;
  text-decoration: none; padding: 8px 18px; border-radius: 999px;
  font-size: clamp(.82rem, 1.2vw, .94rem); white-space: nowrap;
}
.stickybar__cta { transition: background .18s ease, transform .18s ease; }
.stickybar__cta:active { background: var(--accent-line); transform: scale(.97); transition-duration: .08s; }
.stickybar__cta:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }


/* --- ホバー（マウスがある環境のみ） -------------------------- */
/* タッチ端末で :hover を効かせると、タップ後にホバー状態が残り続ける */
@media (hover: hover) {
  .cta:hover {
    background: var(--accent-line);
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 9px 20px rgba(179, 84, 30, .35);
  }
  .stickybar__cta:hover { background: var(--accent-line); transform: translateY(-1px); }

  .hero img.shot:hover, .trio img:hover {
    border-color: var(--accent-line);
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 10px 24px rgba(33, 31, 28, .18);
  }

  details summary:hover { color: var(--accent-line); }

  .lightbox__close:hover { background: rgba(255, 255, 255, .30); transform: scale(1.1); }
  .lightbox__nav:hover { background: rgba(255, 255, 255, .32); transform: translateY(-50%) scale(1.08); }

  .langbar a:hover, footer a:hover { text-decoration: underline; }
  .langsuggest button:hover { background: var(--line); color: var(--text); }
}

/* --- モーション ---------------------------------------------- */
/* スクロール連動のフェードイン。JSが .anim を付けたときだけ隠す
   （JS不動作時に内容が消えたままになるのを防ぐ） */
.anim .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1);
}
.anim .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .stickybar { transition: none; }
  .lightbox { transition: none; }
  .lightbox__img { transition: none; transform: none; opacity: 1; }
  .anim .reveal { opacity: 1; transform: none; transition: none; }
  /* 操作のフィードバックは色だけ残し、移動と拡縮は止める */
  .cta, .stickybar__cta, .hero img.shot, .trio img,
  details summary, .lightbox__close, .lightbox__nav { transition-property: background, border-color, color; }
  .cta:hover, .cta:active, .stickybar__cta:hover, .stickybar__cta:active,
  .hero img.shot:active, .trio img:active,
  details summary:active, .lightbox__close:hover, .lightbox__close:active { transform: none; }
  /* 前後ボタンは縦中央寄せに transform を使っているため、拡縮だけ止める */
  .lightbox__nav:hover, .lightbox__nav:active { transform: translateY(-50%); }
}


/* --- こんな使い方も（カートに入れる 追加分） ------------------ */
.more { margin: 44px 0 0; }
.more h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink);
  margin: 0 0 14px; letter-spacing: .02em;
}
.more .card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 13px 16px; margin-bottom: 10px; font-size: .92rem; line-height: 1.7;
}
.more .card b { display: block; margin-bottom: 2px; color: var(--ink); font-size: .96rem; }
.more .card span { color: var(--muted); }
