/* =========================================================
   Laugh Planning — A案「爆笑メーター」
   レイアウト：スクロールするほど笑いレベルが上がる1ページLP
   ========================================================= */
:root {
  --orange: #FF8C42;
  --yellow: #FFE066;
  --brown: #3D2C2E;
  --cream: #FFF3E8;
  --white: #FFFFFF;
  --ray-orange: #FFA552;
  --ray-yellow: #FFEC9A;

  --f-pop: "Mochiy Pop One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --f-en: "Fredoka", "Zen Maru Gothic", sans-serif;

  --gutter: clamp(20px, 6vw, 120px);
  --meter-space: 0px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --squish: cubic-bezier(.68, -0.6, .32, 1.6);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--f-body);
  font-weight: 700;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 4px solid var(--brown); outline-offset: 4px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brown); color: var(--yellow); padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
.sp { display: none; }
@media (max-width: 767px) { .sp { display: inline; } .pc { display: none; } }

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(calc(var(--gutter) + var(--meter-space)), env(safe-area-inset-right, 0px));
}
@media (min-width: 1024px) { :root { --meter-space: 40px; } }

/* ---------- 放射線（サンバースト） ---------- */
.sunburst {
  position: absolute;
  left: var(--sx, 70%);
  top: var(--sy, 55%);
  width: 320vmax;
  height: 320vmax;
  margin: -160vmax 0 0 -160vmax;
  background: repeating-conic-gradient(var(--ray-a) 0deg 7.5deg, var(--ray-b) 7.5deg 15deg);
  animation: spin 140s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}
.sunburst--orange { --ray-a: var(--orange); --ray-b: var(--ray-orange); }
.sunburst--yellow { --ray-a: var(--yellow); --ray-b: var(--ray-yellow); --sx: 80%; --sy: 18%; }
.sunburst--fast { animation-duration: 60s; --sx: 50%; --sy: 22%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 共通の「ハ」文字 ---------- */
.ha {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--f-pop);
  font-size: var(--s);
  line-height: 1;
  color: var(--c, var(--orange));
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
  pointer-events: none;
  user-select: none;
}
.ha--float { animation: haFloat 3.2s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.ha--wiggle { animation: haWiggle 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ha--giggle { animation: haGiggle .5s steps(2, end) infinite; animation-delay: var(--d, 0s); }
@keyframes haFloat {
  from { transform: translate(0, 0) rotate(var(--r, 0deg)) scale(1); }
  to { transform: translate(6px, -18px) rotate(calc(var(--r, 0deg) + 8deg)) scale(1.08); }
}
@keyframes haWiggle {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) - 10deg)) translateY(-8px); }
}
@keyframes haGiggle {
  0% { transform: rotate(var(--r)) translate(0, 0); }
  100% { transform: rotate(calc(var(--r) + 6deg)) translate(2px, -4px); }
}

/* ---------- バッジ・見出し ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brown);
  color: var(--yellow);
  font-family: var(--f-pop);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  padding: 10px 20px;
  border-radius: 999px;
  transform: rotate(3deg);
  margin-bottom: 18px;
}
.badge i { font-style: normal; opacity: .5; font-family: var(--f-body); }
.badge--orange { background: var(--orange); color: var(--white); }

.h-xl, .h-xxl, .h-l, .h-max {
  font-family: var(--f-pop);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .01em;
  text-wrap: balance;
}
.h-xl { font-size: clamp(38px, 5.8vw, 84px); }
.h-xxl { font-size: clamp(46px, 7vw, 100px); line-height: 1.2; }
.h-l { font-size: clamp(32px, 4.45vw, 64px); }
.h-max { font-size: clamp(56px, 8.4vw, 120px); line-height: 1.2; }

/* 1文字ずつ分割（JS） */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transition: transform .35s var(--bounce), color .2s; }
[data-split]:hover .ch:hover { transform: translateY(-.18em) rotate(-10deg) scale(1.15); }

.sec { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 110px); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.sec__lead { margin-top: 14px; font-size: clamp(16px, 1.8vw, 26px); line-height: 1.6; }

