/* CSS Variables */
:root {
  /* Colors - HSL format */
  --primary: 142 76% 36%;
  --primary-glow: 142 68% 45%;
  --purple: 258 90% 66%;
  --purple-deep: 258 90% 50%;
  --sky-light: 197 71% 73%;
  --mountain-light: 142 33% 82%;
  --foreground: 222 84% 5%;
  --background: 0 0% 100%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 197 71% 73%;
  --accent-foreground: 222 84% 5%;
  --border: 214 32% 91%;

}

/* Chrome, Edge, Safari（Webkit系） */
::-webkit-scrollbar {
  display: none; /* スクロールバー自体を非表示 */
}

/* Firefox */
html {
  scrollbar-width: none; /* スクロールバーを非表示 */
}

/* IE / 旧Edge */
html {
  -ms-overflow-style: none; /* スクロールバーを非表示 */
}


    /* Main Content */
    .main-content {
      margin-top: 80px;
    }

    /* Hero Section */
    .page-hero {
      height: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .page-title {
      font-size: 48px;
      font-weight: bold;
      margin-bottom: 16px;
    }

    .page-subtitle {
      font-size: 20px;
      opacity: 0.9;
    }

    /* Container */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Section Title */
    .section-title {
      font-size: 36px;
      font-weight: bold;
      text-align: center;
      margin-bottom: 48px;
      color: #333;
      scroll-margin-top: 100px;
    }

    .pricing-section .container .section-title{
      color: #fff;
    }

    /* Courses Section */
    .courses-section {
      padding: 80px 0;
      background: #fff;
    }

    .courses-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 32px;
    }

    .course-card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .course-header {
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .course-a { background-color: #9bffbc; }
    .course-b { background-color: #bae1fc; }
    .course-c { background-color: #f5dcae; }


    .course-name {
      font-size: 24px;
      font-weight: bold;
      color: #333;
    }

    .course-badge {
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
    }


    .course-image {
      height: 200px;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      font-size: 14px;
    }

    .course-details {
      padding: 24px;
    }

    .course-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    .stat-item {
      text-align: center;
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
    }

    .stat-label {
      display: block;
      font-size: 14px;
      color: #666;
      margin-bottom: 4px;
    }

    .stat-value {
      display: block;
      font-size: 24px;
      font-weight: bold;
      color: #2d5a27;
    }

    .feature-tag {
      background: #e3f2fd;
      color: #1976d2;
      padding: 4px 12px;
      border-radius: 16px;
      font-size: 12px;
      font-weight: 500;
    }

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

/* Header - Same as original */
/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1;
  transition: var(--transition-smooth);
  background: transparent;               /* スクロール前：透明のまま */
}


/* === Header menu: never wrap labels (JP/CJK safe) === */
.header .logo,
.header .nav-item,
.header .nav-item span,
.header-actions .btn,
.header .lang-current {
  white-space: nowrap;
  word-break: keep-all;                   /* 日本語/中国語などでも自動改行させない */
}
.nav, .header-actions { flex-wrap: nowrap; }
.nav-item { flex: 0 0 auto; min-width: max-content; }
.header-actions .btn { flex: 0 0 auto; min-width: max-content; }

.header.scrolled {
  background: rgba(255, 255, 255, 0.95); /* スクロール後：白＋ブラー */
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* ▼ ロゴは常時黒 */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--foreground));          /* 常時：黒 */
  transition: var(--transition-smooth);
}
.header.scrolled .logo { color: hsl(var(--foreground)); }  /* 明示的に維持 */

/* ====== Nav ====== */
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav { display: flex; }
}

/* ▼ ナビ文言は常時黒 */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));          /* 常時：黒 */
  transition: var(--transition-smooth);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-item:hover { color: hsl(var(--accent)); }
.header.scrolled .nav-item { color: hsl(var(--foreground)); } /* 明示的に維持 */

/* アイコン */
.nav-icon { width: 1.25rem; height: 1.25rem; }
.nav-icon-box { display: inline-grid; place-items: center; }

/* ▼ 画像アイコンは常時「黒」を表示、白は非表示 */
.nav-item .icon--light { display: none !important; }
.nav-item .icon--dark  { display: inline-block !important; }

