/* =====================================================================
   野芥Pay 第6回 トップページ リニューアル（FV＋構成設計）
   - 白＋グリーン基調。黄・オレンジは「スタンプ」「購入メリットの数字」のみ。
   - style.css の後に読み込み、トップの骨格を上書き。下層ページには影響しない。
   ===================================================================== */
:root{
  --r6-green:#009b37; --r6-deep:#2f5a2b; --r6-light:#d8f5c8;
  --r6-tint:#f4faf2; --r6-yellow:#ffe449; --r6-orange:#f49a45; --r6-red:#f04b2f;
}

/* ---------- ファーストビュー（街並みを全面に淡く敷き、白スクリムで可読性確保） ---------- */
.r6-fv{ position:relative; overflow:hidden; background:#eef7ea; isolation:isolate; }
.r6-fv::before{ /* 街並みv2を全面・淡く */
  content:""; position:absolute; inset:0; z-index:0;
  background:url(../images/illust/hero_townscape_v2.png) center bottom / cover no-repeat;
  opacity:.5;
}
.r6-fv::after{ /* 左ほど濃い白スクリム＝コピー側の可読性を最優先、右は地域感を残す */
  content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 46%, rgba(247,252,245,.42) 100%);
}
.r6-fv__top{
  position:relative; z-index:1;
  max-width:1040px; margin:0 auto; padding:40px 24px 46px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:26px; align-items:center;
}
.r6-fv__badge{
  display:inline-block; background:var(--r6-green); color:#fff;
  font-weight:700; font-size:14px; padding:6px 16px; border-radius:999px; margin:0 0 14px;
}
.r6-fv__title{
  font-size:clamp(42px,7vw,74px); line-height:1; font-weight:900;
  color:var(--r6-green); margin:0 0 14px; letter-spacing:.01em;
}
.r6-fv__title span{ color:var(--r6-deep); }
.r6-fv__lead{
  font-size:clamp(16px,2.1vw,21px); font-weight:700; color:var(--r6-deep);
  line-height:1.55; margin:0 0 16px;
}
.r6-fv__benefit{ /* 販売/利用期間カードとトーン統一：緑の左ライン・8px角丸・淡い影 */
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  background:#fff; border-left:5px solid var(--r6-green); border-radius:8px;
  padding:12px 16px; margin:0 0 14px; box-shadow:0 4px 14px rgba(47,90,43,.10);
}
.r6-fv__benefit-rate{ font-size:30px; font-weight:900; color:var(--r6-orange); line-height:1; text-align:center; }
.r6-fv__benefit-rate small{ display:block; font-size:11px; color:var(--r6-deep); font-weight:700; }
.r6-fv__benefit-ex{ font-size:16px; font-weight:700; color:var(--r6-deep); }
.r6-fv__benefit-ex strong{ color:var(--r6-orange); font-size:23px; margin:0 2px; }
.r6-fv__sub{ font-size:14px; color:#666; margin:0 0 16px; font-weight:600; }
.r6-fv__schedule{ margin:0; display:grid; gap:10px; }
.r6-fv__schedule > div{ background:var(--r6-tint); border-left:5px solid var(--r6-green); border-radius:8px; padding:10px 14px; }
.r6-fv__schedule dt{ font-weight:700; color:var(--r6-green); font-size:13px; margin:0; }
.r6-fv__schedule dd{ margin:2px 0 0; font-size:14px; color:var(--r6-deep); font-weight:600; line-height:1.5; }
.r6-fv__schedule dd span{ display:block; font-size:11px; color:#8a8a8a; font-weight:400; margin-top:2px; }
.r6-fv__mock{ text-align:center; align-self:center; }
.r6-fv__mock img{ width:100%; max-width:272px; height:auto; }

/* ヘッダー右クラスタ（CTA・Instagram）の斜め線「/」を除去し、並びを整える */
header > div > ul:nth-child(3) li{ background:none !important; }
header > div > ul:nth-child(3){ gap:14px; }

@media (max-width:760px){
  .r6-fv__top{ grid-template-columns:1fr; padding:26px 16px 14px; gap:18px; text-align:center; }
  .r6-fv__benefit{ justify-content:center; }
  .r6-fv__mock img{ max-width:210px; }
  .r6-fv__schedule{ text-align:left; }
}

/* ---------- セクションの余白リズム（流用コンポーネントを束ねる） ---------- */
.r6-sec{ padding:48px 16px; }
.r6-sec--tint{ background:var(--r6-tint); }
.r6-sec__title{ text-align:center; color:var(--r6-deep); font-size:clamp(22px,3.4vw,30px); font-weight:900; margin:0 0 6px; }
.r6-sec__lead{ text-align:center; color:#666; font-size:15px; line-height:1.7; margin:0 auto 26px; max-width:760px; }

/* 基本情報カード節：中央寄せ・余白確保。上端をFV下端の淡クリーム→白へグラデでなじませる */
.r6-sec--cards{ padding-top:44px; padding-bottom:30px;
  background:linear-gradient(180deg, #f1ebd9 0%, #fbf9f2 34%, #ffffff 100%); }
.r6-sec--cards .v6-info-cards{ margin-left:auto; margin-right:auto; }

/* はじめての方へ（3ステップ要約：既存 v6-flow を流用） */
.r6-sec--firststep{ background:var(--r6-tint); }

/* スマホで見出しが帯の端で詰まる/切れるのを防ぐ微調整 */
@media (max-width:760px){
  .r6-sec--firststep .v6-flow__title{ font-size:20px; line-height:1.4; padding:0 6px; }
  .r6-fv__lead{ font-size:18px; }
  .r6-fv__benefit-ex{ font-size:15px; }
  .r6-fv__benefit-ex strong{ font-size:20px; }
}

/* ---------- スタンプ告知バナー（既存 .v6-stamp-card の rotate(-8deg) 衝突を回避する専用クラス） ---------- */
.r6-stamp{ width:min(1040px,100%); margin:0 auto; padding:0 16px; text-align:center; box-sizing:border-box; transform:none; }
.r6-stamp__link{ display:block; width:100%; border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 8px 24px rgba(47,90,43,.12); transform:none; }
.r6-stamp__link img{ display:block; width:100%; height:auto; border-radius:18px; }

/* ---------- 基本情報カードのアイコンを新・線画アイコンに差し替え ---------- */
/* アイコンは正方形タイル枠で統一（5カードでサイズ・位置・余白を揃え、見切れを枠内に収める） */
.r6-info-cards .r6-cardicon{ display:block; width:84px; height:84px; object-fit:cover; object-position:center;
  border:2px solid #dcefd6; border-radius:20px; background:#fff; margin:0 auto 10px; }
@media (max-width:575px){ .r6-info-cards .r6-cardicon{ width:68px; height:68px; border-radius:16px; margin-bottom:8px; } }

/* ---------- はじめての方へ：3ステップ図のメインビジュアル ---------- */
.r6-flow-illust{ max-width:920px; margin:0 auto 18px; }
.r6-flow-illust img{ display:block; width:100%; height:auto; }

/* ---------- 3Dセキュア：本人認証イラスト ---------- */
.r6-secure-illust{ width:100%; max-width:420px; height:auto; display:block; }

/* ========== FV作り込み：手描き感フォント＋数字スタンプ強調＋モック ========== */
:root{ --r6-round:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN",sans-serif; }

/* 見出し・キャッチ・数字に丸ゴシック（手描き感）。本文は現状フォント維持 */
.r6-fv__title, .r6-fv__badge, .r6-fv__lead, .r6-fv__benefit-ex,
.r6-fv__schedule dt, .r6-sec__title, .v6-flow__title{ font-family:var(--r6-round); }
.r6-fv__title{ font-weight:900; letter-spacing:.02em; }
.r6-fv__lead{ font-weight:700; }

/* 数字を主役に：decorスタンプ枠（20%／12,000円分）を大きく強調 */
.r6-fv__benefit{ align-items:center; gap:10px 12px; padding:14px 18px; }
.r6-stamp-num{ display:block; width:auto; height:50px; flex:0 0 auto; filter:drop-shadow(0 3px 4px rgba(47,90,43,.18)); }
.r6-stamp-num--20{ height:52px; }
.r6-stamp-num--12000{ height:58px; }
.r6-fv__benefit-ex{ font-size:15px; font-weight:700; color:var(--r6-deep); line-height:1.35; }
.r6-fv__benefit-ex--use{ font-size:20px; font-weight:900; color:var(--r6-orange); font-family:var(--r6-round); }

/* スマホモックの作り込み：少し大きく＋背後にやわらかな光と装飾で華やかに */
.r6-fv__mock{ position:relative; }
.r6-fv__mock::before{ content:""; position:absolute; z-index:0; width:84%; height:84%; left:8%; top:6%;
  background:radial-gradient(circle, rgba(216,245,200,.95) 0%, rgba(216,245,200,0) 68%); }
.r6-fv__mock img{ position:relative; z-index:1; max-width:300px;
  filter:drop-shadow(0 14px 26px rgba(47,90,43,.22)); }

@media (max-width:760px){
  .r6-fv__benefit{ justify-content:center; gap:6px 8px; padding:12px; }
  .r6-stamp-num{ height:38px; } .r6-stamp-num--20{ height:38px; } .r6-stamp-num--12000{ height:42px; }
  .r6-fv__benefit-ex{ font-size:13px; } .r6-fv__benefit-ex--use{ font-size:17px; }
  .r6-fv__mock img{ max-width:220px; }
}

/* ===== FV：完成メインビジュアル1枚絵方式（旧・積み木FVのCSSを無効化） ===== */
.r6-fv{ background:#fff !important; overflow:visible; }
.r6-fv::before, .r6-fv::after{ content:none !important; background:none !important; }
.r6-fv picture{ display:block; }
.r6-fv__img{ display:block; width:100%; height:auto; }

/* ===== 改行の是正：意味のまとまり（数字＋単位・単語）を途中で割らない ===== */
.nb{ white-space:nowrap; }
/* 基本情報カードの見出し：単位間でのみ改行し、語の途中で割らない */
.r6-info-cards li span{ word-break:keep-all; overflow-wrap:normal; }

/* ===== 3Dセキュア節：左右分断を解消し、中央寄せ・縦積み・3カラム均等に整える ===== */
.v6-secure--rich .v6-secure__inner{ width:min(980px,100%); margin:0 auto; padding:34px 28px; }
/* stageの2カラム分断(340px|1fr)を解除し縦積みに */
.v6-secure__stage{ display:block !important; grid-template-columns:none !important; padding:0 !important; margin-top:22px; text-align:center; }
/* イラストは中央・適度なサイズ。下の無駄な空白をなくす */
.r6-secure-illust{ width:100%; max-width:340px; margin:0 auto 20px !important; justify-self:center; }
/* diagramを右に押していた padding-left を除去し、全幅3カラム均等に */
.v6-secure__diagram{ padding-left:0 !important; }
.v6-secure--rich .v6-secure__diagram{ display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:900px; margin:0 auto 18px; padding-left:0 !important; }
.v6-secure--rich .v6-secure__card{ min-height:0; padding:20px 18px; text-align:left; }
/* 見出しは語の途中で割らない（カードは十分広いので1行に収まる） */
.v6-secure__card strong{ display:block; margin:2px 0 6px; word-break:keep-all; overflow-wrap:normal; }
.v6-secure__card p{ word-break:normal; overflow-wrap:break-word; line-height:1.6; }
/* 旧・意味不明の擬似アイコン(i::before=O/オレンジ四角)を無効化 */
.v6-secure__card i{ display:none !important; }
/* 新・統一アイコン（線画・緑） */
.r6-sec-ic{ display:inline-flex; width:50px; height:50px; align-items:center; justify-content:center;
  border-radius:50%; background:#e8f6e0; border:2px solid #c7ebb6; }
.r6-sec-ic svg{ width:28px; height:28px; }
.v6-secure__note{ max-width:760px; margin:0 auto; }

@media (max-width:760px){
  .v6-secure--rich .v6-secure__diagram{ grid-template-columns:1fr; max-width:440px; }
  .r6-secure-illust{ max-width:280px; }
  .v6-secure--rich .v6-secure__inner{ padding:26px 16px; }
}

/* ===== 3Dセキュア：3カードの高さを揃える（緑カードが下に落ちる問題を解消） ===== */
.v6-secure--rich .v6-secure__diagram{ align-items:stretch !important; }
.v6-secure--rich .v6-secure__card{ display:flex; flex-direction:column; align-self:stretch; }
.v6-secure__card .r6-sec-ic{ flex:0 0 auto; }
.v6-secure__card strong{ margin-top:2px; }
.v6-secure__card p{ margin-bottom:0; }

/* ===== 3Dセキュア：旧stageの装飾残骸（ボタン左の緑・オレンジ色帯／黄丸）を完全削除 ===== */
.v6-secure__stage::before,
.v6-secure__stage::after{ content:none !important; display:none !important; }

/* ===== 旧デザイン残骸の除去（通しQA） ===== */
/* 基本情報カード：旧CSSアイコン時代の浮いた黄色タグ/ドット装飾を削除（今は線画アイコン） */
.v6-info-cards li::before,
.v6-info-cards li::after{ content:none !important; display:none !important; }
/* tejyun各節：背景の微かなシアン装飾を除去し、黄のみの控えめグローで緑トーンに統一 */
.tejyun01::before,
.tejyun02::before,
.tejyun03::before{
  background:radial-gradient(circle at 8% 18%, rgba(255,228,73,0.22), transparent 16%) !important;
}

/* ===== 追尾CTA（.side-menu）とフッターの干渉解消：フッター下部に追尾CTA分の余白を追加 ===== */
footer.bg-back2{ padding-bottom:130px !important; }
@media (max-width:766px){ footer.bg-back2{ padding-bottom:110px !important; } }