/* ---------- 顔アイコン（JSでSVGを挿入） ---------- */
.face {
  --fs: 64px;
  display: inline-block;
  flex: none;
  width: var(--fs);
  height: var(--fs);
  transform: rotate(var(--r, 0deg));
  transition: transform .4s var(--bounce);
}
.face svg { width: 100%; height: 100%; overflow: visible; }
.face svg * { transition: opacity .25s, transform .45s var(--bounce); transform-box: fill-box; transform-origin: center; }
.face .f-eyes-dot, .face .f-m-flat { opacity: 1; }
.face .f-eyes-arc, .face .f-m-smile, .face .f-m-laugh { opacity: 0; transform: scale(.4); }
.face[data-mood="smile"] .f-m-flat { opacity: 0; transform: scaleX(.3); }
.face[data-mood="smile"] .f-m-smile { opacity: 1; transform: none; }
.face[data-mood="grin"] .f-eyes-dot, .face[data-mood="laugh"] .f-eyes-dot { opacity: 0; transform: scale(.2); }
.face[data-mood="grin"] .f-eyes-arc, .face[data-mood="laugh"] .f-eyes-arc { opacity: 1; transform: none; }
.face[data-mood="grin"] .f-m-flat, .face[data-mood="laugh"] .f-m-flat { opacity: 0; }
.face[data-mood="grin"] .f-m-smile { opacity: 1; transform: none; }
.face[data-mood="laugh"] .f-m-laugh { opacity: 1; transform: none; }
.face.is-pop { animation: facePop .6s var(--bounce); }
@keyframes facePop {
  0% { transform: rotate(var(--r, 0deg)) scale(1); }
  35% { transform: rotate(calc(var(--r, 0deg) - 14deg)) scale(1.25, .85); }
  70% { transform: rotate(calc(var(--r, 0deg) + 8deg)) scale(.92, 1.08); }
  100% { transform: rotate(var(--r, 0deg)) scale(1); }
}
.face.is-tickled { animation: faceShake .12s linear 8 alternate; }
@keyframes faceShake {
  from { transform: rotate(calc(var(--r, 0deg) - 8deg)) scale(1.1); }
  to { transform: rotate(calc(var(--r, 0deg) + 8deg)) scale(1.15); }
}
.face--sm { --fs: 64px; }
.face--xl { --fs: clamp(120px, 16vw, 230px); cursor: pointer; }

/* =========================================================
   オープニング
   ========================================================= */
.intro { display: none; }
.show-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--orange);
  animation: introOut .7s cubic-bezier(.7, 0, .3, 1) 1.5s forwards;
  pointer-events: none;
}
.intro__inner { display: grid; justify-items: center; gap: 12px; }
.intro__logo { width: 120px; height: 120px; animation: introLogo 1.1s var(--bounce) both; border-radius: 28px; box-shadow: 0 10px 0 var(--brown); }
.intro__ha { font-family: var(--f-pop); font-size: 56px; color: var(--white); line-height: 1; display: flex; gap: 4px; }
.intro__ha span { display: inline-block; animation: introHa .5s var(--bounce) both; }
.intro__ha span:nth-child(1) { animation-delay: .35s; }
.intro__ha span:nth-child(2) { animation-delay: .5s; color: var(--yellow); }
.intro__ha span:nth-child(3) { animation-delay: .65s; color: var(--brown); }
.intro__ha span:nth-child(4) { animation-delay: .8s; }
@keyframes introLogo {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.2) rotate(10deg); }
  80% { transform: scale(.95) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes introHa { from { transform: translateY(60px) scale(0) rotate(30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introOut { to { clip-path: circle(0% at 50% 50%); visibility: hidden; } }
.show-intro .intro { clip-path: circle(150% at 50% 50%); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(48px, env(safe-area-inset-right, 0px)) 0 max(48px, env(safe-area-inset-left, 0px));
}
.site-logo img { width: clamp(137px, 12.5vw, 180px); height: auto; transition: transform .4s var(--bounce); }
.site-logo:hover img { transform: rotate(-6deg) scale(1.08); }
.site-nav { display: flex; gap: 18px; align-items: center; margin-right: 140px; }
.pill {
  display: inline-block;
  background: var(--white);
  color: var(--brown);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  padding: 8px 18px;
  border-radius: 999px;
  transform: rotate(var(--r, 0deg));
  transition: transform .35s var(--bounce), box-shadow .2s;
  box-shadow: 0 4px 0 rgba(61, 44, 46, .25);
}
.pill:hover { transform: rotate(calc(var(--r) * -2)) scale(1.12); box-shadow: 0 7px 0 rgba(61, 44, 46, .3); }
.pill--brown { background: var(--brown); color: var(--yellow); }
.menu-btn { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  min-height: clamp(720px, 100svh, 960px);
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(120px, 12vw, 170px));
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.hero__deco { position: absolute; inset: 0; z-index: 1; }
.hero__inner { flex: 1; pointer-events: none; }
.hero__inner > *, .hero__bottom > * { pointer-events: auto; }
.hero__bottom { pointer-events: none; }
.hero__title { font-family: var(--f-pop); font-weight: 400; line-height: 1.1; }
.hero__t1 { display: block; font-size: clamp(64px, 10.4vw, 150px); transform: rotate(-4deg); transform-origin: left center; text-shadow: 0 6px 0 rgba(61, 44, 46, .12); }
.hero__t2 {
  display: inline-block;
  margin-top: clamp(4px, 1vw, 16px);
  margin-left: -8px;
  background: var(--yellow);
  color: var(--brown);
  font-size: clamp(44px, 7.8vw, 112px);
  line-height: 1.25;
  padding: 4px 24px 8px;
  border-radius: 12px;
  transform: rotate(3deg);
  box-shadow: 0 8px 0 rgba(61, 44, 46, .18);
}
.hero__lead { margin-top: clamp(20px, 2.4vw, 36px); max-width: 680px; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.7; }

.hero__visual {
  position: absolute;
  z-index: 1;
  right: max(2vw, calc(50% - 720px + 70px));
  top: 18%;
  width: clamp(300px, 42vw, 600px);
  transform: rotate(8deg);
}
.logo-sym { width: 100%; height: auto; overflow: visible; --tilt: 0deg; }
/* ボタンにマウスを乗せると、ロゴが「来るぞ…」と口を開けて待つ */
.hero__visual:has(.laugh-btn:hover) .ls-mouth { transform: scale(1.06, 1.3); }
.hero__visual .logo-sym { transform: rotate(var(--tilt)); transition: transform .5s var(--bounce); }
.logo-sym .ls-body, .logo-sym .ls-mouth, .logo-sym .ls-eyes, .logo-sym .ls-lines, .logo-sym .ls-lines line { transform-box: fill-box; transition: transform .4s var(--bounce); }
.logo-sym .ls-body { transform-origin: 50% 80%; }
.logo-sym .ls-mouth { transform-origin: 50% 0%; }
.logo-sym .ls-eyes { transform-origin: center; }
.logo-sym .ls-lines { transform-origin: 0% 100%; animation: linesBlink 1.6s ease-in-out infinite; }
@keyframes linesBlink { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) translate(1px, -1px); } }
.is-near .ls-mouth { transform: scale(1.06, 1.3); }
.is-near .ls-eyes { transform: translateY(-1.5px) scaleY(1.2); }
.is-near .ls-lines { transform: scale(1.35) translate(2px, -2px); }
.is-laughing .ls-body { animation: bodyLaugh .14s ease-in-out infinite alternate; }
.is-laughing .ls-mouth { animation: mouthLaugh .14s ease-in-out infinite alternate; }
.is-laughing .ls-lines { animation: linesLaugh .14s linear infinite alternate; }
@keyframes bodyLaugh { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-3px); } }
@keyframes mouthLaugh { from { transform: scale(1.05, 1.05); } to { transform: scale(1.1, 1.55); } }
@keyframes linesLaugh { from { transform: scale(1.1); } to { transform: scale(1.6) translate(3px, -3px); } }

