/* ============================================
   D-Resort Info — Libre Minimal Design
   Serif + Monochrome + Steel Blue Accent
   ============================================ */

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

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --bg: #fdfcfb;
  --surface: #f7f7f6;
  --card: #ffffff;
  --text: #3a3a3a;
  --text-sub: #6c6c6c;
  --text-muted: #9a9590;
  --accent: #7a94a8;
  --accent-soft: rgba(122,148,168,0.10);
  --border: #e8e8e8;
  --border-light: #f0efed;

  /* タグカラー — 彩度控えめ、落ち着いたトーン */
  --tag-attraction: #5a7fa8;
  --tag-restaurant: #a87070;
  --tag-food: #b8925a;
  --tag-goods: #8a7aab;
  --tag-character: #6a9e82;
  --tag-show: #6a9aaa;
  --tag-event: #b07060;
  --tag-tips: #7a8a8e;
  --tag-popcorn: #c4a040;
  --tag-hotel: #6a7ab0;
  --tag-wedding: #b8788a;
  --tag-overseas: #5a8a7a;
  --tag-marvel: #905050;
  --tag-cruise: #4a7a9a;
  --tag-guidebook: #8a7a6a;
  --tag-ura: #c0a060;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  font-weight: 400;
  font-size: 15px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
}
a:hover { color: var(--accent); }

/* ============================================
   ヘッダー — 透明、上品
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,252,251,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.logo:hover { color: var(--text); }
.logo-accent {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2em;
  position: relative;
}
.logo-accent::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -52px;
  right: -2px;
  height: 18px;
  border: 2px solid var(--accent);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.global-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
}
.global-nav a {
  display: block;
  color: var(--text-muted);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 18px;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.4s var(--ease-out);
}
.global-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.global-nav a:hover {
  color: var(--text);
}
.global-nav a:hover::after,
.global-nav a.active::after {
  transform: scaleX(1);
}
.global-nav a.active {
  color: var(--text);
}

/* ハンバーガー（モバイル用） */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s var(--ease);
}

/* ============================================
   ヒーロー — コンパクト、写真背景
   ============================================ */
.hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.webp');
  background-size: cover;
  background-position: center 40%;
  transition: transform 8s linear;
}
.hero:hover .hero-bg { transform: scale(1.03); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
  padding: 0 24px;
}

/* テキスト背面のフロストパネル */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  z-index: -1;
}

.hero-label {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* 検索ボックス（コンパクト） */
.hero-search--compact .search-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 40px;
  max-width: 400px;
}
.hero-search--compact .search-icon {
  color: rgba(255,255,255,0.7);
}
.hero-search--compact .search-box input {
  color: #fff;
  padding: 12px 14px;
  font-size: 0.82rem;
}
.hero-search--compact .search-box input::placeholder {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* 検索ボックス（共通） */
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #fff;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.search-icon {
  width: 18px;
  height: 18px;
  margin-left: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 12px;
  font-size: 0.85rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  letter-spacing: 0.02em;
}
.search-box input::placeholder { color: #bbb; font-weight: 300; }

.search-box button {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 0.78rem;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: background 0.4s var(--ease-out);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.search-box button:hover { background: var(--accent); }

.search-box--page {
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
}

/* 検索ヒント */
.hero-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.hero-hints a {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.73rem;
  font-weight: 400;
  color: #fff;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.06em;
}
.hero-hints a:hover {
  color: #fff;
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.6);
}
/* 検索ページのヒント */
.search-section .hero-hints a {
  color: var(--text-muted);
  border-color: var(--border);
}
.search-section .hero-hints a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ============================================
   カテゴリナビ（横スクロール）
   ============================================ */
.category-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.cat-scroll {
  display: flex;
  gap: 4px;
  padding: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.4s var(--ease-out);
}
.cat-btn:hover {
  border-color: var(--text-sub);
  color: var(--text);
}
.cat-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.cat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-dot-inline {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ============================================
   記事グリッド
   ============================================ */
.section-articles { padding: 64px 32px 80px; }

.page-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  border-bottom: none;
  display: block;
  padding-bottom: 0;
}

.page-title-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
}

