/* ===========================================
   全国水族館ガイド Japan - メインスタイル
   =========================================== */

/* -------------------------------------------
   CSS カスタムプロパティ（テーマカラー）
   ------------------------------------------- */
:root {
  /* カラーパレット */
  --clr-deep:    #03045E;  /* 深海 */
  --clr-navy:    #023E8A;  /* 深海中層 */
  --clr-main:    #0077B6;  /* メインブルー */
  --clr-sub:     #0096C7;  /* サブブルー */
  --clr-light1:  #00B4D8;  /* 浅瀬 */
  --clr-light2:  #90E0EF;  /* 水面 */
  --clr-light3:  #CAF0F8;  /* 泡・光 */
  --clr-bg:      #F0F9FF;  /* 背景 */
  --clr-white:   #FFFFFF;
  --clr-text:    #1B2F4E;
  --clr-muted:   #4A6D8C;

  /* フォント */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
  --font-en:    'Montserrat', sans-serif;

  /* サイズ */
  --header-h: 68px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 40px;

  /* シャドウ */
  --shadow-card: 0 4px 24px rgba(3, 4, 94, 0.07);
  --shadow-hover: 0 12px 40px rgba(0, 119, 182, 0.18);

  /* トランジション */
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------
   リセット & ベース
   ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
/* display: flex/grid などで [hidden] が上書きされるのを防ぐ */
[hidden] { display: none !important; }
body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* -------------------------------------------
   レイアウト共通
   ------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }

/* -------------------------------------------
   ヘッダー
   ------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  transition: background var(--ease), backdrop-filter var(--ease), box-shadow var(--ease);
}
.site-header.scrolled {
  background: rgba(3, 4, 94, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; line-height: 1; }
.logo-text { letter-spacing: -0.03em; }
.logo-sub {
  font-family: var(--font-en);
  font-size: 0.8em;
  margin-left: 4px;
  opacity: 0.75;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ナビゲーション */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  transition: background var(--ease), color var(--ease);
}
.nav-link:hover {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.14);
}

/* ハンバーガーボタン（モバイル用） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--ease);
}

/* -------------------------------------------
   ヒーロー
   ------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 水面（上・明）→ 深海（下・暗）*/
  background: linear-gradient(
    180deg,
    #00B4D8 0%,
    #0096C7 18%,
    #0077B6 42%,
    #023E8A 65%,
    #03045E 82%,
    #010B2A 100%
  );
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--clr-white);
  padding: calc(var(--header-h) + 32px) 24px 160px;
  max-width: 760px;
  width: 100%;
}
.hero-eyecatch {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-light2);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}
.hero-title-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.52em;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--clr-light2);
  margin-top: 6px;
}
.hero-desc {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

/* 検索バー */
.hero-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 15px 22px;
  font-size: 0.95rem;
  color: white;
  font-family: var(--font-sans);
  min-width: 0;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.48); }
.search-btn {
  background: var(--clr-main);
  border: none;
  padding: 15px 22px;
  color: white;
  display: flex;
  align-items: center;
  transition: background var(--ease);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--clr-navy); }
.search-btn svg { display: block; }

/* 統計バッジ */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}
.stat-item { text-align: center; padding: 0 28px; }
.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.stat-number {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-light2);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* 波形装飾 */
.wave-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130px;
  pointer-events: none;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}
.wave1 {
  fill: var(--clr-bg);
  animation: waveSweep 9s linear infinite;
  opacity: 0.95;
}
.wave2 {
  fill: var(--clr-bg);
  animation: waveSweep 14s linear infinite reverse;
  opacity: 0.5;
}

/* 下層ページの page-hero は隣接セクションとの接続を優先して波を穏やかにする */
.page-hero .wave-wrapper {
  height: 96px;
}
.page-hero .wave {
  width: 150%;
  transform-origin: bottom center;
}
.page-hero .wave1,
.page-hero .wave2 {
  fill: var(--clr-bg);
  opacity: 1;
  animation: none;
}

/* -------------------------------------------
   セクション共通
   ------------------------------------------- */
.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--clr-main);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--clr-deep);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 0.92rem;
  color: var(--clr-muted);
}
.section-footer { text-align: center; margin-top: 52px; }

/* -------------------------------------------
   水族館カード
   ------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.aquarium-card {
  background: var(--clr-white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.aquarium-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-light1) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.aquarium-card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder {
  font-size: 4.5rem;
  opacity: 0.55;
  user-select: none;
}
.card-region-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(3, 4, 94, 0.72);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
}
.card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-deep);
  margin-bottom: 6px;
}
.card-location {
  font-size: 0.8rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.card-tag {
  background: var(--clr-light3);
  color: var(--clr-main);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 119, 182, 0.1);
  padding-top: 14px;
  margin-top: auto;
}
.card-admission {
  font-size: 0.8rem;
  color: var(--clr-muted);
}
.card-admission strong {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-deep);
}
.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-main);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--ease), color var(--ease);
}
.card-link:hover { gap: 8px; color: var(--clr-navy); }

/* -------------------------------------------
   エリアセクション
   ------------------------------------------- */
