@charset "UTF-8";
/* ================================================================
   観光スポットの各一覧ページ(観る・食べる・買う・泊まる・モデルコース・特産品)2026-10
   読み込み: category.php(上の6カテゴリーの一覧のときだけ)
   マークアップ: template-parts/spot-list.php
   色: 個別ページ(spot-guide.css)と同じ緑
   ブレークポイント: PC 981px〜(3列) / タブレット 600〜980px(2列) / スマホ 〜599px(横長の行)
   既存の #content h1/h2 や .pagination の指定に負けないよう「#content .is-spotl」から書いている。
================================================================ */

#content .is-spotl .spotl {
  --sl-accent: #2F7D33;
  --sl-text: #2E6B31;
  --sl-dark: #235E26;
  --sl-ink: #2E2820;
  --sl-muted: #66705F;
  --sl-sub: #5A5250;
  --sl-rule: #E8DDD6;
  --sl-line: #CFE3CC;
  --sl-soft: #EAF5E9;
  --sl-display: 'Klee One', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  margin: 0 0 32px;
  padding: 36px 32px 44px;
  background: #FFF;
  border: 1px solid var(--sl-rule);
  border-radius: 12px;
  color: var(--sl-ink);
  box-sizing: border-box;
}
#content .is-spotl .spotl *,
#content .is-spotl .spotl *::before,
#content .is-spotl .spotl *::after { box-sizing: border-box; }

/* ---------- 見出し ---------- */
#content .is-spotl .spotl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sl-rule);
}
#content .is-spotl .spotl-en {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .36em;
  color: var(--sl-text);
}
#content .is-spotl h1.spotl-title {
  display: block; /* 追加CSSの「#content h1 { display:none }」を打ち消す */
  margin: 6px 0 0;
  padding: 0;
  width: auto;
  height: auto;
  background: none;
  border: none;
  font-family: var(--sl-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: .08em;
  color: var(--sl-ink);
}
#content .is-spotl h1.spotl-title a {
  display: inline;
  padding: 0;
  min-height: 0;
  background: none;
  color: inherit;
}
#content .is-spotl .spotl-count {
  margin: 0;
  font-size: 14px;
  color: var(--sl-muted);
  white-space: nowrap;
}
#content .is-spotl .spotl-count-area {
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sl-soft);
  color: var(--sl-text);
  font-size: 12px;
  font-weight: 700;
}
#content .is-spotl .spotl-count-num {
  margin: 0 4px;
  font-family: var(--sl-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--sl-text);
}
#content .is-spotl .spotl-desc {
  margin: 14px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--sl-muted);
}

/* ---------- エリアの絞り込み ---------- */
#content .is-spotl .spotl-areas {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#content .is-spotl .spotl-areas-label {
  flex: none;
  font-size: 12px;
  color: var(--sl-muted);
}
#content .is-spotl .spotl-areas-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#content .is-spotl .spotl-areas-list li { margin: 0; padding: 0; list-style: none; background: none; }
#content .is-spotl .spotl .spotl-area-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--sl-line);
  border-radius: 999px;
  background: #FFF;
  color: var(--sl-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
#content .is-spotl .spotl .spotl-area-btn:hover { border-color: var(--sl-accent); background: var(--sl-soft); color: var(--sl-dark); transform: translateY(-1px); }
#content .is-spotl .spotl .spotl-area-btn.is-current { border-color: var(--sl-accent); background: var(--sl-accent); color: #FFF; }
#content .is-spotl .spotl-area-n {
  font-size: 11px;
  font-weight: 400;
  opacity: .75;
}

/* ---------- カード ---------- */
#content .is-spotl .spotl-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
#content .is-spotl .spotl-item { margin: 0; padding: 0; list-style: none; background: none; }
#content .is-spotl .spotl .spotl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #FFF;
  border: 1px solid var(--sl-rule);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(47, 125, 51, .06);
  color: var(--sl-ink);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
#content .is-spotl .spotl .spotl-card:hover,
#content .is-spotl .spotl .spotl-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--sl-line);
  box-shadow: 0 12px 28px rgba(47, 125, 51, .14);
}
#content .is-spotl .spotl-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EEF5EC;
}
#content .is-spotl .spotl-thumb img.spotl-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
#content .is-spotl .spotl .spotl-card:hover .spotl-img { transform: scale(1.05); }
#content .is-spotl .spotl-noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #EEF5EC, #F7FBF6);
}

/* エリアのバッジ(PC・タブレットは写真の左上、スマホはタイトルの上) */
#content .is-spotl .spotl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  color: var(--sl-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
#content .is-spotl .spotl-badge .spotl-pin { flex: none; color: var(--sl-accent); }
#content .is-spotl .spotl-badge--photo {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px 4px 7px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 4px rgba(31, 28, 26, .15);
}
#content .is-spotl .spotl-badge--text { display: none; }

