/* Yukiguni LP: 白 / 紺 / 水色 / 青。見出し・数字・帯は Noto Sans JP 900、本文は OS 標準 + Manrope。 */

:root {
  --navy: #102236;
  --navy-deep: #0a1726;
  --sky: #7dd3f5;
  --sky-pale: #c4ecfb;
  --blue: #1671c0;
  --ice: #eaf6fc;
  --ink: #0d1520;
  --ink-soft: #33475c;
  --rule: rgba(16, 34, 54, 0.22);
  --green: #24935a;
  --gutter: clamp(20px, 5vw, 48px);
  --content: 1120px;
  --sp: clamp(4.5rem, 12vw, 8rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: 'Noto Sans JP', 'Display Fallback', sans-serif;
}

/* Web フォント到着前も見出しが細字にならないよう、OS の極太ゴシックを代替にする */
@font-face {
  font-family: 'Display Fallback';
  src:
    local('HiraginoSans-W9'), local('HiraginoSans-W8'), local('HiraginoSans-W7'),
    local('YuGothic-Bold'), local('Meiryo-Bold'), local('Arial-BoldMT');
  /* Noto Sans JP の縦メトリクス(ascender 1.16 / descender 0.288)に合わせ、差し替え時の文字のずれを防ぐ */
  ascent-override: 116%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}

/* en 本文: Manrope 到着前後で行数が変わらないよう、字幅を合わせた代替 */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('HelveticaNeue'), local('Helvetica Neue'), local('ArialMT'), local('Arial');
  size-adjust: 104%;
  ascent-override: 102%;
  descent-override: 29%;
  line-gap-override: 0%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    Manrope, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo,
    sans-serif;
  font-weight: 500;
  line-height: 1.7;
  text-wrap: pretty;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

/* 和文は <wbr> を入れた文節の切れ目でだけ改行する(Safari を含むすべてのブラウザで同じ折れ方) */
html:lang(ja) body {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--sky);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.hero-bar :focus-visible,
.tale :focus-visible,
.footer :focus-visible {
  outline-color: var(--sky);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.display {
  font-family: var(--display);
  font-weight: 900;
  font-synthesis: none;
  letter-spacing: -0.02em;
}

.display strong,
.display em {
  font-weight: inherit;
}

.nb {
  display: inline-block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-size: clamp(2.1rem, 8.8vw, 4rem);
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}

/* ダウンロード導線: バッジ(公式アートは改変しない)を、アイコン・名前・料金表記・QR とひとまとまりにする */
.get {
  display: grid;
  align-items: center;
  gap: 0.5rem 1rem;
}

.get-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 6px 14px -6px rgba(10, 23, 38, 0.5);
}

.get-name {
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.get-note {
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.get-qr {
  display: none;
  width: 96px;
  height: 96px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
}

@media (min-width: 960px) {
  .get-qr {
    display: block;
  }
}

/* ヒーロー: バッジ + 料金表記(+ PC は QR) */
.get-hero {
  grid-template-columns: auto;
  justify-content: start;
  justify-items: start;
  margin-top: clamp(1.5rem, 6vw, 2.75rem);
}

.get-hero .get-note {
  color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 960px) {
  .get-hero {
    grid-template-columns: auto auto;
    column-gap: 1.25rem;
    width: fit-content;
    padding: 1rem 1rem 1rem 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
  }

  .get-hero .badge {
    grid-column: 1;
  }

  .get-hero .get-note {
    grid-column: 1;
  }

  .get-hero .get-qr {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* 中間・最終: アプリの「入手」カード */
.get-card {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: clamp(1.25rem, 5vw, 1.75rem);
  border-radius: 22px;
}

.get-card .badge {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.5rem;
}

.get-dark {
  background: var(--navy);
  color: #fff;
}

.get-dark .get-note {
  color: var(--sky-pale);
}

.get-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.7);
}

.get-light .get-note {
  color: var(--ink-soft);
}

.get-light .get-qr {
  padding: 0;
}

@media (min-width: 760px) {
  .get-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    column-gap: 1.25rem;
    padding: 1.5rem 1.75rem;
  }

  .get-card .get-icon {
    width: 72px;
    height: 72px;
  }

  .get-card .badge {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }
}

@media (min-width: 960px) {
  .get-card {
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
  }

  .get-card .get-qr {
    grid-column: 4;
    grid-row: 1;
  }
}

.badge {
  display: inline-block;
  border-radius: 10px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.badge img {
  width: auto;
  height: 56px;
}

@media (min-width: 960px) {
  .badge img {
    height: 64px;
  }
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(16, 34, 54, 0.55);
}

.badge:active {
  transform: translateY(0) scale(0.98);
}

/* 3-1 ファーストビュー: 全面にゲームの 3D モデルで撮った夕景のスキー場(marketing/lp/render-scene.sh)。参考: Alto's Odyssey */
.hero {
  position: relative;
  overflow: hidden;
  background: #102a46;
  color: #fff;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 100%;
}

@media (max-width: 759px) {
  .hero-bg img {
    object-position: 50% 100%;
  }
}

/* 見出しのコントラスト用に、上と左を暗くする */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 26, 46, 0.72) 0%,
      rgba(12, 26, 46, 0.35) 42%,
      rgba(12, 26, 46, 0) 62%
    ),
    linear-gradient(90deg, rgba(12, 26, 46, 0.55) 0%, rgba(12, 26, 46, 0) 55%);
}