/* ====== Header actions ====== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons (共通) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.42rem;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.btn-icon { width: 1rem; height: 1rem; }

/* ▼ 言語ボタン（アウトライン）も常時“黒テキスト＋薄い枠”に統一 */
.btn-outline {
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: transparent;
}
.btn-outline:hover {
  background: hsl(var(--accent) / 0.08);
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
/* スクロール後も状態は同じ */
.header.scrolled .btn-outline { 
  border-color: hsl(var(--border)); 
  color: hsl(var(--foreground)); 
}

/* ▼ 「営業・運行状況」ボタンは常時“緑” */
.btn-primary {
  background: hsl(var(--primary));        /* 常時：緑 */
  color: #fff;
  border: 1px solid hsl(var(--primary));
  text-align: center;
}
.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}
/* スクロール後も同じ色を維持 */
.header.scrolled .btn-primary {
  background: hsl(var(--primary));
  color: #fff;
}

/* 750px以下で「営業・運行状況」ボタンだけに適用 */
@media (max-width: 750px) {
  a.btn.btn-primary {
    font-size: 0.75rem;
    line-height: 1.5;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
  }
}
@media (min-width: 750px) {
  .btn-primary {
    padding: 0.5rem 1rem !important;
  }
}



/* ==== Header layout tweaks ==== */

/* ボタンの共通幅（必要なら数値だけ変えてOK） */
:root{
  --hdr-btn-w: 160px;
}

/* ヘッダー内の3カラム：左=ロゴ / 中央=アイコンメニュー / 右=アクション */
.header-content{
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 40px; /* お好みで調整 */
}

/* アイコンメニュー（.nav）を左寄せに配置 */
.nav{
  justify-self: auto;
  display: flex;
  align-items: center;
  gap: 33px;                 
  margin: 0;                 
  margin-left: 50px;         
  flex-wrap: nowrap;         
}

/* no-wrap labels */
.nav-item, .nav-item span{ white-space: nowrap; }

/* 右端寄せのアクション領域（Language / 運行状況） */
.header-actions{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 50px; /* 2ボタンの間隔 */
}

/* 2ボタンの幅を近づける（=そろえる） */
.header-actions .btn{
  width: var(--hdr-btn-w);
  justify-content: center;
}

/* Language ドロップダウンのボタン幅も合わせる */
.lang-dropdown{ width: var(--hdr-btn-w); }
.lang-btn{ width: 100%; }   /* .lang-dropdown 内のボタンを親幅にフィット */
.lang-menu{ width: 100%; }  /* ドロップメニューは“ボタン幅”のまま */

/* （任意）狭い画面で窮屈な場合の縮小ブレークポイント */
@media (max-width: 390px){
  :root{ --hdr-btn-w: 140px; }
}

