@charset "UTF-8";

/* ==========================================================================
   1. 変数定義・ベース設定
   ========================================================================== */

:root {
  --primary-color: #1e3d59;    /* 知的で落ち着いたディープブルー */
  --primary-dark: #122538;     /* ドロップダウン等に使う濃い紺 */

/*  --bg-color: #f8f9fa; */
  --bg-color: #ffffcc;			/* 旧ページから継承 */
  --text-main: #2b2b2b;
  --text-sub: #6c757d;
/*  --accent-color: #007bff; */ /* マップやリンクの青 */
  --accent-color: #ff6e40;		/* マップやリンクのオレンジ */
  --new-color: #dc3545;			/* NEWバッジの赤 */
  --border-color: #dee2e6;
  --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
  max-width: 840px;
  margin: 0 auto;
/*  padding: 20px; */
  padding: 20px 0px;
}


/* ==========================================================================
   2. ヘッダー（グローバルナビゲーション・子メニュー）
   ========================================================================== */
.main-header {
/*	max-width: 800px; */
	max-width: 840px;
	margin: 0 auto;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
/*	max-with: 1200px; */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

	flex-direction: column; /* ロゴとナビを縦並びに */
}

.logo {
    color: #ffffff;
/*    font-size: 1.4rem; */
	font-size: 2.4rem;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0;
    white-space: nowrap;
}

/* ナビゲーションの親リスト */
.global-nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.global-nav .nav-menu > li {
    position: relative; /* 子メニューの配置基準 */
}