.hero-bar,
.hero-body,
.hero-visual,
.hero-note {
  z-index: 1;
}

.hero-note {
  position: absolute;
  right: var(--gutter);
  bottom: 8px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(0.875rem, 3.6vw, 0.9375rem);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.brand img {
  border-radius: 9px;
}

/* 言語切替: 現在の言語が塗りで分かるトグル */
.lang-toggle {
  display: flex;
  padding: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.lang-toggle a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 38px;
  padding-inline: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s;
}

.lang-toggle a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle a[aria-current='page'] {
  background: #fff;
  color: var(--navy);
}

.hero-body {
  position: relative;
  z-index: 1;
  padding-top: clamp(1.25rem, 6vw, 4rem);
}

.hero-lead {
  min-height: calc(2 * 1.7em);
  max-width: 30em;
  text-wrap: balance;
  font-weight: 800;
  font-size: clamp(1rem, 4.1vw, 1.375rem);
  line-height: 1.7;
  color: #fff;
}

.hero h1 {
  margin-top: 0.4em;
  white-space: nowrap;
  font-size: clamp(2.3rem, 10.1vw, 4.6rem);
  line-height: 1.24;
}

.hero h1 em {
  font-style: normal;
  color: var(--sky);
}

/* 右(モバイルは下)のビジュアル: 雪山の面 + iPhone 枠の実機画面 + 枠からはみ出す主人公 */
.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 520px;
  margin-top: 2rem;
  padding: 72px 0 32px;
}

.hero-snow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.5px);
  background-size:
    90px 90px,
    56px 56px;
  background-position:
    0 0,
    23px 31px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-snow {
    animation: snowfall 14s linear infinite;
  }
}

@keyframes snowfall {
  to {
    background-position:
      30px 270px,
      43px 199px;
  }
}

.hero-phone {
  width: 250px;
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 46vw);
    grid-template-rows: auto 1fr;
    min-height: min(100svh, 860px);
  }

  .hero-bar {
    grid-row: 1;
    grid-column: 1 / -1;
    width: min(100% - 2 * var(--gutter), 1440px);
  }

  .hero-body {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    margin: 0 0 0 max(var(--gutter), (100vw - 1440px) / 2);
    padding-block: 1rem 5rem;
  }

  .hero-body {
    container-type: inline-size;
  }

  /* 列幅に収める: ja の最長行「描いたコースが、」8 字 / en「Ride the slope.」 */
  .hero h1 {
    font-size: min(11.5cqi, 5.2rem);
  }

  :lang(en) .hero h1 {
    font-size: min(13cqi, 5.2rem);
  }

  .hero-visual {
    grid-row: 2;
    grid-column: 2;
    height: auto;
    margin: 0;
    padding-bottom: 6vh;
    place-items: center;
  }

  .hero-phone {
    width: 320px;
  }
}

/* 3-2 数字で見る規模 */
.stats {
  position: relative;
  padding-block: var(--sp) clamp(6.5rem, 16vw, 11rem);
  background: #fff;
  overflow: hidden;
}

.yama {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max(100%, 760px);
  height: auto;
  max-width: none;
  aspect-ratio: 1200 / 640;
  transform: translateX(-50%);
  color: #d4dbe4;
}

.stats .wrap {
  position: relative;
}

.stats-title {
  text-align: center;
  font-size: clamp(1.5rem, 5.6vw, 2.25rem);
  color: var(--navy);
}

.stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(2rem, 6vw, 3.5rem);
}