.laugh-btn {
  position: absolute;
  z-index: 3;
  /* ロゴの白い顔の真下。ふたりが「押して」と見下ろしている位置 */
  left: 66%;
  top: 74%;
  width: clamp(120px, 11vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--brown);
  background: var(--yellow);
  color: var(--brown);
  font-family: var(--f-pop);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.3;
  transform: rotate(-20deg);
  box-shadow: 0 8px 0 var(--brown);
  transition: transform .3s var(--bounce), box-shadow .15s;
  animation: btnBeg 2.8s ease-in-out infinite;
}
.laugh-btn:hover { transform: rotate(-10deg) scale(1.1); animation-play-state: paused; }
.laugh-btn:active { transform: rotate(-10deg) scale(.94) translateY(6px); box-shadow: 0 2px 0 var(--brown); }
.laugh-btn::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 4px dashed var(--white);
  animation: spin 12s linear infinite;
  opacity: .8;
}
@keyframes btnBeg {
  0%, 78%, 100% { transform: rotate(-20deg) translateY(0) scale(1); }
  82% { transform: rotate(-28deg) translateY(-22px) scale(1.06, .94); }
  86% { transform: rotate(-12deg) translateY(0) scale(1.08, .9); }
  90% { transform: rotate(-24deg) translateY(-10px) scale(1); }
  94% { transform: rotate(-18deg) translateY(0) scale(1.04, .96); }
}

.hero__bottom { display: flex; align-items: center; gap: 32px; z-index: 3; flex-wrap: wrap; margin-top: 24px; }
.hmeter { display: flex; background: var(--white); border: 4px solid var(--brown); border-radius: 999px; overflow: hidden; flex: 0 1 908px; }
.hmeter__cell {
  flex: 1;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--brown);
  position: relative;
  transition: background-color .3s;
}
.hmeter__cell.is-on { background: var(--yellow); }
.hmeter__cell.is-on[data-cell="4"], .hmeter__cell.is-on[data-cell="5"] { background: var(--orange); color: var(--white); }
.hmeter__cell.is-current { animation: cellBoing .6s var(--bounce); }
@keyframes cellBoing { 0% { transform: scale(1); } 40% { transform: scale(1.15, .8); } 100% { transform: scale(1); } }
.hero__hint { font-size: 15px; animation: hintBob 1.4s ease-in-out infinite; }
@keyframes hintBob { 50% { transform: translateY(6px); } }

