/* ============================================
   D-Resort Info — Libre Minimal Design
   Gothic + 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&display=swap');

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

/* Screen-reader only: visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

: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; overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
main { max-width: 100vw; min-width: 0; overflow-x: hidden; }

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;
  overflow-x: hidden;
}

.container { max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 32px; overflow-x: hidden; }

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;
  gap: 32px;
  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.82rem;
  font-weight: 400;
  padding: 8px 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  transition: color 0.4s var(--ease-out);
}
.global-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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); }

/* 終了イベントバッジ */
.event-ended-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(120, 120, 120, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  z-index: 2;
}
.article-card.card-ended .card-image {
  opacity: 0.6;
}
.article-card.card-ended .card-title a {
  color: var(--text-muted);
}
.event-ended-banner {
  background: #6b6b6b;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

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

.card-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.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.68rem;
  font-weight: 500;
  padding: 2px 8px;
  border: 1px solid;
  background: transparent;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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: 2px 8px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid;
  white-space: nowrap;
}
.park-tdl { color: var(--tag-restaurant); border-color: var(--tag-restaurant); }
.park-tds { color: var(--tag-attraction); border-color: var(--tag-attraction); }

/* サブタイプ切り替えタブ（アトラクション/施設） */
.subtype-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.subtype-tab {
  flex: 1;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-sub);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.subtype-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}
.subtype-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.subtype-count {
  font-size: 0.72rem;
  font-weight: 300;
  opacity: 0.8;
  margin-left: 4px;
}

/* 構造化カテゴリビュー */
.structured-view {
  display: block !important;
  background: transparent !important;
}
.structured-section {
  margin-bottom: 48px;
}
.structured-heading {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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-item--ended { opacity: 0.5; }
.closure-item--ended:hover { opacity: 0.8; }
.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;
}

/* 空状態 — base definition (overridden by improved version at bottom) */
.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;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ============================================
   検索ページ
   ============================================ */
.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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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.85rem;
  color: var(--text-muted);
  font-weight: 300;
}
.reading-time {
  color: var(--accent);
  font-weight: 400;
}

/* Table of Contents */
.article-toc {
  margin: 0 0 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.toc-title {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.article-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}
.article-toc li {
  margin-bottom: 6px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.article-toc a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.article-toc a:hover {
  color: var(--accent);
}
.article-detail .card-tags { margin-bottom: 10px; }

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

/* 記事内テーブル（info-table） */
.article-detail .content .info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.article-detail .content .info-table th,
.article-detail .content .info-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article-detail .content .info-table thead th {
  background: var(--surface);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.article-detail .content .info-table tbody tr:nth-child(even) {
  background: #fafaf9;
}
.article-detail .content .info-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
}

/* h4サブ見出し */
.article-detail .content h4 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

/* カード紹介ブロック */
.card-showcase {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0 28px;
  position: relative;
}
.card-showcase::before {
  content: attr(data-rank);
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 14px;
  border-radius: 10px;
}
.card-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.card-showcase-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.card-showcase-fee {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.card-showcase-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.card-showcase-points span {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-sub);
  border: 1px solid var(--border-light);
}
.card-showcase-points span.highlight {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffcc80;
  font-weight: 500;
}
.card-showcase-body {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-sub);
}
.card-showcase-body ul {
  margin: 8px 0 0 16px;
}
.card-showcase-body li {
  margin-bottom: 4px;
}
.card-showcase-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.card-showcase-cta:hover { opacity: 0.85; }

/* おすすめ度バー */
.recommend-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.recommend-bar .bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.recommend-bar .bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.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;
}

/* --- アフィリエイトブロック --- */
.affiliate-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 28px 0;
  line-height: 1.8;
}

.affiliate-block p {
  margin-bottom: 12px;
  font-weight: 300;
  color: var(--text-sub);
  font-size: 0.88rem;
}
.affiliate-block p:last-child {
  margin-bottom: 0;
}

.affiliate-block strong {
  color: var(--text);
  font-weight: 500;
}

.affiliate-block a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.affiliate-block a::after {
  content: " \2197";
  font-size: 0.75em;
  opacity: 0.6;
}
.affiliate-block a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.affiliate-block .affiliate-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ura-mode アフィリエイトブロック */
body.ura-mode .affiliate-block {
  background: #1a1a1a;
  border-color: #2a2a2a;
  border-left-color: var(--accent);
}
body.ura-mode .affiliate-block a {
  color: var(--accent);
}
body.ura-mode .affiliate-block a:hover {
  border-bottom-color: var(--accent);
}

/* 内部リンクブロック */
.internal-links {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.internal-links h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.internal-links ul {
  list-style: none;
  padding: 0;
}
.internal-links li {
  margin-bottom: 8px;
}
.internal-links a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}
.internal-links a:hover {
  text-decoration: underline;
}