/* === Mobile menu base === */
.mobile-menu{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);          /* 黒・80% */
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transform: translateX(10%);          /* 右→左へ出てくる感じ */
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  display: flex; flex-direction: column;
}
.mobile-menu.is-open{
  opacity: 1; visibility: visible;
  transform: translateX(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* 閉じるボタン（右上） */
.mobile-menu__close{
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: 0; color: #fff; padding: 8px; cursor: pointer;
}

/* 縦並び・白アイコン＋白文字（横並びのレイアウトは維持） */
.mobile-menu__list{
  list-style: none; margin: 72px 20px 24px; padding: 0;
  display: grid; gap: 16px;
}
/* Defensive: hide list unless overlay is open */
.mobile-menu:not(.is-open) .mobile-menu__list { display: none; }

.mobile-item{
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 12px 8px; border-radius: 12px;
}
.mobile-item:hover{ background: rgba(255,255,255,.08); }
.mobile-item__icon{ width: 22px; height: 22px; color: #fff; }

/* ハンバーガーボタン（PCでは非表示） */
.hamburger-btn{
  display: none;
  background: transparent; 
  border: 1px solid rgb(105 105 105 / 40%);
  color: currentColor; border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

/* モバイル：中央ナビ非表示＋ハンバーガー表示 */
@media (max-width: 1024px){
  .nav{ display: none !important; }
  .header-actions{ justify-self: end; display: flex; gap: 10px; }
  .hamburger-btn{ display: inline-flex; align-items: center; }
}

/* ▼ 言語ドロップ専用（既存スタイルは変更しない） */
.lang-dropdown{ position: relative; display: inline-block; }
.lang-btn{ display:inline-flex; align-items:center; gap:.5rem; }

/* 開閉アニメ＆レイヤー。メニュー幅=ボタン（親）幅 */
.lang-menu{
  position:absolute; left:0; top:calc(100% + 8px);
  width:100%;
  background:#fff; color:#111;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.15);
  overflow:hidden;
  opacity:0; transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:1100; /* ヘッダーより上に */
}
.lang-dropdown.open .lang-menu{
  opacity:1; transform:translateY(0); pointer-events:auto;
}
.lang-item{
  display:block; width:100%;
  padding:10px 12px;
  color:#111; text-decoration:none;
}
.lang-item:hover, .lang-item:focus{ background:#f2f5ff; outline:none; }
.lang-item.is-active{ background:#2563eb; color:#fff; }
.lang-dropdown.open .btn-icon{ transform:rotate(180deg); transition:transform .15s ease; }


/* ================================================
   1350px 以下：ヘッダーを詰めてコンパクト表示
   （1024px以下は既存どおりハンバーガーに切替）
   ================================================ */
@media (max-width: 1350px) and (min-width: 1025px){

  /* 余白を詰める */
  .header-container{ padding: 0 1rem; }
  .header-content{ padding: .75rem 0; column-gap: 20px; }

  /* ロゴ少し縮小 */
  .header .logo{ font-size: 1.25rem; }

  /* ナビの詰め */
  .nav{
    gap: 18px;          /* 33px → 18px */
    margin-left: 20px;  /* 50px → 20px */
  }

  /* ナビ文言とアイコンを少しコンパクトに */
  .nav-item{ font-size: .82rem; gap: .4rem; }
  .nav-icon{ width: 1.05rem; height: 1.05rem; } /* 16.8px相当 */

  /* 右側アクション（言語/運行状況）も詰める */
  .header-actions{ gap: 16px; }

  /* 共通ボタンの内側余白を少しだけ減らす */
  .btn{ padding: .45rem .6rem; }

  /* 可変幅にしてはみ出しにくくする — きっちり揃えたいならコメントアウト */
  :root{ --hdr-btn-w: 148px; }
  .header-actions .btn{ width: auto; min-width: 132px; }

  /* Language ドロップの幅も可変寄りに */
  .lang-dropdown{ width: auto; min-width: 132px; }
  .lang-menu{ width: 100%; }  /* ボタン幅に追従 */

  /* さらに狭まった時の最終調整（任意） */
  @media (max-width: 1180px){
    .nav{ gap: 14px; }
    .nav-item{ font-size: .78rem; }
    .nav-icon{ width: 1rem; height: 1rem; }
    .header-actions .btn,
    .lang-dropdown{ min-width: 120px; }
  }
}

/* 1024px以下：ヘッダーの言語/営業・運行状況ボタンを非表示に */
@media (max-width: 1024px) {
  .header .lang-dropdown { display: none !important; }
  .header .btn.btn-primary { display: none !important; }

  .mobile-lang-dropdown.lang-dropdown{
    display: block;      /* inline-block → block に上書き */
    width: 100%;
  }
  /* ボタン自体も全幅＆中央寄せ */
  .mobile-lang-dropdown .lang-btn{
    width: 100%;
    justify-content: space-between;
    display: block;
     /* アイコンと文字に余裕を作る（任意） */
  }
  /* ドロップメニューも同幅で左端揃え */
  .mobile-lang-dropdown .lang-menu{
    width: 100% !important;
    left: 0;
  }
  .header-content {padding: 1.25rem;}
  .header-container {display: block;}
  .btn-outline {color: #fff;}
  /* 例: hover時に色変化しない */
.btn-outline:hover {
  background: inherit !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

  }


/* Main Content */
.main-content {
  padding-top: 80px; /* Account for fixed header */
}

/* ==== Header layout tweaks ==== */

/* ボタンの共通幅（必要なら数値だけ変えてOK） */
:root{
  --hdr-btn-w: 160px;
}

/* ヘッダー内の3カラム：左=ロゴ / 中央=アイコンメニュー / 右=アクション */
.header-content{
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 40px; /* お好みで調整 */
}

/* ロゴ全体 */
.logo {
  position: relative;
  width: 180px;  /* 元の文字と同じくらいの幅に調整 */
  height: auto;
  display: inline-block;
}

/* ロゴ画像を重ねて配置 */
.logo__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* 初期状態：白ロゴ表示、黒ロゴ非表示 */
.logo--white {
  opacity: 1;
  z-index: 2;
}
.logo--black {
  opacity: 0;
  z-index: 1;
}

/* スクロール後：黒ロゴ表示、白ロゴ非表示 */
.header.scrolled .logo--white {
  opacity: 0;
}
.header.scrolled .logo--black {
  opacity: 1;
}

/* Page Hero */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
    /* 背景画像を指定 */
  background-image:  linear-gradient(
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15)
    ),url("../image/other/course-page.jpg");

  /* 背景をきれいに表示する設定 */
  background-size: cover;      /* 画面いっぱいに広げる */
  background-position: center; /* 中央に配置 */
  background-repeat: no-repeat;/* 繰り返さない */
}

@media (max-width: 540px) {
  .page-hero{
    height: 45vh;} 
.main-content {
  margin-top: 10px !important;}
  }

events-section  .container{margin-top: unset !important;}  

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 10;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
}

/* Container */
.container {
  max-width: 1200px;
  padding: 0 1.5rem 1.5rem;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
}

/* Courses Section */
.courses-section {
  padding: 0 !important;
  background: hsl(var(--background));
}

.course-content{
  font-weight: 600;
  padding-bottom: 1rem;
}

.courses-map{
  display: flex;
  justify-content: center;
}

img.map{
  width: 80%;
  margin-bottom: 4rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 60px;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),url("../image/other/contact.jpg");

  /* 背景をきれいに表示する設定 */
  background-size: cover;      /* 画面いっぱいに広げる */
  background-position: center; /* 中央に配置 */
  background-repeat: no-repeat;/* 繰り返さない */
}

.course-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.course-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--foreground));
}

.course-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
}