#content .is-spotl .spotl-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
}
#content .is-spotl h2.spotl-name {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--sl-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.45;
  color: var(--sl-ink);
  transition: color .3s;
}
#content .is-spotl .spotl .spotl-card:hover h2.spotl-name { color: var(--sl-text); }
#content .is-spotl .spotl-sum {
  margin: 8px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400; /* カードのリンク内で太字になるのを打ち消す */
  line-height: 1.75;
  color: var(--sl-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#content .is-spotl .spotl-more {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sl-text);
}
#content .is-spotl .spotl-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sl-soft);
  transition: background-color .3s, color .3s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
#content .is-spotl .spotl .spotl-card:hover .spotl-arrow { background: var(--sl-accent); color: #FFF; transform: translateX(3px); }

/* ---------- ページ送り(functions.php の pagination() の出力) ---------- */
#content .is-spotl .spotl .pagination {
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  float: none;
  border: none;
  background: none;
}
#content .is-spotl .spotl .pagination > span:first-child {
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
  font-size: 12px;
  color: var(--sl-muted);
  min-width: 0;
  height: auto;
}
#content .is-spotl .spotl .pagination a,
#content .is-spotl .spotl .pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sl-line);
  background: #FFF;
  color: var(--sl-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .25s, border-color .25s;
}
#content .is-spotl .spotl .pagination a:hover { background: var(--sl-soft); border-color: var(--sl-accent); }
#content .is-spotl .spotl .pagination .current { background: var(--sl-accent); border-color: var(--sl-accent); color: #FFF; }

#content .is-spotl .spotl-empty {
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 10px;
  background: #F3FAF2;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}
#content .is-spotl .spotl-empty a { color: var(--sl-text); font-weight: 700; }

/* ---------- タブレット(600〜980px) ---------- */
@media screen and (max-width: 980px) {
  #content .is-spotl .spotl { padding: 28px 20px 36px; }
  #content .is-spotl h1.spotl-title { font-size: 42px; }
  #content .is-spotl .spotl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- スマホ(〜599px) ---------- */
@media screen and (max-width: 599px) {
  #content .is-spotl .spotl { padding: 22px 10px 32px; border-radius: 10px; }
  #content .is-spotl .spotl-head { padding: 0 4px 14px; gap: 8px 12px; }
  #content .is-spotl .spotl-en { font-size: 10px; letter-spacing: .32em; }
  #content .is-spotl h1.spotl-title { font-size: 34px; }
  #content .is-spotl .spotl-count-num { font-size: 24px; }
  #content .is-spotl .spotl-desc { margin: 12px 4px 0; font-size: 15px; }

  /* 絞り込みボタンは横にスクロール */
  #content .is-spotl .spotl-areas { margin: 16px -10px 0; padding: 0 14px; }
  #content .is-spotl .spotl-areas-label { display: none; }
  #content .is-spotl .spotl-areas-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  #content .is-spotl .spotl-areas-list::-webkit-scrollbar { display: none; }
  #content .is-spotl .spotl-areas-list li { flex: none; }

  /* カードは写真を左、文字を右にした横長の行 */
  #content .is-spotl .spotl-list { margin-top: 16px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #content .is-spotl .spotl .spotl-card { flex-direction: row; gap: 12px; padding: 10px; }
  #content .is-spotl .spotl .spotl-card:hover { transform: none; }
  #content .is-spotl .spotl-thumb { flex: none; width: 112px; height: 96px; aspect-ratio: auto; border-radius: 8px; }
  #content .is-spotl .spotl-badge--photo { display: none; }
  #content .is-spotl .spotl-badge--text {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 2px 8px 2px 6px;
    background: var(--sl-soft);
    font-size: 11px;
  }
  #content .is-spotl .spotl-badge--text .spotl-pin { width: 11px; height: 11px; }
  #content .is-spotl .spotl-body { padding: 0; min-width: 0; }
  #content .is-spotl h2.spotl-name { font-size: 17px; line-height: 1.4; }
  #content .is-spotl .spotl-sum { margin-top: 4px; font-size: 14px; line-height: 1.6; }
  #content .is-spotl .spotl-more { padding-top: 6px; }
  #content .is-spotl .spotl-more-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  #content .is-spotl .spotl-arrow { width: 26px; height: 26px; }
  #content .is-spotl .spotl .pagination { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  #content .is-spotl .spotl *,
  #content .is-spotl .spotl *::before,
  #content .is-spotl .spotl *::after { transition: none !important; }
}