.article-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
}

/* --- カード --- */
.article-card {
  background: var(--card);
  overflow: hidden;
  transition: background 0.5s var(--ease-out);
  position: relative;
  border: 1px solid var(--border);
}
.article-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.article-card:hover {
  background: var(--surface);
}
.article-card:hover::after {
  transform: scaleX(1);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.article-card:hover .card-image img { transform: scale(1.04); }

.card-body { padding: 16px 20px 20px; }

.card-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.card-tags-row .card-tags { margin-bottom: 0; }

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.card-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid;
  background: transparent;
  letter-spacing: 0.04em;
}
.card-tag.attraction { color: var(--tag-attraction); border-color: var(--tag-attraction); }
.card-tag.restaurant { color: var(--tag-restaurant); border-color: var(--tag-restaurant); }
.card-tag.food { color: var(--tag-food); border-color: var(--tag-food); }
.card-tag.goods { color: var(--tag-goods); border-color: var(--tag-goods); }
.card-tag.character { color: var(--tag-character); border-color: var(--tag-character); }
.card-tag.show { color: var(--tag-show); border-color: var(--tag-show); }
.card-tag.event { color: var(--tag-event); border-color: var(--tag-event); }
.card-tag.tips { color: var(--tag-tips); border-color: var(--tag-tips); }
.card-tag.popcorn { color: var(--tag-popcorn); border-color: var(--tag-popcorn); }
.card-tag.hotel { color: var(--tag-hotel); border-color: var(--tag-hotel); }
.card-tag.wedding { color: var(--tag-wedding); border-color: var(--tag-wedding); }
.card-tag.overseas { color: var(--tag-overseas); border-color: var(--tag-overseas); }
.card-tag.marvel { color: var(--tag-marvel); border-color: var(--tag-marvel); }
.card-tag.cruise { color: var(--tag-cruise); border-color: var(--tag-cruise); }
.card-tag.guidebook { color: var(--tag-guidebook); border-color: var(--tag-guidebook); }

.card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* パークバッジ */
.park-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.park-tdl { color: var(--tag-restaurant); border-color: var(--tag-restaurant); }
.park-tds { color: var(--tag-attraction); border-color: var(--tag-attraction); }

/* 構造化カテゴリビュー */
.structured-view {
  display: block !important;
  background: transparent !important;
}
.structured-section {
  margin-bottom: 48px;
}
.structured-heading {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.structured-heading .structured-count {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: auto;
}
.structured-icon {
  font-size: 1.1rem;
  color: var(--tag-event);
}
.structured-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.structured-subheading {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 12px;
  margin-top: 16px;
}
.closure-section {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
}
.closure-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.closure-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background 0.3s var(--ease-out);
}
.closure-item:last-child { border-bottom: none; }
.closure-item:hover { background: var(--surface); }
.closure-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  flex: 1;
}
.closure-accordion {
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.closure-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 10px;
  transition: background 0.2s;
}
.closure-toggle::-webkit-details-marker { display: none; }
.closure-toggle:hover { background: var(--border-light); }
.closure-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
}
.closure-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  position: relative;
}
.closure-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.3s;
}
details[open] > .closure-toggle .closure-arrow::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}
details[open] > .closure-toggle {
  border-radius: 10px 10px 0 0;
}
.closure-accordion .closure-list {
  padding: 0 16px 8px;
  background: var(--surface);
  border-radius: 0 0 10px 10px;
}
.closure-period {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
}

/* 空状態 */
.empty-state, .no-articles {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-weight: 300;
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

/* ============================================
   検索ページ
   ============================================ */
.search-section {
  padding-top: 64px;
  margin-bottom: 32px;
}

.search-results { margin-bottom: 64px; }

.search-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 300;
}

.search-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 1px;
  transition: background 0.4s var(--ease-out);
}
.search-card:hover {
  background: var(--surface);
}