/* 見出しの登場（JSでクラス付与。JSがない時は表示されたまま） */
.js .hero__t1 .ch { animation: chIn .7s var(--bounce) both; animation-delay: calc(var(--intro-delay, .1s) + var(--i) * 80ms); }
.js .hero__t2 { animation: slam .6s var(--bounce) both; animation-delay: calc(var(--intro-delay, .1s) + .45s); }
.js .hero__lead { animation: fadeUp .7s ease both; animation-delay: calc(var(--intro-delay, .1s) + .8s); }
.js .hero__visual { animation: logoIn 1s var(--bounce) both; animation-delay: calc(var(--intro-delay, .1s) + .2s); }
.show-intro { --intro-delay: 1.75s; }
@keyframes chIn { from { transform: translateY(80px) rotate(25deg) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slam {
  0% { transform: rotate(-20deg) scale(2.2); opacity: 0; }
  60% { transform: rotate(6deg) scale(.95); opacity: 1; }
  100% { transform: rotate(3deg) scale(1); }
}
@keyframes fadeUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes logoIn { from { transform: rotate(-60deg) scale(.2); opacity: 0; } to { transform: rotate(8deg) scale(1); opacity: 1; } }

/* =========================================================
   カード共通
   ========================================================= */
.card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--brown);
  border-radius: 40px;
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--bounce), box-shadow .3s ease;
}

/* スクロールで登場（JS有効＋動きOKの時だけ） */
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(70px) rotate(calc(var(--r, 0deg) - 10deg)) scale(.85); }
.reveal-ready [data-reveal] { transition: opacity .6s ease, transform .8s var(--bounce), box-shadow .3s ease; transition-delay: var(--rd, 0s); }
.reveal-ready .badge[data-reveal]:not(.is-in) { transform: translateX(-40px) rotate(-20deg) scale(.6); }
.reveal-ready .badge[data-reveal].is-in { transform: rotate(3deg); }
.reveal-ready [data-split][data-reveal]:not(.is-in) { opacity: 1; transform: none; }
.reveal-ready [data-split][data-reveal] .ch { transition: transform .6s var(--bounce), opacity .4s; transition-delay: calc(var(--i) * 45ms); }
.reveal-ready [data-split][data-reveal]:not(.is-in) .ch { transform: translateY(.8em) rotate(20deg) scale(.4); opacity: 0; }
.reveal-ready [data-split][data-reveal].is-in .ch:hover { transition-delay: 0s; }

/* =========================================================
   LEVEL 1 お悩み
   ========================================================= */
.sec--worries { background: var(--cream); }
.big-face { position: relative; display: grid; justify-items: center; gap: 4px; margin-right: clamp(0px, 4vw, 60px); }
.big-face__cap { color: var(--orange); font-size: clamp(15px, 1.4vw, 20px); transition: transform .4s var(--bounce); }
.big-face__cap.is-changed { animation: capPop .6s var(--bounce); }
@keyframes capPop { 0% { transform: scale(.5) rotate(-10deg); } 100% { transform: none; } }

.worries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(40px, 6vw, 90px);
  align-items: start;
}
.worries .card:nth-child(2) { margin-top: 40px; }
.card--worry { padding: 36px; }
.card--worry:hover { transform: rotate(0deg) scale(1.03); }
.card__tag { display: flex; align-items: center; gap: 14px; color: var(--orange); font-size: 18px; }
.card__text { margin-top: 16px; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.6; }

