/* チロット案内 — 器: 生成りの地・こげ茶の文字・藍の差し色。見出しは明朝。 */
:root {
  --ct-bg: #f5efe3;
  --ct-paper: #fffaf0;
  --ct-ink: #2a2118;
  --ct-sub: #5d5142;
  --ct-line: #d9cdb8;
  --ct-ai: #1f3a4d;
  --ct-ai-2: #2d5670;
  --ct-aka: #9a3d26;
  --ct-kin: #b8862f;
  --ct-mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "Noto Serif KR", "Noto Serif TC", "Noto Serif SC", serif;
  --ct-gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", "Noto Sans KR", "Noto Sans TC", "Noto Sans SC", "Noto Sans Thai", "Leelawadee UI", "Thonburi", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ct-bg); color: var(--ct-ink); font-family: var(--ct-gothic); font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ct-ai-2); text-underline-offset: 3px; }
a:hover { color: var(--ct-aka); }
h1, h2, h3, h4 { font-family: var(--ct-mincho); font-weight: 600; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ct-kin); outline-offset: 2px; }
.ct-skip { position: absolute; left: -9999px; }
.ct-skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.ct-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.ct-unofficial { margin: 0; padding: 6px 16px; background: var(--ct-ai); color: #f5efe3; font-size: 13px; text-align: center; line-height: 1.5; }

/* 頭 */
.ct-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(245, 239, 227, .96); border-bottom: 1px solid var(--ct-line); }
.ct-logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ct-ink); line-height: 1.2; margin-right: auto; }
.ct-logo-main { font-family: var(--ct-mincho); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.ct-logo-sub { font-size: 11px; color: var(--ct-sub); }
.ct-menu > summary, .ct-lang > summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--ct-ink); border-radius: 999px; font-size: 14px; background: var(--ct-paper); min-height: 40px; display: flex; align-items: center; }
.ct-menu > summary::-webkit-details-marker, .ct-lang > summary::-webkit-details-marker { display: none; }
.ct-menu[open] > summary, .ct-lang[open] > summary { background: var(--ct-ink); color: var(--ct-bg); }
.ct-nav, .ct-lang-list { position: absolute; right: 12px; top: 100%; margin-top: 6px; background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(42, 33, 24, .18); padding: 8px; display: grid; min-width: 220px; max-height: 76vh; overflow: auto; }
.ct-nav a, .ct-lang-list a { padding: 11px 14px; text-decoration: none; color: var(--ct-ink); border-radius: 8px; font-size: 15px; }
.ct-nav a:hover, .ct-lang-list a:hover, .ct-nav a[aria-current], .ct-lang-list a[aria-current] { background: var(--ct-bg); color: var(--ct-aka); }
.ct-nav-pc { display: none; }
@media (min-width: 1180px) {
  .ct-menu { display: none; }
  .ct-nav-pc { display: flex; flex-wrap: wrap; gap: 2px; }
  .ct-nav-pc a { padding: 8px 10px; font-size: 14px; text-decoration: none; color: var(--ct-ink); border-radius: 8px; white-space: nowrap; }
  .ct-nav-pc a:hover, .ct-nav-pc a[aria-current] { background: var(--ct-paper); color: var(--ct-aka); }
}

/* 一枚目 */
.ct-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ct-ai); }
.ct-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ct-hero-in 1.6s ease-out both; }
.ct-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 28, .08) 0%, rgba(20, 24, 28, .18) 40%, rgba(20, 24, 28, .78) 100%); }
.ct-hero-body { position: relative; z-index: 2; max-width: 1080px; width: 100%; margin: 0 auto; padding: 120px 20px 48px; animation: ct-rise 1.1s .15s ease-out both; }
.ct-kicker { font-size: 14px; letter-spacing: .2em; margin: 0 0 10px; opacity: .95; }
.ct-hero h1 span { display: inline-block; }
.ct-hero h1 { font-size: clamp(23px, 5vw, 52px); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); max-width: 20em; }
.ct-lead { font-size: clamp(16px, 2vw, 19px); max-width: 38em; margin: 16px 0 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.ct-hero-note, .ct-band-note { position: absolute; right: 10px; bottom: 6px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, .8); }
.ct-page-home .ct-hero { min-height: min(88vh, 820px); }
@keyframes ct-hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes ct-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 釦 */
.ct-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; background: var(--ct-aka); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ct-aka); cursor: pointer; font-family: inherit; }
.ct-btn:hover { background: #7d301d; border-color: #7d301d; color: #fff; }
.ct-btn-sub { background: rgba(255, 250, 240, .94); color: var(--ct-ink); border-color: var(--ct-ink); }
.ct-btn-sub:hover { background: var(--ct-ink); color: #fff; border-color: var(--ct-ink); }

/* 節 */
.ct-sec { margin: 64px 0; }
.ct-sec > h2, .ct-text-body > h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 20px; padding-left: 16px; border-left: 5px solid var(--ct-aka); }
.ct-note { font-size: 14px; color: var(--ct-sub); margin: 10px 0 0; line-height: 1.7; }
.ct-imgnote { text-align: right; font-size: 12px; }
.ct-text.has-img { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .ct-text.has-img { grid-template-columns: 1fr 1fr; gap: 48px; }
  .ct-text.has-img.is-rev .ct-fig { order: 2; }
}
.ct-fig { margin: 0; position: relative; }
.ct-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.ct-fig figcaption { font-size: 11px; color: var(--ct-sub); text-align: right; margin-top: 4px; }

.ct-facts { margin: 0; background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 14px; overflow: hidden; }
.ct-facts > div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ct-line); }
.ct-facts > div:last-child { border-bottom: 0; }
.ct-facts dt { font-weight: 700; color: var(--ct-ai); }
.ct-facts dd { margin: 0; }
@media (max-width: 520px) { .ct-facts > div { grid-template-columns: 1fr; gap: 2px; } }