.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: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.related-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted, #666);
  margin: 0 0 12px;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-item {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
}
.related-item:first-child {
  border-top: none;
  padding-top: 0;
}
.related-item:last-child {
  padding-bottom: 0;
}
.related-item a {
  color: var(--text);
  text-decoration: none;
}
.related-item a:hover {
  color: var(--accent, #2563a8);
  text-decoration: underline;
}

/* 同エリアガイド */
.area-guide {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.area-guide-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.area-guide-section {
  margin-bottom: 12px;
}
.area-guide-section:last-child {
  margin-bottom: 0;
}
.area-guide-section h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub, #666);
  margin-bottom: 8px;
}
.area-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.area-guide-list li a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--primary, #1a73e8);
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.area-guide-list li a:hover {
  background: var(--primary, #1a73e8);
  color: #fff;
  border-color: var(--primary, #1a73e8);
}
.area-guide-more a {
  font-weight: 500;
}

/* ガイドブック訴求バナー */
.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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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); }

/* Tool CTA — 記事→機能ページ誘導 */
.tool-cta-box {
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-cta:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  box-shadow: 0 2px 12px rgba(122,148,168,0.12);
}
.tool-cta-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.tool-cta-body strong {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
}
.tool-cta-body span:last-child {
  font-size: 0.76rem;
  color: var(--text-sub);
  font-weight: 300;
}
.tool-cta-arrow {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* 人気ツールグリッド */
.popular-tools {
  margin-bottom: 40px;
}
.popular-tools .section-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 480px) {
  .popular-grid { grid-template-columns: 1fr; }
}
.popular-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.popular-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.popular-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.popular-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* AdSense Ad Slots — placeholder */
.ad-slot {
  margin: 32px auto;
  min-height: 0;
  text-align: center;
}
.ad-slot:empty { display: none; }

/* Article Share Buttons */
.article-share {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.share-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 22px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--surface, #f5f5f5);
  border: 1px solid var(--border, #e5e7eb);
  transition: background 0.2s, border-color 0.2s;
}
.share-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-x { }
.share-line { }
.share-copy {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}
.share-copy:hover { background: var(--surface); }

/* Load More Button */
.load-more-btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.load-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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);
}
.error-suggestions { margin-top: 32px; }
.error-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
}
.error-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ============================================
   クイックリンクカード（トップ）
   ============================================ */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
  text-align: center;
}
.quick-link-card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
.ql-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ql-label {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.ql-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================
   フッター
   ============================================ */
.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;
  flex-wrap: wrap;
  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);
}

/* ============================================
   チェックリスト
   ============================================ */
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.checklist label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.7; }
.checklist input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--border); border-radius: 4px;
  margin-top: 3px; cursor: pointer; position: relative;
  background: var(--bg); transition: all 0.15s;
}
.checklist input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.checklist input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist input[type="checkbox"]:checked + strong,
.checklist label:has(input:checked) { opacity: 0.5; text-decoration: line-through; }
.checklist-print-hint {
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--surface); padding: 10px 14px;
  border-radius: 8px; margin-bottom: 16px;
}

@media print {
  .checklist input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    border: 2px solid #999; background: #fff;
  }
  .checklist input[type="checkbox"]:checked {
    background: #fff; border-color: #999;
  }
  .checklist input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 5px; top: 1px;
    width: 6px; height: 11px;
    border: solid #ccc; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .checklist label:has(input:checked) { opacity: 1; text-decoration: none; }
  .site-header, .site-footer, .share-buttons, .tool-cta, .ad-slot { display: none; }
  .checklist-print-hint { display: none; }
}

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

  .header-inner { height: 52px; padding: 0 20px; }
  .logo { font-size: 1.1rem; }
  .logo-accent::before {
    left: -38px;
    right: -2px;
    height: 13px;
    top: -3px;
    border-width: 1.5px;
  }

  .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: 36vh;
    min-height: 240px;
    max-height: 320px;
  }
  .hero-title { font-size: 1.2rem; line-height: 1.6; }
  .hero-desc { display: none; }
  .hero-inner::before { display: none; }

  .search-box {
    flex-direction: column;
  }
  .search-icon { display: none; }
  .search-box input {
    padding: 14px 18px;
    border-bottom: none;
    width: 100%;
    -webkit-appearance: none;
  }
  .search-box button {
    width: 100%;
    padding: 14px;
    -webkit-appearance: none;
    border-bottom: none;
    text-decoration: none;
  }

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

  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
  .quick-link-card { padding: 14px 10px; gap: 4px; }
  .ql-label { font-size: 0.78rem; }
  .ql-sub { font-size: 0.6rem; }
  .today-crowd-widget { margin-top: 16px; }

  .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; }

  .article-share { flex-direction: column; align-items: flex-start; gap: 10px; }
  .share-buttons { width: 100%; }
  .share-btn { flex: 1; justify-content: center; padding: 10px 12px; }

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

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

  .affiliate-block { padding: 20px; margin: 20px 0; }
  .affiliate-block p { font-size: 0.85rem; }

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

  /* テーブル横スクロール対応 */
  .detail-info-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .detail-info-table th { width: 100px; min-width: 80px; font-size: 0.72rem; padding: 8px 10px; white-space: normal; }
  .detail-info-table td { padding: 8px 10px; font-size: 0.78rem; }
  .article-detail .content .info-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ura-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .closure-section { padding: 20px 16px; }

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

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .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.15rem; word-break: keep-all; overflow-wrap: break-word; }
  .card-title { font-size: 0.85rem; }
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .quick-link-card { padding: 12px 8px; }
  .ql-icon svg { width: 22px; height: 22px; }
}

