/*
Theme Name: DinoArena
Theme URI: https://dinoarena.jp
Author: DinoArena
Description: 恐竜イベント・施設情報サイト専用の軽量カスタムテーマ
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: dinoarena
Tags: custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
  --color-primary:   #2D6A4F; /* ダークグリーン */
  --color-secondary: #52B788; /* ミドルグリーン */
  --color-accent:    #FFB703; /* イエロー */
  --color-dark:      #1a3a2a; /* 最暗色 */
  --color-white:     #FFFFFF;
  --color-bg:        #f5faf7; /* ごく薄いグリーン背景 */
  --color-text:      #1a1a1a;
  --color-text-muted:#555555;
  --color-border:    #d4e9dd;

  --font-en: 'Fredoka One', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 8px rgba(0,0,0,.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.14);

  --max-width: 1200px;
  --gap: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   サイトヘッダー
   ============================================================ */
.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: var(--gap);
}

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-logo__text {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: .02em;
}

.site-logo__tagline {
  display: none; /* デスクトップで表示 */
  font-size: .7rem;
  color: var(--color-secondary);
}

/* ハンバーガーボタン */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ハンバーガー → ✕ */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* グローバルナビ */
.global-nav {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,.1);
}

.global-nav.is-open {
  display: block;
}

.global-nav__list {
  display: flex;
  flex-direction: column;
}

.global-nav__list a {
  display: block;
  padding: 14px var(--gap);
  color: var(--color-white);
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: 44px;
  transition: background .15s;
}

.global-nav__list a:hover,
.global-nav__list a:focus {
  background: var(--color-primary);
  text-decoration: none;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding-block: 40px 24px;
  margin-top: 60px;
}

.site-footer__logo {
  font-family: var(--font-en);
  font-size: 1.6rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.site-footer__tagline {
  font-size: .85rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 28px;
}

.footer-nav__list li a {
  display: block;
  padding: 8px 12px 8px 0;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  min-height: 44px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.footer-nav__list li a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-nav__list li:not(:last-child) a::after {
  content: '/';
  margin-left: 12px;
  color: rgba(255,255,255,.3);
}

.site-footer__copy {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ============================================================
   ヒーローセクション
   ============================================================ */
.hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-primary) 100%);
  padding-block: 48px 40px;
  text-align: center;
  color: var(--color-white);
}

.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--font-en);
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 6px;
}

.hero__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}

/* 検索フォーム */
.hero__search {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.hero__search-input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-family: var(--font-ja);
  font-size: 1rem;
  outline: none;
  background: var(--color-white);
  color: var(--color-text);
}

.hero__search-btn {
  padding: 14px 20px;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  min-width: 54px;
  min-height: 44px;
  transition: background .15s;
}

.hero__search-btn:hover {
  background: #e6a502;
}

/* クイックフィルター */
.quick-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.quick-filter__btn {
  padding: 8px 16px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius-lg); /* v1.2.0: 99px → var(--radius-lg)=16px（検索フォームと統一） */
  background: rgba(255,255,255,.1);
  color: var(--color-white);
  font-family: var(--font-ja);
  font-size: .85rem;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s, border-color .15s;
  backdrop-filter: blur(4px);
}

.quick-filter__btn:hover,
.quick-filter__btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  padding-block: 40px;
}

.section__header {
  margin-bottom: 20px;
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--color-secondary);
}

.section__more::after {
  content: '→';
}

/* ============================================================
   地域グリッド
   ============================================================ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 700;
  min-height: 80px;
  transition: box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.region-card__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.region-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--color-secondary);
}

/* ============================================================
   イベントカード
   ============================================================ */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card {
  display: flex;
  gap: 14px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow .15s;
  border: 1px solid var(--color-border);
}

.event-card:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.event-card__thumb {
  width: 100px;
  flex-shrink: 0;
  background: var(--color-secondary);
  overflow: hidden;
}

.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  height: 100%;
  min-height: 90px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
}

.event-card__body {
  flex: 1;
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-card__badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 99px;
  align-self: flex-start;
}

.event-card__title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.event-card__meta {
  font-size: .78rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   ホテル・旅行リスト
   ============================================================ */
.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hotel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: box-shadow .15s;
  min-height: 64px;
}

.hotel-item:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.hotel-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.hotel-item__body {
  flex: 1;
}

.hotel-item__title {
  font-size: .95rem;
  font-weight: 700;
}

