/* B1: Aの配置と形を保ち、色・書体・動きだけを変更する。 */
:root {
  --mt-blue: var(--bay-blue);
  --mt-blue-kv: var(--bay-blue);
  --mt-text: var(--bay-text);
  --mt-black: var(--bay-text);
  --mt-orange: var(--bay-blue-bright);
  --mt-yellow: var(--bay-yellow);
  --mt-yellow-deep: var(--bay-yellow);
  --mt-sky: var(--bay-blue-bright);
  --mt-button: var(--bay-blue);
  --mt-icon-box: var(--bay-blue-bright);
  --mt-cyan: var(--bay-blue);
  --mt-navy: var(--bay-blue);
  --mt-cta-text: var(--bay-text);
  --mt-muted: var(--bay-blue-bright);
  --mt-footer: var(--bay-blue);
  --mt-white: var(--bay-white);
  --mt-card: var(--b-card);
  --mt-line: var(--bay-blue);
  --mt-power-cyan: var(--bay-blue);
  --mt-power-cyan-sp: var(--bay-blue);
  --mt-power-ring: var(--bay-gold);
  --mt-sample: var(--b-sample);
  --mt-border: var(--bay-ground);
  --mt-bubble-line: var(--bay-ground);
  --mt-bubble-outline: var(--bay-blue-bright);
  --b-blue-faint: color-mix(in srgb, var(--bay-blue) 9%, var(--bay-white));
  --b-cyan-faint: color-mix(in srgb, var(--bay-cyan) 10%, var(--bay-white));
  --b-yellow-faint: color-mix(in srgb, var(--bay-yellow) 9%, var(--bay-white));
  --b-blue-dust: color-mix(in srgb, var(--bay-blue-bright) 6%, var(--bay-white));
  --mt-pattern-lavender: var(--b-blue-faint);
  --mt-pattern-blue: var(--b-blue-dust);
  --mt-pattern-sky: var(--b-cyan-faint);
  --mt-pattern-cyan: var(--b-yellow-faint);
  --mt-pattern-dot: var(--b-blue-dust);
  --mt-pattern-dot-small: var(--b-cyan-faint);
  --mt-pattern-faint: var(--b-yellow-faint);
  --mt-explore-halo: color-mix(in srgb, var(--bay-cyan) 14%, transparent);
  --b-font: "Zen Kaku Gothic New", sans-serif;
}
body { font-family: var(--b-font); font-weight: 500; }
h1, h2, h3, .eyebrow, .extra-bold, .kv-eyebrow, .jack-copy { font-weight: 900; font-style: normal; }
.feature h2, .returns h2, .eyebrow { font-style: normal; font-weight: 900; }
.eyebrow { font-family: "Roboto Flex", sans-serif; font-variation-settings: "wdth" 135; color: var(--bay-blue-bright); }
.kv-copy em, .power-line em {
  color: var(--bay-blue-bright);
  background: linear-gradient(transparent 60%, var(--bay-yellow) 60%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.power-line em { font-weight: 900; text-shadow: 0 calc(1 * var(--u)) var(--bay-white); }
.power { background: var(--bay-blue); }
.power-two { background: var(--bay-blue-bright); }
.power-three { background: var(--bay-slate); }
.returns { background: var(--bay-blue); }
.kv-cta a { box-shadow: 0 calc(8 * var(--u)) 0 var(--bay-gold); }
.kv-cta a:hover { box-shadow: 0 calc(4 * var(--u)) 0 var(--bay-gold); }
.detail-button svg, .return-link svg, .spaces-heading svg { color: var(--bay-yellow); }
.return-link > span, .spaces-heading a > span { background: var(--bay-blue); }
a, button { transition-timing-function: var(--ease-out-soft); }
.detail-button, .audience-card, .kv-cta a { transition-duration: .25s; }
a:focus-visible, button:focus-visible { outline-color: var(--bay-blue-bright); }

/* 写真フレームは元画像と同じ座標と比率。JSなしではそのまま表示。 */
.b-sample-labels { position: absolute; inset: 0; }
.b-photo { position: relative; display: block; min-width: 0; overflow: hidden; isolation: isolate; }
.b-photo-image { position: relative; display: block; overflow: hidden; }
.b-photo img { position: relative; width: 100%; height: auto; }
.sample-stage .b-photo { position: absolute; }
.sample-stage .b-photo img { position: relative; inset: auto; width: 100%; }
.jack-plan > .b-photo { width: 100%; }
.b-photo::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bay-blue); pointer-events: none; clip-path: polygon(0 0, 0 0, -80% 100%, 0 100%); }

