@charset "utf-8";

/* ============================================================
   DM→LP 汎用部品CSS（templates/base.css）
   新案件では: これをコピー → 変数を案件の色に差し替え → 案件固有のセクションCSSを追記
   実績: 感激の10日間 v14（output/2601_感激の10日間/v3_pro/）
   ============================================================ */

:root {
  /* ▼案件ごとに差し替える色（例は赤系キャンペーン） */
  --c-bg: #2b0304;          /* ページ最深部の背景 */
  --c-accent: #c11830;      /* メインアクセント */
  --c-gold-l: #ffe9a0;      /* 金グラデ明 */
  --c-gold-m: #f5c948;      /* 金グラデ中 */
  --c-gold-d: #d99b16;      /* 金グラデ暗 */
  --c-gold-line: #e6b422;   /* 金縁・ライン */
}

/* ---------- リセット・基本 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body {
  background: var(--c-bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #fff;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* ---------- セクション骨格 ----------
   注意: overflow:hidden はバッジ半掛け(.badge)を切るので、必要なセクションだけに付ける */
.sec { position: relative; }
.sec .inn { position: relative; max-width: 1000px; margin: 0 auto; }

/* ---------- PC/スマホ出し分け（ブレークポイント768px） ---------- */
.smt_only { display: none; }
.pc_only { display: block; }
@media (max-width: 768px) {
  .smt_only { display: block; }
  .pc_only { display: none; }
}

/* ---------- 登場アニメーション（JSのIntersectionObserverとセット） ---------- */
.anim { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.anim.in-view { opacity: 1; transform: translateY(0); }
.anim.d1 { transition-delay: .15s; }
.anim.d2 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1; transform: none; transition: none; } }

/* ---------- キラキラ（scripts/make_sparkle.py で生成した2枚を2層重ね） ---------- */
.sparkles {
  position: absolute;
  inset: 0;
  background-image: var(--sparkle-a, url("../images/sparkle_a.png"));
  background-size: 900px 900px;
  pointer-events: none;
  z-index: 3;
  animation: twinkle 2s ease-in-out infinite;
}
.sparkles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sparkle-b, url("../images/sparkle_b.png"));
  background-size: 900px 900px;
  background-position: 300px 400px;
  animation: twinkle 2.9s ease-in-out .9s infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
  70% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles, .sparkles::after { animation: none; opacity: .95; }
}

