/* スローライフMOD 紹介・攻略ページの追加スタイル。notes.css（サイトの共通）のあとに読む。 */
.post.wide { max-width: 1000px; }
.post .lead { font-size: 17px; margin: 0 0 18px; }

/* 制作中のおしらせ */
.wip {
  border: 2px dashed var(--todo-line); background: var(--todo-bg);
  border-radius: 10px; padding: 10px 16px; margin: 0 0 22px; font-size: 15px;
}
.wip strong { color: var(--accent2); }

/* ヒーロー */
.sl-hero { margin: 0 0 20px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.sl-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sl-hero .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff;
}
.sl-hero .cap b { display: block; font-size: 24px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sl-hero .cap span { font-size: 14px; opacity: .92; }

/* ページのカード */
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 24px; }
a.sl-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; box-shadow: var(--shadow);
}
a.sl-card:hover { border-color: var(--accent); }
a.sl-card .t { display: block; font-weight: 800; font-size: 16px; margin-bottom: 4px; color: var(--accent); }
a.sl-card .d { display: block; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
a.sl-card .n { display: inline-block; font-size: 12px; margin-top: 6px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 9px; }

/* 絞りこみ */
.sl-filter {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end;
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin: 0 0 14px; font-size: 14px;
}
.sl-filter label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.sl-filter input, .sl-filter select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-width: 0; max-width: 100%;
}
.sl-filter input[type=search] { width: 220px; }
.sl-count { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.sl-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.sl-tabs button {
  font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px;
}
.sl-tabs button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 表 */
.sl-tablewrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; }
table.sl { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; margin: 0; }
table.sl th, table.sl td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.sl thead th { background: var(--accent-soft); position: sticky; top: 0; white-space: nowrap; font-size: 13px; }
table.sl td.num, table.sl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.sl td.nowrap { white-space: nowrap; }
table.sl tr:last-child td { border-bottom: 0; }
table.sl img.ic { width: 32px; height: 32px; image-rendering: pixelated; vertical-align: middle; margin-right: 6px; }
table.sl td.nm { font-weight: 700; }
.sl-more { display: block; margin: 0 auto 18px; font: inherit; cursor: pointer; padding: 8px 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--paper); color: var(--accent); }
.badge { display: inline-block; font-size: 11.5px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 0 2px 0 0; white-space: nowrap; }
.badge.r3 { background: #e8d9f7; color: #5b2a8a; }
.badge.r4, .badge.r5 { background: #ffe1b8; color: #8a4500; }
.badge.sec { background: #fde7ee; color: #9b2a52; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge.r3 { background: #3a2a4d; color: #d9b8ff; }
  :root:not([data-theme="light"]) .badge.r4, :root:not([data-theme="light"]) .badge.r5 { background: #4d3418; color: #ffcf8a; }
  :root:not([data-theme="light"]) .badge.sec { background: #4a2433; color: #ffb8cf; }
}

/* ガイドの文を出す */
.gd h2 { scroll-margin-top: 12px; }
.gd .gd-img { margin: 14px 0; }
.gd .gd-img img { width: 100%; max-width: 752px; display: block; border-radius: 8px; border: 1px solid var(--line); }
.gd .gd-img figcaption { font-size: 13px; color: var(--muted); }
.gd .gd-em { border-left: 4px solid var(--accent2); background: var(--todo-bg); padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 10px 0; }
.gd .gd-item { margin: 4px 0; padding-left: 8px; border-left: 3px solid var(--accent); list-style: none; }
.gd .gd-cmd { display: grid; grid-template-columns: minmax(0, 14em) 1fr; gap: 2px 12px; margin: 3px 0; font-size: 15px; }
.gd .gd-cmd code { align-self: start; word-break: break-all; }
@media (max-width: 560px) { .gd .gd-cmd { grid-template-columns: 1fr; } }
.chnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chnav a { text-decoration: none; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 14px; font-size: 14px; }

/* 施設のカード */
.fac { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 18px; background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.fac-body { padding: 4px 18px 14px; }
.fac h3 { margin: 14px 0 6px; font-size: 18px; color: var(--accent); }
.fac img.shot { display: block; width: 100%; max-width: 752px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.fac ul { margin: 0 0 8px; }
.fac details { margin: 6px 0; }
.fac summary { cursor: pointer; color: var(--link); font-size: 14px; }
.fac .video { font-size: 13.5px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); }
.fac .video a { font-weight: 700; }

/* 季節の表 */
.cal { display: grid; grid-template-columns: 4.2em repeat(10, minmax(0, 1fr)); gap: 3px; font-size: 12px; margin: 0 0 18px; }
.cal .hd { text-align: center; color: var(--muted); padding: 2px 0; }
.cal .sn { font-weight: 800; align-self: center; font-size: 14px; }
.cal .ev { border-radius: 6px; padding: 3px 4px; color: #fff; text-align: center; line-height: 1.3; overflow: hidden; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.cal .ev.day { background: #4f9a4f; } .cal .ev.night { background: #4a5aa8; } .cal .ev.all { background: #b5652b; }
.cal .em { min-height: 1.2em; }
.cal .ev { min-height: 2.2em; }
.cal .row { display: contents; }
.calwrap { margin: 0 0 18px; } .calwrap .cal { margin: 0 0 3px; }
.post table.sl { width: 100%; display: table; }
table.sl td.nm { min-width: 9em; }
.legend span { display: inline-block; font-size: 12.5px; margin-right: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
@media (max-width: 640px) { .cal { font-size: 10px; grid-template-columns: 2.8em repeat(10, minmax(0, 1fr)); } .cal .ev { writing-mode: vertical-rl; min-height: 6em; padding: 2px 0; } }

.stat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 18px; }
.stat div { background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; text-align: center; font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 22px; color: var(--accent); }
.copy { font-size: 12.5px; color: var(--muted); margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.7; }
.steps { counter-reset: st; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: st; position: relative; padding-left: 40px; margin: 0 0 12px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 28px; font-weight: 800; }
@media (max-width: 640px) { .post { padding: 20px 14px 28px; } .post h1 { font-size: 23px; } .sl-hero .cap b { font-size: 18px; } }
