/* =============================================================
   うちのこびん | style.css (v2)
   -------------------------------------------------------------
   構成:
   01. デザイントークン(CSS変数)
   02. リセット / ベース
   03. ユーティリティ(コンテナ・セクション・見出し・波区切り)
   04. ボタン / CTA
   05. ヘッダー / ドロワーメニュー
   06. ヒーロー(背景ブロブ + ポラロイドカード)
   07. 作例ギャラリー / ライトボックス
   08. 特徴カード
   09. 無料プレゼントの流れ(タイムライン)
   10. うちのこびんについて
   11. もっと作りたい方へ(タップで開閉)
   12. よくある質問(アコーディオン)
   13. 最終CTA(カード型)
   14. フッター
   15. スマホ固定CTA
   16. フォームページ
   17. 3setページ / 下層共通
   18. アニメーション / アクセシビリティ
   ============================================================= */

/* ---- 01. デザイントークン ---------------------------------- */
:root {
  /* 色: 淡く、あたたかく、上品に */
  --paper:      #FDF9F3;   /* ベース(ミルク) */
  --paper-warm: #F9EFE8;   /* セクション交互(ほんのり桜) */
  --paper-sage: #F1F5EE;   /* セクション交互(淡い若葉) */
  --paper-sky:  #E9F1F3;   /* セクション交互(淡い水色) */
  --card:       #FFFFFF;
  --ink:        #59463C;   /* 本文(あたたかい焦げ茶) */
  --ink-soft:   #8C7A6B;   /* 補足テキスト */
  --line:       #ECDFD2;   /* 罫線 */
  --rose:       #D9838B;   /* アクセント(くすみローズ) */
  --rose-deep:  #BE5D6D;   /* CTA(白文字が読める濃さ) */
  --rose-pale:  #F6E3E2;
  --sage:       #9DB894;   /* サブアクセント(セージ) */
  --sage-deep:  #6D8B63;   /* 和文アイキャッチ用 */
  --sage-pale:  #E3ECDD;
  --sky-pale:   #E2ECEF;
  --gold:       #DDB474;   /* バッジ */
  --footer-bg:  #F3E9DE;

  /* 書体 */
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-latin: "Quicksand", sans-serif;

  /* 寸法 */
  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  --shadow-soft: 0 10px 30px rgba(118, 84, 62, .10);
  --shadow-card: 0 6px 22px rgba(118, 84, 62, .08);
  --header-h: 64px;
  --sticky-cta-h: 76px;
}