.lifts {
  margin: clamp(2.5rem, 7vw, 4rem) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

.lifts img {
  width: 900px;
  max-width: none;
  height: auto;
}

@media (min-width: 1040px) {
  .lifts {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .lifts img {
    width: 100%;
  }
}

/* 20 の山のアイコン列(数字「20」の実体) */
.maps {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px 4px;
  max-width: 720px;
  margin: clamp(2rem, 6vw, 3rem) auto 0;
}

.maps img {
  width: 100%;
  height: auto;
}

.stats-list li {
  padding: 1.5rem 0.25rem 1.75rem;
  text-align: center;
}

.stats-list li:nth-child(odd) {
  border-right: 1px solid var(--rule);
}

.stats-list li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--rule);
}

.num {
  display: block;
  font-size: clamp(4.25rem, 19vw, 7.5rem);
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.num-label {
  display: block;
  margin-top: 0.85rem;
  font-weight: 800;
  font-size: clamp(0.8125rem, 3.4vw, 1.0625rem);
  line-height: 1.55;
  color: var(--navy);
}

@media (min-width: 760px) {
  .stats-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-list li {
    border-bottom: 0 !important;
    border-right: 1px solid var(--rule);
    padding: 0.5rem 1.5rem;
  }

  .stats-list li:last-child {
    border-right: 0;
  }
}

/* 3-2a 流れる文字帯 */
.band {
  overflow: hidden;
  padding-block: clamp(0.9rem, 2.6vw, 1.5rem);
}

.band-track {
  display: flex;
  width: max-content;
  font-size: clamp(2.25rem, 8.4vw, 4.75rem);
  line-height: 1.15;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
}

.band-track span {
  padding-inline: 0.28em;
}

.band-sky {
  background: var(--sky);
  color: var(--navy);
}

.band-sky .o {
  color: var(--sky);
  -webkit-text-stroke: 4px var(--navy);
  paint-order: stroke fill;
}

.band-navy {
  background: var(--navy);
  color: var(--sky);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.band-navy .band-track {
  animation-direction: reverse;
}

.band-navy .w {
  color: #fff;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 3-2b 読ませる語り */
.tale {
  padding-block: var(--sp);
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.tale p {
  max-width: 22em;
  margin-inline: auto;
  font-weight: 800;
  font-size: clamp(1.25rem, 5.3vw, 2.35rem);
  line-height: 1.6;
  text-wrap: balance;
}

.tale p + p {
  margin-top: clamp(1.1rem, 3.6vw, 2rem);
}

.tale strong {
  color: var(--sky);
}

.tale p.tale-turn {
  margin-block: clamp(2.25rem, 7vw, 4rem);
  font-size: clamp(2.75rem, 13vw, 6rem);
  font-weight: 900;
  line-height: 1.15;
}

.js-reveal .reveal {
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
}

.js-reveal .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(8px);
}

/* 3-3 一番の特徴 */
.feature {
  padding-block: var(--sp);
  background: #fff;
}

.feature-text {
  container-type: inline-size;
}

/* 1 行の最長(ja「指でなぞれば、」7 字)が列幅に収まるサイズにする。はみ出すと句読点だけが次行に落ちる */
.feature h2 {
  font-size: clamp(1.8rem, 13cqi, 4rem);
  line-height: 1.28;
  color: var(--navy);
}

.feature h2 em {
  font-style: normal;
  color: var(--blue);
}

.feature-text p {
  max-width: 32em;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: clamp(1rem, 3.9vw, 1.125rem);
  line-height: 1.95;
}

.run {
  white-space: nowrap;
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.24em;
  text-decoration-skip-ink: none;
}

.run-black {
  text-decoration-color: var(--ink);
}

.run-green {
  text-decoration-color: var(--green);
}

/* 3-3 左: 本文の図解。山頂から麓へ、上級(黒)はまっすぐ急、初級(緑)はくねくね。色はゲーム内のコース色 */
.runs-fig {
  position: relative;
  margin: 2rem 0 0;
}

.runs-fig svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-snowfield {
  fill: #f5fafd;
  stroke: none;
}

.runs-line {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runs-edge {
  stroke: #fff;
  stroke-width: 14;
}

.runs-black {
  stroke: #1c1c1c;
}

.runs-green {
  stroke: #4caf50;
}

.runs-tap circle:first-child {
  fill: rgba(22, 113, 192, 0.2);
}

.runs-tap circle:last-child {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 3;
}

/* 狭い画面では木を間引いて線を潰さない */
@media (max-width: 559px) {
  .tree-dense {
    display: none;
  }
}

/* コース看板: 標識ポール + プレート(難易度の記号付き) */
.runs-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.55em;
  border: 2px solid #fff;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(16, 34, 54, 0.25);
  font-weight: 800;
  font-size: clamp(0.75rem, 3.2vw, 0.875rem);
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  transform: translate(-50%, -100%);
}

.runs-label::before {
  content: '';
  flex: none;
  width: 0.7em;
  height: 0.7em;
  background: #fff;
}

.runs-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 3px;
  height: clamp(14px, 4vw, 22px);
  margin-left: -1.5px;
  background: #5f7286;
}

.runs-label-black {
  top: 52%;
  left: 37%;
  background: #1c1c1c;
}

.runs-label-black::before {
  transform: rotate(45deg) scale(0.85);
}

.runs-label-green {
  top: 50%;
  left: 85%;
  background: #2e7d32;
}

.runs-label-green::before {
  border-radius: 50%;
}

/* JS が動き、動きを減らす設定でないときだけ、見えたら上から下へ描く */
.js-draw .runs-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.45, 0, 0.2, 1);
}

