/* TSURIAI 公式サイト共通スタイル(index / gallery / guide / privacy / terms)
   配色・フォントはアプリ本体(css/style.css)のトークンに合わせている。 */
@import url("../vendor/fonts/orbitron.css");

:root {
  --bg: #05070c;
  --bg-2: #0a0e16;
  --surface: #12161f;
  --surface-2: #181d29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5fa;
  --muted: #8993a8;
  --accent: #00e5ff;
  --teal: #7fe8e7;
  --pink: #ff2e7e;
  --gold: #ffd166;
  --rank-c: #6b7688;
  --rank-b: #35c2c1;
  --rank-a: #ffd166;
  --rank-s: #ff5d3c;
  --rank-ss: #ff2e9e;
  --grad: linear-gradient(135deg, #00e5ff, #7fe8e7 55%, #ff2e7e);
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-num: "Orbitron", var(--font-jp);
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* hidden 属性は、display を指定したクラスより必ず優先する(図鑑の絞り込みが効かなかった原因) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; word-break: auto-phrase; margin: 0; }
p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 17px; letter-spacing: 0.02em; }
.brand-mark { width: 40px; height: 33px; flex: none; display: block; filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3)); }
.brand-word { font-family: "Orbitron", var(--font-jp); font-weight: 900; font-size: 20px; letter-spacing: 0.08em; line-height: 1; }
.brand-word .ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-kana { font-family: var(--font-jp); font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--muted); margin-left: -2px; align-self: center; }
.site-footer .brand-mark { width: 34px; height: 28px; }
.site-footer .brand-word { font-size: 17px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .btn { color: #03141a; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 900; font-size: 16px; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--grad); color: #03141a; box-shadow: 0 6px 28px rgba(0, 229, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(0, 229, 255, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { flex: none; }

/* ---------- 汎用セクション ---------- */
.section { padding-block: 96px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-num); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: 0.01em; }
.section-lead { color: var(--muted); margin-top: 16px; max-width: 40em; }
.section-head { margin-bottom: 48px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
.note { color: var(--muted); font-size: 13px; }

/* ---------- ページ見出し(下層ページ) ---------- */
.page-hero { padding-block: 72px 40px; border-bottom: 1px solid var(--line); background:
  radial-gradient(600px 240px at 85% 0%, rgba(0, 229, 255, 0.10), transparent 70%),
  radial-gradient(500px 200px at 10% 100%, rgba(255, 46, 126, 0.07), transparent 70%); }
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; }
.page-hero p { color: var(--muted); margin-top: 14px; max-width: 40em; }

/* ---------- 本文(下層ページ・規約) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 900; margin-top: 56px; margin-bottom: 16px; padding-top: 8px; }
.prose h3 { font-size: 17px; font-weight: 900; margin-top: 32px; margin-bottom: 10px; }
.prose p { margin-bottom: 14px; color: #d5dbe6; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; color: #d5dbe6; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose .legal-section h3 { font-size: 17px; margin-top: 36px; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--surface); margin-top: 32px; }
.toc-title { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.callout { border: 1px solid rgba(0, 229, 255, 0.25); background: rgba(0, 229, 255, 0.05); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 最終CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 64px 32px; text-align: center;
  background:
    radial-gradient(420px 220px at 15% 0%, rgba(0, 229, 255, 0.16), transparent 70%),
    radial-gradient(420px 220px at 90% 100%, rgba(255, 46, 126, 0.14), transparent 70%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.cta-band p { color: var(--muted); margin-top: 12px; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-tag { margin-top: 8px; }
.copyright { margin-top: 28px; font-size: 12px; }

/* スマホ用の2段目メニュー(横スクロール) */
.mnav { display: none; }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .mnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; }
  .mnav a[aria-current="page"] { color: #03141a; background: var(--accent); border-color: var(--accent); }
  .section { padding-block: 72px; }
  .cta-band { padding: 48px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* みんなの釣果写真(魚ごとのページ・釣果速報) */
.ph-sec { margin-top: 8px; margin-bottom: 28px; }
.ph-summary { margin: -4px 0 14px; color: #c9d1de; font-size: 14.5px; line-height: 1.8; }
.ph-h { font-size: 22px; font-weight: 900; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ph-h small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ph-like.pop svg { animation: phPop 0.35s ease; }
@keyframes phPop { 40% { transform: scale(1.35); } }
.ar-rank.r1 { background: linear-gradient(135deg, #ffe08a, #ffb84d); }
.ar-rank.r2 { background: linear-gradient(135deg, #eef2f8, #aab4c4); }
.ar-rank.r3 { background: linear-gradient(135deg, #f0b38a, #b8744a); }
.ph-note { margin-top: 10px; }
.ph-note a, .ph-dlg a:not(.btn) { color: var(--accent); }
.rk-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.rk-wrap .ph-sec { margin-bottom: 0; }
.rk-wrap:has(> .rk-sec:not([hidden])) { margin-bottom: 8px; }
.ar-list { list-style: none; margin: 0; padding: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ar-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.ar-row + .ar-row { border-top: 1px solid var(--line); }
.ar-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; font-size: 12px; color: #03141a; background: rgba(255, 255, 255, 0.14); }
.ar-rank:not(.r1):not(.r2):not(.r3) { color: var(--text); }
.ar-name { flex: 1; min-width: 0; color: var(--text); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-v { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; }
.ar-v b { font-family: var(--font-num); color: var(--text); font-size: 13px; }
.ar-likes { color: var(--pink); }
@media (max-width: 760px) { .rk-wrap { grid-template-columns: 1fr; gap: 0; } .rk-wrap .ph-sec { margin-bottom: 28px; } }
@media (max-width: 400px) { .ar-row { gap: 7px; padding: 10px; } .ar-v:last-child { display: none; } }
.ph-dlg-back { position: fixed; inset: 0; z-index: 125; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; padding: 16px; }
.ph-dlg { width: min(420px, 100%); border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.ph-dlg h3 { font-size: 17px; font-weight: 900; margin: 0 0 8px; }
.ph-dlg p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.ph-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.ph-reasons label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ph-dlg-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ph-dlg-btns .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.ph-toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all 0.2s; background: #1d2432; color: var(--text); border: 1px solid var(--line-strong); padding: 10px 16px; border-radius: 12px; font-size: 13px; max-width: calc(100% - 32px); }
.ph-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* 釣果ランキングの見出し・エリア・表紙写真 */
.ph-board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.ph-board-head .ph-h { margin-bottom: 0; }
.ph-h3 { font-size: 17px; font-weight: 900; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ph-h3 small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ph-empty { margin: 0 0 20px; }
a.ar-name { color: var(--text); text-decoration: none; }
a.ar-name:hover { color: var(--accent); }
.sp-cover, .spd-cover { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.sp-cover { margin: -19px -19px 0; aspect-ratio: 16 / 9; border-radius: 15px 15px 0 0; }
.spd-cover { margin-top: 18px; max-width: 520px; aspect-ratio: 16 / 10; border-radius: 16px; border: 1px solid var(--line-strong); }
.sp-cover img, .spd-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spd-cover.has-cover { aspect-ratio: 4 / 3; }
.spd-cover .cv-bg { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(18px) brightness(0.5) saturate(1.1); }
.spd-cover .cv-whole { position: relative; z-index: 1; object-fit: contain; }
.spd-cover .cv-cap { z-index: 2; }
.cv-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); font-size: 11.5px; color: #fff; }
.cv-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; background: rgba(255,46,126,0.85); font-weight: 800; white-space: nowrap; }
.cv-badge svg { width: 12px; height: 12px; }
.cv-nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
/* ランキング行: 名前の下に小さく内訳、右に主役の数字を大きく */
.ar-angler { gap: 12px; padding: 11px 14px; }
.ar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ar-main .ar-name { flex: none; font-size: 14px; }
.ar-sub { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-sub svg { color: var(--pink); }
.ar-score { flex: none; display: inline-flex; align-items: baseline; gap: 4px; color: var(--pink); }
.ar-score svg { align-self: center; }
.ar-score b { font-family: var(--font-num); font-size: 20px; font-weight: 900; color: var(--text); line-height: 1; }
.ar-score small { font-size: 11px; color: var(--muted); }
.ar-score-count { color: var(--muted); }
@media (max-width: 400px) { .ar-angler .ar-sub { display: flex; } }

/* ブランド(TSURIAI ツリアイ)のスマホ表示 */
.brand, .brand-kana, .site-nav .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .brand { gap: 7px; }
  .site-header .brand-mark { width: 34px; height: 28px; }
  .site-header .brand-word { font-size: 16px; }
  .site-header .brand-kana { font-size: 9px; letter-spacing: 0.12em; }
  .site-header .site-nav .btn { padding: 0 12px; }
}

/* ===== 釣果写真カード(写真が主役。サイズはメジャーのラベルで見せる) ===== */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px 12px; }
.ph-item { position: relative; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ph-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); isolation: isolate; text-decoration: none; color: #fff; }
.ph-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ph-img:hover img { transform: scale(1.04); }
.ph-img::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, rgba(3, 6, 12, 0.55) 45%, rgba(3, 6, 12, 0.9)); pointer-events: none; }
.ph-item.mine .ph-img { box-shadow: 0 0 0 2px var(--accent); }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 11px 11px; }
/* メジャー(巻き尺)のラベル: 黄色地に目盛り */
/* サイズ: アプリの釣果カードと同じ、光る白い数字。下にアプリの差し色(水色→ピンク)の細い線 */
.ph-size {
  display: inline-flex; align-items: baseline; gap: 1px;
  padding: 0 1px 4px;
  font-family: var(--font-num); font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.75), 0 0 3px rgba(0, 229, 255, 0.9);
  background: linear-gradient(90deg, #00e5ff, #7fe8e7 55%, #ff2e7e) left bottom / 100% 2px no-repeat;
}
.ph-size small { font-size: 11px; font-weight: 700; margin-left: 2px; color: #a3adc2; text-shadow: none; }
.ph-sp { max-width: 100%; font-size: 15px; font-weight: 900; line-height: 1.3; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; max-width: 100%; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.ph-when { color: rgba(255, 255, 255, 0.65); white-space: nowrap; }
.ph-foot { display: flex; align-items: flex-start; gap: 4px; min-width: 0; padding: 0 2px; }
.ph-nick { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; min-width: 0; padding-top: 6px; font-size: 12.5px; line-height: 1.4; font-weight: 700; color: #c9d1de; }
.ph-nick span { min-width: 0; overflow-wrap: anywhere; }
.ph-mine { flex: none; font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: rgba(0, 229, 255, 0.14); color: var(--accent); }
.ph-like, .ph-report, .ph-share { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-family: var(--font-num); cursor: pointer; }
.ph-report { padding: 0 6px; opacity: 0.55; }
.ph-share { padding: 0 6px; }
.ph-share:hover { color: var(--text); }
.ph-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-like:hover, .ph-report:hover { color: var(--text); opacity: 1; }
.ph-like.on { color: var(--pink); background: rgba(255, 46, 126, 0.12); }
.ph-like:disabled { cursor: default; opacity: 0.7; }
.ph-like:focus-visible, .ph-report:focus-visible, .ph-img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-report.done { color: var(--gold); opacity: 0.6; cursor: default; }
/* 順位: 写真の左上に大きな数字 */
.ph-rank { position: absolute; top: 4px; left: 10px; z-index: 1; font-family: var(--font-num); font-weight: 900; font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
.ph-rank.r1 { color: #ffd166; }
.ph-rank.r2 { color: #e4e9f1; }
.ph-rank.r3 { color: #f0a877; }
.ph-crown { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: 11px; font-weight: 900; color: #1a1406; background: #ffd166; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.ph-crown::before { content: ""; width: 12px; height: 9px; background: currentColor; clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%); }
.ph-grid-rank { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ph-grid-hero .ph-item:first-child { grid-column: span 2; }
.ph-grid-hero .ph-item:first-child .ph-img { aspect-ratio: 16 / 11; }
.ph-grid-hero .ph-item:first-child .ph-rank { font-size: 52px; }
.ph-grid-hero .ph-item:first-child .ph-size { font-size: 30px; }
.ph-grid-hero .ph-item:first-child .ph-sp { font-size: 19px; }
@media (max-width: 520px) {
  .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .ph-foot { gap: 0; padding: 0; }
  .ph-like, .ph-share, .ph-report { padding: 0 5px; font-size: 12px; }
  .ph-like svg, .ph-share svg { width: 14px; height: 14px; }
  .ph-nick { font-size: 12px; }
  .ph-cap { padding: 8px 9px 9px; }
  .ph-sp { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ph-item img { transition: none; } .ph-img:hover img { transform: none; } }

/* シェアのシート(js/site-share.js) */
.sh-back { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 761px) { .sh-back { align-items: center; } }
.sh-sheet { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 16px 16px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }
.sh-x-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text); cursor: pointer; }
.sh-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sh-links a, .sh-links button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.sh-links a:hover, .sh-links button:hover { border-color: var(--line-strong); }
.sh-links svg { width: 22px; height: 22px; }
.sh-line svg { color: #06c755; }
@media (max-width: 380px) { .sh-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 大きく出すカードは写真を切らずに全体表示(余白は同じ写真をぼかして埋める) */
.ph-whole .ph-img img.ph-main { position: relative; z-index: 0; object-fit: contain; }
.ph-whole .ph-img img.ph-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) brightness(0.5) saturate(1.1); transform: none; }
.ph-grid-new .ph-item.ph-whole:first-child .ph-img img.ph-main { position: absolute; inset: 0; }

/* もっと見る */
.ph-more { display: block; margin: 18px auto 0; min-width: 200px; }
.ph-more[hidden] { display: none; }

/* 写真を押したときの拡大表示。写真・情報・ボタンを画面の高さに収め、ボタンは一番下に置く
   (写真が伸び縮みして残りを埋めるので、投稿者名などがボタンに隠れない) */
html.pv-open { overflow: hidden; }
.pv-back { position: fixed; inset: 0; z-index: 105; background: #05070c; display: flex; flex-direction: column; }
.pv-dlg { flex: 1; min-height: 0; width: min(980px, 100%); margin: 0 auto; padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.pv-photo { position: relative; flex: 1 1 auto; min-height: 160px; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); isolation: isolate; }
.pv-photo img { position: absolute; display: block; }
.pv-bg { inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) brightness(0.45) saturate(1.15); }
.pv-img { inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.pv-info { flex: none; display: flex; flex-direction: column; gap: 6px; }
.pv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pv-sp { font-size: clamp(22px, 4vw, 30px); font-weight: 900; color: var(--text); text-decoration: none; }
.pv-sp:hover { color: var(--accent); }
.pv-meta { font-size: 13.5px; color: #c9d1de; }
.pv-meta span { color: var(--muted); margin-left: 6px; }
.pv-nick { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pv-nick b { color: var(--text); overflow-wrap: anywhere; }
.pv-bar { flex: none; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #05070c; }
.pv-back-btn { flex: 1; max-width: 260px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pv-back-btn:focus-visible, .pv-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv-like { height: 46px; padding: 0 16px; font-size: 15px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.pv-share { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; }
@media (max-width: 760px) {
  .pv-dlg { padding: 10px 12px 0; gap: 10px; }
  .pv-share span { display: none; }
  .pv-share { padding: 0 18px; }
}

/* アプリの「みんなの釣果」の中に表示しているとき */
html.embed .site-header, html.embed .site-footer, html.embed .cta-band, html.embed .rp-areanav, html.embed .rp-hero h1, html.embed .rp-hero p { display: none !important; }
html.embed .rp-hero { padding-block: 12px 0; background: none; }
html.embed .rp-main { padding-top: 8px; }
html.embed .rp-hero-in:not(:has(.ph-area:not([hidden]))) { display: none; }
html.embed .rp-hero-in { justify-content: flex-start; }
html.embed .ph-note { display: none; }
.pv-top .ph-size { font-size: 30px; }
.pv-top .ph-size small { font-size: 13px; }

/* 投稿者アイコン(選んだバッジ。js/badges.js) */
.av { flex: none; width: var(--av, 22px); height: var(--av, 22px); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #cfd6e2; background: var(--surface-2); border: 1.5px solid rgba(255, 255, 255, 0.18); }
.av-base { color: var(--accent); border-color: rgba(0, 229, 255, 0.6); background: rgba(0, 229, 255, 0.1); }
.av-silver { color: #eef2f8; border-color: #c9d1de; background: linear-gradient(135deg, rgba(238, 242, 248, 0.25), rgba(140, 150, 170, 0.2)); }
.av-gold { color: #ffd166; border-color: #ffd166; background: linear-gradient(135deg, rgba(255, 209, 102, 0.28), rgba(255, 46, 126, 0.18)); box-shadow: 0 0 10px rgba(255, 209, 102, 0.35); }
a.ph-nick { text-decoration: none; }
a.ph-nick:hover span:not(.av) { color: var(--accent); }
.ph-nick .av { margin-right: 2px; }
a.ar-name-av { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
a.ar-name-av span:not(.av) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-angler { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.pv-angler:hover b { color: var(--accent); }

/* プロフィール写真(js/badges.js の avatarHtml) */
.av { overflow: hidden; }
.av-photo { padding: 0; border-color: rgba(255,255,255,0.25); background: var(--surface-2); }
.av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* アプリの中の釣果速報: 新着 / ランキング / よく釣れている魚 を切り替えて1つずつ出す(js/site-report.js) */
.rp-embed-tabs { display: none; }
html.embed .rp-embed-tabs { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -16px 12px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
html.embed .rp-embed-tabs button { height: 42px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
html.embed .rp-embed-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
html.embed .rp-hero { display: none !important; }
html.embed .rp-main { padding-top: 0 !important; }
html.embed .ph-note, html.embed .rp-about, html.embed .rp-areanav-low { display: none !important; }
html.embed[data-rpview="new"] .rp-ranking,
html.embed[data-rpview="new"] .rp-head-stats, html.embed[data-rpview="new"] .rp-controls, html.embed[data-rpview="new"] .rp-arealink, html.embed[data-rpview="new"] .rp-board,
html.embed[data-rpview="rank"] .rp-new, html.embed[data-rpview="rank"] .ph-empty,
html.embed[data-rpview="rank"] .rp-head-stats, html.embed[data-rpview="rank"] .rp-controls, html.embed[data-rpview="rank"] .rp-arealink, html.embed[data-rpview="rank"] .rp-board,
html.embed[data-rpview="stats"] .ph-board { display: none !important; }
html.embed .rp-new .rp-head, html.embed .rp-ranking > .rp-head, html.embed .rp-head-stats { display: none; }
.ph-views { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.ph-views[hidden] { display: none; }
.ph-views svg { opacity: 0.8; }
/* いいねと見られた回数を同じ高さ・同じ並びに */
.ph-foot { align-items: center; }
.ph-like, .ph-views { height: 30px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-num); font-size: 12.5px; line-height: 1; }
.ph-views { flex: none; padding: 0 6px; }
.ph-like svg, .ph-views svg { width: 14px; height: 14px; display: block; }
.rp-embed-wait { display: none; }
html.embed[data-rpview="new"] .rp-embed-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 12px; color: var(--muted); font-size: 14px; }

/* アプリの「知識」画面の中で読むとき(?embed=1)。ヘッダー・フッター・アプリへの誘導・パンくずを隠し、読む部分だけにする */
html.embed-read .crumbs, html.embed-read .lr-app, html.embed-read .lr-side, html.embed-read .spd-cta, html.embed-read .spd-side .btn-primary, html.embed-read .eyebrow { display: none !important; }
html.embed-read .page-hero { padding-block: 18px 6px !important; }
html.embed-read .page-hero h1 { font-size: clamp(22px, 6vw, 30px); }
html.embed-read .section { padding-block: 18px 40px; }
html.embed-read body { padding-bottom: env(safe-area-inset-bottom); }