/* ---- 02. リセット / ベース --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

::selection { background: var(--rose-pale); }

/* ---- 03. ユーティリティ ------------------------------------ */
.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.section { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
.section--warm { background: var(--paper-warm); }
.section--sage { background: var(--paper-sage); }
.section--sky  { background: var(--paper-sky); }

/* 波の区切り: 各セクションの「下端」に置き、fillは「次のセクションの色」。
   上のセクションの背景(グラデーションや色のまる)を保ったまま、波形で切り替わります */
.sec-wave {
  position: absolute; bottom: -1px; left: 0;
  width: 100%; height: clamp(26px, 4vw, 44px);
  display: block; pointer-events: none; z-index: 3;
}
.sec-wave path { fill: currentColor; }
.sec-wave--paper  { color: var(--paper); }
.sec-wave--warm   { color: var(--paper-warm); }
.sec-wave--sage   { color: var(--paper-sage); }
.sec-wave--sky    { color: var(--paper-sky); }
.sec-wave--footer { color: var(--footer-bg); }

/* セクション見出し: 和文アイキャッチ + 見出し + 手描き風の波線 */
.sec-head { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13.5px; letter-spacing: .14em;
  color: var(--sage-deep);
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.sec-title { font-size: clamp(24px, 4.6vw, 34px); margin-top: 8px; }
.sec-head .sec-title::after {
  content: ""; display: block;
  width: 64px; height: 9px; margin: 14px auto 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 9'%3E%3Cpath d='M2 5.5 C7 1.5 12 1.5 17 5.5 C22 9.5 27 9.5 32 5.5 C37 1.5 42 1.5 47 5.5 C52 9.5 57 9.5 62 5.5' stroke='%23E9A796' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sec-lead { color: var(--ink-soft); font-size: 15px; margin-top: 24px; }

.note { font-size: 13px; color: var(--ink-soft); }

/* スマホのみ改行 / PCのみ表示 */
.sp-only { display: inline; }
.pc-comma { display: none; }
@media (min-width: 900px) {
  .sp-only { display: none; }
  .pc-comma { display: inline; }
}

/* ---- 04. ボタン / CTA -------------------------------------- */
.btn {
  --btn-bg: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 34px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: #fff; text-decoration: none;
  background: var(--btn-bg);
  border: none; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(190, 93, 109, .32);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(190, 93, 109, .40); }
.btn:active { transform: translateY(0); }

/* 肉球アイコン(SVG・絵文字不使用) */
.btn .paw { width: 20px; height: 20px; flex: none; transition: transform .3s ease; }
.btn:hover .paw { transform: rotate(-14deg) scale(1.08); }

.btn--ghost {
  --btn-bg: transparent;
  background: #fff; color: var(--rose-deep);
  border: 2px solid var(--rose);
  box-shadow: none;
}
.btn--ghost:hover { box-shadow: 0 6px 16px rgba(190, 93, 109, .18); }

.btn--line {
  background: #fff; color: #3E7C4F;
  border: 2px solid #7CB489; box-shadow: none;
}
.btn--line:hover { box-shadow: 0 6px 16px rgba(90, 150, 100, .2); }

.btn--sm { min-height: 46px; padding: 8px 22px; font-size: 15px; }
.btn--xl { min-height: 68px; padding: 16px 44px; font-size: 18px; }

/* CTAブロック(ボタン+安心コピー) */
.cta-block { text-align: center; }
.cta-block .btn { width: min(420px, 100%); }
.cta-note {
  margin-top: 12px; font-size: 13px; color: var(--ink-soft);
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.cta-note span { display: inline-flex; align-items: center; gap: 5px; }
.cta-note svg { width: 14px; height: 14px; color: var(--sage); }
.cta-help {
  margin: 14px auto 0; max-width: 560px;
  font-size: 13px; color: var(--ink-soft);
  text-align: center; line-height: 1.9;
}

/* ---- 05. ヘッダー ------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(253, 249, 243, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(118, 84, 62, .06); }
.header-inner {
  width: min(1160px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  text-decoration: none; letter-spacing: .04em;
}
.brand svg { width: 30px; height: 30px; }
.gnav { display: none; }
.gnav a {
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 8px 10px; border-radius: 999px; transition: background .25s ease;
  white-space: nowrap;
}
.gnav a:hover { background: var(--rose-pale); }
.header-cta { display: none; }

/* ハンバーガー */
.menu-btn {
  width: 44px; height: 44px; border: none; background: none;
  display: grid; place-items: center; gap: 0; position: relative;
}
.menu-btn span {
  position: absolute; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.menu-btn span:nth-child(1) { transform: translateY(-7px); }
.menu-btn span:nth-child(3) { transform: translateY(7px); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ドロワー */
.drawer {
  position: fixed; inset: var(--header-h) 0 auto; z-index: 99;
  background: rgba(253, 249, 243, .97);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 28px;
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}
.drawer.is-open { transform: translateY(0); }
.drawer a {
  display: block; padding: 13px 6px; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  border-bottom: 1px dashed var(--line);
}
.drawer .btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 18px;
  border-bottom: none; padding: 14px 34px; font-size: 17px;
}

@media (min-width: 900px) {
  .menu-btn, .drawer { display: none; }
  .gnav { display: flex; gap: 2px; }
  .header-cta { display: inline-flex; }
}

/* ---- 06. ヒーロー ------------------------------------------ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 72px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
/* 背景: 大きくやわらかな色のまる(ふちがふんわり) */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%;
  animation: blobDrift 18s ease-in-out infinite alternate;
}
.hero-blob--rose {
  width: 230px; height: 230px;
  background: radial-gradient(circle, #F6D8D2 60%, rgba(246,216,210,0) 76%);
  top: 4%; right: -60px;
}
.hero-blob--sage {
  width: 190px; height: 190px;
  background: radial-gradient(circle, #E0EBDA 58%, rgba(224,235,218,0) 76%);
  bottom: 16%; right: -40px; animation-delay: -6s;
}
.hero-blob--blush {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #F7E2DD 58%, rgba(247,226,221,0) 76%);
  top: -30px; left: -70px; animation-delay: -12s;
}
.hero-blob--mini {
  width: 130px; height: 130px;
  background: radial-gradient(circle, #F3DCD6 58%, rgba(243,220,214,0) 76%);
  bottom: 4%; left: -30px; animation-delay: -9s;
}
@media (min-width: 900px) {
  .hero-blob--rose  { width: clamp(420px, 52vw, 680px); height: clamp(420px, 52vw, 680px); top: 2%; right: -14%; }
  .hero-blob--sage  { width: clamp(320px, 40vw, 520px); height: clamp(320px, 40vw, 520px); bottom: -18%; right: 4%; }
  .hero-blob--blush { width: clamp(340px, 44vw, 560px); height: clamp(340px, 44vw, 560px); top: -6%; left: -16%; }
  .hero-blob--mini  { display: none; }
}
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-20px, 16px) scale(1.04); }
}

.hero-inner {
  position: relative; z-index: 2;
  width: min(1080px, 100% - 40px); margin-inline: auto;
  display: grid; gap: 30px;
}

.hero-copy { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--gold);
  color: #A67C34; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 7px 18px; letter-spacing: .08em;
  box-shadow: var(--shadow-card);
}
.hero-badge svg { width: 15px; height: 15px; }

.hero-title {
  font-size: clamp(31px, 8vw, 52px);
  line-height: 1.55; letter-spacing: .04em;
  margin-top: 22px;
}
.hero-title .accent { color: var(--rose-deep); position: relative; white-space: nowrap; }
.hero-title .accent::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: .04em;
  height: .34em; background: var(--rose-pale);
  border-radius: 99px; z-index: -1;
}

.hero-free {
  margin-top: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-display); font-weight: 700;
}
.hero-free .lead-in { font-size: clamp(17px, 4.2vw, 23px); line-height: 1.6; }
.hero-free .free-line { display: inline-flex; align-items: baseline; gap: 4px; }
.hero-free .num {
  font-family: var(--font-latin); font-weight: 700;
  font-size: clamp(42px, 9vw, 60px); line-height: 1; color: var(--rose-deep);
}
.hero-free .unit { font-size: clamp(17px, 4.2vw, 23px); }
.hero-free .free {
  font-size: clamp(25px, 6vw, 38px); color: var(--rose-deep);
  margin-left: 2px;
}

.hero .cta-block { margin-top: 30px; }

/* 完成イラストのイメージ(PCのみ表示) */
.hero-cards { display: none; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; }
  .hero-copy { text-align: left; }
  .hero-title { font-size: clamp(36px, 3.7vw, 46px); }
  .hero .cta-block { text-align: left; }
  .hero .cta-note { justify-content: flex-start; }
  .hero-free { flex-direction: row; align-items: baseline; justify-content: flex-start; column-gap: 8px; }

  .hero-cards { display: block; position: relative; width: min(360px, 100%); margin-left: auto; }
  .hero-frame {
    background: #fff; border-radius: 30px; padding: 12px;
    box-shadow: var(--shadow-soft);
  }
  .hero-frame img {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 22px;
  }
  .hero-thumb {
    position: absolute; width: 132px; margin: 0;
    background: #fff; border-radius: 16px; padding: 7px;
    box-shadow: var(--shadow-card);
    animation: thumbFloat 7s ease-in-out infinite;
  }
  .hero-thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 11px; }
  .hero-thumb--1 { top: -26px; left: -34px; transform: rotate(-8deg); }
  .hero-thumb--2 { bottom: 74px; right: -26px; transform: rotate(7deg); animation-delay: -3.5s; }
  @keyframes thumbFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
}