.region-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--clr-bg) 0%, #DCF2FF 100%);
}
.region-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1559825481-12a05cc00344?auto=format&fit=crop&w=1920&q=80') center / cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.region-section .container {
  position: relative;
  z-index: 1;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 16px;
}
.region-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 180, 216, 0.18);
  border-radius: var(--radius-l);
  padding: 26px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--ease);
  color: var(--clr-deep);
  display: block;
  text-decoration: none;
}
.region-card:hover {
  background: var(--clr-main);
  color: var(--clr-white);
  border-color: var(--clr-main);
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0, 119, 182, 0.32);
}
.region-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}
.region-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.region-count {
  font-family: var(--font-en);
  font-size: 0.72rem;
  opacity: 0.68;
}

/* -------------------------------------------
   Aboutセクション
   ------------------------------------------- */
.about-section { background: var(--clr-white); }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text .section-title { text-align: left; margin-bottom: 18px; }
.about-text > p {
  color: var(--clr-muted);
  font-size: 0.93rem;
  margin-bottom: 36px;
  line-height: 1.85;
}
.about-features { display: flex; flex-direction: column; gap: 22px; }
.about-features li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  background: var(--clr-bg);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--clr-light3);
}
.about-features strong {
  display: block;
  font-size: 0.95rem;
  color: var(--clr-deep);
  font-weight: 700;
  margin-bottom: 4px;
}
.about-features p { font-size: 0.83rem; color: var(--clr-muted); margin: 0; line-height: 1.65; }

/* 水槽ビジュアル */
.fish-tank {
  height: 400px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #020B2E 0%, #023E8A 40%, #0077B6 75%, #0096C7 100%);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(144, 224, 239, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 119, 182, 0.28),
    inset 0 0 60px rgba(3, 4, 94, 0.3);
}
.tank-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.tank-seabed {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, #010B2A);
}
.tank-fish-area {
  position: absolute;
  inset: 0;
}
.tank-fish {
  position: absolute;
  font-size: var(--sz, 1.6rem);
  animation: tankSwim linear infinite;
  will-change: transform;
}
.tank-fish.rtl { animation-name: tankSwimRTL; }

/* -------------------------------------------
   ボタン
   ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 34px;
  border-radius: var(--radius-xl);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--clr-main); color: white; border-color: var(--clr-main); }
.btn-primary:hover { background: var(--clr-navy); border-color: var(--clr-navy); transform: translateY(-2px); }
.btn-outline { color: var(--clr-main); border-color: var(--clr-main); }
.btn-outline:hover { background: var(--clr-main); color: white; transform: translateY(-2px); }

/* -------------------------------------------
   フッター
   ------------------------------------------- */
.site-footer { background: var(--clr-deep); color: rgba(255, 255, 255, 0.75); position: relative; }
.footer-wave { line-height: 0; overflow: hidden; }
.footer-wave svg { width: 100%; display: block; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 52px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: white;
  font-weight: 700;
  margin-bottom: 28px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-bottom: 28px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--clr-light2); }
.footer-legal-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: -10px 0 22px;
}
.footer-legal-nav a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--ease);
}
.footer-legal-nav a:hover { color: var(--clr-light2); }
.footer-notice {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  line-height: 1.6;
}
.footer-copy {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* -------------------------------------------
   バイリンガル対応 — 英語補足テキスト
   ------------------------------------------- */
.en {
  font-family: var(--font-en);
  font-size: 0.82em;
  color: var(--clr-muted);
  line-height: 1.6;
  display: block;
  margin-top: 4px;
}
/* ヒーロー内の英語テキストは白系 */
.hero .en {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78em;
}
/* セクション見出し直下 */
.section-title .en {
  font-size: 0.52em;
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-top: 6px;
}
/* About 特徴リスト */
.about-features .en {
  font-size: 0.85em;
  margin-top: 2px;
}
/* フッター内の英語テキスト */
.site-footer .en {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85em;
}

/* -------------------------------------------
   アニメーション
   ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes waveSweep {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes tankSwim {
  0%   { transform: translateX(-80px); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateX(calc(100vw + 80px)); opacity: 0; }
}
@keyframes tankSwimRTL {
  0%   { transform: scaleX(-1) translateX(-80px); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: scaleX(-1) translateX(calc(100vw + 80px)); opacity: 0; }
}

/* スクリーンリーダー専用（視覚的に非表示） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* スクロールフェードイン */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -------------------------------------------
   レスポンシブ
   ------------------------------------------- */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 48px; }
  .fish-tank { height: 280px; }
  .page-hero .wave-wrapper { height: 82px; }
  .page-hero .wave { width: 132%; transform: scaleY(0.78); }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(3, 4, 94, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .stat-item { padding: 0 18px; }

  /* バイリンガル調整 */
  .section-title .en { font-size: 0.55em; margin-top: 5px; }
  .section-desc .en  { margin-top: 3px; }
  /* ヒーロー英語テキスト内の <br> を非表示にして自然な折り返しに */
  .hero .en br { display: none; }
  .hero .en { font-size: 0.76em; line-height: 1.65; }
}

@media (max-width: 560px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.4rem; }
  .stat-number { font-size: 1.7rem; }
  .page-hero .wave-wrapper { height: 64px; }
  .page-hero .wave { width: 118%; transform: scaleY(0.62); }
  .page-hero .wave2 { display: none; }

  /* バイリンガル調整（小画面） */
  .en { font-size: 0.8em; }
  /* about の特徴リスト英語テキストは可読性を優先 */
  .about-features .en { font-size: 0.88em; line-height: 1.5; }
  /* セクション見出しの英語サブタイトル */
  .section-title .en { font-size: 0.5em; letter-spacing: 0.02em; }
  /* フッターのナビリンク英語は縮小 */
  .site-footer .en { font-size: 0.8em; }
}
