/* Wakaura! JAPAN — 海の幸グルメガイド */
:root {
  --sea: #14304a;
  --sea-2: #1f4a6e;
  --sea-soft: #e8f0f6;
  --crab: #d7442e;
  --crab-dark: #b1321f;
  --crab-soft: #fdeee9;
  --gold: #c9962b;
  --paper: #fbf7f1;
  --card: #ffffff;
  --ink: #222a31;
  --muted: #66707a;
  --line: #e7e0d5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 48, 74, .06), 0 6px 18px rgba(20, 48, 74, .07);
  --font: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.9; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--sea-2); text-underline-offset: 3px; }
a:hover { color: var(--crab); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ヘッダー */
.site-header { background: var(--sea); color: #fff; position: relative; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--crab); font-weight: 900; font-size: 22px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-name { font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.logo-tag { font-size: 12px; opacity: .8; }
.global-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.global-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.global-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.wave { height: 14px; background:
  radial-gradient(circle at 10px -4px, transparent 12px, var(--paper) 13px) 0 0 / 20px 14px repeat-x; }
.wave-top { background: radial-gradient(circle at 10px 18px, transparent 12px, var(--paper) 13px) 0 0 / 20px 14px repeat-x; }

/* トップのヒーロー */
.hero { background: linear-gradient(180deg, var(--sea) 0%, var(--sea-2) 100%); color: #fff; margin-top: -14px; padding: 34px 0 44px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.35; margin: 4px 0 12px; font-weight: 900; }
.hero p { margin: 0; opacity: .92; }
.hero .eyebrow { color: #ffd9a8; }
.hero-img { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--crab); margin: 0; }

/* レイアウト */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 26px; padding-bottom: 48px; }
.primary { min-width: 0; }

/* パンくず */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

/* 記事 */
.article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 40px) 36px; }
.article-head h1 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.5; margin: 10px 0 6px; font-weight: 900; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.cat-chip { display: inline-block; font-size: 12px; font-weight: 700; text-decoration: none; color: #fff; background: var(--sea-2); padding: 3px 12px; border-radius: 999px; }
.cat-chip.cat-kani { background: var(--crab); }
.cat-chip.cat-osechi { background: #8a5a2b; }
.cat-chip.cat-mentaiko { background: #c2410c; }

.ranking-banner { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; padding: 12px 16px; border-radius: 12px; background: var(--crab-soft); border: 1px solid #f6cfc5; text-decoration: none; color: var(--ink); }
.ranking-banner:hover { border-color: var(--crab); color: var(--ink); }
.rb-label { font-size: 12px; font-weight: 700; color: #fff; background: var(--crab); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.rb-title { font-weight: 700; flex: 1; }
.rb-arrow { color: var(--crab); font-weight: 900; }

.toc { background: var(--sea-soft); border-radius: 12px; padding: 12px 18px; margin: 20px 0; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 8px 0 4px; padding-left: 1.4em; }
.toc li { margin: 2px 0; }
.toc a { text-decoration: none; }

.content { overflow-wrap: anywhere; }
.content p { margin: 0 0 1.1em; }
.content h2 { font-size: 22px; line-height: 1.5; margin: 2.2em 0 .9em; padding: 12px 16px; background: var(--sea); color: #fff; border-radius: 10px; font-weight: 900; }
.content h3 { font-size: 19px; line-height: 1.5; margin: 1.8em 0 .8em; padding: 4px 0 6px 14px; border-left: 6px solid var(--crab); font-weight: 700; }
.content h4 { font-size: 16px; margin: 1.6em 0 .6em; color: var(--sea-2); }
.content h4::before { content: '●'; color: var(--crab); margin-right: 6px; font-size: .8em; }
.content img { border-radius: 8px; }
.content img.px { display: inline; width: 1px; height: 1px; border: 0; }
.content ul, .content ol { padding-left: 1.4em; }
.content strong { font-weight: 700; }
.sc_marker { background: linear-gradient(transparent 60%, #ffe08a 60%); font-weight: 700; }
.credit { display: block; font-size: 11px; color: #9aa3ab; line-height: 1.6; margin-top: 2px; }
.credit a { color: #9aa3ab; }

/* 公式サイトへのボタン */
.cta { background: #fff8ef; border: 1px dashed #efc99a; border-radius: 12px; padding: 12px 14px; }
.cta strong { display: block; font-size: 13px; color: var(--muted); }
a.cta-link { display: inline-block; margin-top: 6px; padding: 10px 18px 10px 16px; background: var(--crab); color: #fff; font-weight: 700; text-decoration: none; border-radius: 999px; box-shadow: 0 3px 0 var(--crab-dark); line-height: 1.5; }
a.cta-link::after { content: '›'; margin-left: 8px; font-weight: 900; }
a.cta-link:hover { background: var(--crab-dark); color: #fff; }
a.cta-link img:not(.px) { display: block; margin: 8px auto 0; }

/* ランキングのカード */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; margin: 22px 0; box-shadow: var(--shadow); }
.rank-card { border-top: 6px solid var(--sea-2); }
.rank-card h3, .rank-card h4 { border: 0; padding: 0; margin: 14px 0 10px; display: flex; align-items: center; gap: 10px; font-size: 20px; }
.rank-card h4::before { content: none; }
.rank-badge { flex: none; display: inline-grid; place-items: center; min-width: 52px; height: 52px; border-radius: 50%; background: var(--sea-2); color: #fff; font-weight: 900; font-size: 15px; }
.rank-1 { border-top-color: var(--gold); }
.rank-1 .rank-badge { background: radial-gradient(circle at 30% 30%, #f6d77a, var(--gold)); color: #4a3200; font-size: 17px; }
.rank-2 { border-top-color: #9aa5b1; }
.rank-2 .rank-badge { background: radial-gradient(circle at 30% 30%, #e3e8ee, #9aa5b1); color: #26313b; }
.rank-3 { border-top-color: #b8794a; }
.rank-3 .rank-badge { background: radial-gradient(circle at 30% 30%, #e9b48a, #b8794a); color: #3b1f0b; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.data-table { border-collapse: collapse; min-width: 100%; }
.data-table td, .data-table th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }

/* 口コミの引用 */
.content blockquote { margin: 0 0 1.2em; padding: 14px 16px; background: #f7f9fb; border-left: 4px solid #b9c7d3; border-radius: 0 10px 10px 0; }
.content blockquote.twitter-tweet { border-left-color: #1d9bf0; max-width: 550px; }
.content blockquote p { margin-bottom: .4em; }
.twitter-tweet-rendered, .instagram-media-rendered { margin: 0 0 1.4em !important; }

.tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .tag-cloud a { font-size: 13px; text-decoration: none; background: var(--sea-soft); color: var(--sea-2); padding: 4px 12px; border-radius: 999px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud small { margin-left: 6px; color: var(--muted); }

.sitemap-list section { margin-top: 18px; }
.sitemap-list h2 { font-size: 18px; border-bottom: 2px solid var(--crab); padding-bottom: 4px; }

/* カード一覧 */
.section-title { font-size: 20px; font-weight: 900; margin: 0 0 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-size: 14px; font-weight: 700; }
.related, .home-section { margin-top: 36px; }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mini-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.mini-card:hover { transform: translateY(-2px); color: var(--ink); }
.mini-card img, .mini-card .noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.mini-card span:last-child { padding: 10px 12px 12px; font-size: 14px; font-weight: 700; line-height: 1.55; }
.noimg { display: grid !important; place-items: center; background: var(--sea-soft); color: var(--sea-2); font-weight: 900; font-size: 20px; }

.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 5px solid var(--crab); }
.cat-card.cat-osechi { border-top-color: #8a5a2b; }
.cat-card.cat-mentaiko { border-top-color: #c2410c; }
.cat-card:hover { color: var(--ink); transform: translateY(-2px); }
.cat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cc-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cc-label { font-size: 12px; font-weight: 700; color: var(--crab); }
.cc-title { font-size: 17px; font-weight: 900; }
.cc-lead { font-size: 13px; color: var(--muted); line-height: 1.7; }

.list-head { margin-bottom: 18px; }
.list-head h1 { font-size: 28px; margin: 4px 0 6px; }
.list-head p { margin: 0; color: var(--muted); }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.row-card { display: grid; grid-template-columns: 160px 1fr; gap: 14px; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.row-card:hover { color: var(--ink); }
.row-card img, .row-card .noimg { width: 100%; height: 100%; min-height: 104px; object-fit: cover; border-radius: 0; }
.rc-body { padding: 12px 14px 12px 0; display: flex; flex-direction: column; gap: 4px; }
.rc-title { font-weight: 700; line-height: 1.55; }
.rc-desc { font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-ranking { align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: var(--gold); padding: 1px 10px; border-radius: 999px; }

/* サイドバー */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.side-title { font-size: 16px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--crab); }
.side-title a { color: var(--ink); text-decoration: none; }
.side-list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.side-list li { border-bottom: 1px dotted var(--line); }
.side-list li:last-child { border: 0; }
.side-list a { display: block; padding: 7px 2px; text-decoration: none; color: var(--ink); }
.side-list a:hover { color: var(--crab); }
.side-list .is-ranking a { font-weight: 700; color: var(--crab); }
.side-list .is-ranking a::before { content: '👑 '; }

/* フッター */
.site-footer { background: var(--sea); color: #d6e1ea; }
.footer-row { padding-top: 22px; padding-bottom: 28px; display: grid; gap: 10px; font-size: 14px; }
.footer-logo { color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: #d6e1ea; }
.site-footer .note { font-size: 12px; opacity: .8; margin: 0; }
.copyright { margin: 0; font-size: 12px; opacity: .7; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--crab); color: #fff; font-size: 20px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: 1fr; }
  .cat-card { flex-direction: row; }
  .cat-card img { width: 38%; aspect-ratio: auto; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .header-row { padding-top: 10px; padding-bottom: 8px; }
  .logo-tag { display: none; }
  .global-nav { width: 100%; justify-content: space-between; }
  .global-nav a { padding: 6px 10px; font-size: 14px; }
  .article { border-radius: 0; margin: 0 -18px; box-shadow: none; }
  .content h2 { font-size: 19px; }
  .row-card { grid-template-columns: 108px 1fr; }
  .card { padding: 4px 14px 12px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-card span:last-child { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.cta br { display: none; }
a.cta-banner { display: inline-block; margin-top: 6px; }
a.cta-banner img:not(.px) { display: block; margin-top: 6px; box-shadow: var(--shadow); }