/* 流れる作例帯(PC・スマホ共通) */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden; padding: 30px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track img {
  width: 112px; height: 168px; object-fit: cover;
  margin-right: 18px;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-card);
}
.marquee-track img:nth-child(even) { transform: rotate(2deg); }
.marquee-track img:nth-child(odd) { transform: rotate(-2deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- 07. 作例ギャラリー ------------------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.gallery-item {
  position: relative; border: none; padding: 0; background: none;
  border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 2 / 3;
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  border: 3px solid #fff; border-radius: inherit; pointer-events: none;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink-soft);
  display: grid; place-items: center;
}
.gallery-item .zoom svg { width: 15px; height: 15px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-cta { margin-top: clamp(36px, 6vw, 52px); }

/* Before → After */
.ba-wrap {
  margin: clamp(8px, 2vw, 16px) 0 clamp(52px, 9vw, 80px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ba-card {
  width: min(260px, 72%); margin: 0;
  background: #fff; border-radius: var(--radius-m);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.ba-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.ba-card figcaption {
  padding: 12px 10px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: #FBF3EA; color: #A8875C;
}
.ba-card--after figcaption { color: var(--rose-deep); background: var(--rose-pale); }
.ba-arrow { width: 34px; height: 34px; color: var(--rose); transform: rotate(90deg); flex: none; }
@media (min-width: 700px) {
  .ba-wrap { flex-direction: row; justify-content: center; gap: 28px; }
  .ba-arrow { transform: none; }
}

/* ライトボックス */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(64, 48, 38, .55);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(560px, 92vw); max-height: 78vh;
  border-radius: var(--radius-l); border: 6px solid #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  transform: scale(.94); transition: transform .3s ease;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: none; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ---- 08. 特徴カード ----------------------------------------- */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature-card {
  background: var(--card); border-radius: var(--radius-l);
  padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--rose-pale);
  transition: transform .3s ease;
}
.feature-card:nth-child(2) { border-top-color: var(--sage-pale); }
.feature-card:nth-child(3) { border-top-color: var(--sky-pale); }
.feature-card:nth-child(4) { border-top-color: #F3E7D3; }
.feature-card:hover { transform: translateY(-4px); }
.feature-ico {
  width: 66px; height: 66px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-warm); color: var(--rose-deep);
}
.feature-card:nth-child(2) .feature-ico { background: var(--sage-pale); color: #5F7D57; }
.feature-card:nth-child(3) .feature-ico { background: var(--sky-pale); color: #55788A; }
.feature-card:nth-child(4) .feature-ico { background: #F5EBDA; color: #A67C34; }
.feature-ico svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- 09. 無料プレゼントの流れ -------------------------------- */
.flow-list { display: grid; gap: 0; max-width: 640px; margin-inline: auto; }
.flow-item {
  position: relative; display: grid;
  grid-template-columns: 64px 1fr; gap: 18px;
  padding-bottom: 34px;
}
.flow-item:not(:last-child)::before {
  content: ""; position: absolute; left: 31px; top: 66px; bottom: 4px;
  width: 2px;
  background-image: linear-gradient(var(--rose) 40%, transparent 0);
  background-size: 2px 10px; opacity: .45;
}
.flow-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-card);
  display: grid; place-items: center; text-align: center;
  border: 2px solid var(--rose-pale);
}
.flow-num .label { font-family: var(--font-latin); font-size: 9px; letter-spacing: .18em; color: var(--rose); font-weight: 700; display: block; line-height: 1; }
.flow-num .n { font-family: var(--font-latin); font-size: 24px; font-weight: 700; color: var(--rose-deep); line-height: 1.1; display: block; }
.flow-body {
  background: #fff; border-radius: var(--radius-m);
  padding: 20px 22px; box-shadow: var(--shadow-card);
}
.flow-body h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.flow-body h3 svg { width: 20px; height: 20px; color: var(--rose); flex: none; }
.flow-body p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }
.flow-body .flow-tag {
  display: inline-block; margin-top: 10px;
  background: var(--paper-warm); color: var(--rose-deep);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px;
}
.flow-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; margin-left: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--rose-deep); text-decoration: none;
  border-bottom: 2px solid var(--rose-pale);
  padding-bottom: 2px;
  transition: border-color .25s ease;
}
.flow-link:hover { border-color: var(--rose); }
.flow-link svg { width: 15px; height: 15px; flex: none; transition: transform .25s ease; }
.flow-link:hover svg { transform: translateX(3px); }
.flow-extra {
  max-width: 640px; margin: 6px auto 0;
  font-size: 12.5px; color: var(--ink-soft); text-align: center;
}
.flow-cta { margin-top: clamp(36px, 6vw, 48px); }

/* ---- 10. うちのこびんについて -------------------------------- */
.about-card {
  position: relative; overflow: hidden;
  max-width: 720px; margin-inline: auto; text-align: center;
  background: #fff; border-radius: calc(var(--radius-l) + 6px);
  box-shadow: var(--shadow-soft);
  padding: clamp(40px, 8vw, 64px) clamp(24px, 6vw, 60px);
}
/* 四隅にふんわり水彩のにじみ */
.about-card::before, .about-card::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.about-card::before {
  width: 260px; height: 260px; top: -110px; right: -110px;
  background: radial-gradient(circle, var(--rose-pale) 55%, rgba(246,227,226,0) 75%);
}
.about-card::after {
  width: 240px; height: 240px; bottom: -100px; left: -100px;
  background: radial-gradient(circle, var(--sage-pale) 55%, rgba(227,236,221,0) 75%);
}
.about-card > * { position: relative; z-index: 1; }
.about-ico {
  width: 74px; height: 74px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--rose-pale); color: var(--rose-deep);
}
.about-ico svg { width: 36px; height: 36px; }
.about-card .sec-title::after {
  content: ""; display: block;
  width: 64px; height: 9px; margin: 16px auto 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 9'%3E%3Cpath d='M2 5.5 C7 1.5 12 1.5 17 5.5 C22 9.5 27 9.5 32 5.5 C37 1.5 42 1.5 47 5.5 C52 9.5 57 9.5 62 5.5' stroke='%23E9A796' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.about-body { margin-top: 30px; }
.about-body p { font-size: 15.5px; }
.about-body p:last-child {
  margin: 26px 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 16.5px; color: var(--rose-deep);
}
.about-paws {
  margin-top: 26px; display: flex; justify-content: center; gap: 14px;
  color: var(--rose); opacity: .6;
}
.about-paws svg { width: 18px; height: 18px; }
.about-paws svg:nth-child(2) { transform: translateY(-5px); }

/* ---- 11. もっと作りたい方へ(タップで開閉) ---------------------- */
.paid-details { max-width: 760px; margin-inline: auto; }
.paid-summary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-card);
  padding: 18px 28px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  color: var(--rose-deep);
  transition: box-shadow .3s ease, transform .3s ease;
}
.paid-summary:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.paid-summary .chev { width: 18px; height: 18px; flex: none; transition: transform .35s ease; }
.paid-details[open] .paid-summary .chev { transform: rotate(180deg); }
.paid-details[open] .paid-summary { border-bottom-left-radius: var(--radius-m); border-bottom-right-radius: var(--radius-m); }