.ct-tablewrap { overflow-x: auto; border: 1px solid var(--ct-line); border-radius: 14px; background: var(--ct-paper); }
.ct-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ct-table th, .ct-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ct-line); vertical-align: top; }
.ct-table thead th { background: var(--ct-ai); color: #fff; font-weight: 700; white-space: nowrap; }
.ct-table tbody tr:last-child th, .ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table tbody th { font-weight: 700; min-width: 6.5em; }
.ct-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-table-s th, .ct-table-s td { padding: 8px 14px; }

.ct-cards { display: grid; gap: 22px; }
@media (min-width: 640px) { .ct-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ct-cards-3 { grid-template-columns: repeat(3, 1fr); } }
.ct-card { display: flex; flex-direction: column; background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ct-ink); transition: transform .25s ease, box-shadow .25s ease; }
a.ct-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(42, 33, 24, .16); color: var(--ct-ink); }
.ct-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ct-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ct-card h3 { font-size: 20px; margin-bottom: 8px; }
.ct-card p { font-size: 15.5px; line-height: 1.8; margin: 0 0 12px; }
.ct-card-more { margin-top: auto; align-self: flex-start; font-weight: 700; color: #fff; background: var(--ct-ai); padding: 8px 18px; border-radius: 999px; font-size: 14px; }

.ct-band { position: relative; margin: 72px calc(50% - 50vw); min-height: 460px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.ct-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 26, 32, .78) 0%, rgba(20, 26, 32, .45) 60%, rgba(20, 26, 32, .15) 100%); }
.ct-band-body { position: relative; z-index: 2; max-width: 1080px; width: 100%; margin: 0 auto; padding: 56px 20px; }
.ct-band-body h2 { font-size: clamp(24px, 4vw, 38px); max-width: 18em; }
.ct-band-body p { max-width: 32em; margin-top: 14px; font-size: 17px; }

.ct-list { padding-left: 1.4em; margin: 0; }
.ct-list li { margin-bottom: 10px; }
ol.ct-list li::marker { font-weight: 700; color: var(--ct-aka); }
.ct-box { background: var(--ct-paper); border: 2px solid var(--ct-ai); border-radius: 16px; padding: 24px 26px; }
.ct-box > h2 { border: 0; padding: 0; font-size: 21px; }
.ct-box p:last-child { margin-bottom: 0; }

.ct-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ct-links li { background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 12px; padding: 14px 18px; display: grid; gap: 2px; }
.ct-links a { font-weight: 700; font-size: 17px; }
.ct-links span { font-size: 14px; color: var(--ct-sub); }

.ct-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--ct-kin); }
.ct-timeline li { position: relative; padding: 0 0 22px 18px; display: grid; gap: 2px; }
.ct-timeline li::before { content: ""; position: absolute; left: -27px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: var(--ct-kin); border: 3px solid var(--ct-bg); }
.ct-tl-y { font-family: var(--ct-mincho); font-weight: 700; font-size: 19px; color: var(--ct-ai); }

.ct-sources ol { font-size: 14.5px; color: var(--ct-sub); padding-left: 1.6em; }
.ct-sources li { margin-bottom: 6px; }