.hotel-item__desc {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.hotel-item__arrow {
  color: var(--color-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   掲載依頼バナー
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  color: var(--color-white);
}

.cta-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner__desc {
  font-size: .88rem;
  margin-bottom: 20px;
  opacity: .9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 99px;
  font-family: var(--font-ja);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  min-height: 44px;
  transition: background .15s, transform .1s;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn--accent:hover {
  background: #e6a502;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--color-dark);
}

/* ============================================================
   固定ページ・記事エリア
   ============================================================ */
.page-content {
  padding-block: 40px;
}

.page-content__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.entry-content h2 {
  font-size: 1.2rem;
  margin-block: 28px 12px;
  color: var(--color-primary);
}

.entry-content h3 {
  font-size: 1.05rem;
  margin-block: 20px 8px;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.entry-content a {
  text-decoration: underline;
}

/* ============================================================
   レスポンシブ（768px〜）
   ============================================================ */
@media (min-width: 768px) {
  :root { --gap: 24px; }

  /* ヘッダー */
  .nav-toggle { display: none; }

  .global-nav {
    display: flex !important;
    position: static;
    width: auto;
    background: none;
    border: none;
  }

  .global-nav__list {
    flex-direction: row;
    gap: 4px;
  }

  .global-nav__list a {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: rgba(255,255,255,.85);
  }

  .global-nav__list a:hover {
    background: var(--color-primary);
  }

  .site-logo__tagline { display: block; }

  /* ヒーロー */
  .hero { padding-block: 72px 56px; }
  .hero__title { font-size: 3.2rem; }

  /* 地域グリッド */
  .region-grid { grid-template-columns: repeat(4, 1fr); }

  /* イベントカード */
  .event-cards { display: grid; grid-template-columns: repeat(2, 1fr); }

  /* ホテルリスト */
  .hotel-list { display: grid; grid-template-columns: repeat(2, 1fr); }

  /* フッターナビ */
  .footer-nav__list { gap: 0; }
}

/* ============================================================
   レスポンシブ（1024px〜）
   ============================================================ */
@media (min-width: 1024px) {
  .region-grid { grid-template-columns: repeat(4, 1fr); }
  .event-cards { grid-template-columns: repeat(3, 1fr); }
  .hotel-list  { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   クイックフィルター border-radius 修正（v1.2.0 - 2026-04-15）
   変更前: border-radius: 99px（カプセル型）
   変更後: border-radius: var(--radius-lg)（検索フォームと統一）
   ============================================================ */

/* ============================================================
   SP レスポンシブ調整（v1.1.0 - 2026-04-14）
   375px 基準の崩れ防止・タップ領域確保
   ============================================================ */

/* ----------------------------------------------------------
   1. 横スクロール禁止
   ---------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
}

/* ページコンテナの横はみ出し防止 */
.container,
.ct-page,
.pp-page,
.sp-page {
  max-width: 100%;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   2. イベントカードの崩れ防止（〜767px）
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .event-card {
    gap: 10px;
  }

  /* サムネイル幅を抑えて本文エリアを確保 */
  .event-card__thumb {
    width: 80px;
    min-height: 80px;
    flex-shrink: 0;
  }

  /* フレックス子要素のオーバーフロー防止 */
  .event-card__body {
    min-width: 0;
    padding: 10px 10px 10px 0;
  }

  .event-card__title {
    font-size: .88rem;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .event-card__meta {
    font-size: .72rem;
    gap: 4px;
  }
}

/* ----------------------------------------------------------
   3. ホテルカードの崩れ防止（〜767px）
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .hotel-item {
    gap: 10px;
    padding: 12px;
  }

  /* 本文エリアのオーバーフロー防止 */
  .hotel-item__body {
    min-width: 0;
    flex: 1;
  }

  .hotel-item__title {
    font-size: .88rem;
    overflow-wrap: break-word;
  }

  .hotel-item__desc {
    font-size: .75rem;
  }
}

/* ----------------------------------------------------------
   4. 基本情報テーブルの崩れ防止
   ラベル列 80px 固定 + 値列 flex:1 + word-break
   各ページの情報行（evd__ / htd__ / ssd- 等）共通パターン
   ---------------------------------------------------------- */
[class*="__info-row"],
[class*="__meta-row"],
[class*="-info-row"] {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

[class*="__info-label"],
[class*="__meta-label"],
[class*="-info-label"] {
  flex-shrink: 0;
  width: 80px;
  min-width: 80px;
}

[class*="__info-value"],
[class*="__meta-value"],
[class*="-info-value"] {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ----------------------------------------------------------
   5. ボタンのタップ領域確保（min 44px）
   ---------------------------------------------------------- */

/* タップハイライト除去 */
a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
select {
  -webkit-tap-highlight-color: transparent;
}

/* 各ナビ・フィルターボタンのタップ領域 */
.quick-filter__btn,
.region-card,
.global-nav__list a,
.footer-nav__list li a {
  min-height: 44px;
}

/* ----------------------------------------------------------
   6. 画像の崩れ防止
   ベースに img { max-width:100%; height:auto } は定義済み。
   WordPress が挿入する figure 等にも適用する。
   ---------------------------------------------------------- */
figure img,
.wp-block-image img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------
   7. フォントサイズの最小値（11px 以上）
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .event-card__badge { font-size: 11px; }
  .site-footer__copy { font-size: 11px; }
}

/* ----------------------------------------------------------
   8. 地域ボタングリッドの崩れ防止（2列 / 375px）
   375px: (375 - 32px padding - 8px gap) / 2 ≈ 167px / cell
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .region-grid {
    gap: 8px; /* ベースの10pxより詰める */
  }

  .region-card {
    padding: 14px 8px;
    min-height: 72px;
    font-size: .8rem;
  }

  .region-card__icon {
    font-size: 1.5rem;
  }
}


/* ==========================================================================
   共有カードコンポーネント（v1.3.0 - 2026-04-15）
   dinoarena_event_card() / dinoarena_hotel_card() / dinoarena_spot_card()
   が出力する HTML の CSS。全ページで共通で読み込まれる。
   ========================================================================== */

/* --------------------------------------------------------------------------
   ev-card: イベントカード（横並び・70px サムネイル）
   dinoarena_event_card() が出力する HTML クラス
   -------------------------------------------------------------------------- */
.ev-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}
.ev-card:active { background: #f0f7f4; }

.ev-card__thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.ev-card__thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ev-card__thumb-placeholder[data-color="green"] { background: #2D6A4F; }
.ev-card__thumb-placeholder[data-color="teal"]  { background: #52B788; }
.ev-card__thumb-placeholder[data-color="amber"] { background: #FFB703; }
.ev-card__thumb-placeholder[data-color="dark"]  { background: #1a3a2a; }
.ev-card__thumb-dot {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
}

.ev-card__body { flex: 1; min-width: 0; }

.ev-card__tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4px;
}
.ev-card__badge {
    display: inline-block;
    font-size: 9px;
    background: #FFB703;
    color: #412402;
    font-weight: 700;
    border-radius: 99px;
    padding: 1px 6px;
}
.ev-card__tag {
    font-size: 9px;
    color: #52B788;
    font-weight: 700;
}

.ev-card__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card__meta {
    font-size: 10px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.ev-card__arrow {
    font-size: 16px;
    color: #ccc;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   sp-card: スポットカード（横並び・70px サムネイル）
   dinoarena_spot_card() が出力する HTML クラス
   -------------------------------------------------------------------------- */
.sp-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}
.sp-card:active { background: #f0f7f4; }

.sp-card__thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.sp-card__thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #2D6A4F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sp-card__body { flex: 1; min-width: 0; }

.sp-card__tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4px;
}
.sp-card__badge {
    display: inline-block;
    font-size: 9px;
    background: #E1F5EE;
    color: #0F6E56;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 6px;
}
.sp-card__tag {
    font-size: 9px;
    color: #52B788;
    font-weight: 700;
    display: inline-block;
}
.sp-card__tag + .sp-card__tag::before {
    content: '·';
    margin-right: 4px;
    color: #ccc;
}

.sp-card__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-card__meta {
    font-size: 10px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.sp-card__arrow {
    font-size: 16px;
    color: #ccc;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   ht-card-wrap: カード + 予約ボタンのラッパー
   グリッドレイアウト時にカードとボタンを同じセルに収めるためのコンテナ。
   -------------------------------------------------------------------------- */
.ht-card-wrap {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* --------------------------------------------------------------------------
   ht-card: ホテルカード（横並び・70px サムネイル）
   dinoarena_hotel_card() が出力する HTML クラス
   -------------------------------------------------------------------------- */
.ht-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border-radius: 0;
    padding: 12px;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
    flex: 1;
}
.ht-card:active { background: #fdf8ee; }

.ht-card__thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}
.ht-card__thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.ht-card__thumb-placeholder {
    width: 70px;
    height: 70px;
    background: #FFB703;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.ht-card__badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255,183,3,0.92);
    color: #412402;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
}

.ht-card__body { flex: 1; min-width: 0; }

.ht-card__location {
    font-size: 9px;
    color: #888;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.ht-card__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ht-card__meta {
    font-size: 10px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.ht-card__arrow {
    font-size: 16px;
    color: #ccc;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

/* 予約ボタン共通 */
.ht-card__rakuten-link,
.ht-card__jalan-link {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.15s;
    border-top: 1px solid rgba(0,0,0,.05);
}
.ht-card__rakuten-link {
    background: #FFB703;
}
.ht-card__rakuten-link:hover  { background: #e0a200; color: #ffffff; }
.ht-card__rakuten-link:active { background: #52B788; color: #ffffff; }

.ht-card__jalan-link {
    background: #FF6600;
}
.ht-card__jalan-link:hover  { background: #e05a00; color: #ffffff; }
.ht-card__jalan-link:active { background: #cc4f00; color: #ffffff; }

/* ============================================================
   表示速度最適化（v1.4 - 2026-04-20）
   画像最適化以外の CSS パフォーマンス改善
   ============================================================ */

/*
 * content-visibility: auto
 * スクロールで見えていないセクションの描画をブラウザがスキップ。
 * 初期表示範囲外のコンテンツを後回しにしてファーストビューを高速化。
 * contain-intrinsic-size でレイアウトシフト（CLS）を防止。
 */
.ev-section,
.ev-cards,
.ht-hotel-list,
.ht-course-list,
.ht-region-section,
.ssd__section,
.evd__section {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/*
 * contain: layout style
 * カードリスト内の再描画・再レイアウトをコンテナ内に閉じ込める。
 * 一部カードの変化が他カードのレイアウト計算に波及しなくなる。
 */
.ht-card-wrap,
.ev-card,
.sp-card {
    contain: layout style;
}
