/* ============================================================
   与論島ガイド（コラム） — guide layout
   reuses tokens from style.css
   ============================================================ */

.guide-hero {
  position: relative; padding: 9rem 1.2rem 3.5rem; text-align: center; color: var(--cream);
  background-image: linear-gradient(rgba(6,26,35,0.6), rgba(6,26,35,0.82)), url('../images/yurigahama.jpg');
  background-size: cover; background-position: center;
}
.guide-hero .eyebrow { color: #ffd9a0; }
.guide-hero h1 {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.32; max-width: 880px; margin: 0.6rem auto 0;
}
.guide-hero .guide-lead { margin: 1.2rem auto 0; max-width: 680px; color: rgba(251,248,241,0.88); font-weight: 300; font-size: 0.98rem; }
.guide-meta { margin-top: 1.4rem; font-size: 0.8rem; letter-spacing: 0.05em; color: rgba(251,248,241,0.7); }
.guide-meta span { margin: 0 0.5rem; }

/* breadcrumb */
.crumb { width: 90%; max-width: 820px; margin: 1.6rem auto 0; font-size: 0.78rem; color: var(--text-muted); }
.crumb a { color: var(--ocean); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* article prose */
.article { width: 90%; max-width: 760px; margin: 0 auto; padding: 3rem 0 4rem; }
.article > p { font-size: 1rem; line-height: 2.05; color: var(--ink); margin-bottom: 1.5rem; }
.article h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink); margin: 2.8rem 0 1.1rem; padding-left: 0.9rem;
  border-left: 4px solid var(--coral);
}
.article h3 { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ocean-deep); margin: 1.8rem 0 0.7rem; }
.article ul, .article ol { margin: 0 0 1.5rem 1.3rem; }
.article li { font-size: 0.97rem; line-height: 1.95; margin-bottom: 0.4rem; }
.article strong { color: var(--ocean-deep); }
.article .lead { font-size: 1.08rem; color: var(--ink-soft); font-weight: 500; }

/* comparison table */
.g-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 2rem; font-size: 0.9rem; }
.g-table th, .g-table td { border: 1px solid var(--border); padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; }
.g-table th { background: var(--sand); font-weight: 700; color: var(--ink); }
.g-table tr:nth-child(even) td { background: rgba(244,236,221,0.35); }

/* callout */
.callout {
  background: linear-gradient(120deg, rgba(10,142,160,0.08), rgba(95,211,216,0.13));
  border: 1px solid var(--border-dim); border-radius: 14px; padding: 1.4rem 1.6rem; margin: 1.8rem 0;
}
.callout p { margin: 0; font-size: 0.95rem; color: var(--ink); }

/* CTA card — funnel to the inn */
.guide-cta {
  margin: 3rem auto; border-radius: 18px; overflow: hidden; position: relative; color: var(--cream);
  background-image: linear-gradient(rgba(6,26,35,0.72), rgba(6,26,35,0.84)), url('../images/island-beach.jpg');
  background-size: cover; background-position: center; padding: 2.6rem 2rem; text-align: center;
}
.guide-cta h3 { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.4rem; margin-bottom: 0.7rem; }
.guide-cta p { color: rgba(251,248,241,0.9); font-weight: 300; font-size: 0.95rem; margin-bottom: 1.4rem; }

/* faq */
.g-faq { margin: 2rem 0; }
.g-faq details { border-bottom: 1px solid var(--border-dim); padding: 1rem 0; }
.g-faq summary { font-weight: 700; cursor: pointer; color: var(--ink); font-size: 0.98rem; }
.g-faq p { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.93rem; }

