/* たけ整骨院 ダイエット初回体験LP（ステッカーボム版）
   画像と同じ決まり：方眼の紙・紺の見出しシール・黄色の札・白い読む面・緑のボタン */
:root {
  --paper: #FBF8F1;
  --grid: #E3DED2;
  --navy: #1F3A5F;
  --yellow: #F7D96B;
  --salmon: #F2B8A2;
  --mint: #BFE3D0;
  --ink: #2E2E2E;
  --note: #5E5E5E;
  --green: #1FA35B;
  --col: 560px;
  --cut: 0 3px 0 rgba(31, 58, 95, .10), 0 6px 14px rgba(31, 58, 95, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #EFE9DC;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.9;
}
.lp {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 40px rgba(31, 58, 95, .10);
  padding-bottom: 100px; /* 下に追従するボタンのぶん */
  overflow-x: clip;
}
.part { position: relative; line-height: 0; }
.part img { display: block; width: 100%; height: auto; }
.hit { position: absolute; display: block; border-radius: 22px; overflow: hidden; }
.hit:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 方眼の紙 */
.results, .access, .offerbox {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* 札（黄色）と、見出しのシール（紺） */
.label {
  display: inline-block; position: relative; z-index: 2;
  margin: 0 0 -10px 4px; padding: 4px 18px;
  background: var(--yellow); color: var(--navy);
  font-weight: 700; font-size: 16px; line-height: 1.6; letter-spacing: .04em;
  border: 4px solid #fff; border-radius: 14px; box-shadow: var(--cut);
  transform: rotate(-2deg);
}
.results h2, .access h2, .offerbox h2 {
  display: table; margin: 0 0 24px; padding: 12px 20px 14px;
  background: var(--navy); color: #fff;
  font-weight: 900; font-size: clamp(26px, 7.2vw, 38px); line-height: 1.4; letter-spacing: .01em;
  border: 5px solid #fff; border-radius: 22px; box-shadow: var(--cut);
  transform: rotate(-1.2deg);
  word-break: keep-all; line-break: strict;
}

/* 実績 */
.results { padding: 52px 6% 44px; }
.results .lead { margin: 0 0 22px; font-size: 18px; line-height: 2; }
.ba-list { display: grid; gap: 30px; }
.ba-card {
  background: #fff; border-radius: 22px; box-shadow: var(--cut);
  padding: 16px 16px 20px; text-align: center;
}
.ba-photos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.ba-photos figure { margin: 0; padding: 6px; background: var(--mint); border-radius: 12px; line-height: 0; }
.ba-photos figure:last-of-type { background: var(--salmon); }
.ba-photos img { display: block; width: 100%; height: auto; border-radius: 7px; }
.ba-photos figcaption { line-height: 1.4; padding: 8px 0 3px; font-size: 15px; font-weight: 700; color: var(--navy); }
.ba-arrow { font-size: 24px; font-weight: 900; color: var(--navy); }
.ba-numrow {
  display: inline-flex; justify-content: center; align-items: baseline; gap: 6px;
  margin: 18px 0 10px; padding: 0 26px 2px;
  background: var(--yellow); color: var(--navy);
  border: 5px solid #fff; border-radius: 999px; box-shadow: var(--cut);
  transform: rotate(-2deg);
}
.ba-card:nth-child(even) .ba-numrow { transform: rotate(2deg); }
.ba-num {
  margin: 0; line-height: 1.35; white-space: nowrap;
  font-weight: 900; font-size: clamp(52px, 15.5vw, 78px); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.ba-unit { font-weight: 900; font-size: clamp(22px, 6.4vw, 32px); line-height: 1.35; }
.ba-who { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.ba-card dl { margin: 0; border-top: 2px solid var(--navy); text-align: left; }
.ba-card dl div { display: grid; grid-template-columns: 5.2em 1fr; padding: 11px 4px; border-bottom: 1px solid #C9CED6; font-size: 18px; }
.ba-card dt { font-weight: 700; color: var(--navy); }
.ba-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.ba-card dd b { font-weight: 900; color: var(--navy); font-size: 1.14em; }
.ba-each { margin: 12px 0 0; font-size: 14px; color: var(--note); line-height: 1.6; }

/* 980円の箱（くり返し出す） */
.offerbox { padding: 52px 6% 56px; text-align: center; background-color: #E3F2E9; background-image: linear-gradient(rgba(255, 255, 255, .75) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .75) 1px, transparent 1px); }
.offerbox h2 { margin-left: auto; margin-right: auto; text-align: left; }
.ob-card { background: #fff; border-radius: 22px; box-shadow: var(--cut); padding: 22px 20px 20px; margin: 0 0 26px; }
.ob-price {
  display: inline-block; margin: 0 0 16px; padding: 0 28px 4px;
  background: var(--yellow); color: var(--navy); line-height: 1.2; white-space: nowrap;
  border: 5px solid #fff; border-radius: 999px; box-shadow: var(--cut);
  transform: rotate(-2deg);
}
.ob-num { font-weight: 900; font-size: clamp(60px, 18vw, 88px); letter-spacing: -.01em; }
.ob-en { font-weight: 900; font-size: clamp(26px, 7.4vw, 36px); margin-left: 4px; }
.ob-price small { font-size: 16px; font-weight: 700; }
.ob-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); text-align: left; }
.ob-list li { padding: 13px 4px 13px 38px; border-bottom: 1px solid #C9CED6; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.7; position: relative; }
.ob-list li::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 16px; margin-top: -12px;
  border: solid var(--navy); border-width: 0 4px 4px 0; transform: rotate(42deg);
}
.ob-meta { margin: 16px 0 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.ob-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 72px; padding: 14px 18px;
  background: var(--green); color: #fff; text-decoration: none;
  border: 5px solid #fff; border-radius: 22px; box-shadow: var(--cut);
  font-size: clamp(19px, 5.4vw, 23px); font-weight: 900; letter-spacing: .02em; line-height: 1.4;
}
.ob-btn::after, .sticky a::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  transform: skewX(-18deg); animation: shine 3.4s ease-in-out infinite;
}
.ob-btn:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; }
.ob-note { margin: 16px 0 0; font-size: 14px; color: var(--note); line-height: 1.8; }
.ob-text { margin: 0 0 24px; font-size: 18px; line-height: 2; }
.offerbox.last { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); padding-top: 48px; }

/* アクセス（住所や時間はここを直す） */
.access { padding: 52px 6% 56px; }
.frame { margin: 0 0 26px; border: 6px solid #fff; border-radius: 14px; box-shadow: var(--cut); line-height: 0; overflow: hidden; transform: rotate(1deg); }
.frame img { display: block; width: 100%; height: auto; }
.access dl { margin: 0 0 28px; padding: 6px 18px; background: #fff; border-radius: 22px; box-shadow: var(--cut); }
.access dl div { padding: 14px 2px; border-bottom: 1px solid #C9CED6; }
.access dl div:last-child { border-bottom: 0; }
.access dt { font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.6; }
.access dd { margin: 0; line-height: 1.8; }
.results .lead, .ob-text, .ob-note, .access dd, .foot p { word-break: auto-phrase; line-break: strict; }
.map {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 12px 20px;
  background: #fff; border: 3px solid var(--navy); border-radius: 18px;
  color: var(--navy); text-decoration: none; font-weight: 700;
}
.map:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

.foot { padding: 32px 6% 30px; text-align: center; background: var(--navy); color: #fff; font-size: 15px; }
.foot p { margin: 0; }
.foot .small { margin-top: 6px; font-size: 13px; opacity: .85; }

/* 流れる帯 */
.ticker { overflow: hidden; background: var(--navy); color: var(--yellow); line-height: 1; padding: 15px 0; }
.ticker.t2 { background: var(--yellow); color: var(--navy); }
.ticker-in { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.ticker span { flex: none; white-space: nowrap; padding-right: .5em; font-weight: 900; font-size: 18px; letter-spacing: .08em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 下に追従する予約ボタン */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 241, .95);
  border-top: 2px solid var(--navy);
  transition: transform .35s ease, opacity .35s ease;
}
.sticky[hidden] { display: block; transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky a {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: calc(var(--col) - 28px); min-height: 62px; margin: 0 auto; padding: 6px 16px;
  background: var(--green); color: #fff; text-decoration: none;
  border: 3px solid #fff; border-radius: 18px; box-shadow: 0 3px 8px rgba(31, 58, 95, .28);
  line-height: 1.35; animation: pulse 2.6s ease-in-out infinite;
}
.sticky a::after { animation-delay: 1.2s; }
.s-sub { font-size: 13px; font-weight: 700; }
.s-main { font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.sticky a:focus-visible { outline: 4px solid var(--navy); outline-offset: 2px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 3px 8px rgba(31, 58, 95, .28), 0 0 0 0 rgba(31, 163, 91, .5); }
  50% { box-shadow: 0 3px 8px rgba(31, 58, 95, .28), 0 0 0 12px rgba(31, 163, 91, 0); }
}

/* 上の進みぐあいの線・動きを止めるボタン */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 20; }
.progress i { display: block; height: 100%; width: 100%; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); }
.motion {
  position: fixed; right: 10px; bottom: 12px; z-index: 21;
  width: 44px; height: 44px; padding: 0;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1; color: var(--navy);
  background: #fff; border: 2px solid var(--navy); border-radius: 50%; cursor: pointer;
  transition: bottom .35s ease;
}
.has-sticky .motion { bottom: calc(100px + env(safe-area-inset-bottom)); }
.motion:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }

/* ボタンの上を走る光 */
.shine {
  position: absolute; top: -20%; bottom: -20%; left: -40%; width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -40%; } 100% { left: 120%; } }

/* FV：シールを貼るように現れる */
#fv { overflow: hidden; }
.js #fv img { animation: fvin 1s cubic-bezier(.2, 1.25, .35, 1) both; transform-origin: 50% 40%; }
@keyframes fvin { from { opacity: 0; transform: scale(1.06) rotate(-1.2deg); } to { opacity: 1; transform: none; } }

/* ページごとの現れ方（4通り。シールをぺたっと貼る動き） */
.js .part.reveal { overflow: hidden; }
.js .part.reveal img, .js .access.reveal > * {
  transition: opacity .55s ease, transform .8s cubic-bezier(.2, 1.25, .35, 1);
  will-change: transform;
}
.js .part.reveal.fx-up:not(.in) img { opacity: 0; transform: translateY(64px) rotate(-1.5deg); }
.js .part.reveal.fx-left:not(.in) img { opacity: 0; transform: translateX(-56px) rotate(-2.5deg); }
.js .part.reveal.fx-right:not(.in) img { opacity: 0; transform: translateX(56px) rotate(2.5deg); }
.js .part.reveal.fx-zoom:not(.in) img { opacity: 0; transform: scale(.9) rotate(1.5deg); }
.js .access.reveal:not(.in) > * { opacity: 0; transform: translateY(36px); }
.js .access.reveal.in > .label { transform: rotate(-2deg); }
.js .access.reveal.in > h2 { transform: rotate(-1.2deg); transition-delay: .1s; }
.js .access.reveal.in > .frame { transform: rotate(1deg); transition-delay: .2s; }
.js .access.reveal.in > dl { transition-delay: .3s; }

/* 動きを止めたとき・動きを減らす設定のとき */
.no-motion .ticker-in, .no-motion .shine, .no-motion .sticky a, .no-motion .sticky a::after, .no-motion .ob-btn::after, .no-motion #fv img { animation: none !important; }
.no-motion .shine, .no-motion .ob-btn::after, .no-motion .sticky a::after { display: none; }
.no-motion .part.reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-motion .access.reveal > * { opacity: 1 !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ticker-in, .shine, .sticky a, .sticky a::after, .ob-btn::after, .js #fv img { animation: none !important; }
  .shine, .ob-btn::after, .sticky a::after { display: none; }
  .js .part.reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .access.reveal > * { opacity: 1 !important; transition: none !important; }
  .sticky { transition: none; }
}

/* 合言葉の案内（LINEで「広告みた」と送ってもらう） */
.kw {
  margin: 20px 0 0; padding: 14px 8px 16px; text-align: center;
  background: #fff; border-radius: 20px; box-shadow: var(--cut);
  color: var(--navy); line-height: 1.6;
}
.kw-s { display: block; font-size: 16px; font-weight: 700; }
.kw-m { display: block; font-size: clamp(16px, 4.6vw, 21px); font-weight: 900; word-break: keep-all; }
.kw b {
  display: inline-block; margin: 0 2px; padding: 0 12px 2px;
  background: var(--yellow); border-radius: 10px; font-weight: 900; font-size: 1.18em;
}
.kwbar {
  padding: 4px 6% 26px;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.kwbar .kw { margin-top: 0; }