.global-nav .nav-menu > li > a {
    color: #e0e6ed;
    text-decoration: none;
    padding: 22px 18px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

/* 親メニューのホバー時・アクティブ時 */
.global-nav .nav-menu > li:hover > a,
.global-nav .nav-menu > li > a.active {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    color: #a0b2c6;
    display: inline-block;
    transition: transform 0.2s;
}

.global-nav .nav-menu > li:hover .arrow {
    transform: rotate(180deg); /* ホバー時に矢印を上向きに */
}

/* 3. ドロップダウン（子メニュー）の設定 */
.dropdown-menu {
    position: absolute;
    top: 100%; /* 親要素の真下に */
    left: 0;
    background-color: var(--primary-dark);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 0 0 6px 6px;
    
    /* アニメーション（フワッと浮き出る） */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.dropdown-menu li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
}

/* 親メニューにホバーされたら子メニューを展開 */
.has-child:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================================================================
   4. メインレイアウト & コンテンツエリア
   ========================================================================== */
.main-layout {
	background-color: #ffffff;
	max-width: 840px;
/*    max-width: 1200px; */
    margin: 0px auto;
    margin-bottom: 40px;
    padding: 20px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* ==========================================================================
   5. カードグリッド（自動レスポンシブ配置）
   ========================================================================== */
.card-grid {
    display: grid;
    /* 画面幅に合わせて、最小幅280pxのカードを自動で行いっぱいに並べる */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
/*    transition: transform 0.3s standard, box-shadow 0.3s; */
	transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #eaedf1; /* 画像読み込み前のダミー色 */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 比率を維持してトリミング */
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 下部のリンクの位置を揃える */
}

.card-category {
    font-size: 0.75rem;
    color: #777777;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.15rem;
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-weight: 700;
}

.card-link {
    margin-top: auto; /* 常にカードの最下部に配置 */
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    text-decoration: underline;
}

/* NEWバッジの装飾 */
.card.new .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}


/* メインの画像表示枠（映画のワンシーン風） */
.hero-section {
  margin-bottom: 30px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #ffffff;
  padding: 20px;
}

.hero-caption h2 {
  margin: 5px 0 0 0;
  font-size: 1.3rem;
}

.pickup-tag {
  background: var(--accent-color);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 新着リスト（スマホでタップしやすいように縦幅を確保） */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
/*
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 8px;
  margin-bottom: 15px;
*/
}

.section-title {
  margin-top: 0px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

/* =====================================
   更新日
   ===================================== */

.update-section {
	display:flex;
	justify-content:space-between;
	align-items:center;
	background:#fff;
	border-radius:10px;
	padding:15px 20px;
	margin-bottom:20px;
	box-shadow:0 1px 5px rgba(0,0,0,.08);
}

.update-date {
	font-size: 0.85rem;
	color: var(--text-sub);
}

/* =====================================
   更新情報
   ===================================== */

.news-section a {
	text-decoration: none !important;
	color: var(--text-main);
}

.news-card {
	background:white;
	border-radius:10px;
	padding:16px;
	margin-bottom:12px;
	box-shadow:0 2px 8px rgba(0,0,0,.08);
	transition:.2s;

	display: flex;
	align-items: center;
}

.news-card:hover {
	transform:translateY(-2px);
	background:#ffe4e1;
}

.news-card.new {
	border-left:5px solid #d60000;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  background: #ffffff;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* スマホで行が折り返せるように */
}

.new-badge {
  background: var(--new-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;

  margin-right: 6px;

  display: flex;
  align-items: center;
}

.drama-tag {
  background: #e9ecef;
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 10px;

  min-width: 60px;

  white-space: nowrap;			/* 改行防止、横並び維持 */
/*  display: inline-block; */ 	/* 改行防止、横並び維持 */
  display: flex;
  align-items: center;
}

.etc-tag {
  background: #99ffff;
  color: var(--text-main);
/*  font-size: 0.75rem; */
  padding: 6px 12px;
  border-radius: 4px;
  margin-right: 12px;

  min-width: 90px;

  white-space: nowrap;		/* 改行防止、横並び維持 */
  display: flex;
  align-items: center;
}

.text-center {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.news-list a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.news-list a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}


/* ==========================================================================
   フッター（トップページ）
   ========================================================================== */
.main-footer {
	max-width: 840px;
	margin: 0 auto;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer-container {
/*	max-with: 1200px; */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

	flex-direction: column; /* ロゴとナビを縦並びに */
}

/* コピーライトの文字 */
.footer-copyright {
	margin: 0;
	color: #ffffff;
	font-size: 14px;
	letter-spacing: 0.05em;        /* 文字間隔を少し広げて見やすく */
}

/* Xリンクのボタンスタイル */
.x-link {
/*	color: #003366;	*/			/* 文字色を背景と同じネイビーに */
	text-decoration: none;		/* 下線を消す */
	font-size: 14px;
	font-weight: bold;			/* 読みやすいように太字 */
	background-color: #ffffff;	/* ネイビーに映える白の丸ボタン */
	padding: 8px 18px;			/* 上下8px, 左右18pxのパディング */
	border-radius: 8px;			/* 角丸ボタン */
	transition: all 0.3s ease;	/* アニメーションの速度 */
	display: inline-flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 軽い影をつけて立体感を出す */
}

/* マウスを乗せたときの変化（ホバーエフェクト） */
.x-link:hover {
	background-color: #f1f3f5;
	color: #1e90ff;
	transform: translateY(-2px);	/* 少し上に浮き上がらせる演出 */
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.counter{
	width:150px;
	height:50px;
	border:none;
}

/* ドラマ詳細のレイアウト */

.drama-main-container {
  max-width: 840px;
  margin: 0 auto;

/*  padding: 20px 20px 80px 20px; */
  padding: 20px 0px 80px 0px;
}

.drama-header {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}
.episode-section {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}
.episode-title {
  font-size: 1.2rem;
  background-color: #99ffff;
  border-left: 4px solid var(--accent-color);
  padding-left: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}

/* ロケ地ごとの記述をボックス化して見やすく */
.spot-box {
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-color);
}
.spot-box:last-child {
	border-bottom: none;
}

.spot-scene {
	font-weight: bold;
	color: var(--text-main);
	margin: 0 0 5px 0;
}

.spot-address {
	font-size: 0.9rem;
	color: var(--text-sub);
	margin: 0 0 5px 0;
}

.spot-coordinate {
	font-size: 0.8rem;
	color: var(--accent-color);
}

/* ドラマヘッダー・カード・スポットのスタイル */
.drama-page-header {
	max-width: 840px;
	margin: 0 auto;
	background-color: var(--primary-color);
	padding: 24px;
	border-radius: 8px;
	border: 1px solid #ddd;
/*	margin-bottom: 30px; */
}

.episode-card {
  background: #ffffff;
  padding: 24px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 30px;
}

.drama-main-title {
  color: #ffffff;				/* 白 */
  text-decoration: none;		/* アンダーライン（下線）を完全に消す */
/*  cursor: default; */			/* マウスを載せたときの手のマーク（ポインター）を通常の矢印に戻す */
}

.drama-main-title a {
  color: #ffffff;				/* 白 */
  text-decoration: none;		/* アンダーライン（下線）を完全に消す */
/*  cursor: default; */			/* マウスを載せたときの手のマーク（ポインター）を通常の矢印に戻す */
}

.drama-meta a {
  color: #ffffff;				/* 白 */
  text-decoration: none;		/* アンダーライン（下線）を完全に消す */
/*  cursor: default; */			/* マウスを載せたときの手のマーク（ポインター）を通常の矢印に戻す */
}

/* ロケ地カード1枚ずつのデザイン */
.spot-item {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  
  /* ★最重要：PC・スマホ共通で、要素を「上から下の縦並び」にする */
  display: flex !important;
  flex-direction: column !important; 
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spot-scene {
  font-weight: bold;
  margin-bottom: 8px;
}

.map-link {
  color: #007bff;
  text-decoration: none;
}

/* ＝ 各話ジャンプボタンのデザイン ＝ */
.episode-nav {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-bottom: 24px;
}

.nav-title {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  font-weight: bold;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap; /* スマホでボタンが溢れたら自動で改行 */
  gap: 8px; /* ボタン同士の間隔 */
}

.nav-buttons .btn {
  display: inline-block;
  background: #f1f3f5;
  color: #495057;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 20px; /* 丸みのある可愛いボタン */
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-buttons .btn:hover {
  background: var(--accent-color);		/* ホーバー時にオレンジ色 */
  color: #ffffff;
}

.spot-grid {
  display: flex;
  flex-direction: column; /* 常に上から下へ縦1列に並べる */
  gap: 24px;              /* カードとカードの上下の間隔 */
  max-width: 800px;       /* ★PC大画面でカードが横に広がりすぎないよう、読みやすい幅に制限 */
  margin: 0 auto;         /* 画面の真ん中に寄せる */
  margin-bottom: 12px;
}

/* ＝ 修正：PC表示で「左テキスト・右写真」の縦1列並びにする ＝ */
/*
.spot-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
*/

/* ＝ 📸 複数写真ギャラリーのデザイン（PC・スマホ共用） ＝ */
.spot-img-gallery {
  width: 100% !important;   /* カードの横幅いっぱいに広げる */
  min-width: 100% !important;
  background: #f1f3f5;
  display: flex !important;
  flex-direction: row !important; /* 写真同士は左から右へ横に並べる */
  overflow-x: scroll !important;    /* 溢れたら横スクロール */
  overflow-y: hidden !important;
  white-space: nowrap !important;
  padding: 12px;
  box-sizing: border-box;
  gap: 12px;
}

/* 写真1枚ずつの外枠（高さを固定して綺麗に整列） */
.gallery-item {
  width: 240px;           /* 写真1枚の横幅を240pxに固定 */
  min-width: 240px;       /* 潰れないように固定 */
  height: 160px;          /* ★写真エリア全体の高さを160pxに固定 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;    /* 縦横比を絶対に崩さず、160pxの高さ内に綺麗に収める */
  width: auto;
  height: auto;
  cursor: default;        /* 拡大しないため通常のポインター */
}

/* スクロールバーを常に表示するための対策 */
/* スクロールバー全体の高さ */
.image-scroll-container::-webkit-scrollbar {
  height: 8px; 
}

/* スクロールバーの背景（レール） */
.image-scroll-container::-webkit-scrollbar-track {
  background: #eee; 
  border-radius: 4px;
}

/* スクロールバーのつまみ（動く部分） */
.image-scroll-container::-webkit-scrollbar-thumb {
  background: #aaa; 
  border-radius: 4px;
}

/* つまみを触ったときの色 */
.image-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #777; 
}

/* ＝ 📝 テキストエリアのデザイン（PC・スマホ共通で読みやすさ最優先） ＝ */
.spot-info {
  padding: 20px;          /* 四方にしっかり余白を作る */
  display: block;         /* 通常の左上詰めのレイアウト */
  text-align: left;
}

/* シーン説明文（h3） */
.spot-scene {
  font-size: 1.05rem;
  line-height: 1.6;       /* 行間を広げて読みやすく */
  margin: 0 0 10px 0;
  color: #1a1a1a;         /* はっきりした黒 */
  font-weight: 700;
}

/* 名称（p） */
.spot-name {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  color: #4a4a4a;         /* ややマイルドな黒 */
  display: flex;
}

/* 住所（p） */
.spot-address {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  color: #4a4a4a;         /* ややマイルドな黒 */
  display: flex;
}

/* 北緯,東経（p） */
.spot-location {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  color: #4a4a4a;         /* ややマイルドな黒 */
  display: flex;
}

.spot-address a {
	text-decoration: none !important;
}

.spot-address a:hover {
	text-decoration: none !important;
}

/* 住所・名称・北緯,東経・メモ用タグ */
.spot-tag {
  background: #e6e6fa;
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;

  min-width: 65px;

  white-space: nowrap;		/* 改行防止、横並び維持 */
/*  display: inline-block; */	/* 改行防止、横並び維持 */
  display: flex;
  align-items: center;
}

/* メモ（p） */
.spot-memo {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  color: #4a4a4a;         /* ややマイルドな黒 */
  display: flex;
}

/* ＝ 🗺️ 地図ボタンのデザイン（PC・スマホ共通でボタン型に統一） ＝ */
.spot-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e9ecef; /* テキストとの区切り線 */
}

.map-link {
  display: inline-block;
  padding: 10px 16px;      /* クリック・タップしやすい広めのサイズ */
  margin-right: 6px;
  margin-bottom: 6px;
  background: #e7f5ff;     /* 爽やかな薄い青色の背景 */
  color: #007bff;          /* 文字色ははっきりとした青 */
  border-radius: 6px;      /* 少し角を丸めてモダンに */
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;   /* 下線を消す */
  transition: background-color 0.2s ease;
}

/* パソコンでマウスを載せたとき（ホバー）は少し濃い青にして反応を返す */
.map-link:hover {
  background: #d0ebff;
  color: #0056b3;
  text-decoration: none;
}

/* ＝ 🌐 地図ボタンのデザイン（PC・スマホ共通でボタン型に統一） ＝ */
.url-link {
  display: inline-block;
  padding: 10px 16px;      /* クリック・タップしやすい広めのサイズ */
  margin-right: 6px;
  margin-bottom: 6px;
  background: #ccffcc;     /* 薄い灰色 */
  color: #007bff;          /* 文字色ははっきりとした青 */
  border-radius: 6px;      /* 少し角を丸めてモダンに */
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;   /* 下線を消す */
  transition: background-color 0.2s ease;
}

/* パソコンでマウスを載せたとき（ホバー）は少し濃い灰色にして反応を返す */
.url-link:hover {
  background: #ccff99;
  color: #0056b3;
  text-decoration: none;
}

/* ＝ Instagram ボタンのデザイン（PC・スマホ共通でボタン型に統一） ＝ */
.Instagram-link {
  display: inline-block;
  padding: 10px 16px;      /* クリック・タップしやすい広めのサイズ */
  margin-right: 6px;
  margin-bottom: 6px;
  background: #ffffcc;     /* 薄い黄色 */
  color: #007bff;          /* 文字色ははっきりとした青 */
  border-radius: 6px;      /* 少し角を丸めてモダンに */
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;   /* 下線を消す */
  transition: background-color 0.2s ease;
}

/* パソコンでマウスを載せたとき（ホバー）は少し濃い黄色にして反応を返す */
.Instagram-link:hover {
  background: #ffff88;
  color: #0056b3;
  text-decoration: none;
}

/* ＝ 📤 メールボタンのデザイン（PC・スマホ共通でボタン型に統一） ＝ */
.mail-link {
  display: inline-block;
  padding: 10px 16px;      /* クリック・タップしやすい広めのサイズ */
  margin-right: 6px;
  margin-bottom: 6px;
  background: #ffe4e1;     /* 薄いピンク */
  color: #007bff;          /* 文字色ははっきりとした青 */
  border-radius: 6px;      /* 少し角を丸めてモダンに */
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;   /* 下線を消す */
  transition: background-color 0.2s ease;
}

/* パソコンでマウスを載せたとき（ホバー）は少し濃いピンク色にして反応を返す */
.mail-link:hover {
  background: #ffc0cb;		/* ピンク */
  color: #0056b3;
  text-decoration: none;
}


/* ==========================================================================
   フッター（ドラマページ）
   ========================================================================== */
.drama-footer {
/*	max-width: 800px; */
    position: fixed;
    bottom: 0;
	width: 100%;
	height: 80px;
/*	margin: 0 auto !important; */
    background-color: var(--bg-color);
    z-index: 1000;
}

.drama-footer-container {
/*	max-with: 1200px; */
    max-width: 840px;
    width: 100%;
    margin: 0 auto !important;
/*	padding: 0px 20px; */
	padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;

	flex-direction: column; /* ロゴとナビを縦並びに */
}

.drama-footer-nav {
  background: var(--primary-color);
  width: 100%;
  padding: 16px;

  border-radius: 8px;
  border: 1px solid var(--primary-color);

}

/* ==========================================================================
   フッター（etcページ）
   ========================================================================== */
.etc-footer {
    position: sticky;
    bottom: 0;
	width: 100%;
	height: 80px;
    background-color: var(--bg-color);
    z-index: 1000;
}

.etc-footer-container {
    max-width: 840px;
    width: 100%;
    margin: 0 auto !important;
	padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	flex-direction: column; /* ロゴとナビを縦並びに */
}

.etc-footer-nav {
  background: var(--primary-color);
  width: 100%;
  padding: 16px;

  border-radius: 8px;
  border: 1px solid var(--primary-color);
}

/* ＝ 🖥️ パソコン表示（画面幅769px以上） ＝ */
@media (min-width: 769px) {
  .main-nav > ul {
    display: flex;
    gap: 20px;
  }

  /* ★新規追加：親メニューの「枠」自体のホバー設定 */
  .main-nav > ul > li {
    position: relative;
    border-radius: 4px; /* 子メニューの角丸と合わせて少し丸みを持たせる（任意） */
    transition: background-color 0.2s ease; /* 色の変化を滑らかにする */
  }

  /* ★最重要：マウスが載ったときに、親メニュー全体の背景色と文字色を一斉に変える */
  .main-nav > ul > li:hover {
    background-color: #f1f3f5; /* 子メニューのホバー時と同じ薄いグレー */
  }

  .main-nav > ul > li:hover > .menu-link-wrap > a,
  .main-nav > ul > li:hover > a {
    color: var(--accent-color, #007bff) !important; /* 子メニューと同じアクセントカラー（青）に変える */
  }

  /* マウスが載ったときに矢印（▼）の色も一緒に青くする */
  .main-nav > ul > li:hover .menu-toggle {
    color: var(--accent-color, #007bff);
  }

  .menu-toggle {
    pointer-events: none; /* PCではクリックを無効化（ホバー優先） */
  }

  .main-nav > ul > li:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .main-nav > ul > li:hover .menu-toggle {
    transform: rotate(180deg);
  }
}


/* ==========================================================================
   7. 📱 スマートフォン・タブレット用ブレイクポイント（幅768px以下）
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* スマホ時はロゴとナビを縦並びに */
        align-items: flex-start;
        padding: 0;
    }

    .logo {
        padding: 15px 20px 8px 20px;
    }
    
    /* ナビゲーション全体を横スクロール可能にしてはみ出しを防ぐ */
    .global-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
        border-top: 1px solid var(--primary-dark);
        background-color: var(--primary-dark);
    }

    .global-nav .nav-menu {
        padding: 0 10px;
    }

    .global-nav .nav-menu > li > a {
        padding: 14px 16px;
        white-space: nowrap; /* 項目が途中で改行されるのを防止 */
        font-size: 0.9rem;
    }
    
    /* スマホ画面での誤動作・はみ出しを防ぐため、ドロップダウンは非表示にし、
       親メニュー自体のリンク（例：「ドラマを探す」ページへの遷移）を機能させます */
    .dropdown-menu {
        display: none !important; 
    }

    .arrow {
        display: none; /* スマホ時は矢印を隠す */
    }

    /* メインエリアの余白調整 */
/*
    .main-layout {
        margin: 20px auto;
    }
*/
    .section-title {
        font-size: 1.3rem;
    }
}


/* ==========================================================================
   「ドラマを探す」ページ専用のスタイル
   ========================================================================== */

.page-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.page-lead {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* クイックナビ（目次ボタン） */
.quick-nav-container {
	background-color: #90ee90;
	padding: 14px 24px 24px 24px;
	border-radius: 8px;
/*	border: 1px solid #ddd; */
	margin-bottom: 30px;
}

.quick-nav {
    display: flex;
    gap: 10px;
/*    margin-bottom: 20px; */
	margin: 10px 10px 0px 10px;
    flex-wrap: wrap;
}

.quick-nav a {
    background-color: #e2e8f0;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.quick-nav a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.quick-nav-top {
    display: flex;
	justify-content:space-between;
	align-items:center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-nav-top a {
    background-color: #e2e8f0;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.quick-nav-top a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.quick-nav-top a.off {
	color: #fff;
}

/* 準備中リンク */
.is-disabled {
	pointer-events: none;	/* クリックを無効化		*/
	color: #ffffff;			/* 文字をグレーにする	*/
	text-decoration: none;	/* 下線を消す			*/
	cursor: default;		/* カーソルを通常の矢印にする	*/
}

/* 検索用セクションの余白 */
.search-section {
/*    background-color: var(--card-bg); */
	background-color: #eeeeee;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

/* 年代・カテゴリリンクをグリッド配置（押しやすいボタン状に） */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.list-item-btn {
    display: block;
    background-color: #f8fafc;
    color: var(--primary-color);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}
.list-item-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateX(4px); /* マウスホバーで少し右にずれる遊び心 */
}

/* 50音表のモダンなスタイリング（スマホのテーブル崩れ対策） */
.syllabary-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    max-width: 500px; /* 表が広がりすぎないように */
}

.syllabary-row {
    display: flex;
    gap: 8px;
}

.syllabary-row a, .syllabary-row .empty, .syllabary-row .empty2 {
    flex: 1; /* すべて等幅に */
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    border-radius: 6px;
}

.syllabary-row a {
    background-color: #f8fafc;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.syllabary-row a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.syllabary-row .empty {
    background-color: transparent; /* 空白マス */
}

.syllabary-row .empty2 {
    background-color: #f8fafc;
    color: #e0e6ed;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

/* 放送クール表のモダンなスタイリング（スマホのテーブル崩れ対策） */
.period-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    max-width: 500px; /* 表が広がりすぎないように */
}

.period-row {
    display: flex;
    gap: 8px;
}

.period-row0 {
    display: flex;
    gap: 8px;
}

.period-row1 {
    display: flex;
    gap: 8px;
    background-color: #ffffcc;
}

.period-row a, .period-row .empty, .period-row .empty2 {
    flex: 1; /* すべて等幅に */
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    border-radius: 6px;
}

.period-row a {
    background-color: #f8fafc;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.period-row a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.period-row .empty {
    background-color: transparent; /* 空白マス */
    font-size: 0.95rem;
    font-weight: 600;
}

.period-row .empty2 {
    background-color: #f8fafc;
    color: #e0e6ed;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

/* スマホ向けの微調整 */
@media (max-width: 768px) {
    .search-section {
        padding: 20px 15px;
    }
    .link-grid {
        grid-template-columns: 1fr; /* スマホではボタンを縦1列にして100%押しやすく */
    }
    .list-item-btn {
        padding: 12px 15px;
    }
    .syllabary-row a {
        padding: 10px 0; /* スマホでは50音のマスを少しコンパクトに */
    }
}


/* ヘッダーに隠れるのを防止する */
/*
section {
  scroll-margin-top: 140px;
}
*/

/* =====================================
   クール別 ドラマリスト
   ===================================== */
.list-main-header {
  max-width: 840px;
  margin: 0 auto;

  padding: 20px 20px 0px 20px;

}

.list-main-container {
  max-width: 840px;
  margin: 0 auto;

  padding: 0px 20px 80px 20px;

}

section.list-section {
	scroll-margin-top: 0px;
}

.list-main-title {
	background-color: green;
	padding: 24px;
	border-radius: 8px;
	border: 1px solid #ddd;
/*	margin-bottom: 30px; */
}

.list-section a {
	text-decoration: none !important;
	color: var(--text-main);
}

.list-card {
	background:white;
	border-radius:10px;
	padding:16px;
	margin-bottom:12px;
	box-shadow:0 2px 8px rgba(0,0,0,.08);
	transition:.2s;
}

.list-card:hover {
	transform:translateY(-2px);
	background:#ffe4e1;
}


/* =====================================
   ドラマ名 索引
   ===================================== */

.drama-name-section a {
	text-decoration: none !important;
	color: var(--text-main);
}

.drama-name-card {
	background:white;
	border-radius:10px;
	padding:16px;
	margin-bottom:12px;
	box-shadow:0 2px 8px rgba(0,0,0,.08);
	transition:.2s;

	display: flex;
	align-items: center;
}

.drama-name-card:hover {
	transform:translateY(-2px);
	background:#ffe4e1;
}

.drama-name-section {
/*    background-color: var(--card-bg); */
	background-color: #eeeeee;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}


/* =====================================
   ロケ地コラム
   ===================================== */
.column-page-header {
	max-width: 840px;
	margin: 0 auto;
	background-color: var(--primary-color);
	padding: 24px;
	border-radius: 8px;
	border: 1px solid #ddd;
	margin-bottom: 30px;
}

.column-main-title {
  color: #ffffff;				/* 白 */
  text-decoration: none;		/* アンダーライン（下線）を完全に消す */
/*  cursor: default; */			/* マウスを載せたときの手のマーク（ポインター）を通常の矢印に戻す */
}

.column-main-container {
  max-width: 840px;
  margin: 0 auto;

/*  padding: 20px 20px 0px 20px; */
/*  padding: 20px 0px 80px 0px; */
  padding-bottom: 80px;
}

.column-nav {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-bottom: 24px;
}

.column-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 30px;
}

.column-title {
  font-size: 1.2rem;
  background-color: #99ffff;
  border-left: 4px solid var(--accent-color);
  padding-left: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}

.column-grid {
  display: flex;
  flex-direction: column; /* 常に上から下へ縦1列に並べる */
  gap: 24px;              /* カードとカードの上下の間隔 */
  max-width: 800px;       /* ★PC大画面でカードが横に広がりすぎないよう、読みやすい幅に制限 */
  margin: 0 auto;         /* 画面の真ん中に寄せる */
  margin-bottom: 12px;
}

.column-item {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  
  /* ★最重要：PC・スマホ共通で、要素を「上から下の縦並び」にする */
  display: flex !important;
  flex-direction: column !important; 
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ＝ 📸 複数写真ギャラリーのデザイン（PC・スマホ共用） ＝ */
.column-img-gallery {
  width: 100% !important;   /* カードの横幅いっぱいに広げる */
  min-width: 100% !important;
  background: #f1f3f5;
  display: flex !important;
  flex-direction: row !important; /* 写真同士は左から右へ横に並べる */
  overflow-x: scroll !important;    /* 溢れたら横スクロール */
  overflow-y: hidden !important;
  white-space: nowrap !important;
  padding: 12px;
  box-sizing: border-box;
  gap: 12px;
}

/* ＝ 📝 テキストエリアのデザイン（PC・スマホ共通で読みやすさ最優先） ＝ */
.column-doc {
  padding: 20px;          /* 四方にしっかり余白を作る */
  display: block;         /* 通常の左上詰めのレイアウト */
  text-align: left;
}
