:root {
  --ink: #132335;
  --muted: #5e6d7d;
  --line: #d8e2e8;
  --surface: #ffffff;
  --canvas: #f5f8fa;
  --navy: #063b5c;
  --blue: #087ea4;
  --teal: #007f78;
  --orange: #c96a26;
  --license: #8e4533;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); line-height: 1.65; }
a { color: var(--blue); text-underline-offset: .16em; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--teal);
}
.header-inner, .page { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; line-height: 1.12; }
.brand-mark { width: 40px; height: 40px; padding: 3px; border-radius: 6px; background: #fff; object-fit: contain; }
.brand-copy { display: inline-flex; flex-direction: column; }
.brand strong { font-size: 25px; letter-spacing: 0; }
.brand-copy > span { margin-top: 4px; font-size: 13px; color: #b9dce8; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: #e9f7fa; font-size: 14px; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.page { padding: 28px 0 54px; }
.site-hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  /* 写真をPNGで配信していたため2.1MBあった。WebPで約12万バイトになる。
     この要素は全幅×410pxで LCP の対象になるため、転送量が体感に直結する。
     image-set を解さないブラウザは上の宣言のJPEGを使う。 */
  background: #082f45 url("hero-rental-boat.jpg") center center / cover no-repeat;
  background-image: -webkit-image-set(url("hero-rental-boat.webp") type("image/webp"), url("hero-rental-boat.jpg") type("image/jpeg"));
  background-image: image-set(url("hero-rental-boat.webp") type("image/webp"), url("hero-rental-boat.jpg") type("image/jpeg"));
}
.site-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgb(3 28 43 / 48%);
}
.site-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-content: end;
  min-height: 410px;
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 52px;
}
.hero-copy { align-self: end; }
.hero-kicker { margin-bottom: 12px; color: #c5edf2; font-size: 12px; font-weight: 800; line-height: 1; }
.hero-copy h1 { margin-bottom: 10px; color: #fff; font-size: clamp(34px, 4.25vw, 52px); line-height: 1.08; text-shadow: 0 2px 10px rgb(0 0 0 / 24%); }
.hero-copy h1 span { color: #dff8fa; }
.hero-edition { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #c5edf2; font-size: 14px; font-weight: 800; line-height: 1; }
.hero-edition::before { width: 28px; height: 1px; content: ""; background: currentColor; }
.hero-lead { max-width: 680px; margin-bottom: 0; color: #e4f4f7; font-size: 16px; line-height: 1.8; text-wrap: balance; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin-bottom: 8px; letter-spacing: 0; }
h2 { font-size: 23px; line-height: 1.35; letter-spacing: 0; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.4; letter-spacing: 0; }
.site-hero .count { align-self: end; min-width: 116px; margin: 0; padding: 3px 0 4px 16px; border-left: 1px solid rgb(224 248 250 / 72%); color: #fff; font-size: 22px; font-weight: 800; line-height: 1.1; text-shadow: 0 1px 2px rgb(0 0 0 / 35%); white-space: nowrap; }
.site-hero .count::before { display: block; margin-bottom: 5px; color: #c5edf2; content: "掲載施設"; font-size: 11px; font-weight: 700; line-height: 1; }
.site-hero .data-status { grid-column: 1 / -1; margin: 0; padding: 10px 13px; border-left: 4px solid var(--orange); background: #fff7ee; color: #66411e; font-size: 13px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.controls { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 12px; padding: 16px; align-items: end; }
.origin-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px, .8fr) auto auto; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #35495a; }
input, select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #b8c8d3; border-radius: 5px; background: #fff; color: var(--ink); }
button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--blue); border-radius: 5px; background: var(--blue); color: #fff; font-weight: 700; }
button.secondary { background: #fff; color: var(--blue); }
button:disabled { cursor: wait; opacity: .7; }
.origin-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 13px; color: var(--muted); }

.fish-filter { padding: 16px; border-top: 1px solid var(--line); }
.fish-filter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.fish-filter-head h2 { margin: 0; font-size: 15px; color: #35495a; }
.fish-filter-summary { margin: 0; color: var(--muted); font-size: 13px; }
.fish-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fish-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid #b8ccd6; border-radius: 999px; background: #fff; color: #26485c; font-size: 13px; font-weight: 700; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.fish-tag:hover { border-color: var(--blue); background: #eef7fa; }
.fish-tag:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fish-tag.is-selected { border-color: var(--teal); background: var(--teal); color: #fff; }
.fish-count { padding: 0 6px; border-radius: 999px; background: #e7f1f5; color: #4a6577; font-size: 11px; font-weight: 700; }
.fish-tag.is-selected .fish-count { background: rgba(255, 255, 255, .24); color: #fff; }
.fish-filter-actions { display: flex; gap: 16px; margin-top: 11px; }
.link-button { min-height: unset; padding: 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: .16em; }
.link-button:hover { color: #06718f; }
.fish-empty { margin: 0; color: var(--muted); font-size: 13px; }

.fish-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.fish-chip { min-height: 26px; padding: 2px 9px; border: 1px solid #cfe6df; border-radius: 999px; background: #eaf6f2; color: #076554; font-size: 12px; font-weight: 700; transition: background-color 140ms ease, color 140ms ease; }
.fish-chip:hover { background: #d3ece4; }
.fish-chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.fish-chip.is-selected { border-color: var(--teal); background: var(--teal); color: #fff; }
.fish-rest { align-self: center; color: var(--muted); font-size: 12px; }

.map-section { margin-top: 24px; }
#map { height: 460px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #e4eff1; }
.map-unavailable { display: grid; height: 100%; place-items: center; margin: 0; padding: 24px; color: var(--muted); text-align: center; background: #eef4f6; }
.map-caption { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 12px; flex-wrap: wrap; }
.list-head p { margin: 0; color: var(--muted); font-size: 14px; }
.view-toggle { display: inline-flex; border: 1px solid var(--blue); border-radius: 5px; overflow: hidden; }
.view-toggle button { min-height: 38px; padding: 6px 18px; border: 0; border-radius: 0; background: #fff; color: var(--blue); font-size: 14px; transition: background-color 150ms ease, color 150ms ease; }
.view-toggle button + button { border-left: 1px solid var(--blue); }
.view-toggle button:hover { background: #e7f2f5; }
.view-toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.view-toggle button:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
.boat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.boat-list[data-view="table"] { display: block; }
.boat-card { display: flex; flex-direction: column; min-height: 222px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.boat-card h3 { margin-bottom: 6px; font-size: 18px; }
.boat-card h3 a { color: var(--ink); text-decoration: none; }
.boat-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.location { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #dceff2; color: #075f70; font-size: 12px; font-weight: 700; }
.tag.license { background: #f7e4dc; color: #7d3425; }
.tag.distance { background: #edf2f7; color: #3e5467; }
.tag.club { background: #eae6f7; color: #4a3d80; }
.tag.membership.is-member { background: #fdeceb; color: #8c3a2c; }
.tag.membership.is-open { background: #e3f4ef; color: #076554; }
.tag.membership.is-mixed { background: #fdf0e2; color: #7d4c1c; }
.detail-link { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); background: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.boat-table { width: 100%; min-width: 1170px; border-collapse: collapse; font-size: 14px; }
.boat-table th, .boat-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.boat-table thead th { position: sticky; top: 0; z-index: 1; border-top: 0; background: #eef4f6; color: #35495a; font-size: 13px; white-space: nowrap; }
.boat-table tbody tr:hover { background: #f7fbfc; }
.boat-table .name { min-width: 170px; font-size: 15px; font-weight: 700; }
.boat-table .place { min-width: 150px; }
.boat-table .name a { color: var(--ink); text-decoration: none; }
.boat-table .name a:hover { color: var(--blue); text-decoration: underline; }
.boat-table .license-cell { white-space: nowrap; }
.boat-table .club-cell { min-width: 150px; font-size: 13px; }
.boat-table .membership-cell { white-space: nowrap; }
.boat-table .club-empty { color: var(--muted); }
.boat-table .distance { white-space: nowrap; font-variant-numeric: tabular-nums; }
.boat-table .distance-empty { color: var(--muted); }
.boat-table .note { min-width: 260px; color: #425363; }
.boat-table .action { white-space: nowrap; }
.boat-table .detail-link { padding-top: 0; }

.detail-hero { padding: 30px 0 26px; background: #e7f2f5; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.detail-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.detail-title-row p { margin-bottom: 0; color: #405567; }
.external { white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 22px; margin-top: 24px; }
.detail-section { padding: 20px; margin-bottom: 16px; }
.detail-section > :last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.facts dt, .facts dd { padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 700; }
.facts dd { margin: 0; }
.fish-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.fish-list li { padding: 5px 10px; border-radius: 999px; background: #e3f4ef; color: #076554; font-size: 14px; font-weight: 700; }
/* 広告の明示。
   上の安全に関する注意書き（航行区域・救命胴衣など）と同じ橙色だと、
   注意の重みが薄まる。橙は安全のためにとっておき、法令上の表示は
   落ち着いた色で読ませる。リンクの列から離して、続きに見えないようにする。 */
.tackle-shop .disclaimer {
  border-left-color: #b9c0ca;
  background: #f3f5f7;
  color: #4a5462;
}

/* 一覧の操作。表示件数と表示形式を横に並べる。 */
.list-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.per-page { display: inline-flex; align-items: center; gap: 6px; color: #4a5462; font-size: 13px; font-weight: 700; white-space: nowrap; }
.per-page select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #123; font-size: 14px; font-weight: 700; }
@media (max-width: 620px) { .list-tools { width: 100%; justify-content: space-between; } }

/* ページ送り。39ページぶんの番号を並べると読めないので、
   前後2つと端だけを出す（描画は app.js 側）。 */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; }
.pager button { min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #123; font-size: 14px; font-weight: 700; cursor: pointer; }
.pager button:hover:not(:disabled), .pager button:focus-visible { border-color: var(--blue); color: var(--blue); }
.pager button:disabled { color: #aab1ba; cursor: default; }
.pager button.is-current { border-color: var(--blue); background: var(--blue); color: #fff; }
.pager-gap { padding: 0 2px; color: #7b8492; }

/* 船釣りの持ち物。広告であることが見出しの位置で分かるようにする。 */
.tackle-shop h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-badge { padding: 2px 8px; border-radius: 4px; background: #f0f1f3; color: #5b6472; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.tackle-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tackle-list a { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #123; text-decoration: none; }
.tackle-list a:hover, .tackle-list a:focus-visible { border-color: #e8930c; color: #b56a00; }
/* 商品カードの行（lib/tackle.php）。写真を左に置き、文字の行と同じ2行の高さに収める。
   2行目（行き先・価格・商品名）は1行で切る。商品名が長くても行の高さを変えない。 */
.tackle-list a.tackle-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 6px 12px 6px 6px; }
.tackle-card .tackle-thumb { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; border-radius: 4px; background: #fff; }
.tackle-card .tackle-name { grid-column: 2; }
.tackle-card .tackle-dest { grid-column: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 価格の取得時刻（Amazon のライセンス契約が求める断り）。カードに価格を出したときだけ出る。 */
.price-stamp { color: #5b6472; font-size: 11px; line-height: 1.5; }
.tackle-list + .price-stamp { margin: 8px 0 0; }
/* 1行目は何の道具か、2行目はどこへ出るリンクか。行き先を見出しに任せず行ごとに書く。 */
.tackle-name { display: block; font-weight: 700; font-size: 14px; line-height: 1.4; }
.tackle-dest { display: block; margin-top: 2px; color: #5b6472; font-size: 12px; line-height: 1.4; }

/* 公式SNS。並ぶ数が施設ごとに違うため、折り返して詰める。 */
.sns-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.sns-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #123; text-decoration: none; font-weight: 700; font-size: 14px; }
.sns-list a:hover, .sns-list a:focus-visible { border-color: var(--blue); color: var(--blue); }
.sns-list .sns-youtube:hover, .sns-list .sns-youtube:focus-visible { border-color: #c4302b; color: #c4302b; }

.source-grid { display: grid; gap: 8px; }
.source-grid a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-decoration: none; font-weight: 700; }
.source-grid a:hover { border-color: var(--blue); }
.aside-map { height: 260px; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
/* 魚種ハブ。都道府県ごとにまとめるため、見出しに件数を添える。 */
.fish-pref-count { margin-left: 10px; color: #5b6472; font-size: 13px; font-weight: 400; }

/* 県ごとの地図。施設が散らばる県でも形が分かる高さにする。 */
.pref-map { height: 380px; border-radius: 6px; overflow: hidden; }
@media (max-width: 720px) { .pref-map { height: 280px; } }

/* 同じ都道府県の他の施設。詳細ページ同士をつなぐ。 */
.neighbour-list { display: grid; gap: 6px; padding: 0; margin: 0 0 12px; list-style: none; }
.neighbour-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 14px; }
.neighbour-list a:hover, .neighbour-list a:focus-visible { border-color: var(--blue); }
.neighbour-list span { color: #5b6472; font-size: 12px; font-weight: 400; text-align: right; }

/* 都道府県ハブ。件数の多い県から順に並ぶため、幅の揃った格子にする。 */
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.pref-grid a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #123; text-decoration: none; font-weight: 700; }
.pref-grid a:hover, .pref-grid a:focus-visible { border-color: var(--blue); color: var(--blue); }
.pref-count { color: #5b6472; font-size: 13px; font-weight: 700; }
.pref-count::after { content: '件'; margin-left: 1px; font-size: 11px; font-weight: 400; }

.pref-list { display: grid; gap: 0; }
.pref-shop { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pref-shop:first-child { padding-top: 0; }
.pref-shop:last-child { padding-bottom: 0; border-bottom: 0; }
.pref-shop h2 { margin: 0 0 4px; font-size: 17px; }
.pref-shop h2 a { color: var(--blue); text-decoration: none; }
.pref-shop h2 a:hover { text-decoration: underline; }
.pref-shop-where { margin: 0 0 8px; color: #4a5462; font-size: 14px; }
.pref-shop-license { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 4px; background: #eef1f4; color: #4a5462; font-size: 12px; font-weight: 700; }

.pref-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pref-links a { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #123; text-decoration: none; font-size: 13px; font-weight: 700; }
.pref-links a:hover, .pref-links a:focus-visible { border-color: var(--blue); color: var(--blue); }
.pref-links span { color: #7b8492; font-size: 11px; font-weight: 400; }

/* 注意書き・断り書き。直前の内容に隙間なく続くと、そのリストの一部に見える。
   3箇所とも同じ状態だったため、個別ではなくここで余白を持たせる。 */
.disclaimer { margin-top: 18px; padding: 15px; border-left: 4px solid var(--orange); background: #fff7ee; color: #66411e; font-size: 14px; }
.catch-list { display: grid; gap: 12px; }
.catch-item { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.catch-item h2 { margin-bottom: 5px; font-size: 19px; }
.catch-item p { margin-bottom: 8px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.policy { max-width: 820px; }
.policy h1 { margin-bottom: 6px; }
.policy-updated { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.policy .detail-section p { margin-bottom: 12px; line-height: 1.75; }
.policy .detail-section p:last-child { margin-bottom: 0; }
.site-footer .page { padding-top: 20px; padding-bottom: 20px; }

/* 仕立て船・チャーター ------------------------------------------------------
   比べたいのは料金と定員。カードでは代表の料金を面で囲み、
   その直下に確認日と公式サイトを置く（料金改定の多い分野のため）。 */
.charter-filter { margin-bottom: 16px; }
.charter-controls { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.charter-summary { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 13px; }
.charter-summary strong { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.charter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.charter-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.charter-card[hidden] { display: none; }
.charter-card > * { margin: 0; }
.charter-where { color: var(--muted); font-size: 12px; font-weight: 700; }
.charter-card h3 { font-size: 18px; line-height: 1.35; }
.charter-card h3 a { color: var(--ink); text-decoration: none; }
.charter-card h3 a:hover, .charter-card h3 a:focus-visible { color: var(--blue); text-decoration: underline; }
.charter-port { margin-top: -4px; color: #425363; font-size: 13px; }
.charter-card .tag-row { margin: 0; }
.tag.style-private { background: #e4eaf7; color: #2b4a85; }
.tag.style-mixed { background: #e3f4ef; color: #076554; }
.tag.aori { background: #fdf0e2; color: #7d4c1c; }
.charter-price { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0; background: #f1f7f9; }
.charter-price-label { color: #4a5462; font-size: 12px; font-weight: 700; }
.charter-price-value { color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.45; }
.charter-price-cap { color: #425363; font-size: 12px; }
.charter-checked { color: #5b6472; font-size: 12px; }
.charter-meta { color: #425363; font-size: 13px; line-height: 1.55; }
.charter-meta span { display: inline-block; margin-right: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.charter-card .detail-link { padding-top: 6px; }
.charter-ad { grid-column: 1 / -1; }
.charter-ad .tackle-shop { margin-bottom: 0; }
.charter-ad .tackle-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.muted-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.note-list { margin: 0 0 12px; padding-left: 1.2em; }
.note-list li + li { margin-top: 4px; }
.sub-heading { margin: 16px 0 8px; color: #35495a; font-size: 14px; }
.detail-section > .sub-heading:first-of-type { margin-top: 0; }
.method-list li { background: #e7eef6; color: #2b4a85; }
.fish-list a { color: inherit; text-decoration: none; }
.fish-list a:hover, .fish-list a:focus-visible { text-decoration: underline; }

/* アオリイカ特集への入口。一覧の上に1本だけ置く帯。 */
.charter-callout { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; margin-bottom: 14px; padding: 14px 18px; border: 1px solid #e9c9a5; border-left: 4px solid var(--orange); border-radius: 8px; background: #fffaf3; color: var(--ink); text-decoration: none; }
.charter-callout:hover, .charter-callout:focus-visible { border-color: var(--orange); background: #fff4e6; }
.charter-callout-kicker { grid-row: span 2; padding: 3px 9px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; }
.charter-callout strong { font-size: 16px; }
.charter-callout span:last-child { color: #66411e; font-size: 13px; }

/* 特集の絞り込み。釣り方・便と時期は押して重ねる（すべて満たす船だけ残す）。 */
.aori-filter { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(200px, .8fr); gap: 14px 18px; padding: 16px; align-items: start; }
.filter-group h2 { margin: 0 0 8px; color: #35495a; font-size: 13px; }
.filter-toggles { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid #b8ccd6; border-radius: 999px; background: #fff; color: #26485c; font-size: 13px; font-weight: 700; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.filter-toggle:hover { border-color: var(--blue); background: #eef7fa; }
.filter-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.filter-toggle[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #fff; }
.filter-toggle[aria-pressed="true"] .fish-count { background: rgba(255, 255, 255, .24); color: #fff; }
.filter-group-select { display: grid; gap: 8px; }
.tag.aori-method { background: #e4eaf7; color: #2b4a85; }
.tag.aori-when { background: #fdf0e2; color: #7d4c1c; }
.guide-list { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.guide-list dt, .guide-list dd { padding: 11px 0; border-top: 1px solid var(--line); }
.guide-list dt { font-weight: 800; }
.guide-list dd { margin: 0; color: #35495a; }

/* 詳細ページの料金。人数別の長い料金も読めるよう、表ではなく1プラン1枠で縦に積む。 */
.plan-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; padding: 9px 12px; border-radius: 6px; background: #eef4f6; color: #35495a; font-size: 13px; }
.plan-checked a { font-weight: 700; }
.plan-list { display: grid; gap: 10px; margin-bottom: 4px; }
.plan-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.plan-item h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.plan-kind { padding: 1px 8px; border-radius: 4px; background: #eef1f4; color: #4a5462; font-size: 11px; font-weight: 700; }
.plan-kind.is-charter { background: #e4eaf7; color: #2b4a85; }
.plan-price { margin: 0 0 8px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.5; }
.plan-facts { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; color: #425363; font-size: 13px; }
.plan-facts div { display: flex; gap: 6px; }
.plan-facts dt { flex: none; color: var(--muted); font-weight: 700; }
.plan-facts dd { margin: 0; }
.plan-facts-empty { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 880px) {
  .charter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aori-filter { grid-template-columns: 1fr 1fr; }
  .aori-filter .filter-group-select { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; }
  .charter-controls { grid-template-columns: 1fr 1fr; }
  /* 仕立て船は料金を先頭に。店舗詳細の並び（店舗情報が先）を上書きする。 */
  .charter-detail .sec-plan { order: 1; }
  .charter-detail .sec-info { order: 2; }
  .charter-detail .sec-fish { order: 3; }
  .charter-detail .tackle-shop { order: 4; }
  .charter-detail .sec-aori { order: 5; }
  .charter-detail .sec-amenities { order: 6; }
  .charter-detail .sec-map { order: 7; }
  .charter-detail .sec-neighbours { order: 8; }
  /* 並びを指定しない枠は先頭（order: 0）へ行ってしまう。同じ施設の話の最後、近くの施設の前に置く。 */
  .charter-detail .sec-report { order: 8; }
  .charter-detail .sec-operator { order: 8; }
}
@media (max-width: 620px) {
  .charter-list { grid-template-columns: 1fr; }
  /* 3つを縦に積むと、絞り込みだけで1画面が埋まり船が見えない。
     都道府県と受付の形を横に並べる。.controls の1列指定より強くするため2クラスで書く。 */
  .controls.charter-controls { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .controls.charter-controls button { grid-column: 1 / -1; }
  .aori-filter { grid-template-columns: 1fr; padding: 14px; }
  .aori-filter .filter-group-select { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .guide-list dd { padding-top: 2px; border-top: 0; }
}

@media (max-width: 880px) {
  .boat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boat-list[data-view="table"] { display: block; }
  .controls { grid-template-columns: 1fr 1fr; }
  .origin-panel { grid-template-columns: 1fr 1fr; }
  /* 1列になると、右列（場所・釣具）が左列の全節より後ろへ回る。釣具は
     最下部になり、魚種を見た直後に釣具へ進めない。左右の入れ物を
     display:contents で外して各節を直接並べ、順番を指定し直す。
     入れ物には背景も枠も無いので、消しても見た目は変わらない。 */
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div, .detail-grid > aside { display: contents; }
  .sec-info { order: 1; }
  .sec-plan { order: 2; }
  .sec-fish { order: 3; }
  .tackle-shop { order: 4; }
  .sec-map { order: 5; }
  .sec-sns { order: 6; }
  .sec-links { order: 7; }
  .sec-neighbours { order: 8; }
  .sec-report { order: 8; }
  .sec-operator { order: 8; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 92px; padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { gap: 14px; }
  .page, .header-inner { width: min(100% - 24px, 1240px); }
  .site-hero { min-height: 470px; background-position: 64% center; }
  .site-hero-inner { display: flex; min-height: 470px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-top: 40px; padding-bottom: 34px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-lead { font-size: 15px; line-height: 1.7; }
  .site-hero .count { margin-top: 20px; }
  .controls, .origin-panel { grid-template-columns: 1fr; }
  .boat-list { grid-template-columns: 1fr; }
  .boat-list[data-view="table"] { display: block; }
  .list-head { align-items: flex-start; }
  #map { height: 340px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .facts dd { padding-top: 4px; }
  .external { display: inline-block; margin-top: 12px; }
}

/* 「さらに表示」。一覧の下で中央に置く。 */
.charter-more-row { margin: 0 0 16px; text-align: center; }
.charter-more-row button { min-width: 240px; }

/* 仕立て船の海域の地図。船1隻ずつではなく、海域ごとの隻数を丸で出す。 */
.charter-map-panel { margin-bottom: 16px; padding: 12px; }
.charter-map { height: 380px; border-radius: 6px; overflow: hidden; background: #e4eff1; }
.charter-map-panel .map-caption { margin: 8px 2px 0; }
.area-pin-wrap { background: none; border: 0; }
.area-pin { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 1px 4px rgb(0 0 0 / 35%); cursor: pointer; transition: transform 140ms ease; }
.area-pin:hover { transform: scale(1.12); }
.area-pin.is-selected { background: var(--orange); transform: scale(1.18); }
/* 複数の海域をまとめた丸。拡大すると分かれることが分かるよう、色を変えて外枠を太くする。 */
.area-pin.is-group { background: var(--navy); border-width: 3px; }
@media (max-width: 720px) { .charter-map { height: 280px; } }

/* 筏釣りコーナーの公開前プレビュー（管理者だけに見える）。
   公開ページと取り違えないよう、帯と欄の色をはっきり変える。 */
.preview-banner { margin-bottom: 16px; padding: 14px 16px; border: 2px dashed var(--orange); background: #fff7ef; }
.preview-banner strong { color: #8a4414; font-size: 15px; }
.preview-banner p { margin: 6px 0 0; font-size: 13px; color: var(--ink); }
.preview-panel { border: 2px dashed var(--orange); background: #fffaf4; }
.preview-panel h2 { color: #8a4414; }
.preview-note { font-size: 12px; color: var(--muted); line-height: 1.6; word-break: break-word; }
.preview-reason { margin: 0; font-size: 12px; color: #8a4414; }
.tag.stage-ready { background: #e3f4ef; color: #076554; }
.tag.stage-review { background: #fdf0e2; color: #7d4c1c; }
.tag.stage-excluded { background: #eceff2; color: #5e6d7d; text-decoration: line-through; }
/* 筏釣りの地図で、住所が無く地区の位置に置いた施設（assets/ikada-map.js）。 */
.area-pin.is-rough { border-style: dashed; background: var(--orange); }

/* 管理者だけに出す右下の導線（lib/admin-bar.php）。訪問者の HTML には出ない。 */
.admin-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 1200;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--navy); border: 2px solid var(--orange); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(6, 59, 92, .28); font-size: 13px; line-height: 1.2;
}
.admin-bar-tag { padding: 0 8px; color: #ffd9bd; font-weight: 700; letter-spacing: .04em; }
.admin-bar a { padding: 7px 12px; border-radius: 999px; color: #fff; text-decoration: none; }
.admin-bar a:hover, .admin-bar a:focus-visible { background: rgba(255, 255, 255, .16); }
.admin-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.admin-bar .admin-bar-edit { background: var(--orange); font-weight: 700; }
.admin-bar .admin-bar-edit:hover, .admin-bar .admin-bar-edit:focus-visible { background: #b05a1c; }
@media print { .admin-bar { display: none; } }

/* コラム（/column/）。読み物なので、一覧系のページより行を狭く、行間を広く取る。 */
.column-head h1 { max-width: 24em; margin: 0; font-size: clamp(24px, 4.8vw, 36px); line-height: 1.35; letter-spacing: .01em; }
.column-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; color: #405567; font-size: 13px; }
.column-page > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.column-article { overflow: hidden; margin-bottom: 16px; }
.column-hero { margin: 0; background: #dcebf0; }
.column-hero img { display: block; width: 100%; height: auto; }
.column-body { padding: 28px clamp(18px, 5vw, 46px) 4px; font-size: 16.5px; line-height: 1.95; }
.column-body p { margin: 0 0 1.25em; }
.column-body h2 { margin: 2.3em 0 .85em; padding-left: 14px; border-left: 5px solid var(--teal); font-size: clamp(20px, 3.8vw, 24px); line-height: 1.45; scroll-margin-top: 16px; }
.column-body h3 { margin: 1.9em 0 .6em; font-size: 18px; line-height: 1.5; }
.column-body ul, .column-body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.column-body li + li { margin-top: .45em; }
.column-body blockquote { margin: 0 0 1.25em; padding: 12px 16px; border-left: 4px solid var(--navy); background: #f0f5f8; color: #2a3f52; }
.column-body blockquote p { margin: 0; }
/* 出典の URL は長い。枠からはみ出させず、どこででも折り返す。 */
.column-body a { overflow-wrap: anywhere; }
/* 広告を含む記事の冒頭の表示。持ち物の枠の断り書きと同じ落ち着いた色で読ませる。 */
.column-ad-note { padding: 10px 14px; border-left: 4px solid #b9c0ca; background: #f3f5f7; color: #4a5462; font-size: 13px; line-height: 1.7; }
/* 本文の中の広告。地の文と見分けが付くよう枠で囲み、「広告」を枠の頭に出す。 */
.column-ad { margin: 0 0 1.25em; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; line-height: 1.5; }
.column-ad-label { margin: 0 0 8px; line-height: 1; }
/* 本文の箇条書きの字下げと余白を、広告のリンクの列には掛けない。 */
.column-ad .tackle-list { margin: 0; padding: 0; }
.column-toc { margin: 1.9em 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #f7fafb; font-size: 15px; line-height: 1.6; }
.column-toc-title { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.column-toc ol { margin: 0; padding-left: 1.5em; }
.column-toc li + li { margin-top: 7px; }
.column-toc a { color: var(--ink); text-decoration-color: #9fb6c2; }
.column-toc a:hover, .column-toc a:focus-visible { color: var(--blue); text-decoration-color: currentColor; }
.column-foot { padding: 8px clamp(18px, 5vw, 46px) 28px; }
.column-researched { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.column-author { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding-top: 20px; border-top: 1px solid var(--line); color: #405567; font-size: 14px; line-height: 1.7; }
.column-author img { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.column-author p { margin: 0; }
.column-author-name { color: var(--ink); font-weight: 700; }
.column-next h2 { margin: 0 0 12px; font-size: 18px; }
.column-list { display: grid; gap: 16px; padding: 0; margin-top: 0; margin-bottom: 0; list-style: none; }
.column-card { display: grid; grid-template-columns: minmax(0, 300px) 1fr; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s; }
.column-card.no-image { grid-template-columns: 1fr; }
.column-card:hover, .column-card:focus-visible { border-color: var(--blue); }
.column-card:hover strong, .column-card:focus-visible strong { color: var(--blue); }
.column-card-image { display: block; background: #dcebf0; }
.column-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.column-card-text { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.column-card-text strong { font-size: 19px; line-height: 1.45; transition: color .15s; }
.column-card-lead { color: #405567; font-size: 14px; line-height: 1.7; }
.column-card-date { margin-top: auto; color: var(--muted); font-size: 12px; }
@media (max-width: 620px) {
  .column-card { grid-template-columns: 1fr; }
  .column-body { font-size: 16px; line-height: 1.9; }
}


/* 情報提供（/submit/）と誤りの指摘（/report/） ------------------------------
   入力が主役のページなので幅を詰め、1列で上から順に書けるようにする。
   必須と任意は色の付いた札で分け、エラーは赤で欄の直下と上の一覧の両方に出す。 */
:root { --error: #b42318; --error-bg: #fdf1f0; }
/* 見出しと本文の左端をそろえるため、両方を同じ幅で中央に置く。 */
.form-page, .form-hero .page { max-width: 760px; }
.contrib-form { display: grid; gap: 20px; }
.contrib-form textarea { width: 100%; min-height: 140px; padding: 10px; border: 1px solid #b8c8d3; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; line-height: 1.6; resize: vertical; }
.contrib-form input:focus-visible, .contrib-form select:focus-visible, .contrib-form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contrib-form [aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.contrib-form .hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.req, .opt { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.req { background: var(--orange); color: #fff; }
.opt { background: #eef1f4; color: #5b6472; }
.field-error { color: var(--error); font-size: 13px; font-weight: 700; }
.error-summary { margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--error); border-radius: 0 6px 6px 0; background: var(--error-bg); color: #7a1a12; font-size: 14px; }
.error-summary p { margin: 0 0 6px; font-weight: 700; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
/* 施設の種類。押せる面を広く取り、選んだものを塗りで示す。 */
.choice-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice-group legend { margin-bottom: 8px; padding: 0; color: #35495a; font-size: 13px; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: block; position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: block; padding: 10px 16px; border: 1px solid #b8ccd6; border-radius: 999px; background: #fff; color: #26485c; font-size: 14px; font-weight: 700; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.choice:hover span { border-color: var(--blue); background: #eef7fa; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; }
.choice-group[aria-invalid="true"] .choice span { border-color: var(--error); }
/* 機械だけが埋める欄。画面の外に出し、読み上げからも外す（aria-hidden）。 */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contrib-form .form-actions { display: flex; justify-content: flex-end; }
.contrib-form .form-actions button { min-width: 160px; }
.report-target { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; padding: 12px 14px; border-radius: 6px; background: #f0f6f8; }
.report-target dt { color: #5b6472; font-size: 12px; font-weight: 700; line-height: 1.9; }
.report-target dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-weight: 700; }
.report-target dd span { color: #5b6472; font-size: 12px; font-weight: 400; }
.sent-panel { border-left: 4px solid var(--teal); }
.sent-panel h2 { color: var(--teal); }
.sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
/* 詳細ページの「誤りを知らせる」。本文の流れを止めない控えめな枠にする。 */
.sec-report { background: #fbfcfd; }
/* 同じ船宿の他コーナー。近くの施設より一段強く見せる。 */
.sec-operator { border-left: 4px solid var(--blue); }
.sec-operator .muted-note { margin: 0 0 12px; }
.sec-report h2 { font-size: 16px; }
.sec-report p { color: #4a5462; font-size: 14px; }
.report-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--blue); border-radius: 5px; background: #fff; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.report-link:hover, .report-link:focus-visible { background: #eef7fa; }
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .contrib-form .form-actions button { width: 100%; }
}

/* 装飾のアイコン（assets/icons/。lib/icons.php） ---------------------------------- */
.fish-icon { flex: none; width: auto; height: 18px; }
.fish-list li, .fish-list a { display: inline-flex; align-items: center; gap: 5px; }
.pref-grid .pref-name { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* 魚の絵の分だけ枠を広げ、名前を途中で折り返さない */
.pref-grid:has(.fish-icon) { grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); }
.pref-grid .fish-icon { height: 22px; }
.has-hero-icon { justify-content: flex-start; align-items: center; }
.hero-icon { flex: none; width: auto; height: 72px; filter: drop-shadow(0 4px 8px rgba(18, 52, 77, .14)); }
.operator-name { display: inline-flex; align-items: center; gap: 8px; }
.operator-icon { flex: none; width: auto; height: 28px; }
/* 詳細ページの見出し。何の欄かを絵でも示す。画像が無い環境では文字だけになる。 */
.detail-section > h2 { display: flex; align-items: center; gap: 8px; }
.detail-section > h2::before { content: none; flex: none; width: 26px; height: 26px; background: center / contain no-repeat; }
.sec-info > h2::before { content: ""; background-image: url(icons/harbor.webp); }
.sec-plan > h2::before { content: ""; background-image: url(icons/rental-boat.webp); }
.charter-detail .sec-plan > h2::before { background-image: url(icons/reservation.webp); }
.sec-fish > h2::before { content: ""; background-image: url(icons/rod-rental.webp); }
.sec-map > h2::before { content: ""; background-image: url(icons/destination.webp); }
.sec-sns > h2::before { content: ""; background-image: url(icons/website.webp); }
.sec-links > h2::before { content: ""; background-image: url(icons/search.webp); }
.sec-neighbours > h2::before { content: ""; background-image: url(icons/nearby.webp); }
.sec-operator > h2::before { content: ""; background-image: url(icons/marina.webp); }
.sec-report > h2::before { content: ""; background-image: url(icons/caution.webp); }
.sec-amenities > h2::before { content: ""; background-image: url(icons/tackle-rental.webp); }
.sec-aori > h2::before { content: ""; background-image: url(icons/fish-squid.webp); }
@media (max-width: 620px) {
  .hero-icon { height: 52px; }
  .pref-grid:has(.fish-icon) { grid-template-columns: 1fr 1fr; }
  .pref-grid .fish-icon { height: 16px; }
  .pref-grid:has(.fish-icon) a { padding: 10px; }
  .detail-section > h2::before { width: 22px; height: 22px; }
}
.fish-tag .fish-icon { height: 16px; }
.fish-chip { display: inline-flex; align-items: center; gap: 4px; }
.fish-chip .fish-icon { height: 14px; }

/* 設備のバッジ（lib/amenities.php）。「ある」と言える設備だけ。 */
.amenity-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; list-style: none; }
.amenity-badges li { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 10px 3px 6px; border: 1px solid #cfdde5; border-radius: 6px; background: #fff; color: #26485c; font-size: 13px; font-weight: 700; }
.amenity-icon { flex: none; width: 18px; height: 18px; }
.amenity-badges.is-compact { gap: 4px; margin: 8px 0 10px; }
.amenity-badges.is-compact li { min-height: 24px; padding: 2px 8px 2px 4px; font-size: 12px; }
.amenity-badges.is-compact .amenity-icon { width: 16px; height: 16px; }
.amenity-badges .amenity-rest { padding-left: 8px; border-style: dashed; color: #5b6472; font-weight: 400; }

/* 一覧の「設備で絞り込む」 */
.amenity-filter { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.amenity-filter h2 { margin: 0 0 8px; font-size: 14px; color: #35495a; }
.amenity-filter .muted-note { margin-top: 8px; font-size: 12px; }
.filter-toggle .amenity-icon { width: 18px; height: 18px; }
.amenity-filter-top { margin-top: 12px; }
.fish-tag .amenity-icon { width: 18px; height: 18px; }

/* 人気ランキング（/ranking/ と各一覧の「よく見られている」枠。lib/ranking-list.php）。
   上位3つは順位の丸を塗り、行も大きくして、上から読む順を形で示す。 */
.ranking-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ranking-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.ranking-tabs a:hover, .ranking-tabs a:focus-visible { border-color: var(--blue); }
.ranking-tabs a[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.ranking-tab-icon { width: auto; height: 22px; }
.ranking-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; counter-reset: none; }
.ranking-item a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.ranking-item a:hover, .ranking-item a:focus-visible { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 4px 12px rgb(6 59 92 / 10%); }
.ranking-item a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ranking-rank { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid #b8c9d3; border-radius: 50%; color: #35495a; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking-body { display: grid; min-width: 0; }
.ranking-name { color: var(--blue); font-weight: 700; line-height: 1.4; }
.ranking-where { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ranking-item.is-top1 .ranking-rank { border-color: var(--orange); background: var(--orange); color: #fff; }
.ranking-item.is-top2 .ranking-rank { border-color: var(--navy); background: var(--navy); color: #fff; }
.ranking-item.is-top3 .ranking-rank { border-color: var(--teal); background: var(--teal); color: #fff; }
.ranking-full .ranking-item.is-top1 a, .ranking-full .ranking-item.is-top2 a, .ranking-full .ranking-item.is-top3 a { padding: 14px 16px; }
.ranking-full .is-top1 .ranking-rank, .ranking-full .is-top2 .ranking-rank, .ranking-full .is-top3 .ranking-rank { width: 44px; height: 44px; font-size: 19px; }
.ranking-full .is-top1 .ranking-name, .ranking-full .is-top2 .ranking-name, .ranking-full .is-top3 .ranking-name { font-size: 18px; }
.ranking-full .ranking-item.is-top1 a { border-color: #e9c9a5; background: #fffaf3; }
.ranking-full .ranking-item:nth-child(3) { margin-bottom: 8px; }
.ranking-digest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ranking-digest-grid .detail-section { margin-bottom: 0; }
.ranking-digest-grid + .ranking-about { margin-top: 16px; }
.ranking-digest h2, .ranking-strip-head h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.ranking-strip-icon { width: auto; height: 28px; }
.ranking-strip-head { margin-bottom: 12px; }
.ranking-strip-head h2 { margin-bottom: 0; }
.ranking-strip-head .muted-note { margin-top: 4px; }
.ranking-list.is-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ranking-list.is-compact .ranking-item a { height: 100%; gap: 10px; padding: 9px 12px; }
.ranking-list.is-compact .ranking-rank { width: 30px; height: 30px; font-size: 14px; }
.ranking-list.is-compact .ranking-name { font-size: 14px; }
.ranking-list.is-compact .ranking-where { font-size: 12px; }
.ranking-strip-more { margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.ranking-strip { margin-top: 24px; }
.ranking-page .empty { margin: 0; border-radius: 8px; }
@media (max-width: 620px) {
  .ranking-digest-grid { grid-template-columns: 1fr; }
  .ranking-tabs a { min-height: 36px; padding: 5px 12px; font-size: 13px; }
  .ranking-full .ranking-item.is-top1 a, .ranking-full .ranking-item.is-top2 a, .ranking-full .ranking-item.is-top3 a { padding: 12px; }
  .ranking-full .is-top1 .ranking-name, .ranking-full .is-top2 .ranking-name, .ranking-full .is-top3 .ranking-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ranking-item a { transition: none; }
  .ranking-item a:hover { transform: none; }
}