.paid-wrap {
  margin-top: 16px;
  background: var(--card); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 5vw, 44px);
}
.paid-assure {
  background: var(--paper-sage); border-radius: var(--radius-m);
  padding: 16px 20px; font-size: 14px; margin-bottom: 24px;
  display: flex; gap: 12px; align-items: flex-start;
}
.paid-assure svg { width: 22px; height: 22px; color: var(--sage); flex: none; margin-top: 3px; }
.paid-assure p { margin: 0; }

.paid-steps { display: grid; gap: 8px; margin-bottom: 26px; }
.paid-steps li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; padding: 10px 14px;
  background: var(--paper); border-radius: var(--radius-s);
}
.paid-steps .s {
  font-family: var(--font-latin); font-weight: 700; font-size: 12px;
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--rose-pale); color: var(--rose-deep);
}

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.price-table caption {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-align: left; padding-bottom: 10px;
}
.price-table th, .price-table td {
  padding: 12px 8px; border-bottom: 1px dashed var(--line); text-align: left;
}
.price-table td:last-child {
  text-align: right; font-family: var(--font-latin); font-weight: 700; font-size: 16px;
  white-space: nowrap;
}
.price-table td .yen { font-size: 12px; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); }
.paid-cta { text-align: center; margin-top: 24px; }
.paid-cta .note { margin-top: 10px; }

