/* サマータイム（/summer-time/） */
.dst-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: center; }
.dst-hero h1 small { display: block; font-size: 0.48em; margin-top: 8px; color: var(--ink2); line-height: 1.5; }
.dst-hero-img { margin: 0; border: var(--bw) solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 6px 6px 0 var(--sh); transform: rotate(1.2deg); }
.dst-hero-img img { display: block; width: 100%; height: auto; }

/* 結論ボックス */
.dst-answer { margin: 18px 0 8px; border: var(--bw) solid var(--ink); border-radius: 22px; background: var(--card); padding: 20px 22px; box-shadow: 5px 5px 0 var(--sh); }
.dst-answer-h { display: inline-block; margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 18px; background: var(--yellow); color: #1b1511; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; }
.dst-answer > p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.9; }
.dst-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dst-quick h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 17px; color: var(--accent); }
.dst-quick ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dst-quick li { display: grid; grid-template-columns: 11em 1fr; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 14.5px; }
.dst-quick li b { font-weight: 900; }
.dst-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.dst-next:empty { display: none; }
.dn { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; background: var(--t-yellow); color: #1b1511; }
.dn.bk { background: var(--t-blue); }
.dn .dn-h { font-weight: 900; font-size: 12.5px; }
.dn b { font-size: 15px; }
.dn .dn-d b { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin: 0 2px; }

/* 判定ツール */
.dst-tool { max-width: 680px; margin-left: auto; margin-right: auto; display: grid; gap: 12px; }
.dt-row { display: grid; gap: 10px; }
.dt-row.two { grid-template-columns: 1fr 1fr; }
.dt-f { display: grid; gap: 4px; font-weight: 900; font-size: 14px; }
.dt-f select, .dt-f input { font: inherit; font-size: 17px; font-weight: 700; width: 100%; min-width: 0; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; background: var(--paper2); color: var(--ink); }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chips .chip { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.dt-row.radios { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 700; }
.dst-res { border-radius: 18px; background: var(--paper2); border: 2px dashed var(--line2); padding: 16px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.dr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 20px; }
.dr-top .flag-i { width: 36px; }
.dr-top small { font-size: 13px; color: var(--ink2); }
.dr-badge { display: inline-block; font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 4.4vw, 26px); padding: 8px 18px; border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--sh); color: #1b1511; }
.dr-badge.on { background: #ffd84d; }
.dr-badge.std { background: #d8e6ff; }
.dr-badge.none { background: #e9e4dc; }
.dr-badge.rev { background: #e6dcff; }
.dr-clock { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; }
.dr-clock div { display: grid; gap: 0; }
.dr-clock span { font-size: 12px; font-weight: 900; color: var(--ink3); }
.dr-clock b { font-size: 16.5px; }
.dr-clock i { font-style: normal; font-weight: 900; color: var(--ink3); }
.dr-off { margin: 0; font-size: 14.5px; }
.dr-yr { width: 100%; text-align: left; }
.dr-yr > b { display: block; text-align: center; margin-bottom: 6px; }
.dr-yr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dr-yr li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--t-yellow); color: #1b1511; font-size: 14px; }
.dr-yr li.bk { background: var(--t-blue); }
.dr-yr li span { font-weight: 900; }
.dr-yr li small { grid-column: 1 / -1; color: #5a4f46; }
.dr-next { margin: 0; font-size: 14.5px; }
.dr-next b { margin-left: 6px; color: var(--accent2); }
.dr-warn { margin: 0; font-size: 14px; background: var(--t-pink); color: #1b1511; border-radius: 10px; padding: 6px 10px; }
.dr-note { margin: 0; font-size: 14px; color: var(--ink2); text-align: left; }
.dst-cap { font-size: 13px; color: var(--ink3); margin: 8px 0 0; }
.dst-h3 { font-family: var(--f-display); font-weight: 400; font-size: 21px; margin: 30px 0 12px; }
.dst-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dl { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 10px; display: grid; gap: 1px; background: var(--card); font-size: 13.5px; }
.dl.on { background: #fff1b8; color: #1b1511; }
.dl.std { background: #e3ecfb; color: #1b1511; }
.dl .dl-t { font-family: var(--f-en); font-weight: 700; font-size: 19px; }
.dl .dl-s { font-size: 12px; font-weight: 700; }

/* 文章・図 */
.dst-prose { max-width: 780px; font-size: 16px; line-height: 1.95; }
.dst-prose p { margin: 0 0 14px; }
.dst-fig { margin: 18px auto; max-width: 780px; border: var(--bw) solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 5px 5px 0 var(--sh); }
.dst-fig img { display: block; width: 100%; height: auto; }
.dst-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.dst-card { border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--card); padding: 16px 18px; box-shadow: 4px 4px 0 var(--sh); }
.dst-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.dst-card p, .dst-card li { font-size: 15px; line-height: 1.8; }
.dst-card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.dst-card.fw { background: color-mix(in srgb, var(--card) 80%, #ffd84d); }
.dst-card.bk { background: color-mix(in srgb, var(--card) 80%, #9fc0ff); }
.dst-card.good { border-top: 8px solid var(--mint); }
.dst-card.bad { border-top: 8px solid var(--accent2); }
.dst-svg { width: 100%; height: auto; display: block; }
.dst-svg .base { stroke: var(--ink); stroke-width: 3; }
.dst-svg .ax { stroke: var(--ink); stroke-width: 2; }
.dst-svg .lb { fill: var(--ink); font: 700 14px var(--f-body); }
.dst-svg .nt { fill: var(--accent2); font: 900 15px var(--f-body); }
.dst-svg .gap { fill: none; stroke: var(--accent2); stroke-width: 2.5; stroke-dasharray: 6 4; }
.dst-svg .rep { fill: #9fc0ff; opacity: 0.6; stroke: var(--ink); stroke-width: 1.5; }
.dst-svg .arr { fill: none; stroke: var(--accent2); stroke-width: 3; }
.dst-svg .arr.bk { stroke: var(--accent); }
.dst-svg .ah { fill: var(--ink); }
.dst-triv { margin-top: 26px; }
.dst-myth { margin-top: 22px; }

/* 標語 */
.dst-slogan { margin: 24px auto; max-width: 780px; text-align: center; border: var(--bw) solid var(--ink); border-radius: 24px; padding: 18px 20px 16px; background: linear-gradient(120deg, #fff1b8, #ffd6e3 55%, #d8e6ff); color: #1b1511; box-shadow: 5px 5px 0 var(--sh); }
.dst-slogan-k { display: inline-block; font-size: 12.5px; font-weight: 900; background: #1b1511; color: #fff; border-radius: 999px; padding: 2px 12px; }
.dst-slogan-en { font-family: var(--f-en); font-weight: 700; font-size: clamp(28px, 6vw, 46px); margin: 6px 0 2px; line-height: 1.2; }
.dst-slogan-en b { color: #c2185b; }
.dst-slogan-ja { margin: 0 0 8px; font-weight: 900; font-size: 17px; }
.dst-slogan-x { margin: 0; font-size: 14.5px; line-height: 1.8; text-align: left; }

/* 日程表 */
.dst-tblwrap { overflow-x: auto; }
.dst-tbl { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
.dst-tbl th, .dst-tbl td { border: 1.5px solid var(--line2); padding: 8px 8px; vertical-align: middle; }
.dst-tbl thead th { background: var(--ink); color: var(--paper); font-weight: 900; }
.dst-tbl tbody th { text-align: left; font-weight: 900; width: 15em; min-width: 11em; }
.dst-tbl tbody th small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink3); line-height: 1.5; margin-top: 2px; }
.dst-tbl td { text-align: center; white-space: nowrap; }
.dst-tbl td b { display: block; }
.dst-tbl td span { display: block; font-size: 11px; color: var(--ink3); line-height: 1; }
.dst-tbl td small { font-size: 10.5px; color: var(--accent2); margin-right: 1px; }
.dst-tbl2 { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--card); }
.dst-tbl2 th, .dst-tbl2 td { border: 1.5px solid var(--line2); padding: 8px 10px; }
.dst-tbl2 thead th { background: var(--soft); text-align: left; }
.dst-tbl2 td.fw { color: #b4570b; font-weight: 900; white-space: nowrap; }
.dst-tbl2 td.bk { color: var(--accent); font-weight: 900; white-space: nowrap; }
.dst-tbl2 td small { color: var(--ink3); }
.dst-tbl2.diff td.on { background: color-mix(in srgb, var(--card) 70%, #ffd84d); }
.dst-tbl2.diff td small { display: block; font-size: 11.5px; }

/* 日の出・日の入り */
.sunchart { display: grid; gap: 8px; margin: 16px 0 4px; }
.sb { display: grid; grid-template-columns: 11em 1fr 5.5em; gap: 10px; align-items: center; }
.sb-l { font-weight: 900; font-size: 14px; line-height: 1.3; }
.sb-l small { display: block; font-weight: 700; font-size: 11px; color: var(--ink3); }
.sb-bar { position: relative; height: 34px; border-radius: 10px; background: #2b3157; border: 2px solid var(--ink); overflow: visible; }
.sb-bar i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.25); }
.sb-day { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #ffb35c, #ffe066 20%, #ffe066 80%, #ff9d5c); }
.sb-t { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 11.5px; font-weight: 900; color: #1b1511; background: #fff; border-radius: 6px; padding: 0 4px; white-space: nowrap; }
.sb-t.r { transform: translate(4px, -50%); }
.sb-t.s { transform: translate(calc(-100% - 4px), -50%); }
.sb.if .sb-bar { border-style: dashed; }
.sb.if .sb-l { color: var(--accent2); }
.sb-h { font-size: 13px; font-weight: 700; text-align: right; }
.sb-axis .sb-bar.ax { background: none; border: 0; height: 18px; }
.sb-axis .ax span { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.sb-axis .sb-h { font-size: 11.5px; color: var(--ink3); }

/* 地図 */
.cmap .wm-over path { stroke: #1b1511; stroke-width: 0.5; }
.cm-now { fill: #ffb627; }
.cm-part { fill: #ffd98a; }
.cm-past { fill: #a9c4ef; }
.cm-never { fill: #c9c2b6; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13.5px; font-weight: 700; }
.cm-legend i { display: inline-block; width: 16px; height: 12px; border: 1.5px solid #1b1511; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
i.cm-now { background: #ffb627; }
i.cm-part { background: #ffd98a; }
i.cm-past { background: #a9c4ef; }
i.cm-never { background: #c9c2b6; }
.dst-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; margin: 14px auto 0; }
.dst-stat > div { border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; text-align: center; color: #1b1511; }
.dst-stat .now { background: #ffb627; }
.dst-stat .past { background: #a9c4ef; }
.dst-stat .never { background: #ddd7cc; }
.dst-stat b { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.dst-stat span { font-weight: 900; margin-left: 2px; }
.dst-stat small { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.5; margin-top: 2px; }
@media (max-width: 760px) { .dst-stat { gap: 6px; } .dst-stat > div { padding: 8px 4px; } .dst-stat b { font-size: 26px; } .dst-stat small { font-size: 11px; } }
.cm-note { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 4px; }
.dst-where { margin-top: 20px; }

/* 物語（絵＋文） */
.dst-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; margin: 10px 0 26px; }
.dst-story.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.dst-story.rev > figure { order: 2; }
.dst-story .dst-fig { margin: 0; }
.dst-story h3 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.dst-story p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.9; }

/* 年表 */
.dst-tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; border-left: 4px solid var(--accent); }
.dst-tl li { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 8px 0 8px 16px; position: relative; font-size: 15px; line-height: 1.7; }
.dst-tl li::before { content: ''; position: absolute; left: -10px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.dst-tl li b { font-weight: 900; }
.dst-tl.small li { font-size: 14.5px; }

/* 英語 */
.dst-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dw { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; background: var(--card); display: grid; gap: 2px; }
.dw b { font-family: var(--f-en); font-size: 17px; }
.dw span { font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.dst-links { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.dst-links small { display: block; color: var(--ink2); font-size: 13px; }

@media (max-width: 760px) {
  .dst-hero { grid-template-columns: 1fr; gap: 14px; }
  .dst-hero-img { transform: none; order: -1; max-height: 200px; }
  .dst-hero-img img { height: 200px; object-fit: cover; }
  .dst-quick { grid-template-columns: 1fr; }
  .dst-quick li { grid-template-columns: 1fr; gap: 0; }
  .dst-2col, .dst-story, .dst-story.rev { grid-template-columns: 1fr; }
  .dst-story.rev > figure { order: 0; }
  .dst-story .dst-fig { max-height: 190px; }
  .dst-story .dst-fig img { height: 190px; object-fit: cover; }
  .dst-tl li { grid-template-columns: 1fr; gap: 0; }
  .sb { grid-template-columns: 1fr; gap: 3px; }
  .sb-h { text-align: left; font-size: 12px; }
  .sb-axis .sb-l, .sb-axis .sb-h { display: none; }
  .dt-row.two { grid-template-columns: 1fr 1fr; }
  /* 日程表はスマホでは地域ごとのカードに（横スクロールしない） */
  .dst-tbl thead { display: none; }
  .dst-tbl, .dst-tbl tbody, .dst-tbl tr { display: block; }
  .dst-tbl tr { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .dst-tbl tbody th { grid-column: 1 / -1; border: 0; background: var(--soft); }
  .dst-tbl td { border: 0; border-top: 1px solid var(--line); text-align: left; font-size: 13px; padding: 6px 10px; white-space: normal; }
  .dst-tbl td::before { content: attr(data-y); display: block; font-size: 11px; font-weight: 900; color: var(--accent); }
  .dst-tbl td b, .dst-tbl td span { display: inline; }
  .dst-tbl td span { margin: 0 2px; font-size: 12px; }
  .dst-tbl2 { font-size: 13px; }
  .dst-tbl2 th, .dst-tbl2 td { padding: 6px; }
}

/* 折りたたみ・年えらび */
.dst-fold { margin: 26px 0 0; }
.dst-fold > summary { cursor: pointer; font-family: var(--f-display); font-weight: 400; font-size: 21px; list-style: none; display: flex; align-items: center; gap: 8px; }
.dst-fold > summary::-webkit-details-marker { display: none; }
.dst-fold > summary::before { content: '▶'; font-size: 13px; transition: transform 0.2s; color: var(--accent); }
.dst-fold[open] > summary::before { transform: rotate(90deg); }
.dst-fold-in { margin-top: 12px; }
.dst-ysel { display: none; }
.dst-aside { font-size: 14px !important; color: var(--ink2); background: var(--soft); border-radius: 12px; padding: 8px 12px; }
@media (max-width: 760px) {
  .dst-hero-tx p { display: none; }
  .dst-quick > div + div { display: none; }
  .dst-next { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dn { padding: 6px 8px; font-size: 12px; }
  .dn b { font-size: 13px; }
  .dn .dn-d b { font-size: 18px; }
  .dst-answer { padding: 16px 14px; }
  .dst-answer > p { font-size: 15px; line-height: 1.8; }
  .dst-fold { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; background: var(--card); margin-top: 16px; }
  .dst-fold > summary { font-size: 17px; }
  .dst-ysel { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  .dst-ysel button { font: inherit; font-weight: 900; font-size: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); padding: 4px 12px; cursor: pointer; }
  .dst-ysel button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
  .dst-tbl tr { grid-template-columns: 1fr; }
  .dst-tbl tbody th { width: auto; padding: 8px 12px; }
  .dst-tbl td.y-off { display: none; }
  .dst-tbl td::before { display: none; }
  .dst-tbl td { font-size: 15px; padding: 8px 12px; }
  .dst-live { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sb:not(.sb-axis) { grid-template-columns: 5.6em 1fr; gap: 6px; }
  .sb .sb-h { display: none; }
  .sb-l { font-size: 12px; }
  .sb-l small { display: none; }
  .sb-axis { grid-template-columns: 5.6em 1fr; }
  .sb-axis .sb-l { display: block; }
  .sb-bar { height: 28px; }
  .sb-t { font-size: 10.5px; }
  .dst-triv { margin-top: 0; }
  .dl { padding: 6px 8px; }
  .dl .dl-t { font-size: 16px; }
}
