/* ============================================
   ガリガリ君「ひやしましょ。」LP
   背景グラデ画像を固定し、要素がその上をスクロールする
   ============================================ */

@font-face {
  /* font-family: 'KozGoPr6N';
  src: url('../assets/fonts/KozGoPr6N-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap; */
}

:root {
  --blue-deep: #0d3ba8;
  --blue-navy: #0a2c80;
  --blue-sky: #1f7fd6;
  --blue-pale: #bfe4f5;
  --white: #ffffff;
  --ink: #1a2b4a;
  /* --font-body: 'KozGoPr6N', 'Hiragino Kaku Gothic ProN', sans-serif; */
  --ease-out: cubic-bezier(0.2, 0.8, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', YuGothic, '游ゴシック体', 'Yu Gothic', '游ゴシック', Meiryo, 'メイリオ', Osaka, 'MS PGothic',
    'ＭＳ Ｐゴシック', sans-serif;
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  background: var(--blue-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- 固定背景 ---------- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../assets/bg.jpg') center / cover no-repeat;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 0;
  pointer-events: none; /* 子要素のみ操作可能に */
}
.site-header a,
.site-header button {
  pointer-events: auto;
}

.header-logo {
  display: block;
}
.header-logo img {
  width: 76px;
  filter: drop-shadow(0 2px 8px rgba(0, 30, 90, 0.35));
  transform-origin: left top;
  transform: scale(1.5);
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* PC: ロゴを一回り大きく（表示上 +30px 相当） */
@media (min-width: 720px) {
  .header-logo img {
    width: 96px;
  }
}

/* PC: 控えめなテキストナビ */
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 8px;
}
.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 6px rgba(0, 30, 90, 0.45);
  position: relative;
  padding-bottom: 3px;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.header-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.25s;
}
.share-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* モバイル: ハンバーガー＋ドロワー */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 110;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 30, 90, 0.4);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.global-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 78vw);
  height: 100vh;
  background: rgba(13, 59, 168, 0.96);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  padding: 90px 32px;
  pointer-events: auto;
}
.global-nav.open {
  transform: translateX(0);
}
.global-nav ul {
  list-style: none;
}
.global-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.share-btn-drawer {
  margin-top: 24px;
}

@media (max-width: 719px) {
  .header-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 9vh 20px 0;
  min-height: 96vh;
}

.hero-item-wrap {
  animation: hero-in 1.4s var(--ease-out) both;
}
.hero-item {
  width: min(820px, 150vw);
  animation: hero-float 7s ease-in-out 1.4s infinite;
}

/* コピーは固定（浮遊しない） */
.hero-copy {
  position: absolute;
  top: 41%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86vw);
  filter: drop-shadow(0 2px 20px rgba(0, 40, 120, 0.35));
  animation: copy-in 1.4s 0.6s ease both;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 10vh;
  }
  .hero-item {
    width: min(1080px, 82vh);
  }
  .hero-copy {
    width: min(1270px, 92vw);
    top: 40%;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(46px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes copy-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- コピー自動スクロール（3段ループ・低速） ---------- */
/* ヒーローのアイスの棒に近づけるため、どの横幅でも上に引き上げる */
.copy-marquee {
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(-120px, calc(-132px + 3.3vw), -85px);
}

.copy-marquee-row {
  overflow: hidden;
}

.copy-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee linear infinite;
}
.speed-a {
  animation-duration: 90s;
}
.speed-b {
  animation-duration: 110s;
}
.speed-c {
  animation-duration: 75s;
}
.copy-marquee-track.reverse {
  animation-name: marquee-reverse;
}

.copy-marquee-track img {
  height: clamp(34px, 5.2vw, 52px);
  width: auto;
  padding-right: 1.6em;
  flex-shrink: 0;
  opacity: 0.95;
}

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

/* ---------- リード文 ---------- */
.lead {
  display: flex;
  justify-content: center;
  padding: 80px 24px 100px;
}
.lead img {
  width: min(640px, 88vw);
}

/* ---------- コンテンツラップ（半調ドットの白ベース） ---------- */
.content-wrap {
  position: relative;
  background-color: rgba(255, 255, 255, 0.94);
  /* 細かいドットの半調テクスチャ */
  background-image: radial-gradient(rgba(31, 127, 214, 0.1) 1px, transparent 1.4px), radial-gradient(rgba(31, 127, 214, 0.05) 1px, transparent 1.4px);
  background-size: 9px 9px, 9px 9px;
  background-position: 0 0, 4.5px 4.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 0 76px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0, 30, 90, 0.18);
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 70px 24px 16px;
  max-width: 880px;
  margin: 0 auto;
}
.section-full {
  max-width: none;
}

.section-title {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}
.section-title img {
  height: clamp(22px, 3.4vw, 30px);
  width: auto;
}

/* スクロールで要素がふわっと出る */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- TVCM ---------- */
.cm-marquee {
  overflow: hidden;
  /* 端をふわっと消す */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.cm-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.cm-marquee-track:hover {
  animation-play-state: paused;
}

.cm-item {
  width: min(380px, 76vw);
  flex-shrink: 0;
  cursor: pointer;
}
.cm-item figcaption {
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cm-thumb-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 30, 90, 0.18);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.cm-item:hover .cm-thumb-wrap {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 30, 90, 0.26);
}
.cm-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 44, 128, 0.72);
  backdrop-filter: blur(2px);
}
.play-badge::after {
  content: '';
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

/* ---------- ラジオCM ---------- */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .radio-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
  }
}

.radio-item {
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  padding: 0;
}
.radio-item.is-hidden {
  display: none;
}