/* ---------- シャインが走るグラデボタン ---------- */
.btn-img {
  display: inline-block;
  position: relative;
  overflow: hidden;
  min-width: 300px;
  padding: 16px 34px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 5px 12px rgba(0,0,0,.35), inset 0 2px 6px rgba(255,255,255,.5), 0 0 0 3px var(--c-gold-line);
  cursor: pointer;
  transition: transform .15s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.btn-img::before {
  content: "";
  position: absolute;
  top: -20%; left: -60%;
  width: 34%; height: 140%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.btn-img:hover { transform: translateY(-2px); }
.btn-img span { font-size: .8em; }
.btn-green { background: linear-gradient(180deg, #7ed957 0%, #2e9e44 55%, #187a2f 100%); }
.btn-blue  { background: linear-gradient(180deg, #7adcf5 0%, #1f8fd0 55%, #0d6bb0 100%); }
.btn-red   { background: linear-gradient(180deg, #ff9a9a 0%, #e8384f 55%, #c11830 100%); }
.btn-row { text-align: center; padding: 8px 16px 30px; position: relative; z-index: 6; }
@media (max-width: 768px) {
  .btn-img { min-width: 0; width: 88%; font-size: 16px; padding: 14px 20px; }
}

/* ---------- 金の斜めリボン見出し（金キラ素材があれば background を画像に差し替え） ---------- */
.ribbon {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 94%;
  padding: 16px 60px;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: .04em;
  color: #4a2000;
  background: linear-gradient(100deg, var(--c-gold-m), var(--c-gold-l) 40%, var(--c-gold-d));
  border-top: 3px solid #fff2c9;
  border-bottom: 3px solid #b8860b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(255, 255, 255, .8);
}
.ribbon-tl { margin: 0 0 30px -10px; transform: rotate(-2.5deg) skewX(-6deg); border-radius: 0 10px 10px 0; }
.ribbon-tl > * { transform: skewX(6deg); }
.ribbon-br { margin: 8px -10px 34px auto; transform: rotate(-2.5deg) skewX(-6deg); border-radius: 10px 0 0 10px; }
.ribbon-br > * { transform: skewX(6deg); }
@media (max-width: 768px) { .ribbon { font-size: 15px; padding: 10px 22px; } }

/* ---------- 章バッジ（セクション境界に半分乗せる・プロの定石） ----------
   位置はスクショ実測→補間で追い込む。中の img には必ず width:100% を付ける（枠内左寄せ事故防止） */
.badge {
  width: 380px;
  margin: 0 auto -62px;
  position: relative;
  top: -80px;
  z-index: 30;
  text-align: center;
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, .55));
}
.badge img { width: 100%; }
@media (max-width: 768px) { .badge { width: 240px; } }

/* ---------- セクションを分かつライン（境界の白+金） ---------- */
.sec-line::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(180deg, #fff 0 3px, var(--c-gold-line) 3px 6px, rgba(0,0,0,.25) 6px 10px);
  z-index: 20;
}

/* ---------- 白ぼかし円（ブロックをカード枠なしで浮かせる） ---------- */
.blk {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px 22px;
  text-align: center;
  background: radial-gradient(closest-side, rgba(255,255,255,.95) 55%, rgba(255,255,255,.55) 75%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
}
@media (max-width: 768px) { .blk { border-radius: 26px; padding: 26px 18px; } }

/* ---------- 誘導フキダシ ---------- */
.fukidashi {
  position: relative;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}
.fukidashi::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -9px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom: none;
}
.fk-green { background: #2e9e44; } .fk-green::after { border-top-color: #2e9e44; } .fk-green b { color: #ffe95e; }
.fk-blue  { background: #1f8fd0; } .fk-blue::after  { border-top-color: #1f8fd0; } .fk-blue b  { color: #ffe95e; }

/* ---------- クーポン等のモーダル ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.open { display: block; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.modal__content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 340px);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.modal__content img { width: 100%; }
.modal__note { font-size: 12px; color: #333; text-align: center; padding-top: 10px; }
.modal__close {
  position: absolute;
  top: 6px; right: 8px;
  width: 34px; height: 34px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background: var(--c-bg);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

/* ---------- ページトップへ ---------- */
.totop {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 52px; height: 52px;
  border: 2px solid #fff2c9;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--c-gold-l), var(--c-gold-d));
  color: #5c1500;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.totop.active { opacity: 1; pointer-events: auto; }

/* ---------- 法定注記 ---------- */
.note { font-size: 11px; line-height: 1.7; color: #ffe3e3; padding: 14px 4% 26px; position: relative; z-index: 5; }

/* ---------- キャラ浮遊 ---------- */
@keyframes fuwa {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* ---------- 走る車（道路帯 + road_cars.png） ---------- */
.road {
  height: 56px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, #fff 0 46px, rgba(255,255,255,0) 46px 92px) center / 100% 6px no-repeat,
    #565d63;
}
.road::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 200%; height: 60px;
  margin-top: -30px;
  background: var(--road-cars, url("../images/road_cars.png")) 0 center / 900px 60px repeat-x;
  animation: drive 14s linear infinite;
}
@keyframes drive { from { transform: translateX(0); } to { transform: translateX(-900px); } }
@media (prefers-reduced-motion: reduce) { .road::after { animation: none; } }


/* ---------- マーキー（流れる帯。開催情報などを流す） ----------
   HTML: <div class="marquee"><div class="marquee-track"><span>文言　</span><span>文言　</span></div></div>
   ※spanは同じ内容を2つ並べる（-50%移動でシームレスループになる仕組み） */
.marquee {
  overflow: hidden;
  background: #1a1a1a;
  border-top: 3px solid var(--c-gold-line);
  border-bottom: 3px solid var(--c-gold-line);
  padding: 10px 0;
  position: relative;
  z-index: 8;
}
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span {
  white-space: nowrap;
  font-weight: 900;
  font-size: clamp(15px, 1.8vw, 21px);
  color: #ffe95e;
  letter-spacing: .06em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }


/* ---------- QRオーバーレイボタン共通（QR白箱に重ねる。個別クラスでleft/top/width/height%を指定） ---------- */
.btn-ov {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  margin: 0;
  line-height: 1.35;
  text-align: center;
}
.btn-qr {
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  text-shadow: none;
  color: #d5001e;
  font-weight: 900;
}
.btn-qr::before { display: none; }
.btn-qr:hover { background: #ffeef0; filter: none; transform: none; }

/* ============================================================
   大創業祭の答え合わせで確立した汎用部品（2026-07-31追加）
   ============================================================ */

/* ---------- 装飾フィールド ----------
   風船・キラキラ・紙吹雪などの装飾素材を「全編の左右余白に大量配置」するための仕組み。
   ヒーローだけに数個置くのは臆病＝ページ全体の賑わいが出ない（実LP検証で判明）。
   使い方:
     <div class="deco-field">
       <img class="deco dl1" src="images/balloon1.png" alt="">
       <img class="deco dr2" src="images/balloon2.png" alt="">
       …
     </div>
   親セクションに position:relative が必要。装飾は本文の下(z-index:2)に敷かれる。 */
.deco-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.deco { position: absolute; width: 9%; min-width: 54px; max-width: 150px; animation: deco-float 4s ease-in-out infinite; }
/* 左端に沿って散らす */
.dl1 { left: 1%;  top: 4%;  animation-delay: 0s; }
.dl2 { left: 4%;  top: 20%; animation-delay: .5s; }
.dl3 { left: 0.5%; top: 38%; animation-delay: 1.1s; }
.dl4 { left: 3%;  top: 56%; animation-delay: 1.7s; }
.dl5 { left: 1%;  top: 74%; animation-delay: 2.3s; }
.dl6 { left: 4%;  top: 89%; animation-delay: 2.9s; }
/* 右端に沿って散らす */
.dr1 { right: 2%;  top: 8%;  animation-delay: .3s; }
.dr2 { right: 0.5%; top: 26%; animation-delay: .9s; }
.dr3 { right: 3%;  top: 44%; animation-delay: 1.5s; }
.dr4 { right: 1%;  top: 62%; animation-delay: 2.1s; }
.dr5 { right: 3.5%; top: 80%; animation-delay: 2.7s; }
.dr6 { right: 1%;  top: 94%; animation-delay: 3.3s; }
@keyframes deco-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .deco { animation: none; } }
/* スマホでは端の装飾を小さく・数を減らす（本文の可読性優先） */
@media (max-width: 768px) {
  .deco { width: 13%; min-width: 40px; }
  .dl2, .dl4, .dl6, .dr2, .dr4, .dr6 { display: none; }
}

/* ---------- 商品ラインナップ（1商品=1大バナーで縦積み） ----------
   2カラムに詰めると商材が小さくなり訴求が死ぬ。1台ずつ大きく見せるのが正解。 */
.product-stack { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 92%; margin: 0 auto; position: relative; z-index: 5; }
/* 等幅カード: 素材ごとの絵柄幅の差をカード内余白で吸収し、
   「片方が小さい/中央がズレる」を同時に解消する（大創業祭で確立） */
.product-item {
  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, .58);
  border-radius: 22px;
  padding: 1.6% 2%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}
.product-item img { width: 100%; }
@media (max-width: 768px) { .product-stack { width: 96%; gap: 22px; } }

/* ---------- PUSH大ボタン（遊び心のあるCTA。対で使うと効く） ---------- */
.push-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(96px, 11vw, 140px);
  height: clamp(96px, 11vw, 140px);
  border-radius: 50%;
  border: none;
  font-family: inherit;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(0,0,0,.22), 0 12px 22px rgba(0,0,0,.25), inset 0 4px 10px rgba(255,255,255,.5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.push-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 rgba(0,0,0,.22), 0 4px 8px rgba(0,0,0,.25), inset 0 4px 10px rgba(255,255,255,.5); }
.push-blue  { background: radial-gradient(circle at 35% 30%, #6fc4ff 0%, #1976e0 55%, #0d54ad 100%); }
.push-green { background: radial-gradient(circle at 35% 30%, #7fe08a 0%, #17a838 55%, #0d7a26 100%); }
.push-red   { background: radial-gradient(circle at 35% 30%, #ff8a8a 0%, #e01020 55%, #a3000f 100%); }
/* 吹き出しラベル（PUSHの上に置く） */
.push-label {
  display: inline-block;
  background: #093a66;
  color: #ffe95e;
  font-weight: 900;
  font-size: clamp(14px, 1.8vw, 19px);
  padding: 8px 24px;
  border-radius: 999px;
  position: relative;
}
.push-label::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #093a66;
  border-bottom: none;
}

/* ---------- ピル型CTA（ブロック下部に置く標準ボタン） ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 40px;
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #ff5a6e 0%, #d5001e 55%, #a30014 100%);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em; border-radius: 50%;
  background: #fff; color: #d5001e; font-size: .8em;
}

/* ---------- POINT 3カード（安心・特徴の訴求。同型グリッドの定番） ----------
   寸法は実LPの実測値ベース: カード幅に対し POINT見出し=10% / 説明=8% / gap=カード幅の4%。
   「白枠が大きく文字が小さい」とスカスカに見えるので、文字を大きく・余白を詰めるのが要点。 */
.point-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4%; width: 84%; max-width: 990px; margin: 0 auto; position: relative; z-index: 5; }
.point-card {
  background: #fff;
  border-radius: 14px;
  padding: 4.6% 3%;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3em;
}
.point-card .pt-head { display: flex; align-items: center; justify-content: center; gap: .55em; }
.point-card .pt-no { font-size: clamp(15px, 2.34vw, 30px); font-weight: 900; color: #00594f; letter-spacing: .01em; margin: 0; }
.point-card .pt-tag {
  background: #00594f; color: #fff;
  font-size: clamp(11px, 1.6vw, 20px); font-weight: 700;
  padding: .1em .95em .2em; border-radius: 999px; line-height: 1.3;
}
.point-card .pt-txt {
  display: block; margin: 0; font-weight: 900;
  font-size: clamp(13px, 1.88vw, 24px); color: #111; letter-spacing: -.02em;
}
@media (max-width: 768px) {
  .point-row { grid-template-columns: 1fr; gap: 8px; width: 92%; }
  .point-card { padding: 12px 14px; }
}

/* ---------- 図解つき白箱（複雑な仕組みの説明。プラン/保証/流れ図など） ----------
   設計メモ: 「◯◯楽々!」等の丸バッジは**枠の左上に重ねるステッカー**として position:absolute で
   フローの外に出すこと。枠内にブロックとして置くと左カラムだけ下がり、左右の上端が揃わない。
   バッジを避ける余白（padding-left）は**カラム全体に掛ける**こと。見出しだけに掛けると
   見出しと本文の左端がズレて「タイトルが右に寄っている」と見える。
   左右カラムは align-items:center で**情報の垂直中央**を合わせる。 */
.diagram-box {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid #d5001e;
  border-radius: 14px;
  padding: 18px 22px 20px;
  color: #333;
  position: relative;
  z-index: 5;
}
.diagram-box .dg-head { font-size: clamp(17px, 2.2vw, 24px); font-weight: 900; color: #d5001e; text-align: center; margin-bottom: 10px; }
.diagram-box .dg-lead { font-size: clamp(12.5px, 1.5vw, 14.5px); line-height: 1.9; }
.diagram-box .dg-lead em { font-style: normal; color: #d5001e; font-weight: 900; }
.dg-choices { margin-top: 14px; border: 2px solid #eee0c0; border-radius: 10px; padding: 12px 16px; }
.dg-choices .dg-title { font-size: clamp(12.5px, 1.5vw, 14px); font-weight: 900; color: #a06a00; margin-bottom: 8px; }
.dg-choices ol { list-style: none; display: grid; gap: 6px; }
.dg-choices li { display: flex; align-items: center; gap: 10px; font-size: clamp(13px, 1.5vw, 15px); font-weight: 700; }
.dg-choices li b { margin-left: auto; color: #d5001e; font-size: 1.15em; }
.dg-num { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #d5001e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
@media (max-width: 768px) { .diagram-box { width: 96%; padding: 14px; } .dg-choices li { flex-wrap: wrap; } }