/* ---- 12. FAQ ------------------------------------------------ */
.faq-list { max-width: 720px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  text-align: left;
}
.faq-q .q-mark {
  font-family: var(--font-latin); font-weight: 700; color: var(--rose);
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--rose-pale); display: grid; place-items: center; font-size: 15px;
}
.faq-q .chev { margin-left: auto; flex: none; width: 20px; height: 20px; color: var(--ink-soft); transition: transform .35s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 20px 64px; font-size: 14.5px; color: var(--ink-soft); }
.faq-a p { margin: 0; }

/* ---- 13. 最終CTA(カード型) ----------------------------------- */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--paper-warm);
}
.final-cta .container { position: relative; z-index: 1; }

.final-card {
  position: relative; z-index: 1;
  max-width: 780px; margin-inline: auto;
  background: #fff; border-radius: calc(var(--radius-l) + 8px);
  box-shadow: var(--shadow-soft);
  padding: clamp(38px, 8vw, 68px) clamp(22px, 6vw, 56px);
  text-align: center;
}
.final-badge {
  display: inline-block;
  background: var(--rose-pale); color: var(--rose-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  border-radius: 999px; padding: 7px 20px; letter-spacing: .08em;
}
.final-title {
  font-size: clamp(22px, 4.8vw, 31px); line-height: 1.7;
  margin-top: 20px;
}
.final-lead { color: var(--ink-soft); margin: 18px 0 28px; font-size: 15px; }
.final-card .cta-note { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.final-chips {
  display: none;
}
@media (min-width: 900px) {
  .final-chips {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin: 0 0 26px;
  }
}
.final-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 500;
}
.final-chips svg { width: 14px; height: 14px; color: var(--sage); flex: none; }

/* ---- 14. フッター -------------------------------------------- */
.site-footer {
  position: relative;
  background: #F3E9DE;
  padding: clamp(72px, 9vw, 92px) 0 calc(28px + var(--sticky-cta-h));
  text-align: center;
}
.site-footer .sec-wave { color: var(--paper-warm); }
.footer-brand { justify-content: center; display: inline-flex; }
.footer-nav {
  margin: 22px 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  font-size: 13px;
}
.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { text-decoration: underline; }
.copyright { font-family: var(--font-latin); font-size: 12px; color: var(--ink-soft); }
@media (min-width: 900px) { .site-footer { padding-bottom: 28px; } }

/* ---- 15. スマホ固定CTA --------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 249, 243, .92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; min-height: 54px; font-size: 16px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---- 16. フォームページ --------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + 44px) 0 44px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(24px, 5.4vw, 34px); margin-top: 10px; }
.page-hero .sec-title-deco::after {
  content: ""; display: block;
  width: 64px; height: 9px; margin: 14px auto 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 9'%3E%3Cpath d='M2 5.5 C7 1.5 12 1.5 17 5.5 C22 9.5 27 9.5 32 5.5 C37 1.5 42 1.5 47 5.5 C52 9.5 57 9.5 62 5.5' stroke='%23E9A796' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.page-hero p { color: var(--ink-soft); font-size: 14.5px; margin-top: 16px; }

.form-card {
  background: var(--card); border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 44px);
}
.form-step-note {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 30px;
}
.form-step-note li {
  background: var(--paper); border-radius: var(--radius-s);
  text-align: center; font-size: 12px; padding: 12px 6px;
  color: var(--ink-soft); line-height: 1.6;
}
.form-step-note .s {
  display: block; font-family: var(--font-latin); font-weight: 700;
  color: var(--rose-deep); font-size: 15px;
}
.field { margin-bottom: 26px; }
.field-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 10px;
}
.req, .opt {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px;
}
.req { background: var(--rose-deep); color: #fff; }
.opt { background: var(--line); color: var(--ink-soft); }
.field-help { font-size: 12.5px; color: var(--ink-soft); margin: -4px 0 10px; }
.input {
  width: 100%; padding: 15px 16px; font-size: 16px;
  font-family: var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .25s ease, background .25s ease;
}
.input:focus { outline: none; border-color: var(--rose); background: #fff; }
textarea.input { resize: vertical; min-height: 110px; }

/* 写真アップロード */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot { position: relative; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 1; }
.photo-slot .slot-body {
  aspect-ratio: 1 / 1; border-radius: var(--radius-s);
  border: 2px dashed var(--rose); background: var(--rose-pale);
  display: grid; place-items: center; text-align: center;
  padding: 10px; transition: background .25s ease, border-style .25s;
  overflow: hidden; position: relative;
}
.photo-slot .slot-inner { color: var(--rose-deep); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.photo-slot .slot-inner svg { width: 26px; height: 26px; margin-bottom: 4px; }
.photo-slot img.preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none;
}
.photo-slot.has-file .slot-body { border-style: solid; background: #fff; }
.photo-slot.has-file img.preview { display: block; }
.photo-slot .slot-num {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-family: var(--font-latin); font-weight: 700; font-size: 11px;
  background: #fff; color: var(--rose-deep);
  border-radius: 999px; padding: 2px 9px; box-shadow: var(--shadow-card);
}
.photo-slot input:focus-visible ~ .slot-body { outline: 3px solid var(--rose); outline-offset: 2px; }

.agree-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.agree-row input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--rose-deep); flex: none; }
.agree-row a { color: var(--rose-deep); }