.search-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.search-card .card-tags { margin-bottom: 0; }
.search-card .card-title { font-size: 1.15rem; }
.search-card .card-excerpt {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* ハイライト */
mark {
  background: var(--accent-soft);
  color: var(--text);
  padding: 1px 4px;
  font-weight: 500;
}

/* 基本情報テーブル（検索結果） */
.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  margin: 14px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
}
.info-item {
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
  align-items: baseline;
}
.info-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.info-label::after { content: ":"; }
.info-value { font-weight: 500; color: var(--text); }

.area-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ============================================
   パンくずリスト
   ============================================ */
.breadcrumb {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 24px 0 0;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--text-muted);
  font-weight: 400;
}
.breadcrumb a:hover { color: var(--accent); }
.bc-sep {
  margin: 0 10px;
  opacity: 0.3;
}
.breadcrumb span:last-child {
  color: var(--text-sub);
}

/* ============================================
   記事詳細
   ============================================ */
.article-detail {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 40px;
  margin: 16px 0 48px;
  overflow: hidden;
}
.article-detail-image {
  width: calc(100% + 80px);
  margin: -32px -40px 24px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--surface);
}
.article-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.article-detail .meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}
.article-detail .card-tags { margin-bottom: 10px; }

.article-detail .content { line-height: 1.9; font-weight: 300; }
.article-detail .content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.article-detail .content p { margin-bottom: 18px; }
.article-detail .content ul,
.article-detail .content ol { margin: 14px 0 22px 20px; }
.article-detail .content li { margin-bottom: 8px; }
.article-detail .content strong { color: var(--text); font-weight: 500; }

.affiliate-link {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #bf0000 !important;
  border: 1px solid #bf0000;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.affiliate-link:hover {
  background: #bf0000;
  color: #fff !important;
}

.detail-info-table { margin-bottom: 28px; }
.detail-info-table h3 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.detail-info-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}
.detail-info-table th,
.detail-info-table td {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 400;
}
.detail-info-table tr:last-child th,
.detail-info-table tr:last-child td { border-bottom: none; }
.detail-info-table th {
  width: 150px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
}
.detail-info-table td { font-weight: 500; }

/* 関連記事 */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  border-left: none;
  padding-left: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
}
.related-card {
  display: block;
  padding: 20px;
  background: var(--bg);
  transition: background 0.4s var(--ease-out);
}
.related-card:hover {
  background: var(--surface);
}
.related-tags { margin-bottom: 8px; }
.related-tags .card-tag { font-size: 0.55rem; }
.related-title {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}
.related-card:hover .related-title { color: var(--accent); }

/* ガイドブック訴求バナー */
.gb-promo {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.gb-promo-lead {
  font-family: "Noto Serif JP", serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.gb-promo-text {
  font-size: 0.82rem;
  color: var(--text-sub);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 14px;
}
.gb-promo-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent) !important;
  letter-spacing: 0.04em;
}
.gb-promo-link:hover {
  text-decoration: underline;
}

.back-link {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.back-link a {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.back-link a:hover { color: var(--accent); }

/* ============================================
   Aboutページ
   ============================================ */
.about-page { padding: 64px 0 80px; }

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px 44px;
  margin-bottom: 1px;
}
.about-card--subtle {
  background: var(--surface);
}

.about-card h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 18px;
}

.about-card p {
  margin-bottom: 14px;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 2;
}

.about-list {
  list-style: none;
  margin: 0;
}
.about-list li {
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-sub);
  font-weight: 300;
  border-bottom: 1px solid var(--border-light);
}
.about-list li:last-child { border-bottom: none; }

/* ============================================
   404ページ
   ============================================ */
