/* ヒミツの2時間 — PCでもスマホ幅の1カラムで読むブログ */
:root {
  --page: #e9e9e9;
  --col: #ffffff;
  --surface: #f4f4f4;
  --ink: #161616;
  --muted: #666666;
  --accent: #e8285a;
  --accent-soft: #ffe3ea;
  --dark: #141414;
  --col-w: 440px;
  --pad: 20px;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt"; letter-spacing: 0.02em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, p { margin: 0; }

/* ---------- 枠：中央にスマホ幅のカラム、PCは左右に案内 ---------- */
.frame { display: grid; grid-template-columns: 1fr var(--col-w) 1fr; min-height: 100vh; }
.col { grid-column: 2; background: var(--col); min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; padding: 56px 48px; overflow: auto; }
.side-l { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 400px); display: flex; flex-direction: column; justify-content: center; }
.side-r { grid-column: 3; grid-row: 1; width: min(100%, 360px); }
.side-logo { font-size: 40px; font-weight: 900; line-height: 1.2; text-decoration: none; letter-spacing: 0; }
.side-tag { font-size: 18px; font-weight: 700; color: var(--accent); margin-top: 16px; }
.side-desc { font-size: 14px; color: var(--muted); margin-top: 20px; line-height: 1.9; }
.side-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.side-nav a {
  font-size: 14px; font-weight: 700; text-decoration: none; background: var(--col);
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.side-nav a:hover { background: var(--ink); color: #fff; }
.side-h { font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.side-list a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.5; }
.side-list img { border-radius: 6px; }
.side-list a:hover span { color: var(--accent); }

@media (max-width: 1240px) { .side-r { display: none; } .frame { grid-template-columns: 1fr var(--col-w) 0.4fr; } }
@media (max-width: 900px) { .side-l { display: none; } .frame { grid-template-columns: 1fr var(--col-w) 1fr; } }
@media (max-width: 480px) { .frame { display: block; } }

/* ---------- ヘッダー ---------- */
.top {
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 var(--pad); background: var(--col);
}
.logo { font-size: 20px; font-weight: 900; text-decoration: none; letter-spacing: 0; }
.top-link {
  font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; background: var(--accent);
  padding: 6px 14px; border-radius: 999px; transition: transform .2s;
}
.top-link:hover { transform: translateY(-1px); }
.cats {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto;
  padding: 10px var(--pad); background: var(--col); scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 7px 14px; border-radius: 999px; background: var(--surface); transition: background .2s, color .2s;
}
.cats a:hover, .cats a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- 共通ブロック ---------- */
main { padding-bottom: 24px; }
.crumbs { font-size: 12px; color: var(--muted); padding: 12px var(--pad) 0; line-height: 1.6; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 6px; }
.intro { padding: 20px var(--pad) 8px; }
.h1 { font-size: 24px; font-weight: 900; line-height: 1.45; letter-spacing: 0.01em; margin-bottom: 12px; }
.intro p { font-size: 15px; color: var(--muted); }
.block { padding: 40px var(--pad) 0; }
.block-tight { padding-top: 16px; }
.h2 { font-size: 20px; font-weight: 900; line-height: 1.45; margin-bottom: 16px; }
.note-s { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* 注目記事 */
.feature { display: block; margin: 16px var(--pad) 0; text-decoration: none; }
.feature img { border-radius: 10px; transition: transform .3s; }
.feature:hover img { transform: scale(1.01); }
.feature-title { display: block; font-size: 18px; font-weight: 900; line-height: 1.5; margin: 12px 0 4px; }

/* 記事リスト */
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 136px 1fr; gap: 14px; padding: 12px 0; text-decoration: none; align-items: start; }
.item img { border-radius: 6px; transition: opacity .2s; }
.item:hover img { opacity: .85; }
.item-body { display: flex; flex-direction: column; gap: 4px; }
.item-title { font-size: 15px; font-weight: 700; line-height: 1.55; }
.item:hover .item-title { color: var(--accent); }
.item-meta { font-size: 12px; color: var(--muted); }

/* 行リスト */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { background: var(--surface); border-radius: 8px; margin-bottom: 6px; }
.rows li.off { display: none; }
.rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; min-height: 52px; }
.row-name { font-weight: 700; }
.row-val { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rows a:hover .row-name { color: var(--accent); }

/* いまから2時間 */
.now { margin: 40px 0 0; padding: 28px var(--pad); background: var(--dark); color: #fff; }
.now .note-s { color: #bdbdbd; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.picker label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #bdbdbd; }
.picker select {
  font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); background: #fff;
  border: 0; border-radius: 8px; padding: 10px 36px 10px 14px; min-height: 52px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23161616' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.now-out { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.now-out b { color: var(--accent); font-size: 22px; }
.now .rows li { background: #262626; }
.now .row-val { color: #bdbdbd; }
.now-none { font-size: 14px; color: #bdbdbd; }

/* ---------- 記事 ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 10; }
.post { padding: 0 var(--pad); }
.post-head { padding: 16px 0 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.post-meta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.post-eye { border-radius: 10px; margin-bottom: 24px; }
.toc { background: var(--surface); border-radius: 10px; padding: 18px 20px; margin-bottom: 32px; }
.toc-h { font-weight: 900; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 14px; }
.toc li { padding: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.prose { font-size: 16px; line-height: 1.95; }
.prose p { margin: 0 0 1.4em; }
.prose h2 {
  font-size: 19px; font-weight: 900; line-height: 1.5; color: #fff; background: var(--dark);
  margin: 48px calc(var(--pad) * -1) 20px; padding: 14px var(--pad);
}
.prose h3 { font-size: 17px; font-weight: 900; margin: 32px 0 10px; }
.prose strong { font-weight: 700; background: var(--accent-soft); padding: 0 .15em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; margin: 0 0 1.6em; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid #e2e2e2; padding: 10px 12px 10px 0; text-align: left; vertical-align: top; white-space: nowrap; }
.prose td.wrap { white-space: normal; min-width: 170px; }
.prose th { color: var(--muted); font-weight: 700; }

.spot { background: var(--surface); border-radius: 10px; padding: 20px; margin: 0 0 14px; }
.spot h3 { margin: 0 0 8px; font-size: 18px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; background: #fff; border-radius: 4px; padding: 2px 8px; margin: 0 4px 4px 0; }
.spot dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0; font-size: 14px; line-height: 1.6; }
.spot dt { color: var(--muted); white-space: nowrap; }
.spot dd { margin: 0; }
.spot p { font-size: 15px; margin-bottom: 12px; }
.spot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spot-links a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: transform .15s, background .2s;
}
.spot-links a.primary { background: var(--accent); color: #fff; }
.spot-links a:hover { transform: translateY(-1px); }
.spot-links a:active { transform: translateY(1px); }
.note { background: var(--accent-soft); border-radius: 10px; padding: 18px 20px; margin: 0 0 1.6em; font-size: 15px; }
.note-title { font-weight: 900; margin-bottom: 4px; }
.note p:last-child { margin-bottom: 0; }

.writer { background: var(--surface); border-radius: 10px; padding: 18px 20px; margin: 40px 0 0; font-size: 14px; color: var(--muted); }
.writer-name { font-weight: 900; color: var(--ink); margin-bottom: 4px; }

/* ---------- フッター ---------- */
.foot { background: var(--dark); color: #fff; padding: 40px var(--pad) 32px; margin-top: 48px; }
.foot-logo { font-size: 24px; font-weight: 900; margin-bottom: 16px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-bottom: 20px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-note { font-size: 12px; color: #bdbdbd; line-height: 1.8; margin-bottom: 16px; }
.foot-copy { font-size: 12px; color: #bdbdbd; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 日本語の改行を文節で */
.h1, .h2, .feature-title, .item-title, .side-list span, .prose h2, .prose h3 { word-break: auto-phrase; }

/* 施設の画像（公式サイトから引用） */
.spot-img { margin: 4px 0 12px; }
.spot-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: #e6e6e6; }
.spot-img figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
.spot-img figcaption a { color: var(--muted); }