.radio-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(175deg, #0d3ba8 0%, #1f7fd6 55%, #a9dcf6 100%);
  box-shadow: 0 5px 16px rgba(0, 30, 90, 0.16);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
}
.radio-item:hover .radio-thumb {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 30, 90, 0.24);
}
/* シンプルな再生アイコン */
.radio-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  position: relative;
}
.radio-play::after {
  content: '';
  position: absolute;
  left: 56%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 84px) 24px;
  border-radius: 16px;
  background: linear-gradient(175deg, #0d3ba8 0%, #1f7fd6 55%, #a9dcf6 100%);
  box-shadow: 0 5px 16px rgba(0, 30, 90, .16);
}
.coming-soon-text {
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 30, 90, .4);
}

.radio-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}
.more-btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-deep);
  background: #fff;
  border: 1.5px solid var(--blue-deep);
  border-radius: 999px;
  padding: 12px 52px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.more-btn:hover {
  background: var(--blue-deep);
  color: #fff;
}

/* ---------- 電車ステッカー広告 ---------- */
.sticker-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}
.sticker-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 80s linear infinite;
  padding: 6px 0 10px;
}
.sticker-marquee-track img {
  width: min(430px, 82vw);
  border-radius: 24px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 30, 90, 0.16);
}

/* ---------- 塩セクション（白文字・半透明ガラス処理、固定背景に直置き） ---------- */
.salt-section {
  display: flex;
  justify-content: center;
  padding: clamp(70px, 12vh, 140px) 24px;
}

.salt-inner {
  width: min(760px, 100%);
  color: var(--white);
}

/* シェアボタンと同系の半透明ガラス処理 */
.salt-glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(36px, 7vw, 68px) clamp(20px, 6vw, 56px);
}

.salt-title {
  display: block;
  width: min(624px, 92%);
  margin: 0 auto clamp(40px, 7vw, 64px);
}
.salt-title img {
  width: 100%;
  display: block;
}

.salt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 56px);
  flex-wrap: wrap;
  margin-bottom: clamp(56px, 9vw, 96px);
}
.salt-row:last-child {
  margin-bottom: 0;
}

.salt-body {
  display: block;
  width: min(300px, 78vw);
}
.salt-body img {
  width: 100%;
  display: block;
}

/* 塩イラストの行: 幅680px付近までは横並びを維持し、可変しながら縮む */
.salt-row-illust {
  gap: clamp(14px, 4vw, 56px);
  flex-wrap: nowrap;
}
@media (min-width: 640px) {
  .salt-row-illust .salt-body {
    flex: 1 1 260px;
    max-width: 300px;
    min-width: 150px;
  }
}

/* イラスト: できるだけ大きく（最大150%サイズ）、shio_3A/3Bを交互に表示 */
.salt-illust-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 345px;
  min-width: 160px;
  aspect-ratio: 1 / 1;
}
.salt-illust-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.frame-a {
  animation: illust-swap-a 0.8s steps(1, end) infinite;
}
.frame-b {
  animation: illust-swap-b 0.8s steps(1, end) infinite;
}

@keyframes illust-swap-a {
  0%,
  49.9% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes illust-swap-b {
  0%,
  49.9% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

.salt-event-text {
  display: block;
  width: min(280px, 78vw);
  transition: opacity 0.25s;
}
.salt-event-text:hover {
  opacity: 0.8;
}
.salt-event-copy {
  display: block;
}
.salt-event-copy img {
  width: 100%;
  display: block;
}

.salt-card {
  width: min(220px, 54vw);
  filter: drop-shadow(0 14px 30px rgba(0, 10, 50, 0.45));
}

@media (max-width: 640px) {
  .salt-row {
    flex-direction: column;
  }
  .salt-row-illust {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame-a,
  .frame-b {
    animation: none;
  }
  .frame-b {
    opacity: 0;
  }
}

/* ---------- プレーヤーオーバーレイ ---------- */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.player-modal[hidden] {
  display: none;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 50, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.3s ease both;
}
.player-body {
  position: relative;
  width: min(860px, 100%);
  animation: modal-in 0.4s var(--ease-out) both;
}
.player-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s;
}
.player-close:hover {
  background: rgba(255, 255, 255, 0.34);
}

.player-screen {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}
.player-screen video,
.player-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-screen .preparing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 16, 50, 0.55);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
/* 音声用（サムネイルなし） */
.player-screen.audio-mode {
  background: linear-gradient(175deg, #0d3ba8 0%, #1f7fd6 60%, #a9dcf6 100%);
}

.player-caption {
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  margin-top: 16px;
  font-weight: 600;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.modal-open {
  overflow: hidden;
}

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  text-align: center;
  padding: 34px 20px 76px;
}
.footer-copy {
  display: block;
  width: clamp(144px, 37vw, 208px);
  margin: 0 auto;
  opacity: 0.85;
}

/* ガリガリ君: スクロール末尾に来るたび右下からニョキっと登場（体が切れすぎないよう多めに表示） */
.gari-peek-frame {
  --peek-w: clamp(108px, 26vw, 150px);
  position: absolute;
  right: clamp(16px, 6vw, 48px);
  bottom: 0;
  width: var(--peek-w);
  height: calc(var(--peek-w) * 799 / 731 * 0.65);
  overflow: hidden;
  pointer-events: none;
}
.gari-peek-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(100%);
  /* オーバーシュートなしのイージング（バウンドさせると頭部が枠上端でクリップされるため） */
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-footer.is-visible .gari-peek-img {
  transform: translateY(0);
}

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  .copy-marquee-track,
  .cm-marquee-track,
  .sticker-marquee-track,
  .hero-item,
  .hero-item-wrap,
  .hero-copy {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gari-peek-img {
    transition: none;
  }
}
