/* 港の便り (10-26・harbor_news_ui.js)。見本 (claude.ai の Artifact) の雑誌の見た目: 空の青い表紙 → 白い紙に記事の箱。海の青・夕焼けの橙・竜の氷の水色。
   外の字体は読まない (CSP) = 太い字は端末の字体。全画面の窓 (重なり 30 = 遊びの窓より上) */
.hnWrap {
  --hn-paper: #eef4f9; --hn-card: #fff; --hn-ink: #13233b; --hn-sub: #4b5d76; --hn-line: #d3dfea; --hn-sea: #1d6aa5; --hn-deep: #0f3a63;
  --hn-sun: #ee8420; --hn-sun-soft: #ffe6c7; --hn-sky1: #a9dcf7; --hn-sky2: #e6f5fd; --hn-ice: #d4f0fb; --hn-rose: #cf4562;
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--hn-paper); color: var(--hn-ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; color-scheme: light;
}
.hnBar { flex: none; display: flex; justify-content: flex-end; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px 12px; background: var(--hn-deep); }
.hnClose { font: inherit; font-weight: bold; font-size: 16px; min-height: 44px; padding: 4px 18px; border-radius: 10px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.hnClose:focus-visible, .hnWrap button:focus-visible { outline: 3px solid var(--hn-sun); outline-offset: 2px; }
.hnScroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px max(16px, env(safe-area-inset-left, 0px)) 64px; }
.hnPage { max-width: 1000px; margin: 0 auto; display: grid; gap: 24px; font-size: 16px; line-height: 1.85; }
.hnPage h1, .hnPage h2 { font-weight: 900; text-wrap: balance; word-break: auto-phrase; margin: 0; line-height: 1.3; letter-spacing: 0.02em; }
.hnPage p { margin: 0; }
.hnPage img { display: block; max-width: 100%; height: auto; }
.hnMast { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; border-bottom: 4px solid var(--hn-deep); padding-bottom: 10px; }
.hnLogo { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hnLogo b { font-weight: 900; font-size: clamp(36px, 9vw, 60px); line-height: 1; color: var(--hn-deep); letter-spacing: 0.06em; }
.hnLogo span { font-size: 14px; color: var(--hn-sub); font-weight: bold; }
.hnIssue { display: flex; gap: 8px; flex-wrap: wrap; }
.hnBadge { background: var(--hn-deep); color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 14px; font-weight: bold; }
.hnBadge.draft { background: var(--hn-rose); }
.hnCover { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(170deg, var(--hn-sky1) 0%, var(--hn-sky2) 62%, #fff 100%); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 28px 24px 22px; }
.hnCoverTxt { display: grid; gap: 14px; min-width: 0; }
.hnKicker { justify-self: start; font-size: 15px; font-weight: bold; background: var(--hn-sun); color: #fff; padding: 2px 12px; border-radius: 999px; }
.hnCover h1 { font-size: clamp(28px, 6vw, 48px); color: var(--hn-deep); }
.hnDeck { font-size: 16px; font-weight: 500; max-width: 34em; }
.hnArt { position: relative; min-width: 0; }
.hnCoverImg { width: 100%; max-width: 400px; margin: 0 auto; mix-blend-mode: multiply; }
.hnStamp { position: absolute; right: 6%; bottom: 4%; background: #fff; border: 2px solid var(--hn-deep); color: var(--hn-deep); padding: 4px 10px; border-radius: 6px; transform: rotate(-4deg); font-size: 15px; font-weight: bold; }
.hnSec { background: var(--hn-card); border-radius: 12px; padding: 20px 22px 22px; display: grid; gap: 12px; border: 1px solid var(--hn-line); align-content: start; }
.hnHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.hnSec h2 { font-size: clamp(20px, 4vw, 26px); color: var(--hn-deep); }
.hnLabel { font-size: 14px; font-weight: bold; color: var(--hn-sun); letter-spacing: 0.08em; }
.hnBy { font-size: 13px; color: var(--hn-sub); font-weight: bold; }
.hnBody { display: grid; gap: 10px; max-width: 40em; }
.hnNote { font-size: 13px; color: var(--hn-sub); }
.hnFacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hnFacts li { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 8px; font-size: 14px; border-bottom: 1px dashed var(--hn-line); padding-bottom: 6px; }
.hnT { color: var(--hn-sea); font-weight: bold; font-variant-numeric: tabular-nums; }
.hnRaids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hnRaid { background: var(--hn-ice); border-radius: 10px; padding: 12px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.hnRaid img { width: 100%; max-width: 150px; mix-blend-mode: multiply; }
.hnRaid b { font-weight: 900; font-size: 17px; color: var(--hn-deep); }
.hnWho { font-weight: bold; }
.hnWhen { font-size: 13px; color: var(--hn-sub); }
.hnPics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; background: #f1ead8; border-radius: 10px; padding: 12px; }
.hnPics figure { margin: 0; display: grid; gap: 2px; justify-items: center; }
.hnPics img { width: 100%; max-width: 120px; max-height: 130px; object-fit: contain; mix-blend-mode: multiply; }
.hnPics figcaption { font-size: 12px; color: var(--hn-sub); }
.hnTwo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hnShorts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hnShorts li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--hn-line); }
.hnShorts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hnD { font-size: 13px; color: var(--hn-sea); font-weight: bold; }
.hnNums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hnNum { background: var(--hn-paper); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.hnNum b { font-weight: 900; font-size: 30px; color: var(--hn-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hnNum b small { font-size: 14px; margin-left: 4px; }
.hnNum span { font-size: 13px; color: var(--hn-sub); }
.hnQ { font-weight: bold; font-size: 17px; }
.hnChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hnChoices button { font: inherit; text-align: left; background: var(--hn-paper); color: var(--hn-ink); border: 2px solid var(--hn-line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 6px; align-items: start; cursor: pointer; min-height: 48px; }
.hnChoices button span { color: var(--hn-sea); font-weight: bold; }
.hnChoices button[aria-pressed="true"] { border-color: var(--hn-sun); background: var(--hn-sun-soft); }
.hnAfter { font-weight: bold; color: var(--hn-deep); min-height: 1.8em; }
.hnList { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.hnReporters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hnRep { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
.hnRep img { width: 110px; }
.hnBubble { background: var(--hn-paper); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.hnBubble b { display: block; color: var(--hn-sea); font-size: 13px; }
.hnFoot { font-size: 13px; color: var(--hn-sub); border-top: 2px solid var(--hn-line); padding-top: 12px; }
@media (max-width: 760px) {
  .hnCover { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 18px; }
  .hnCoverImg { max-width: 280px; }
  .hnTwo, .hnReporters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .hnRaids { grid-template-columns: minmax(0, 1fr); }
  .hnRaid { grid-template-columns: 90px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .hnRaid img { grid-row: span 3; max-width: 90px; }
  .hnChoices { grid-template-columns: minmax(0, 1fr); }
  .hnRep { grid-template-columns: 84px minmax(0, 1fr); }
  .hnRep img { width: 84px; }
  .hnSec { padding: 16px 14px 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hnStamp { animation: hnPop 0.5s ease-out both 0.2s; }
  @keyframes hnPop { from { transform: rotate(-4deg) scale(1.25); } to { transform: rotate(-4deg) scale(1); } }
}
