/* ─── リセット・基本 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; color: #333; background: #f8f9fa; line-height: 1.7; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ─── レイアウト ─── */
.container { max-width: 800px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 40px; }

/* ─── ヘッダー ─── */
.site-header { background: #1a5276; color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: #fff; font-size: 1.2rem; font-weight: bold; }
.logo:hover { text-decoration: none; }
.nav a { color: #ddd; margin-left: 16px; font-size: 0.9rem; }
.nav a:hover { color: #fff; }

/* ─── フッター ─── */
.site-footer { background: #1a5276; color: #ccc; text-align: center; padding: 24px 0; margin-top: 40px; font-size: 0.85rem; }
.site-footer p { color: #fff; }
.footer-sub { color: #aaa; font-size: 0.8rem; margin-top: 4px; }

/* ─── パンくず ─── */
.breadcrumb { font-size: 0.85rem; color: #888; padding: 12px 0; }
.breadcrumb a { color: #666; }

/* ─── セクション ─── */
.section { background: #fff; border-radius: 8px; padding: 20px; margin-top: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.section h2 { font-size: 1.15rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #1a5276; }
.section h3 { font-size: 1rem; margin: 12px 0 8px; }

/* ─── スポットヒーロー ─── */
.spot-hero { padding: 20px 0; }
.spot-hero h1 { font-size: 1.4rem; line-height: 1.4; }
.spot-location { color: #666; margin-top: 8px; }
.badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.badge-terrain { background: #e8f4fd; color: #1a5276; }
.badge-pop { background: #eee; color: #666; }
.pop-s { background: #fff3cd; color: #856404; }
.pop-a { background: #d4edda; color: #155724; }
.badge-danger { background: #eee; color: #666; }
.danger-a { background: #d4edda; color: #155724; }
.danger-b { background: #fff3cd; color: #856404; }
.danger-c { background: #f8d7da; color: #721c24; }

/* ─── テーブル ─── */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table th { text-align: left; padding: 8px; background: #f8f9fa; width: 30%; border-bottom: 1px solid #eee; vertical-align: top; }
.info-table td { padding: 8px; border-bottom: 1px solid #eee; }

/* ─── タグ ─── */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; margin: 2px; }
.tag-green { background: #d4edda; color: #155724; }
.tag-blue { background: #cce5ff; color: #004085; }
.tag-purple { background: #e2d9f3; color: #4a235a; }
.tag-color { background: #f0f0f0; color: #333; border: 1px solid #ddd; }
.color-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ─── 危険注意 ─── */
.danger-note { background: #fff3cd; padding: 10px; border-radius: 4px; margin-top: 12px; font-size: 0.9rem; }

/* ─── 駐車場 ─── */
.parking { margin-top: 8px; font-size: 0.9rem; color: #555; }

/* ─── 地図 ─── */
.map-container { border-radius: 8px; overflow: hidden; }
.map-container iframe { display: block; }

/* ─── エギ・アフィリエイト ─── */
.section-egi { background: #fffef5; border: 1px solid #f0e68c; }
.egi-row { margin-bottom: 12px; }
.affiliate-box { background: #fff; border: 2px solid #ff9800; border-radius: 8px; padding: 16px; margin-top: 16px; }
.affiliate-box h3 { color: #e65100; margin-bottom: 12px; }
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-card { display: block; background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 12px; text-align: center; color: #333; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.product-name { font-weight: bold; font-size: 0.9rem; }
.product-desc { font-size: 0.8rem; color: #666; margin-top: 4px; }
.coupon { font-size: 0.8rem; color: #e65100; margin-top: 8px; font-weight: bold; }
.coupon-code { font-size: 0.75rem; margin-top: 4px; color: #333; }
.code-text { background: #fff3e0; border: 1px dashed #e65100; padding: 2px 8px; border-radius: 4px; font-family: monospace; font-weight: bold; cursor: pointer; display: inline-block; }
.code-text:hover { background: #ffe0b2; }
.coupon-note { font-size: 0.75rem; color: #888; margin-top: 8px; text-align: center; }
.btn-amazon { display: block; text-align: center; background: #ff9900; color: #fff; font-weight: bold; font-size: 0.85rem; padding: 8px 12px; border-radius: 6px; margin-top: 10px; text-decoration: none; }
.btn-amazon:hover { background: #e68a00; text-decoration: none; color: #fff; }

/* ─── 棒グラフ ─── */
.stat-block { margin-bottom: 16px; }
.bar-chart { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { width: 80px; font-size: 0.85rem; text-align: right; flex-shrink: 0; }
.bar-fill { background: #1a5276; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; min-width: 40px; }

/* ─── 潮汐カレンダー ─── */
.tide-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tide-day { text-align: center; padding: 8px 4px; background: #f8f9fa; border-radius: 4px; font-size: 0.8rem; }
.tide-day.weekend { background: #e8f4fd; }
.tide-date { font-weight: bold; }
.tide-type { margin: 4px 0; }
.tide-grade { display: inline-block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-weight: bold; font-size: 0.85rem; }
.grade-s { background: #ff9800; color: #fff; }
.grade-a { background: #4caf50; color: #fff; }
.grade-b { background: #2196f3; color: #fff; }
.grade-c { background: #9e9e9e; color: #fff; }
.grade-d { background: #ccc; color: #666; }
.tide-times { margin-top: 4px; }
.tide-times small { display: block; color: #888; font-size: 0.7rem; }

/* ─── CTA ─── */
.cta-box { text-align: center; margin-top: 16px; padding: 16px; background: #e8f5e9; border-radius: 8px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 24px; font-weight: bold; color: #fff; font-size: 0.95rem; }
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-line { background: #06c755; }

/* ─── 周辺スポット ─── */
.nearby-list { display: flex; flex-direction: column; gap: 8px; }
.nearby-card { display: block; padding: 12px; background: #f8f9fa; border-radius: 8px; color: #333; transition: background 0.2s; }
.nearby-card:hover { background: #e8f4fd; text-decoration: none; }
.nearby-name { font-weight: bold; }
.nearby-meta { font-size: 0.85rem; color: #666; margin-top: 4px; display: flex; gap: 12px; align-items: center; }

/* ─── トップページ ─── */
.hero-section { text-align: center; padding: 32px 0; }
.hero-section h1 { font-size: 1.5rem; }
.hero-section p { color: #666; margin-top: 8px; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.pref-card { display: block; padding: 12px; background: #fff; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); color: #333; transition: transform 0.2s; }
.pref-card:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.pref-card .count { font-size: 0.8rem; color: #888; }

/* ─── ランキング ─── */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.ranking-item:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.rank-num { font-size: 1.3rem; font-weight: bold; color: #1a5276; min-width: 32px; text-align: center; }
.rank-num.top3 { color: #ff9800; }
.rank-info { flex: 1; }
.rank-info a { color: #333; font-weight: bold; }
.rank-meta { font-size: 0.85rem; color: #666; }

/* ─── エリアページ ─── */
.area-header { padding: 20px 0; }
.area-header h1 { font-size: 1.4rem; }
.spots-list { display: flex; flex-direction: column; gap: 8px; }
.spot-card { display: block; padding: 16px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); color: #333; transition: transform 0.2s; }
.spot-card:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.spot-card-name { font-weight: bold; font-size: 1.05rem; }
.spot-card-meta { font-size: 0.85rem; color: #666; margin-top: 4px; }
.spot-card-tags { margin-top: 6px; }

/* ─── チェックリスト・初心者向け ─── */
.tips-content p { font-size: 0.9rem; line-height: 1.8; color: #444; margin-bottom: 12px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.check-col { background: #f8f9fa; border-radius: 8px; padding: 12px; }
.check-col p { margin-bottom: 6px; }
.check-col ul { padding-left: 18px; font-size: 0.85rem; line-height: 1.8; }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }

/* ─── まとめセクション ─── */
.summary-content p { font-size: 0.9rem; line-height: 1.8; color: #444; margin-bottom: 12px; }

/* ─── 警告バナー ─── */
.warning-banner { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 12px 16px; margin-top: 12px; font-size: 0.85rem; line-height: 1.7; }
.warning-banner p { margin-bottom: 6px; }
.warning-banner ul { padding-left: 18px; margin: 0; }
.warning-banner li { margin-bottom: 4px; }

/* ─── 攻略詳細 ─── */
.tactics-detail { margin-top: 16px; }
.tactics-detail h3 { font-size: 1rem; margin: 20px 0 8px; padding-left: 8px; border-left: 3px solid #1a5276; }
.tactics-detail p { font-size: 0.9rem; line-height: 1.8; color: #444; margin-bottom: 12px; }
.season-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 12px; }
.season-tip { background: #f8f9fa; border-radius: 8px; padding: 12px; }
.season-tip h4 { font-size: 0.9rem; margin-bottom: 6px; }
.season-tip p { font-size: 0.85rem; margin-bottom: 0; }
@media (max-width: 600px) { .season-tips { grid-template-columns: 1fr; } }

/* ─── 記事ページ ─── */
.article-content h1 { font-size: 1.4rem; line-height: 1.5; padding: 20px 0 8px; }
.article-date { font-size: 0.8rem; color: #888; margin-bottom: 16px; }
.article-content .section { margin-top: 16px; }
.article-content .section p { font-size: 0.9rem; line-height: 1.8; color: #444; margin-bottom: 12px; }

/* ─── AI注記 ─── */
.ai-note { font-size: 0.8rem; color: #999; margin-top: 8px; }

/* ─── PR表示 ─── */
.pr-label { font-size: 0.75rem; color: #888; border: 1px solid #ccc; display: inline-block; padding: 1px 6px; border-radius: 3px; margin-bottom: 8px; }

/* ─── データ注記 ─── */
.data-note { font-size: 0.85rem; color: #888; background: #f8f9fa; padding: 6px 10px; border-radius: 4px; margin-bottom: 12px; }

/* ─── 強化版警告バナー ─── */
.warning-critical { background: #f8d7da; border: 2px solid #dc3545; }
.warning-critical p:first-child { color: #721c24; }
.disclaimer-link { margin-top: 8px; font-size: 0.85rem; }
.disclaimer-link a { color: #721c24; font-weight: bold; }

/* ─── 時間帯別Tips ─── */
.time-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 12px; }
.time-tip { background: #f8f9fa; border-radius: 8px; padding: 12px; }
.time-tip h4 { font-size: 0.9rem; margin-bottom: 6px; }
.time-tip p { font-size: 0.85rem; margin-bottom: 0; line-height: 1.7; color: #444; }

/* ─── カラーローテーション ─── */
.rotation-list { padding-left: 20px; margin: 8px 0 12px; }
.rotation-list li { font-size: 0.9rem; line-height: 1.8; color: #444; margin-bottom: 4px; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #f8f9fa; border-radius: 8px; padding: 16px; border-left: 4px solid #1a5276; }
.faq-q { font-size: 0.95rem; color: #1a5276; margin-bottom: 8px; }
.faq-a { font-size: 0.9rem; line-height: 1.8; color: #444; margin: 0; }

/* ─── エリアページ統計 ─── */
.area-stats-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.area-stat-card { background: #f8f9fa; border-radius: 8px; padding: 16px; }
.area-stat-card h3 { font-size: 0.95rem; margin-bottom: 10px; color: #1a5276; }

/* ─── 地形タイプグリッド ─── */
.terrain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.terrain-card { background: #f8f9fa; border-radius: 8px; padding: 12px; text-align: center; }
.terrain-name { font-weight: bold; font-size: 0.9rem; }
.terrain-count { font-size: 0.8rem; color: #888; margin-top: 4px; }

/* ─── 特徴グリッド ─── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.feature-card { background: #f8f9fa; border-radius: 8px; padding: 16px; text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: 8px; }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 6px; color: #1a5276; }
.feature-card p { font-size: 0.85rem; color: #555; line-height: 1.6; margin: 0; }

/* ─── フッターリンク ─── */
.footer-links { display: flex; justify-content: center; gap: 16px; margin: 8px 0; }
.footer-links a { color: #aaa; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { color: #ffcc80; font-size: 0.75rem; margin-top: 8px; }

/* ─── レスポンシブ ─── */
@media (max-width: 600px) {
  .tide-calendar { grid-template-columns: repeat(4, 1fr); }
  .product-cards { grid-template-columns: 1fr; }
  .info-table th { width: 35%; }
  .time-tips { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