.punch { margin-top: clamp(56px, 7vw, 100px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.punch__text { font-family: var(--f-pop); font-size: clamp(26px, 3.5vw, 50px); line-height: 1.35; }
.marker {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 60%;
  background-position: 0 85%;
  border-radius: 10px;
  padding: 0 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.reveal-ready .punch__text .marker { transition: background-size 1s cubic-bezier(.7, 0, .2, 1) .4s; }
.reveal-ready .punch__text:not(.is-in) .marker { background-size: 0% 60%; }
.punch__hint { color: var(--orange); font-size: 18px; animation: hintBob 1.4s ease-in-out infinite; }

/* =========================================================
   LEVEL 2 できること
   ========================================================= */
.sec--services { background: var(--yellow); }
.big-face--services { margin-top: 10px; }
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 40px);
  margin-top: clamp(48px, 7vw, 100px);
  align-items: start;
}
.services .card:nth-child(2) { margin-top: 50px; }
.card--service {
  padding: clamp(28px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 10px 10px 0 var(--brown);
}
.card--service:hover { transform: rotate(0deg) translate(6px, 6px); box-shadow: 4px 4px 0 var(--brown); }
.card__num { font-family: var(--f-en); font-weight: 700; font-size: clamp(48px, 4.4vw, 64px); line-height: 1; color: var(--orange); }
.card--service:hover .card__num { animation: numJump .5s var(--bounce); }
@keyframes numJump { 40% { transform: translateY(-14px) rotate(-12deg); } }
.card__title { font-family: var(--f-pop); font-weight: 400; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.35; }
.card__catch { background: var(--yellow); padding: 6px 12px; border-radius: 8px; font-size: 17px; line-height: 1.4; transform: rotate(-1.5deg); }
.card__body { font-weight: 400; font-size: 17px; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--cream); border-radius: 999px; padding: 6px 12px; font-size: 14px; line-height: 1.3; }
.card__more { font-family: var(--f-pop); color: var(--orange); text-decoration: none; font-size: 18px; transition: transform .3s var(--bounce); }
.card__more:hover { transform: translateX(8px) rotate(-3deg); }

/* =========================================================
   LEVEL 3 想い
   ========================================================= */
.sec--about { background: var(--orange); color: var(--white); }
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__visual { position: relative; padding-top: 70px; }
.badge--about { position: absolute; left: 0; top: 0; margin: 0; }
.about__logo {
  display: block;
  width: min(100%, 560px);
  padding: 0;
  border: 0;
  background: none;
  transform: rotate(6deg);
  animation: aboutSway 4s ease-in-out infinite;
}
@keyframes aboutSway { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.about__logo:hover .ls-mouth { transform: scale(1.06, 1.3); }
.about__title { color: var(--white); font-size: clamp(32px, 4.1vw, 62px); }
.about__body { margin-top: 28px; font-size: clamp(16px, 1.4vw, 20px); line-height: 2; max-width: 34em; }
.about__quote {
  display: inline-block;
  margin-top: 40px;
  background: var(--yellow);
  color: var(--brown);
  border: 4px solid var(--brown);
  border-radius: 28px;
  padding: 24px 32px;
  font-family: var(--f-pop);
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.5;
  --r: 2deg;
  transform: rotate(2deg);
  box-shadow: 8px 8px 0 var(--brown);
}

/* =========================================================
   LEVEL 4 ご依頼の流れ
   ========================================================= */
.sec--flow { background: var(--cream); padding-bottom: clamp(80px, 12vw, 180px); }
.flow__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flow { position: relative; margin-top: clamp(60px, 8vw, 130px); }
.flow__path { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 220px; z-index: 0; overflow: visible; }
.flow__path path { animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -23; } }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.card--step {
  margin-top: max(0px, calc(var(--y) + 40px));
  padding: 28px 24px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.card--step:hover { transform: rotate(0) scale(1.05); }
.card--step:hover .face { animation: faceShake .12s linear 6 alternate; }
.face--step { --fs: calc(96px + var(--n, 1) * 14px); }
.step__no { background: var(--orange); color: var(--white); font-family: var(--f-en); font-weight: 700; font-size: 14px; line-height: 1.3; padding: 4px 12px; border-radius: 999px; }
.step__title { font-family: var(--f-pop); font-weight: 400; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; }
.step__body { font-weight: 400; font-size: 16px; line-height: 1.7; }

/* =========================================================
   MAX 笑いの予約
   ========================================================= */
.sec--contact { background: var(--orange); padding-bottom: clamp(80px, 9vw, 120px); }
.contact__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.face--contact { position: absolute; left: var(--x); top: var(--y); }
.face--bounce { animation: faceBounce 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes faceBounce {
  0%, 100% { transform: rotate(var(--r)) translateY(0) scale(1); }
  45% { transform: rotate(calc(var(--r) - 12deg)) translateY(-26px) scale(1.06, .96); }
  55% { transform: rotate(calc(var(--r) - 12deg)) translateY(-26px) scale(.98, 1.04); }
}
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact .badge { margin-bottom: 8px; }
.h-max { color: var(--white); text-shadow: 0 8px 0 rgba(61, 44, 46, .15); }
.contact__lead { margin-top: 16px; font-size: clamp(16px, 1.55vw, 22px); line-height: 1.6; }

.form {
  --r: 1deg;
  position: relative;
  margin-top: clamp(40px, 5vw, 60px);
  width: min(100%, 780px);
  text-align: left;
  background: var(--white);
  border: 5px solid var(--brown);
  border-radius: 40px;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 5vw, 56px);
  transform: rotate(1deg);
  box-shadow: 12px 12px 0 var(--brown);
  display: grid;
  gap: 22px;
}
.form.is-shake { animation: formShake .5s; }
@keyframes formShake {
  20% { transform: rotate(-2deg) translateX(-14px); }
  40% { transform: rotate(3deg) translateX(12px); }
  60% { transform: rotate(-1deg) translateX(-8px); }
  80% { transform: rotate(2deg) translateX(5px); }
}
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 17px; padding: 0; }
.field legend { margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%;
  font: 700 17px/1.5 var(--f-body);
  color: var(--brown);
  background: var(--cream);
  border: 3px solid var(--brown);
  border-radius: 16px;
  padding: 13px 16px;
  min-height: 56px;
  transition: transform .3s var(--bounce), background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(61, 44, 46, .35); }
.field input:focus, .field textarea:focus { outline: none; background: #FFFBEA; box-shadow: 0 0 0 4px var(--yellow); transform: rotate(-.6deg) scale(1.01); }
.field__err { display: none; color: #C2410C; font-size: 14px; }
.field.is-error input { border-color: #C2410C; background: #FFF0E6; }
.field.is-error .field__err { display: block; animation: capPop .4s var(--bounce); }

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 3px solid var(--brown);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: transform .3s var(--bounce), background-color .2s;
}
.choice label:hover { transform: rotate(-3deg) scale(1.05); }
.choice input:checked + label { background: var(--yellow); }
.choice input:checked + label::before { content: "✓"; }
.choice input:checked + label.is-pop { animation: chipPop .45s var(--bounce); }
@keyframes chipPop { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-6deg); } 100% { transform: scale(1); } }
.choice input:focus-visible + label { outline: 4px solid var(--brown); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__submit { display: flex; justify-content: center; padding-top: 8px; }
.btn {
  position: relative;
  border: 4px solid var(--brown);
  border-radius: 999px;
  padding: 18px 40px;
  font-family: var(--f-pop);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.3;
  box-shadow: 0 6px 0 var(--brown);
  transition: transform .25s var(--bounce), box-shadow .12s;
}
.btn span { display: inline-block; }
.btn--brown { background: var(--brown); color: var(--yellow); box-shadow: 0 6px 0 #1f1516; }
.btn--yellow { background: var(--yellow); color: var(--brown); }
.btn:hover { transform: translateY(-3px) rotate(-2deg) scale(1.05); }
.btn:hover span { animation: btnText .5s ease-in-out infinite alternate; }
@keyframes btnText { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.btn:active { transform: translateY(6px) scale(.97); box-shadow: 0 0 0 var(--brown); }
.btn[disabled] { opacity: .7; cursor: progress; }
.form__note { text-align: center; font-weight: 400; font-size: 13px; }
.form__status { text-align: center; font-size: 15px; min-height: 0; }
.form__status:empty { display: none; }

/* =========================================================
   フッター
   ========================================================= */
.footer { position: relative; overflow: hidden; background: var(--brown); color: var(--cream); padding-bottom: 48px; }
.footer__marquee { transform: rotate(2deg); margin: 0 -40px; padding-top: 10px; }
.footer__track { display: flex; width: max-content; animation: marquee 18s linear infinite; }
.footer__track span { font-family: var(--f-pop); font-size: clamp(80px, 10.4vw, 150px); line-height: 1.3; color: var(--orange); padding-right: .3em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: start; margin-top: -10px; }
.footer__brand img { width: clamp(210px, 22vw, 316px); height: auto; }
.footer__copy { margin-top: 16px; font-family: var(--f-pop); color: var(--yellow); font-size: clamp(18px, 1.8vw, 26px); }
.footer__nav { display: grid; gap: 14px; margin-right: clamp(0px, 10vw, 180px); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.footer__links a { text-decoration: none; display: inline-block; transition: transform .3s var(--bounce), color .2s; }
.footer__links a:hover { transform: translateY(-4px) rotate(-6deg); color: var(--yellow); }
.footer__links--sub { color: var(--yellow); }
.footer__small { grid-column: 1 / -1; margin-top: 60px; font-size: 14px; }
.face--footer { --fs: 90px; position: absolute; right: max(var(--gutter), 120px); bottom: 0; animation: faceBounce 1.4s ease-in-out infinite; cursor: pointer; pointer-events: auto; }

/* =========================================================
   笑いメーター（固定）
   ========================================================= */
.meter {
  position: fixed;
  z-index: 50;
  right: max(28px, env(safe-area-inset-right, 0px));
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(calc(100% + 80px), -50%);
  transition: transform .6s var(--bounce);
}
.meter.is-shown { transform: translate(0, -50%); }
.meter.is-boing .meter__cells { animation: meterBoing .7s var(--bounce); }
@keyframes meterBoing { 0% { transform: scale(1); } 30% { transform: scale(1.25, .82); } 60% { transform: scale(.9, 1.1); } 100% { transform: scale(1); } }
.face--meter { --fs: 46px; filter: drop-shadow(0 3px 0 rgba(61, 44, 46, .25)); }
.meter__cells {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 3px solid var(--brown);
  border-radius: 999px;
  padding: 5px 5px 5px;
  box-shadow: 0 4px 0 rgba(61, 44, 46, .25);
}
.meter__cells button {
  display: block;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--cream);
  transition: background-color .3s, transform .3s var(--bounce);
}
.meter__cells li:first-child button, .meter__cells li:last-child button { border-radius: 15px; }
.meter__cells button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.meter__cells button:hover { transform: scale(1.18); }
.meter__cells button.is-on { background: var(--yellow); }
.meter__cells button.is-on[data-goto="4"], .meter__cells button.is-on[data-goto="5"] { background: var(--orange); }
.meter__cells button.is-current { animation: cellBoing .6s var(--bounce); }
.meter__lv {
  font-family: var(--f-en);
  font-size: 12px;
  line-height: 1;
  background: var(--white);
  border: 3px solid var(--brown);
  border-radius: 999px;
  padding: 4px 8px;
}

/* レベルアップ表示 */
.levelup { position: fixed; z-index: 60; left: 50%; top: 22%; pointer-events: none; transform: translateX(-50%); }
.levelup__inner {
  display: grid;
  justify-items: center;
  background: var(--brown);
  color: var(--yellow);
  border: 4px solid var(--white);
  border-radius: 28px;
  padding: 12px 28px 14px;
  font-family: var(--f-pop);
  line-height: 1.2;
  transform: scale(0) rotate(-30deg);
  opacity: 0;
  box-shadow: 0 8px 0 rgba(61, 44, 46, .3);
}
.levelup__inner b { font-family: var(--f-en); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--white); }
.levelup__name { font-size: clamp(30px, 4vw, 48px); }
.levelup.is-show .levelup__inner { animation: levelUp 1.6s var(--bounce) forwards; }
@keyframes levelUp {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  18% { transform: scale(1.15) rotate(6deg); opacity: 1; }
  28% { transform: scale(1) rotate(-4deg); opacity: 1; }
  80% { transform: scale(1) rotate(-4deg); opacity: 1; }
  100% { transform: scale(.6) rotate(10deg) translateY(-40px); opacity: 0; }
}

/* 画面全体の「ハ」 */
.ha-layer, .fx-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.ha-layer { z-index: 5; }
.fx-layer { z-index: 70; }
.ha-amb {
  position: absolute;
  bottom: -120px;
  left: var(--x);
  font-family: var(--f-pop);
  font-size: var(--s);
  line-height: 1;
  color: var(--c);
  opacity: .9;
  text-shadow: 0 3px 0 rgba(61, 44, 46, .18);
  animation: ambUp var(--t) linear infinite;
  animation-delay: var(--d);
  will-change: transform;
}
@keyframes ambUp {
  0% { transform: translate(0, 0) rotate(-15deg); }
  25% { transform: translate(30px, -30vh) rotate(10deg); }
  50% { transform: translate(-20px, -60vh) rotate(-10deg); }
  75% { transform: translate(25px, -90vh) rotate(12deg); }
  100% { transform: translate(0, calc(-100vh - 200px)) rotate(-8deg); }
}
.ha-pop {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-pop);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(61, 44, 46, .22);
  will-change: transform, opacity;
}
body.is-quake main { animation: quake .5s linear; }
@keyframes quake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-6px, 3px) rotate(-.4deg); }
  40%, 60% { transform: translate(6px, -3px) rotate(.4deg); }
}