/* 今日 */
.ct-today { margin: 28px 0 0; background: var(--ct-paper); border: 2px solid var(--ct-ai); border-radius: 16px; padding: 18px 22px; display: grid; gap: 4px; }
.ct-today p { margin: 0; }
.ct-today-state { font-family: var(--ct-mincho); font-size: 22px; font-weight: 700; color: var(--ct-ai); }
.ct-today.is-closed { border-color: var(--ct-aka); }
.ct-today.is-closed .ct-today-state { color: var(--ct-aka); }
.ct-closed { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ct-closed li { background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 10px; padding: 8px 14px; font-variant-numeric: tabular-nums; }

/* バス */
.ct-busgrid { display: grid; gap: 18px; }
@media (min-width: 760px) { .ct-busgrid { grid-template-columns: 1fr 1fr; } }
.ct-buscard { background: var(--ct-ai); color: #fff; border-radius: 16px; padding: 20px 22px; }
.ct-buscard h3 { font-size: 17px; font-family: var(--ct-gothic); font-weight: 700; margin-bottom: 12px; }
.ct-busnext { display: grid; gap: 8px; }
.ct-busrow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.ct-busrow:first-child { border-top: 0; }
.ct-bustime { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ct-busrow:not(:first-child) .ct-bustime { font-size: 21px; }
.ct-busmeta { font-size: 14px; opacity: .92; }
.ct-busin { margin-left: auto; background: #f0c05a; color: #2a2118; font-weight: 700; padding: 2px 12px; border-radius: 999px; font-size: 14px; }
.ct-ttgrid { display: grid; gap: 18px; margin-bottom: 36px; }
@media (min-width: 640px) { .ct-ttgrid { grid-template-columns: 1fr 1fr; } }
.ct-tt h4 { font-family: var(--ct-gothic); font-size: 16px; margin-bottom: 8px; color: var(--ct-ai); }
.ct-tt .ct-table { background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }

/* 地図 */
.ct-map { height: min(64vh, 520px); border-radius: 16px; border: 1px solid var(--ct-line); z-index: 1; background: #e6e0d2; }
.ct-gps { display: grid; gap: 8px; justify-items: start; }
#ct-gps-out { font-weight: 700; margin: 0; }

/* 辞典 */
.ct-dict-ctl { position: sticky; top: 62px; z-index: 5; background: var(--ct-bg); padding: 12px 0; }
#ct-dict-q { width: 100%; font-size: 18px; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--ct-ai); background: #fff; font-family: inherit; }
.ct-dict-cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.ct-dict-cats button { flex: none; border: 1px solid var(--ct-ai); background: var(--ct-paper); color: var(--ct-ai); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; font-family: inherit; min-height: 40px; }
.ct-dict-cats button.is-on { background: var(--ct-ai); color: #fff; }
.ct-dict-count { margin: 4px 0 0; font-size: 14px; color: var(--ct-sub); }
.ct-dict-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .ct-dict-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ct-dict-list { grid-template-columns: repeat(3, 1fr); } }
.ct-dict-list li { background: var(--ct-paper); border: 1px solid var(--ct-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.ct-dict-list li[hidden] { display: none; }
.ct-dict-kana { font-family: var(--ct-mincho); font-size: 23px; font-weight: 700; color: var(--ct-ai); line-height: 1.4; }
.ct-dict-roman { font-size: 15px; color: var(--ct-aka); font-style: italic; }
.ct-dict-mean { font-size: 17px; font-weight: 700; }
.ct-dict-note, .ct-dict-src { font-size: 12px; color: var(--ct-sub); line-height: 1.5; }

/* 足 */
.ct-footer { margin-top: 96px; background: var(--ct-ai); color: #e9e2d2; padding: 48px 0 40px; font-size: 14.5px; }
.ct-footer a { color: #fff; }
.ct-footer-name { font-family: var(--ct-mincho); font-size: 20px; color: #fff; margin-bottom: 8px; }
.ct-footer-un { max-width: 46em; }
.ct-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0; }
.ct-footer-fac { display: grid; gap: 6px; margin: 0 0 18px; }
.ct-footer-fac > div { display: grid; grid-template-columns: 6em 1fr; gap: 10px; }
.ct-footer-fac dt { color: #c9bfa9; }
.ct-footer-fac dd { margin: 0; }
.ct-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ct-footer-date { color: #c9bfa9; margin: 0; }
.ct-404 { padding: 120px 20px; text-align: center; }

/* やさしい日本語 */
.ct-page-yasashii .ct-wrap { font-size: 20px; line-height: 2.3; }
rt { font-size: .5em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ct-hero-img, .ct-hero-body { animation: none; }
  .ct-card { transition: none; }
}
@media print {
  .ct-header, .ct-unofficial, .ct-hero-img, .ct-map, .ct-gps, .ct-footer-nav, .ct-btns, .ct-fig, .ct-card img, .ct-band-img { display: none !important; }
  .ct-hero { min-height: 0; color: #000; background: none; }
  .ct-hero::after, .ct-band::after { display: none; }
  .ct-hero-body { padding: 0; }
  .ct-hero h1, .ct-lead { text-shadow: none; }
  body { background: #fff; font-size: 12pt; }
  .ct-buscard { background: none; color: #000; border: 1px solid #000; }
  .ct-footer { background: none; color: #000; }
  .ct-footer a { color: #000; }
}