/* main.jsは併用。本文の出現は専用Observerで一度だけ制御する。 */
.js [data-reveal].reveal-pending { opacity: 1; transform: none; }
.b-motion [data-b-motion] { transition: none; }
.b-motion [data-b-motion].b-pending { opacity: 0; }
.b-motion [data-b-motion].b-seen { animation: b-up .8s var(--ease-out-soft) .3s both; }
.b-motion [data-b-motion="heading"].b-seen { animation: b-right 1s var(--ease-out-soft) .3s both; }
.b-motion [data-b-motion="label"].b-seen { animation: b-up .8s var(--ease-out-soft) 1.6s both; }
.b-motion [data-b-motion="photo"].b-seen { animation: none; opacity: 1; }
.b-motion .b-photo.b-seen::before { animation: b-photo-board 2.1s var(--ease-out-soft) both; }
/* めくる枠と拡大する画像を分け、斜めの境界に隙間を作らない。 */
.b-motion .b-photo.b-seen > .b-photo-image { animation: b-photo-open 2.1s var(--ease-out-soft) both; }
.b-motion .b-photo.b-seen img { animation: b-photo-zoom 1.6s var(--ease-out-soft) 1s both; }
.b-motion [data-b-motion="character"].b-seen { animation: b-pop .6s var(--ease-pop) .5s both; }
.b-motion [data-b-motion="bubble"].b-seen { animation: b-bubble .6s var(--ease-pop) 1s both; }
.js .kv-ready .kv-copy, .js .kv-ready .power-title { animation: b-right 1s var(--ease-out-soft) .3s both; }
.js .kv-ready .kv-logo { animation: b-right 1s var(--ease-out-soft) .5s both; }
.js .kv-ready .power { animation-duration: .8s; }
@keyframes b-up { from { opacity: 0; translate: 0 45px; } to { opacity: 1; translate: 0 0; } }
@keyframes b-right { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes b-pop { from { opacity: 0; translate: 0 45px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes b-bubble { from { opacity: 0; translate: 0 20px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes b-photo-board {
  0% { clip-path: polygon(0 0, 0 0, -80% 100%, -80% 100%); }
  47% { clip-path: polygon(0 0, 180% 0, 100% 100%, -80% 100%); }
  100% { clip-path: polygon(180% 0, 180% 0, 100% 100%, 100% 100%); visibility: hidden; }
}
@keyframes b-photo-open {
  0%, 47% { clip-path: polygon(0 0, 0 0, -80% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 180% 0, 100% 100%, 0 100%); }
}
@keyframes b-photo-zoom { from { scale: 1.25; } to { scale: 1; } }
@media (max-width: 767px) {
  .power { background: var(--bay-blue); }
  .power-two { background: var(--bay-blue-bright); }
  .power-three { background: var(--bay-slate); }
  .jack-plan > .b-photo { margin-bottom: 20px; }
  /* 極太書体でも320px内に収める。配置や形はAのまま。 */
  .benefit h3 { font-size: clamp(20px, 6.3vw, 25.5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .b-motion [data-b-motion].b-pending, .js .kv-enter { opacity: 1; translate: none; scale: none; }
  .b-photo-image { clip-path: none; }
}

/* 本文の英数字は周囲の書体・太さを継承。極太欧文は見出しに限定する。 */
.b-latin { font: inherit; font-variation-settings: inherit; }
:is(h1, h2, h3, .eyebrow, .b-section-en, .power strong) .b-latin {
  font-family: "Roboto Flex", sans-serif; font-weight: inherit; font-variation-settings: "wdth" 125;
}