/* guide index list */
.guide-list { width: 90%; max-width: 1040px; margin: 0 auto; padding: 3.5rem 0 4rem; }
.guide-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.guide-cat {
  padding: 0.5rem 1.1rem; border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.82rem; color: var(--ink-soft); background: #fff; font-family: inherit;
  cursor: pointer; transition: all 0.22s ease;
}
.guide-cat:hover { border-color: var(--ocean); color: var(--ocean-deep); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(10,142,160,0.14); }
.guide-cat.is-active { background: var(--ocean-deep, #06657a); border-color: var(--ocean-deep, #06657a); color: #fff; }
.guide-cat .cat-n {
  display: inline-block; margin-left: 0.45em; padding: 0 0.5em; border-radius: 100px;
  font-size: 0.72rem; background: rgba(10,142,160,0.1); color: var(--ocean-deep);
}
.guide-cat.is-active .cat-n { background: rgba(255,255,255,0.22); color: #fff; }

/* finder (search + chips + count) */
.guide-finder { margin-bottom: 2.4rem; }
.guide-search { position: relative; max-width: 520px; margin: 0 auto 1.3rem; }
.guide-search svg { position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.guide-search input {
  width: 100%; padding: 0.8rem 1.2rem 0.8rem 2.7rem; border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.92rem; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-search input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(10,142,160,0.14); }
.guide-count { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--ink-soft); min-height: 1.2em; }

/* filtering animation */
.card-grid.is-filtering .post-card { animation: cardIn 0.4s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* pinned "start here" badge */
.post-pin {
  position: absolute; left: 0.7rem; top: 0.7rem; padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(6,26,35,0.78); color: #ffd9a0; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.03em; backdrop-filter: blur(4px);
}

/* empty state */
.guide-empty { text-align: center; padding: 2.5rem 1rem 1rem; color: var(--ink-soft); }
.guide-empty p { margin-bottom: 1.2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-dim);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -26px rgba(7,34,46,0.45); }
.post-thumb { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--ocean-deep); }
.post-body { padding: 1.3rem 1.4rem 1.6rem; }
.post-cat { font-family: var(--serif-it); font-style: italic; color: var(--coral-deep); font-size: 0.9rem; }
.post-card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; line-height: 1.5; margin: 0.3rem 0 0.5rem; color: var(--ink); }
.post-card p { font-size: 0.85rem; color: var(--ink-soft); font-weight: 300; }
.post-card.coming { opacity: 0.62; pointer-events: none; }
.post-card.coming .post-thumb { filter: grayscale(0.4); }
.coming-tag { display: inline-block; margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 100px; padding: 2px 10px; }

@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* article blockquote & related */
.article blockquote {
  margin: 2rem 0; padding: 1.3rem 1.7rem; border-left: 4px solid var(--aqua);
  background: rgba(95,211,216,0.09); border-radius: 0 10px 10px 0;
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.85; color: var(--ocean-deep);
}
.article .related { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border-dim); }
.article .related h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.6rem; }
.article .related a { display: block; color: var(--ocean); text-decoration: none; padding: 0.35rem 0; font-size: 0.95rem; }
.article .related a:hover { text-decoration: underline; }

/* ============================================================
   記事強化: 要点まとめ / 目次(note風) / スクロール
   ============================================================ */
.article h2 { scroll-margin-top: 92px; }
.article h3 { scroll-margin-top: 92px; }

/* 要点まとめ（AIO/LLM抽出にも効く） */
.summary-box {
  background: linear-gradient(135deg, rgba(10,142,160,0.07), rgba(95,211,216,0.12));
  border: 1px solid var(--border-dim); border-left: 4px solid var(--ocean);
  border-radius: 12px; padding: 1.5rem 1.7rem; margin: 0 0 2rem;
}
.summary-box .sb-label {
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: var(--ocean-deep);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem;
}
.summary-box ul { margin: 0 0 0 1.1rem; }
.summary-box li { font-size: 0.95rem; line-height: 1.85; margin-bottom: 0.4rem; color: var(--ink); }

/* 目次 */
.toc {
  background: #fff; border: 1px solid var(--border-dim); border-radius: 12px;
  padding: 1.3rem 1.6rem; margin: 0 0 2.4rem; box-shadow: var(--shadow);
}
.toc-title { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 0.7rem; }
.toc ol { margin: 0; padding-left: 1.3rem; counter-reset: toc; list-style: none; }
.toc li { margin: 0; counter-increment: toc; }
.toc li::before { content: counter(toc) "."; color: var(--coral-deep); font-family: var(--serif); font-weight: 700; margin-right: 0.5rem; }
.toc a { color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; line-height: 2.1; transition: color 0.2s; }
.toc a:hover { color: var(--ocean); text-decoration: underline; }

/* 本文の読みやすさ強化 */
.article > p { margin-bottom: 1.6rem; }
.article h2 { margin-top: 3rem; }
.byline { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-dim); }
.key-point { background: rgba(255,217,160,0.18); border-radius: 8px; padding: 0.2rem 0.4rem; }

/* 地図埋め込み（Googleマップ・APIキー不要のembed） */
.map-embed { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; margin: 1.6rem 0 0.5rem; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--sand); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cap { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1.8rem; }

/* 百合ヶ浜 出現予測カレンダー */
.yuri-cal { margin: 1.6rem 0 0.5rem; }
.yc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.yc-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: #fff; border: 1px solid var(--border-dim); border-radius: 10px; overflow: hidden; }
.yc-table caption { font-family: var(--serif); font-weight: 700; color: var(--ocean-deep); padding: 0.6rem; font-size: 0.95rem; }
.yc-table th { background: var(--ocean-deep); color: #fff; font-weight: 500; padding: 0.35rem 0; font-size: 0.78rem; }
.yc-table th.yc-sun { color: #ffd2c2; } .yc-table th.yc-sat { color: #bfe6ef; }
.yc-table td { height: 42px; vertical-align: top; text-align: center; border: 1px solid var(--border-dim); padding: 2px 0; }
.yc-table td.yc-empty { background: #fafafa; }
.yc-d { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.yc-m { display: block; font-weight: 700; line-height: 1; }
.yc-mk-a .yc-m { color: var(--coral-deep); } .yc-mk-b .yc-m { color: var(--ocean); } .yc-mk-c .yc-m { color: #b9c6c9; }
.yc-today { outline: 2px solid var(--coral); outline-offset: -2px; }
.yc-sun .yc-d { color: #d6603e; } .yc-sat .yc-d { color: #2f8fa6; }
.yc-legend { margin: 1rem 0 0.3rem; font-size: 0.85rem; color: var(--ink-soft); }
.yc-legend strong { font-size: 1rem; }
.yc-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; }