/* 送信完了 */
.thanks { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(61, 44, 46, .55); }
.thanks__card {
  width: min(100%, 520px);
  background: var(--yellow);
  border: 5px solid var(--brown);
  border-radius: 40px;
  box-shadow: 12px 12px 0 var(--brown);
  padding: 40px 32px 36px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  animation: slam .7s var(--bounce) both;
}
.face--thanks { --fs: 130px; animation: faceBounce 1s ease-in-out infinite; }
.thanks__title { font-family: var(--f-pop); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.35; }
.thanks__body { font-size: 16px; }
.thanks__demo { font-size: 13px; font-weight: 400; background: var(--white); border-radius: 12px; padding: 8px 12px; }
.thanks__close { margin-top: 8px; }

/* モバイルメニュー */
.mobile-menu { position: fixed; inset: 0; z-index: 90; overflow: hidden; background: var(--orange); display: grid; place-items: center; padding: 24px; }
.mobile-menu .sunburst { --sx: 50%; --sy: 50%; animation-duration: 40s; }
.mobile-menu__nav { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.mobile-menu__nav a {
  font-family: var(--f-pop);
  font-size: 28px;
  color: var(--brown);
  background: var(--white);
  text-decoration: none;
  padding: 10px 28px;
  border: 4px solid var(--brown);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--brown);
  transform: rotate(var(--r));
  animation: menuIn .5s var(--bounce) both;
}
.mobile-menu__nav a:nth-child(2) { animation-delay: .05s; }
.mobile-menu__nav a:nth-child(3) { animation-delay: .1s; }
.mobile-menu__nav a:nth-child(4) { animation-delay: .15s; }
.mobile-menu__nav a:nth-child(5) { animation-delay: .2s; }
.mobile-menu__nav a.is-cta { background: var(--brown); color: var(--yellow); }
@keyframes menuIn { from { transform: translateY(40px) rotate(20deg) scale(.4); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }
.mobile-menu__ha { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%) rotate(-6deg); font-family: var(--f-pop); font-size: 64px; color: var(--yellow); z-index: 1; }