.course-image {
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}


.course-details {
  padding: 1.5rem;
}

.course-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}

.course-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.course-content p{
  margin-bottom: 10px;
  font-weight: 600;
}
.course-content small{
  font-weight: 500;
}

.feature-tag {
  background: hsl(0deg 0% 100% / 10%);
  color: hsl(0deg 0% 0%);
  border-color: hsl(var(--border));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 450px) {
    .container{max-width: 415px!important; 
      margin-top: 40px !important;}}
    

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
  background-image:linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("../image/other/contact.jpg");

  /* 背景をきれいに表示する設定 */
  background-size: cover;      /* 画面いっぱいに広げる */
  background-position: center; /* 中央に配置 */
  background-repeat: no-repeat;/* 繰り返さない */
}

.pricing-table {
  max-width: 800px;
  margin: 0 auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.price-table th,
.price-table td {
  padding: 1rem 0em 1rem 1rem;
  text-align: center;
  line-height: 1.8;
}

.price-table th {
  background: hsl(var(--primary));
  color: white;
  font-weight: 600;
  font-size: 1rem;
}
th .sub-text {
  display: block;
  font-size: 0.8rem;
  color: #000000;
  margin-top: 0.25rem;
}

.price-table tbody tr:nth-child(even) {
  background: hsl(var(--muted) / 0.5);
}

.price-table tbody tr.highlight {
  background: hsl(var(--primary) / 0.1);
  border: 2px solid hsl(var(--primary) / 0.3);
}

.ticket-type {
  font-weight: 600;
  text-align: left;
}

.price {
  font-weight: bold;
  color: hsl(var(--primary));
  font-size: 1.125rem;
}

.season-pass-note {
  text-align: center;
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

@media (max-width: 768px) {
  .price-table th,
  .price-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .price {
    font-size: 1rem;
  }
}

/* Hours Section */
.hours-section {
  padding: 5rem 0px;
  background: hsl(var(--background));
}
/* 営業時間の見出しの真下にライン */
.hours-section .section-title{
  position: relative;
  padding-bottom: 10px;    /* 見出しとラインの間隔 */
  margin-bottom: 18px;     /* ラインと注意文の間隔（調整可） */
}

/* 中央に短めの下線（120px） */
.hours-section .section-title::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 500px;            /* ラインの長さ */
  height: 3px;             /* ラインの太さ */
  background: #000;  /* トーンをサイトの主色に合わせる */
  border-radius: 999px;    /* 端を丸くして上品に */
  opacity: .9;             /* 好みで .6〜1.0 で調整 */
}

/* 画面が狭い時は少しだけ短く控えめに */
@media (max-width: 580px){
  .hours-section .section-title::after{
    width: 96px;
    height: 2.5px;
  }
}
@media (max-width: 375px){
  .hours-section .section-title{
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  .hours-section .section-title::after{
    width: 80px;
    height: 2px;
  }
}


@media (max-width: 768px) {
h2.section-title {
  margin-top: 5rem;
  font-size: x-large;} 
.hours-section {  padding:0px;}
}


.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 20px;
}

.hours-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hours-card:hover {
  transform: translateY(-0.25rem);
}

.hours-card.special {
  background: hsl(var(--accent) / 0.05);
}

.hours-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.hours-section .container span {
  display: block;       /* 横幅をspanからblock要素に */
  text-align: center;   /* 中央寄せ */
  margin-top: 20px;     /* 上との余白（調整可） */
  margin-bottom: 55px;
}


.day-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.days {
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.time {
  font-size: 1.07rem;
  font-weight: 500;
  color: #353535;
}

.special-note {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  font-weight: 400;
}

.price-table td {
  font-size: 1rem ;
}

/* Events Section */
.events-section {
  padding: 5rem 0;
  /* 背景画像を指定 */
  background-image: url("../image/other/News.jpg");
  /* 背景をきれいに表示する設定 */
  background-position: center; /* 中央に配置 */
  background-repeat: no-repeat;/* 繰り返さない */
  background-size: cover;
}

div.event-card{
  margin-top: 2rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition-smooth);
}

.event-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-glow);
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.event-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.event-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.event-price {
  background: hsl(var(--primary));
  color: white;
  padding: 1.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}

