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

/* === カラーパレット定義 === */
:root {
  --primary-navy: #1A2E40;    /* 深藍（ふかあい） */
  --accent-gold: #B89B65;     /* 金茶（きんちゃ） */
  --base-cream: #F5F5F3;      /* 生成り色（きなりいろ） */
  --text-dark: #333333;       /* 墨色（すみいろ） */
  --text-light: #FFFFFF;      /* 白練（しろねり） */
  --border-gray: #CCCCCC;     /* 灰色（はいいろ） */
  --accent-light: #E8DCC0;    /* 薄い金色 */
}

/* === リセットとベース === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--base-cream);
  overflow-x: hidden;
}

/* === タイポグラフィ === */
h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-light));
  margin-top: 0.5rem;
}

h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-navy);
}

a:active {
  color: var(--accent-gold);
  transition: color 0.1s ease;
}

a:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 1px;
  border-radius: 2px;
}

/* フォーカス用の共通クラス */
.focused {
  outline: 2px solid var(--accent-gold) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* === レイアウトコンテナ === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #FFFFFF;
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/traditional_japanese_seigaiha_wave_patterns_blue.jpg');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
}

/* === ヘッダー === */
header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2A4A5E 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(26, 46, 64, 0.3);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo span {
  color: var(--accent-gold);
  font-size: 32px;
}

/* === ナビゲーション === */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 155, 101, 0.3), transparent);
  transition: left 0.5s ease;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  background-color: rgba(184, 155, 101, 0.2);
  color: var(--accent-gold);
  text-decoration: none;
  transform: translateY(-1px);
}

/* === ハンバーガーメニュー === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* === メインビジュアル === */
.hero {
  height: 100vh;
  background: linear-gradient(
    rgba(26, 46, 64, 0.4),
    rgba(26, 46, 64, 0.6)
  ), url('../images/kanmon-strait-bridge-night-illumination-view.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/japanese_seigaiha_wave_pattern_blue_gradient.jpg');
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 56px;
  color: var(--text-light);
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  animation: fadeInUp 1.5s ease-out;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--accent-light);
  margin-bottom: 3rem;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  animation: fadeInUp 1.5s ease-out 0.3s both;
}

/* === ボタンスタイル === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-gold), #D4B87A);
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(184, 155, 101, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.7s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(184, 155, 101, 0.4);
  color: var(--text-light);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.btn:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--text-light);
}

/* === 3つの導線エリア === */
.navigation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 1.5s ease-out 0.6s both;
}

.nav-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid rgba(184, 155, 101, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  cursor: pointer;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  border-color: var(--accent-gold);
}

.nav-card:active {
  transform: translateY(-2px);
  transition: transform 0.1s ease;
}

.nav-card.card-hover-active {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  border-color: var(--accent-gold);
}

.nav-card.card-clicked {
  transform: translateY(-2px) !important;
}

.nav-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #D4B87A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(184, 155, 101, 0.4);
}

.nav-card h3 {
  font-family: 'Noto Serif JP', serif;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-size: 24px;
}

.nav-card p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* === カードグリッド === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-gold);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card:active {
  transform: translateY(-2px);
  transition: transform 0.1s ease;
}

.card-hover-active {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-clicked {
  transform: translateY(-2px) !important;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-navy);
}

.card p {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
}

/* === フッター === */
footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1F3A4D 100%);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/traditional_japanese_seigaiha_wave_patterns_blue.jpg');
  background-size: 150px;
  background-repeat: repeat;
  opacity: 0.05;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 20px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-light);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 155, 101, 0.3);
  opacity: 0.8;
}

/* === アニメーション === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === レスポンシブ対応 === */
@media (max-width: 768px) {
  /* ヘッダー */
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  nav.active ul {
    display: flex;
  }
  
  nav ul li {
    margin-bottom: 0.5rem;
  }

  /* タイポグラフィ */
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }

  /* レイアウト */
  .section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .navigation-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* ヒーロー */
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .nav-card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.8rem 2rem;
    font-size: 14px;
  }
}

/* === 追加のコンポーネント === */
.breadcrumb {
  background: rgba(255,255,255,0.8);
  padding: 1rem 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-gray);
}

.breadcrumb a {
  color: var(--text-dark);
  opacity: 0.7;
}

.breadcrumb a:hover {
  opacity: 1;
}

.page-header {
  background: linear-gradient(
    rgba(26, 46, 64, 0.8),
    rgba(26, 46, 64, 0.9)
  ), url('../images/kanmon_strait_bridge_daytime_blue_sky_japan.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
  text-align: center;
  color: var(--text-light);
}

.page-header h1 {
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(184, 155, 101, 0.1), rgba(184, 155, 101, 0.05));
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-dark);
  font-weight: 500;
}