.js-draw .runs-edge-green,
.js-draw .runs-green {
  transition-delay: 0.5s;
  transition-duration: 2s;
}

.js-draw .runs-label,
.js-draw .runs-tap {
  opacity: 0;
  transition: opacity 0.5s;
}

.js-draw .runs-label-black {
  transition-delay: 1.4s;
}

.js-draw .runs-label-green {
  transition-delay: 2.3s;
}

.js-draw .runs-fig.is-drawn .runs-line {
  stroke-dashoffset: 0;
}

.js-draw .runs-fig.is-drawn .runs-label,
.js-draw .runs-fig.is-drawn .runs-tap {
  opacity: 1;
}

/* iPhone の枠(画像なし・CSS のみ)。画面はステータスバー分(上端 140px 相当)を黒帯にして Dynamic Island を置く */
.iphone {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
}

.iphone-body {
  position: relative;
  padding: 3.4cqi;
  border-radius: 15.5cqi;
  background: #0b0d11;
  box-shadow:
    inset 0 0 0 0.9cqi #3a4250,
    inset 0 0 0 1.3cqi #11151b,
    0 1px 0 0.4cqi #5d6776,
    0 32px 56px -26px rgba(5, 12, 22, 0.7);
}

/* 側面ボタン: 左にアクション+音量 2 つ、右に電源。枠の外にわずかに出す */
.iphone-body::before {
  content: '';
  position: absolute;
  inset: 0 -1.1cqi;
  z-index: -1;
  background:
    linear-gradient(#4a5361, #4a5361) left 0 top 17% / 1.6cqi 5.5cqi no-repeat,
    linear-gradient(#4a5361, #4a5361) left 0 top 25% / 1.6cqi 10cqi no-repeat,
    linear-gradient(#4a5361, #4a5361) left 0 top 36% / 1.6cqi 10cqi no-repeat,
    linear-gradient(#4a5361, #4a5361) right 0 top 29% / 1.6cqi 16cqi no-repeat;
  border-radius: 2cqi;
}

/* Dynamic Island */
.iphone-body::after {
  content: '';
  position: absolute;
  top: 6.4cqi;
  left: 50%;
  z-index: 2;
  width: 30cqi;
  height: 8.6cqi;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}

.iphone-screen {
  position: relative;
  display: flex;
  margin: 0;
  overflow: hidden;
  padding-top: 12.6cqi;
  border-radius: 12.4cqi;
  background: #1a1f27;
  aspect-ratio: 600 / 1385;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone .iphone-screen img {
  flex: 0 0 100%;
}

.slider {
  display: grid;
  grid-template-columns: 44px minmax(0, auto) 44px;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  row-gap: 1rem;
  margin-top: 2.75rem;
}

.slider-frame {
  grid-column: 2;
  width: min(56vw, 300px);
}

.slider-track {
  display: flex;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track:focus-visible {
  outline-offset: -4px;
}

.slider-track li {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.slider-track img {
  width: 100%;
  height: auto;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 20px -10px rgba(16, 34, 54, 0.6);
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease),
    opacity 0.2s;
}

.slider-btn svg {
  width: 22px;
  height: 22px;
}

.slider-btn:hover:not(:disabled) {
  background: var(--blue);
}

.slider-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.slider-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.slider-btn[hidden],
.slider-dots[hidden] {
  display: none;
}

.slider-prev {
  grid-column: 1;
  grid-row: 1;
}

.slider-next {
  grid-column: 3;
  grid-row: 1;
}

.slider-dots {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 4px;
}

.slider-dots button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slider-dots button::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(16, 34, 54, 0.25);
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.slider-dots button[aria-current='true']::before {
  background: var(--blue);
  transform: scale(1.3);
}

@media (min-width: 960px) {
  .feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4.5rem;
  }

  .slider {
    margin: 0;
  }
}

/* 3-4 遊び方 */
.steps {
  padding-block: var(--sp);
  background: var(--ice);
}

.steps-list {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  border-top: 2px solid var(--navy);
}

.steps-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.step-n {
  grid-row: span 2;
  min-width: 0.75em;
  font-size: clamp(3.25rem, 15vw, 5rem);
  line-height: 0.95;
  color: var(--ice);
  -webkit-text-stroke: 4px var(--blue);
  paint-order: stroke fill;
}

.steps-list h3 {
  font-size: clamp(1.6rem, 7.2vw, 2.4rem);
  line-height: 1.25;
  color: var(--navy);
}

.steps-list p {
  margin-top: 0.4rem;
  font-weight: 600;
  line-height: 1.75;
}

.step-shot {
  grid-column: 2;
  max-width: 340px;
  margin-top: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 16px 28px -18px rgba(16, 34, 54, 0.55);
}

.step-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.step-shot-chip {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1b3553, var(--navy));
}

.step-shot-chip img {
  width: 86%;
  height: auto;
  border-radius: 12px;
}

.cta-mid {
  max-width: 900px;
  margin: clamp(3rem, 10vw, 5rem) auto 0;
}

@media (min-width: 900px) {
  .steps-list {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
  }

  .steps-list li {
    grid-row: span 4;
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    row-gap: 0.75rem;
    padding: 2rem 1.5rem 2.25rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }

  .steps-list li:last-child {
    border-right: 0;
  }

  .step-n {
    grid-row: auto;
  }

  .step-shot {
    grid-column: auto;
    max-width: none;
    margin-top: 0.5rem;
  }

  .steps-list h3 {
    white-space: nowrap;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  }
}

/* 3-2c 大きな文字のマス目: 画面幅いっぱいの紺の罫で区切る。四隅は同じ文字の大きさ、中央だけ大きく */
.bento {
  background: var(--navy);
  border-block: 2px solid var(--navy);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    'tl tr'
    'c c'
    'bl br';
  gap: 2px;
}

.cell {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(150px, 44vw, 300px);
  margin: 0;
  padding: clamp(1.1rem, 5vw, 2.5rem);
  overflow: hidden;
  background: #fff;
  color: var(--navy);
}

.fit {
  white-space: nowrap;
}

/* 四隅の主役の文字は同じ大きさ(マスの幅に比例) */
.cell-tl .fit,
.cell-tr .fit,
.cell-bl p,
.echo,
.br-big {
  font-size: min(17cqi, 3.75rem);
  line-height: 1.15;
}

.cell-tl {
  grid-area: tl;
  justify-content: center;
}

.cell-tr {
  grid-area: tr;
  justify-content: center;
  background: var(--blue);
  color: #fff;
}

.bang {
  display: block;
  margin-top: -0.1em;
  color: var(--sky);
  font-size: 1.7em;
  line-height: 1;
  text-align: right;
}

.cell-c {
  grid-area: c;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3rem, 12vw, 5rem);
  text-align: center;
}

.cell-c h2 {
  font-size: min(9.4cqi, 4rem);
  line-height: 1.45;
}

.cell-c mark {
  display: inline-block;
  margin-top: 0.2em;
  padding: 0.02em 0.2em 0.08em;
  background: linear-gradient(90deg, var(--sky), var(--sky-pale));
  color: var(--navy);
}

.cell-bl {
  grid-area: bl;
  align-items: flex-start;
  justify-content: center;
  background: var(--sky);
}

.echo {
  display: block;
  color: var(--sky);
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
}

.cell-br {
  grid-area: br;
  justify-content: center;
}

.br-small {
  font-weight: 900;
  font-size: min(8.5cqi, 1.5rem);
  line-height: 1.5;
  white-space: nowrap;
}

.br-big {
  align-self: flex-start;
  margin-top: 0.15em;
  padding-bottom: 0.12em;
  border-bottom: 0.12em solid var(--blue);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      'tl c tr'
      'bl c br';
  }

  .cell {
    min-height: clamp(260px, 22vw, 340px);
    padding: clamp(1.75rem, 2.6vw, 2.75rem);
  }

  .cell-c {
    padding-inline: clamp(2.5rem, 6vw, 6rem);
  }

  .cell-c h2 {
    font-size: min(8.6cqi, 4rem);
  }
}

/* 3-5 3 つの楽しみ方 */
.ways {
  padding-block: var(--sp);
  background: var(--blue);
  color: #fff;
}

.ways .section-title {
  color: #fff;
}

.ways-list {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  border-bottom: 2px solid #fff;
}

.ways-list li {
  display: grid;
  gap: 0.6rem;
  padding-block: 1.75rem 2rem;
  border-top: 2px solid #fff;
}

.ways-list h3 {
  font-size: clamp(2.1rem, 9.6vw, 4rem);
  line-height: 1.15;
}

.ways-list p {
  max-width: 30em;
  font-weight: 700;
  font-size: clamp(1rem, 3.9vw, 1.125rem);
  line-height: 1.8;
}

@media (min-width: 900px) {
  .ways-list li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding-block: 2.25rem;
  }
}

/* 3-7 遊べる中身: 極太のタブで「道具の画面」を切り替える。JS なしでは 4 パネルを縦に並べる */
.inside {
  padding-block: var(--sp);
  background: var(--sky);
  color: var(--navy);
}

.inside .section-title {
  color: var(--navy);
}

.tools {
  margin-top: clamp(2rem, 6vw, 3.5rem);
}

.tool-tabs {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 2px solid var(--navy);
  background: var(--navy);
}

.tool-tabs[hidden] {
  display: none;
}

.tool-tabs [role='tab'] {
  min-height: 64px;
  margin: 0;
  padding: 0.9rem 0.75rem;
  border: 0;
  outline-offset: -6px;
  background: #fff;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 900;
  font-size: min(5.6cqi, 1.75rem);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.tool-tabs [role='tab']:nth-child(odd) {
  border-right: 2px solid var(--navy);
}

.tool-tabs [role='tab']:nth-child(-n + 2) {
  border-bottom: 2px solid var(--navy);
}

.tool-tabs [role='tab']:hover {
  background: var(--ice);
}

.tool-tabs [role='tab'][aria-selected='true'] {
  background: var(--navy);
  color: #fff;
}

.tool-panels {
  display: grid;
  gap: 2.5rem;
}

.tool-panel {
  container-type: inline-size;
  display: grid;
  align-content: start;
  gap: 1.5rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 2px solid var(--navy);
  background: #fff;
}

.tool-text h3 {
  font-size: min(10cqi, 2.75rem);
  line-height: 1.1;
  white-space: nowrap;
}

.tool-text p {
  max-width: 26em;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: clamp(0.9375rem, 3.7vw, 1.0625rem);
  line-height: 1.75;
}

/* 索道: 建設メニューのリフトカードを 1 枚ずつ。モバイル 2 列、PC は 4 + 3 の 2 段 */
.lift-cards {
  display: grid;
  grid-auto-columns: 136px;
  grid-auto-flow: column;
  gap: 10px;
  margin-inline: calc(clamp(1.25rem, 5vw, 2.5rem) * -1);
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

.lift-cards li {
  scroll-snap-align: start;
}

.lift-cards img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 18px -12px rgba(16, 34, 54, 0.45);
}

@media (min-width: 560px) {
  .lift-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 14px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* 道具の領域をパネルの残りの高さいっぱいに取る */
.tools.is-ready .tool-panel {
  grid-template-rows: auto 1fr;
}

.tools.is-ready .lift-cards {
  align-content: start;
}

/* 1 段だけの棚は残りの高さの中で上下中央に置く(アイコンが大きいので余白は上下に小さく分かれる) */
.tools.is-ready .shelf {
  align-content: center;
}

/* 建設メニューのアイコンを並べた「道具の棚」 */
.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}

.shelf li {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.shelf img {
  width: min(100%, 140px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--ice) 0 62%, transparent 63%);
}

.shelf span {
  font-weight: 800;
  font-size: clamp(0.875rem, 3.6vw, 1.0625rem);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* JS が動くときは 4 パネルを同じマスに重ね、高さを最大のものに揃える */
.tools.is-ready .tool-panels {
  grid-template-areas: 'panel';
  gap: 0;
}

.tools.is-ready .tool-panel {
  grid-area: panel;
  border-top: 0;
  visibility: hidden;
  opacity: 0;
}

.tools.is-ready .tool-panel.is-active {
  visibility: visible;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .tools.is-ready .tool-panel {
    transition:
      opacity 0.25s var(--ease),
      visibility 0.25s;
  }
}

@media (min-width: 760px) {
  .tool-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-tabs [role='tab'] {
    border-bottom: 0 !important;
    border-right: 2px solid var(--navy);
  }

  .tool-tabs [role='tab']:last-child {
    border-right: 0;
  }
}

@media (min-width: 1040px) {
  .tools.is-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }

  /* タブを縦いっぱいに等分し、下に紺の空きを残さない */
  .tools.is-ready .tool-tabs {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    align-content: stretch;
  }

  .tools.is-ready .tool-tabs [role='tab'] {
    min-height: 88px;
    padding-inline: 1.25rem;
    font-size: min(11cqi, 2rem);
    border-right: 0;
    border-bottom: 2px solid var(--navy) !important;
  }

  .tools.is-ready .tool-tabs [role='tab']:last-child {
    border-bottom: 0 !important;
  }

  .tools.is-ready .tool-panel {
    border-top: 2px solid var(--navy);
    border-left: 0;
  }

  /* PC では必ず 1 段。入りきらないときはアイコンが縮む(最大 240px) */
  .shelf {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 240px);
    justify-content: start;
    gap: 1.25rem 1.5rem;
  }

  .shelf img {
    width: min(100%, 240px);
  }

  .lift-cards {
    grid-template-columns: repeat(4, minmax(0, 172px));
  }
}

/* 3-8 FAQ: <details> のアコーディオン(JS なし) */
.faq {
  padding-block: var(--sp);
  background: var(--ice);
}

.faq-list {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  border-top: 2px solid var(--navy);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding-block: 1.1rem;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover .faq-q {
  color: var(--blue);
}

.faq-q,
.faq-a p {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
}

.faq-q {
  font-weight: 900;
  font-size: clamp(1.0625rem, 4.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--navy);
  transition: color 0.2s;
}

.faq-q::before,
.faq-a p::before {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.3;
}

.faq-q::before {
  content: 'Q' / '';
  color: var(--blue);
}

.faq-a p {
  max-width: 44em;
  padding-bottom: 1.4rem;
  line-height: 1.85;
}

.faq-a p::before {
  content: 'A' / '';
  color: var(--navy);
  opacity: 0.4;
}

.faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

/* 高さのアニメーションは対応ブラウザだけ。未対応でも普通に開閉する */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-item {
      interpolate-size: allow-keywords;
    }

    .faq-item::details-content {
      height: 0;
      overflow: clip;
      transition:
        height 0.35s var(--ease),
        content-visibility 0.35s allow-discrete;
    }

    .faq-item[open]::details-content {
      height: auto;
    }
  }
}

