@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Zen Kaku Gothic New', sans-serif;
}

.font-serif-jp {
  font-family: 'Noto Serif JP', serif;
}

/* モバイルメニュー（JSでheightをtoggleする） */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.is-open {
  max-height: 640px;
}

/* ハンバーガーアイコンのアニメーション */
#hamburger-btn .bar {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#hamburger-btn.is-open .bar-top {
  transform: translateY(7px) rotate(45deg);
}
#hamburger-btn.is-open .bar-mid {
  opacity: 0;
}
#hamburger-btn.is-open .bar-bottom {
  transform: translateY(-7px) rotate(-45deg);
}

/* ヒーロー：4枚の画像が右から左へゆっくり流れながらクロスフェードするスライドショー */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-slide-cycle 36s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 9s; }
.hero-slide:nth-child(3) { animation-delay: 18s; }
.hero-slide:nth-child(4) { animation-delay: 27s; }

@keyframes hero-slide-cycle {
  0%     { opacity: 0; transform: translateX(0%); }
  4.17%  { opacity: 1; }
  25%    { opacity: 1; }
  29.17% { opacity: 0; transform: translateX(-5%); }
  100%   { opacity: 0; transform: translateX(0%); }
}

/* ヒーローのスクロール誘導アイコン */
.hero-scroll-cue {
  animation: hero-scroll-cue-pulse 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-cue-pulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(8px); }
}

/* セクション見出し脇に添える縦書きラベル（和文サイトらしい控えめな装飾） */
.label-vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
}

/* GALLERY：画像が途切れず流れ続ける無限ループティッカー */
.ticker-row {
  width: 100%;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker-row:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* COORDINATION：メイン画像を右から左へスライドさせて切り替えるスライダー */
.coord-slider {
  position: relative;
  overflow: hidden;
}
.coord-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}
.coord-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* COORDINATION：メインスライドと連動するサムネイル一覧 */
.coord-thumb {
  position: relative;
  width: 52px;
  height: 65px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.coord-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coord-thumb.is-active {
  opacity: 1;
}
.coord-thumb-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.coord-thumb-progress .bar {
  display: block;
  height: 100%;
  width: 0%;
  background: #f87f06;
}
.coord-thumb.is-active .coord-thumb-progress .bar {
  animation: coord-progress 4.5s linear forwards;
}
@keyframes coord-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* アニメーション減弱設定のユーザーには派手な動きを止める */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    opacity: 0;
    transform: none !important;
  }
  .hero-slide:first-child {
    opacity: 1;
  }
  .ticker-track {
    animation: none !important;
  }
  .hero-scroll-cue {
    animation: none !important;
  }
  .coord-thumb.is-active .coord-thumb-progress .bar {
    animation: none !important;
    width: 100%;
  }
  .coord-track {
    transition: none !important;
  }
}