/* =========================================================
   タブレット
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav { margin-right: 0; gap: 12px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .card--step { margin-top: 0; }
  .steps .card:nth-child(even) { margin-top: 60px; }
  .flow__path { display: none; }
}

/* =========================================================
   スマホ
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 24px; }

  .site-header { z-index: 92; position: absolute; padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
  .site-nav { display: none; }
  .menu-btn {
    position: fixed;
    z-index: 95;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--brown);
    box-shadow: 0 4px 0 rgba(61, 44, 46, .3);
    transition: transform .4s var(--bounce);
  }
  .menu-btn > span:not(.sr) { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--yellow); transition: transform .35s var(--bounce), opacity .2s; }
  .menu-btn[aria-expanded="true"] { transform: rotate(180deg); }
  .menu-btn[aria-expanded="true"] > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { min-height: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 100px); padding-bottom: 32px; }
  .hero__t1 { font-size: clamp(56px, 17vw, 84px); }
  .hero__t2 { font-size: clamp(38px, 12vw, 60px); padding: 4px 12px 6px; margin-left: -4px; }
  .hero__lead { font-size: 15px; }
  .hero__lead br { display: none; }
  .hero__visual { position: relative; right: auto; top: auto; width: 82%; margin: 8px -8% 0 auto; }
  .laugh-btn { left: -24%; top: 46%; width: 128px; font-size: 18px; }
  .hero__bottom { display: none; }
  .hero .ha--float:nth-child(2), .hero .ha--float:nth-child(3) { display: none; }
  .hero .ha--float:nth-child(1) { --x: 84% !important; --y: 52% !important; --s: 80px !important; }
  .hero .ha--float:nth-child(4) { --x: 10% !important; --y: 56% !important; --s: 56px !important; --c: var(--yellow) !important; }
  .hero .ha--float:nth-child(5) { --x: 74% !important; --y: 86% !important; --s: 56px !important; }

  .sec__head { align-items: center; gap: 12px; }
  .sec--worries .h-xl { font-size: clamp(28px, 8.4vw, 40px); }
  .big-face { margin: 0; }
  .face--xl { --fs: 80px; }
  .big-face__cap { font-size: 12px; white-space: nowrap; }
  .big-face--services .ha { display: none; }

  .worries, .services { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .worries .card:nth-child(2), .services .card:nth-child(2) { margin-top: 0; }
  .card--worry { padding: 27px; border-radius: 32px; }
  .card__tag { font-size: 16px; }
  .face--sm { --fs: 41px; }
  .card__text { font-size: 18px; margin-top: 8px; }
  .punch { margin-top: 32px; }
  .punch__text { font-size: 24px; }
  .punch__hint { display: none; }

  .card--service { border-radius: 32px; gap: 10px; box-shadow: 7px 7px 0 var(--brown); }
  .card__num { font-size: 40px; }
  .card__body { font-size: 15px; }
  .chips { display: none; }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about__visual { padding-top: 64px; }
  .about__logo { width: 76%; margin-inline: auto; }
  .about__visual .ha--giggle { font-size: 30px; }
  .about__quote { margin-top: 24px; padding: 20px 24px; }

  .flow { margin-top: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps .card:nth-child(even) { margin-top: 0; }
  .card--step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; padding: 22px; gap: 4px 16px; border-radius: 28px; }
  .card--step .face { --fs: calc(56px + var(--n, 1) * 7px); grid-row: span 3; }
  .step__no { font-size: 12px; }
  .step__title { font-size: 20px; }
  .step__body { font-size: 14px; }
  .flow__deco .ha { font-size: 34px; }
  .flow__deco .ha:nth-child(1), .flow__deco .ha:nth-child(2) { display: none; }

  .contact__deco .face--contact { display: none; }
  .contact__deco .ha { font-size: 44px; }
  .contact__deco .ha:nth-child(n+3) { display: none; }
  .contact__deco .ha:nth-child(1) { --x: 3% !important; --y: 1.5% !important; font-size: 36px; }
  .contact__deco .ha:nth-child(2) { --x: 68% !important; --y: 2% !important; font-size: 34px; }
  .form { border-radius: 32px; box-shadow: 8px 8px 0 var(--brown); gap: 16px; }
  .field label, .field legend { font-size: 15px; }
  .field input, .field textarea { min-height: 48px; padding: 10px 14px; }
  .choice label { font-size: 14px; padding: 7px 14px; }

  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .card__catch { font-size: 15px; }
  .footer__marquee { transform: rotate(-3deg); margin-top: 24px; }
  .footer__track span { font-size: 64px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .footer__nav { margin: 0; }
  .footer__links { gap: 8px 16px; font-size: 14px; }
  .footer__small { margin-top: 16px; font-size: 13px; }
  .face--footer { --fs: 70px; right: 24px; bottom: auto; top: 40px; }

  /* メーターは画面下に固定・横向き */
  .meter {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: min(346px, calc(100% - 32px));
    flex-direction: row;
    gap: 6px;
    transform: translate(-50%, 0);
  }
  .meter.is-shown { transform: translate(-50%, 0); }
  .face--meter { --fs: 40px; }
  .meter__lv { display: none; }
  .meter__cells { flex: 1; flex-direction: row-reverse; gap: 0; padding: 3px; overflow: hidden; }
  .meter__cells li { flex: 1; }
  .meter__cells button, .meter__cells li:first-child button, .meter__cells li:last-child button { width: 100%; height: 34px; border-radius: 0; background: transparent; display: grid; place-items: center; }
  .meter__cells li:first-child button { border-radius: 0 999px 999px 0; }
  .meter__cells li:last-child button { border-radius: 999px 0 0 999px; }
  .meter__cells button span { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 11px; line-height: 1; white-space: nowrap; }
  .meter__cells button.is-on[data-goto="4"], .meter__cells button.is-on[data-goto="5"] { color: var(--white); }
  .levelup { top: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   動きを減らす設定
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .ha-layer, .fx-layer, .levelup { display: none; }
}