/* 3-9 最終 CTA: 濃い背景は使わず白地。下のフッター(夜景)へは夜景の上端のぼかしでつなぐ */
.final {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  /* 背景は同じスキー場の夜(ナイター)。山が見えるよう下寄せで敷き、上は紺になじませる */
  background:
    linear-gradient(to bottom, #0b1628 0%, rgba(11, 22, 40, 0.55) 30%, rgba(11, 22, 40, 0) 60%),
    url('img/scene-night-tall-900.webp') 50% 100% / cover no-repeat,
    #0b1628;
  color: #fff;
}

@media (min-width: 760px) {
  .final {
    background:
      linear-gradient(to bottom, #0b1628 0%, rgba(11, 22, 40, 0.45) 35%, rgba(11, 22, 40, 0) 70%),
      url('img/scene-night-wide-1600.webp') 50% 100% / cover no-repeat,
      #0b1628;
  }
}

@media (min-width: 1600px) {
  .final {
    background:
      linear-gradient(to bottom, #0b1628 0%, rgba(11, 22, 40, 0.45) 35%, rgba(11, 22, 40, 0) 70%),
      url('img/scene-night-wide-2560.webp') 50% 100% / cover no-repeat,
      #0b1628;
  }
}

.final-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  /* 下側は山(照らされたゲレンデ)を見せる余白 */
  padding-block: clamp(4rem, 9vw, 6rem) clamp(3rem, 24vw, 6rem);
}

.final-text {
  container-type: inline-size;
}

/* マップ画像は外した。見出しと入手カードを 1 列で中央に置く */
.final-text {
  width: min(100%, 640px);
  justify-self: center;
  text-align: center;
}

.final .get-card {
  text-align: left;
  border: 2px solid var(--navy);
}

@media (min-width: 1100px) {
  .final .get-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .final .get-card .badge {
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }

  .final .get-card .get-qr {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* 1 行の最長(ja「あなたのリゾートは、」10 字)が列幅に収まるサイズにする */
.final h2 {
  font-size: clamp(1.7rem, 9.4cqi, 4.25rem);
  line-height: 1.32;
  text-wrap: balance;
}

.final .get {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
}

/* モバイルの固定ダウンロード帯: ヒーローを過ぎたら出て、中間・最終の導線が見えている間は引っ込む */
.dock {
  position: fixed;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 8px 10px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(10, 23, 38, 0.7);
  transform: translateY(0);
  transition:
    transform 0.35s var(--ease),
    visibility 0.35s;
}

.dock[hidden] {
  display: none;
}

.dock.is-away {
  visibility: hidden;
  transform: translateY(calc(100% + 30px + env(safe-area-inset-bottom)));
}

.dock .get-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.dock .badge {
  justify-self: center;
}

.dock .badge img {
  height: 44px;
}

.dock-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.dock-close svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 760px) {
  .dock {
    display: none !important;
  }
}

/* 3-10 フッター */
/* 同じ山の夜: 星空・峰のシルエット・ナイター照明とリフトの灯り(ヒーローと同じ形を再利用) */

/* 同じスキー場の夜(ナイター)。上端を最終 CTA の写真になじませ、文字の下は暗く */
.footer {
  position: relative;
  display: flow-root;
  padding-block: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
}

/* 最終 CTA の写真から紺へ、雪山の稜線でつなぐ */

/* 中央の 1 列: 稜線に載ったアイコン → 名前 → バッジ → リンクと言語 → 細罫の下に ©(参考: Dinosaur Polo Club / Alto's Adventure / Pokémon Sleep) */
.footer-body {
  display: grid;
  justify-items: center;
  text-align: center;
  width: auto;
  padding: 0 max(var(--gutter), (100% - var(--content)) / 2) 1.25rem;
  background: var(--navy-deep);
}

.footer-emblem {
  width: 48px;
  height: 48px;
  position: relative;
  margin-top: 1.75rem;
  border-radius: 12px;
  border: 4px solid var(--navy-deep);
  border-radius: 22px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
}

.footer-name {
  margin-top: 0.6rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
}

.footer-badge {
  margin-top: 1.25rem;
}

.footer-badge img {
  height: 48px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
}

.footer-links a {
  display: grid;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-lang {
  display: flex;
  padding: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.footer-lang a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.footer-lang a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-lang a[aria-current='page'] {
  background: #fff;
  color: var(--navy);
}

.footer-copy {
  justify-self: stretch;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
}

html:lang(en) body {
  font-family: Manrope, 'Manrope Fallback', sans-serif;
}

/* en のマス目は語が長いので四隅を一段小さく */
:lang(en) .cell-tl .fit,
:lang(en) .cell-tr .fit,
:lang(en) .cell-bl p,
:lang(en) .echo,
:lang(en) .br-big {
  font-size: min(13cqi, 3rem);
}

:lang(en) .br-big {
  font-size: min(11.5cqi, 2.75rem);
}

:lang(en) .cell-c h2 {
  font-size: min(8.4cqi, 3.6rem);
}

/* en: ラテン文字は和文より字面が小さく見えるので、見出しを少し大きく・行間を詰める */
:lang(en) .hero h1 {
  line-height: 1.08;
}

@media (max-width: 959px) {
  :lang(en) .hero h1 {
    font-size: clamp(2.3rem, 9.8vw, 5rem);
  }
}

:lang(en) .section-title,
:lang(en) .feature h2 {
  line-height: 1.1;
}

:lang(en) .tale p {
  line-height: 1.45;
}

:lang(en) .tale p.tale-turn {
  font-size: clamp(2.5rem, 11.5vw, 5.75rem);
  line-height: 1.05;
}

:lang(en) .tool-text h3 {
  font-size: min(8cqi, 2.5rem);
}

:lang(en) .tool-tabs [role='tab'] {
  font-size: min(4.4cqi, 1.5rem);
}

@media (min-width: 760px) {
  .tool-tabs [role='tab'] {
    font-size: min(2.8cqi, 1.75rem);
  }

  :lang(en) .tool-tabs [role='tab'] {
    font-size: min(2.2cqi, 1.5rem);
  }
}

@media (min-width: 1040px) {
  :lang(en) .tools.is-ready .tool-tabs [role='tab'] {
    font-size: min(8.5cqi, 1.6rem);
  }
}

:lang(en) .final h2 {
  font-size: clamp(2.1rem, 9vw, 4.4rem);
  line-height: 1.12;
}

@media (prefers-reduced-motion: reduce) {
  .band-track {
    animation: none;
  }

  .badge,
  .dock,
  .slider-btn,
  .faq-icon::after {
    transition: none;
  }
}

@media (min-width: 960px) {
  .final h2 {
    font-size: clamp(1.7rem, 9.4cqi, 3.6rem);
  }

  :lang(en) .final h2 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }
}