.event-dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.date-item {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.event-note {
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding-top: 70px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 20px;
  }
  
  .hours-grid,
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .course-stats {
    grid-template-columns: 1fr;
  }
  
  .event-dates {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #fff;             /* 背景は白 */
  text-align: center;
  padding: 30px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  border-top: 1px solid #e0e0e0; /* 上に薄い仕切り線 */
}

/* SNSボタン */
.footer-sns {
  margin-bottom: 20px;
}

.footer-sns .sns-btn {
  display: inline-block;
  padding: 10px 40px;
  border: 2px solid #000;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
}

.footer-sns .sns-btn:hover {
  background: #000;
  color: #fff;
}

/* リンク */
.footer-links {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #000;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #555;
}

/* コピーライト */
.footer-copy {
  font-size: 0.8rem;
  color: #333;
}

/* スマホサイズ（540px以下）のとき */
@media screen and (max-width: 540px) {
  /* ロゴ */
  .header .logo {
    font-size: 20px;   /* 通常より少し小さめ */
  }

  /* 言語切替ボタン */
  .lang-dropdown {
    font-size: 0.9rem;   /* テキストサイズを少し小さく */
    padding: 6px 12px;   /* ボタンの余白も少し縮める */
  }

  /* 営業・運行状況ボタン */
  .btn btn-primary{
    font-size: 0.9rem;
    padding: 6px 14px;
  }

  /* ハンバーガーメニュー */
  .hamburger-btn {
    width: 39px;     /* アイコンの幅を少し小さめ */
    height: 39px;    /* 高さも小さめ */
  }

  /* アイコン（例：FontAwesomeやSVG）を使っている場合 */
  .header i,
  .header svg {
    font-size: 24px; /* アイコンサイズを少し縮小 */
  }
  .header-content{
    column-gap: 10px !important;
  }
}


/* 850px〜1240pxの間だけ、3カラムを強制 */
@media (min-width: 775px) and (max-width: 1240px) {

  /* サイト横幅（コンテナ）もこの帯で整える */
  .container {
    max-width: 1240px;      /* 上限 */
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- コース（A/B/C）: 常に3列 --- */
  .courses-grid {
    /* 既存の auto-fit/minmax を上書きして3列固定 */
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;               /* 余白を詰めて収まりやすく */
    padding: 40px;           /* 既存の60pxだと狭い場面があるので少しだけ詰める */
  }

  /* --- 営業時間: 常に3列 --- */
  .hours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
  }

  /* もし横詰まりを感じたらカード内のパディングも少し詰める（任意） */
  .hours-card,
  .course-card .course-details {
    padding: 1.5rem;
  }
}