/* 320px 超小型デバイス対応 */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .header-inner { padding: 0 12px; }
  .quick-links { grid-template-columns: 1fr; gap: 6px; }
  .quick-link-card { flex-direction: row; padding: 12px; gap: 10px; }
  .ql-label { font-size: 0.75rem; }
  .section-articles { padding: 28px 12px 36px; }
  .footer-links { gap: 8px; }
  .footer-links a { font-size: 0.72rem; }
  .about-card { padding: 20px 16px; }
}

/* ============================================
   裏情報 ダークモード
   ============================================ */
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 Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-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); }

/* ============================================
   印刷ボタン
   ============================================ */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  float: right;
  margin-top: 4px;
}
.print-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.print-btn-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}
.print-btn-icon::before {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 0 0;
  position: absolute;
  top: 0;
  left: 3px;
}
.print-btn-icon::after {
  content: "";
  display: block;
  width: 16px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 0;
}

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

/* ── Today crowd widget (トップページ) ── */
.today-crowd-widget {
  margin-top: 20px;
  margin-bottom: 24px;
}
.tcw-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tcw-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.tcw-levels {
  display: flex;
  gap: 24px;
  flex: 1;
}
.tcw-park {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.tcw-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.tcw-num {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
}
.tcw-text {
  font-size: 0.72rem;
  color: var(--text-sub);
}
.tcw-link {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
}
.tcw-tomorrow {
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tcw-tomorrow .tcw-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.tcw-levels--sm { gap: 12px; }
.tcw-num--sm {
  width: 26px; height: 26px;
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .tcw-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .tcw-link { margin-left: 0; }
}

/* ============================================
   [FIX] Focus visible states for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   [FIX] Minimum touch target size (44px)
   ============================================ */
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.error-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.share-btn {
  min-height: 44px;
}
.global-nav.open a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ============================================
   [FIX] Loading skeleton for async content
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   [FIX] Improved empty states
   ============================================ */
.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;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ============================================
   [FIX] Better breadcrumb navigation styling
   ============================================ */
.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ============================================
   [FIX] Selection color
   ============================================ */
::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* ============================================
   前後記事ナビ
   ============================================ */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-nav-link {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.article-nav-link:hover {
  border-color: var(--accent);
}
.article-nav-next {
  text-align: right;
}
.article-nav-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.article-nav-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 480px) {
  .article-nav { grid-template-columns: 1fr; }
}

/* ===== Hotel Booking Buttons (3社均等) ===== */
.hotel-book-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hotel-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 100px;
  max-width: 200px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: none;
}
.hotel-book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.hotel-book-btn--rakuten {
  background: #bf0000;
  color: #fff;
}
.hotel-book-btn--rakuten:hover {
  background: #9a0000;
  color: #fff;
}

/* ===== Floating CTA Bar ===== */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card, #fff);
  border-top: 1px solid var(--border, #e0e0e0);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.floating-cta-bar.visible {
  transform: translateY(0);
}
.floating-cta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 16px;
}
.floating-cta-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
}
.floating-cta-hotel {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #333);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.floating-cta-date {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  white-space: nowrap;
}
.floating-cta-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #bf0000;
  white-space: nowrap;
}
.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #bf0000;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(191,0,0,0.25);
}
.floating-cta-btn:hover {
  background: #9a0000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(191,0,0,0.35);
}
.floating-cta-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-muted, #888);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  transition: background 0.2s;
}
.floating-cta-close:hover {
  background: var(--surface, #f0f0f0);
}

@media (max-width: 600px) {
  .floating-cta-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .floating-cta-hotel {
    max-width: 100px;
    font-size: 0.72rem;
  }
  .floating-cta-date {
    font-size: 0.7rem;
  }
  .floating-cta-price {
    font-size: 0.82rem;
  }
  .floating-cta-btn {
    font-size: 0.78rem;
    padding: 8px 14px;
  }
  .hotel-book-btns {
    flex-direction: column;
  }
  .hotel-book-btn {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    font-size: 0.82rem;
    padding: 11px 14px;
  }
}

/* Hotel CTA Box */
.hotel-cta-box {
  background: #fafaf8;
  border: 1px solid var(--border, #e5e2dc);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 24px 0;
}
.hotel-cta-text {
  font-size: 0.82rem;
  color: #78716c;
  margin: 0 0 12px;
}
.hotel-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #7a94a8;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.hotel-cta-btn:hover {
  background: #5a7488;
}