.form-submit { text-align: center; margin-top: 30px; }
.form-submit .btn { width: 100%; }
.form-submit .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.form-after {
  background: var(--paper-sage); border-radius: var(--radius-m);
  padding: 18px 20px; font-size: 13.5px; color: var(--ink-soft); margin-top: 26px;
}
.form-after h2 { font-size: 15px; margin-bottom: 8px; }
.form-after ul { display: grid; gap: 6px; }
.form-after li { display: flex; gap: 8px; align-items: flex-start; }
.form-after li svg { width: 16px; height: 16px; color: var(--sage); flex: none; margin-top: 5px; }

/* ---- 17. 3setページ / 下層共通 ------------------------------- */
.offer-hero {
  padding: calc(var(--header-h) + 40px) 0 52px;
  text-align: center; position: relative; overflow: hidden;
}
.offer-hero h1 { font-size: clamp(25px, 5.6vw, 36px); margin-top: 18px; line-height: 1.7; }

.price-card {
  max-width: 480px; margin: 30px auto 0;
  background: var(--card); border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft); overflow: hidden;
  position: relative;
}
.price-card-head {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff; padding: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.price-card-body { padding: 26px 24px 26px; }
.price-card-body p { margin: 0; }
.price-old {
  color: var(--ink-soft); font-size: 14px;
  text-decoration: line-through;
}
.price-now {
  font-family: var(--font-latin); font-weight: 700;
  font-size: clamp(52px, 12vw, 68px); line-height: 1.05; color: var(--rose-deep);
  margin: 4px 0 0 !important;
}
.price-now .yen { font-size: .45em; }
.price-off {
  display: inline-block; margin-top: 12px;
  background: var(--gold); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 5px 18px;
}
.price-meta { margin-top: 12px !important; font-size: 13px; color: var(--ink-soft); }

.offer-note-card {
  background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-card);
  padding: 20px 22px; font-size: 14px; margin-top: 18px; text-align: left;
}
.offer-note-card strong { color: var(--rose-deep); }