.error-page {
  text-align: center;
  padding: 100px 20px 120px;
}
.error-code {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 6rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.08;
  letter-spacing: 0.1em;
}
.error-message {
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}
.error-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 40px;
}
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.8rem;
  font-weight: 400;
  background: var(--text);
  color: #fff;
  letter-spacing: 0.06em;
  transition: all 0.4s var(--ease-out);
}
.error-btn:hover { background: var(--accent); color: #fff; }
.error-btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.error-btn--outline:hover {
  border-color: var(--text);
}

/* ============================================
   フッター
   ============================================ */
.site-footer {
  margin-top: auto;
  background: var(--text);
  color: rgba(255,255,255,0.4);
  padding: 48px 0;
  font-size: 0.72rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-logo {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.footer-brand p { font-size: 0.68rem; }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-legal { flex-basis: 100%; }
.footer-legal p { font-size: 0.78rem; margin-bottom: 2px; opacity: 0.6; }
.copyright { margin-top: 10px; opacity: 0.8; }

/* ============================================
   トップに戻るボタン
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(253,252,251,0.95);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.5s var(--ease);
  z-index: 80;
}
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top:hover { border-color: var(--text); }
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .header-inner { height: 52px; padding: 0 20px; }
  .logo { font-size: 1.1rem; }

  .global-nav { display: none; }
  .global-nav.open {
    display: block;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(253,252,251,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px;
  }
  .global-nav.open ul {
    flex-direction: column;
    gap: 2px;
  }
  .global-nav.open a {
    padding: 12px 16px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-light);
  }
  .global-nav.open a::after { display: none; }

  .menu-toggle { display: flex; }

  .hero {
    height: 40vh;
    min-height: 280px;
    max-height: 380px;
  }
  .hero-title { font-size: 1.3rem; }
  .hero-desc { font-size: 0.78rem; }
  .hero-inner::before { inset: -24px -20px; }

  .search-box {
    flex-direction: column;
  }
  .search-icon { display: none; }
  .search-box input {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .search-box button {
    width: 100%;
    padding: 14px;
  }

  .category-nav { top: 52px; }
  .cat-scroll { padding: 12px 0; }

  .section-articles { padding: 40px 20px 48px; }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-body { padding: 20px; }

  .article-detail { padding: 24px 20px; }
  .article-detail-image { width: calc(100% + 40px); margin: -24px -20px 20px; }
  .about-card { padding: 28px 24px; }

  .quick-info { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .search-section { padding-top: 40px; }

  .scroll-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }

  .error-code { font-size: 4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.1rem; }
  .hero-hints { gap: 6px; }
  .hero-hints a { font-size: 0.65rem; padding: 3px 10px; }
  .page-title { font-size: 1.3rem; }
  .card-title { font-size: 0.85rem; }
}

/* ============================================
   裏情報 ダークモード
   ============================================ */
body.ura-mode {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --card: #151515;
  --text: #e0e0e0;
  --text-sub: #a0a0a0;
  --text-muted: #707070;
  --accent: #c0a060;
  --accent-soft: rgba(192,160,96,0.12);
  --border: #2a2a2a;
  --border-light: #222;
}

body.ura-mode .site-header {
  background: rgba(13,13,13,0.95);
  border-bottom-color: #222;
}

body.ura-mode .hero {
  display: none;
}

body.ura-mode .category-nav {
  display: none;
}

body.ura-mode .site-footer {
  background: #000;
}

body.ura-mode .scroll-top {
  background: rgba(20,20,20,0.95);
  border-color: #333;
  color: #aaa;
}

body.ura-mode .article-card {
  border-color: #2a2a2a;
}
body.ura-mode .article-card:hover {
  background: #1e1e1e;
}

body.ura-mode .card-tag {
  opacity: 0.85;
}

body.ura-mode .logo-accent {
  color: var(--accent);
}
body.ura-mode .logo-accent::before {
  border-color: var(--accent);
}

/* 裏情報ヘッダー */
.ura-header {
  padding: 60px 32px 40px;
  text-align: center;
}
.ura-header h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.ura-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.ura-header .ura-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* 裏情報テーブル */
.ura-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.85rem;
}
.ura-table thead th {
  background: var(--surface);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  letter-spacing: 0.04em;
}
.ura-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-weight: 300;
}
.ura-table tbody tr:hover {
  background: var(--accent-soft);
}
.ura-tag {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.card-tag.ura { color: var(--tag-event); border-color: var(--tag-event); }
body.ura-mode .card-tag.ura { color: var(--accent); border-color: var(--accent); }

/* ============================================
   印刷用
   ============================================ */
@media print {
  .site-header, .site-footer, .category-nav,
  .scroll-top, .back-link, .related-articles,
  .hero, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .article-detail { border: none; padding: 0; }
  .breadcrumb { display: none; }
}