.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pay-chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; padding: 6px 14px; font-weight: 500;
}

.check-list { max-width: 640px; margin-inline: auto; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border-radius: var(--radius-m); padding: 16px 18px;
  box-shadow: var(--shadow-card); font-size: 14px;
}
.check-list svg { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 4px; }
.check-list a { color: var(--rose-deep); }

.textlink { color: var(--rose-deep); font-weight: 500; }

/* 法務ページ */
.legal-body { font-size: 14.5px; }
.legal-body h2 {
  font-size: 18px; margin: 44px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--rose-pale);
}
.legal-body h3 { font-size: 15px; margin: 24px 0 8px; color: var(--rose-deep); }
.legal-body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.legal-body li { margin: 4px 0; }
.legal-meta {
  margin-top: 36px; background: var(--paper-warm);
  border-radius: var(--radius-m); padding: 20px 22px; font-size: 13.5px;
}
.legal-meta p { margin: 0 0 6px; }
.legal-meta p:last-child { margin: 0; }
.legal-meta .t { font-family: var(--font-display); font-weight: 700; }

/* ガイドページ(追加依頼・コンビニ印刷) */
.guide-card {
  background: #fff; border-radius: var(--radius-l);
  box-shadow: var(--shadow-card); overflow: hidden;
  margin-bottom: 22px;
}
.guide-head {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff; padding: 14px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px;
}
.guide-card--sage .guide-head { background: linear-gradient(135deg, #A8C09E 0%, #7E9B74 100%); }
.guide-card--gold .guide-head { background: linear-gradient(135deg, #E2C08A 0%, #C79B55 100%); }
.guide-body { padding: 22px 22px 26px; }
.guide-body h4 {
  font-size: 14.5px; margin: 22px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.guide-body h4:first-child { margin-top: 0; }
.guide-body h4 .tag {
  flex: none; font-family: var(--font-latin); font-weight: 700; font-size: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose-pale); color: var(--rose-deep);
}
.guide-note { font-size: 12.5px; color: var(--ink-soft); margin: -2px 0 12px; }
.mini-steps { display: grid; gap: 7px; }
.mini-steps li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; padding: 10px 14px;
  background: var(--paper); border-radius: var(--radius-s);
}
.mini-steps .s {
  font-family: var(--font-latin); font-weight: 700; font-size: 12px;
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--rose-pale); color: var(--rose-deep);
}
.caution-card {
  max-width: 640px; margin-inline: auto;
  background: #FBEFE0; border: 1.5px dashed var(--gold);
  border-radius: var(--radius-m); padding: 20px 24px;
  font-size: 13.5px; color: #7E6231;
}
.caution-card p { margin: 0 0 8px; }
.caution-card p:last-child { margin: 0; }

/* 購入手順ページ: スクリーンショット・注意ボックス */
.step-shot {
  display: block; width: min(320px, 100%);
  margin-top: 16px;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.step-warn {
  margin-top: 14px;
  background: #FBECEC; border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 12px 16px; font-size: 13.5px;
}
.step-warn strong { color: var(--rose-deep); }
.step-warn p { margin: 0 0 4px; }
.step-warn p:last-child { margin: 0; }
.legal-draft {
  background: #FBEFE0; border: 1.5px dashed var(--gold);
  border-radius: var(--radius-m); padding: 16px 18px; font-size: 13px; color: #8A6A33;
  margin-bottom: 32px;
}

/* ---- 18. アニメーション / アクセシビリティ --------------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, .8, .3, 1); }
.rv.is-in { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
