/* Only section 05 is styled here. Existing sections and the comparison are retained. */
#days {
  --days-ink: #16394c;
  --days-muted: #617680;
  --days-gap: 28px;
  padding: clamp(72px, 7.2vw, 104px) 0 clamp(52px, 5vw, 72px);
  background: #fff;
  color: var(--days-ink);
  font-family: "RIVERST Days Noto", "Noto Sans JP", sans-serif;
}
#days .days-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
#days h2 {
  margin: 0;
  font-family: "RIVERST Days Noto", "Noto Sans JP", sans-serif;
  font-size: clamp(34px, 4.1vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}
#days .days-japanese { margin: 10px 0 0; font-size: 15px; line-height: 1.5; font-weight: 700; letter-spacing: .11em; }
#days .days-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  margin-bottom: 1px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
#days .days-all svg { width: 25px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; }
#days .days-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--days-gap);
  width: calc(100% + 8px);
  padding: 4px;
  margin: 0 -4px;
}
#days .days-article { min-width: 0; position: relative; }
#days .days-photo { aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: #f0f5f5; }
#days .days-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
#days .days-article:first-child img { object-position: 50% 52%; }
#days .days-meta { display: flex; align-items: baseline; gap: 18px; margin-top: 17px; }
#days .days-meta p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; }
#days .days-meta time { display: block; color: var(--days-muted); font-size: 13px; line-height: 1.7; font-weight: 400; letter-spacing: .02em; }
#days h3 { margin: 13px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.65; letter-spacing: -.02em; font-weight: 700; }
#days .days-open { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; letter-spacing: inherit; line-height: inherit; text-wrap: balance; }
#days .days-open::after { content: ""; position: absolute; inset: 0; }
#days .days-title-part { display: block; }
#days .days-open:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
#days .days-open:focus-visible::after { outline: 2px solid #257fa8; outline-offset: 2px; }
#days .days-all:focus-visible, #days .days-controls button:focus-visible, #days .days-rail:focus-visible { outline: 2px solid #257fa8; outline-offset: 3px; }
#days .days-controls, #days .days-controls[hidden] { display: none; }
#days .days-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) and (pointer: fine) {
  #days .days-article:hover .days-photo img { transform: scale(1.035); }
  #days .days-article:hover .days-open { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 760px) {
  #days { --days-gap: 16px; padding: 64px 0 44px; }
  #days .days-heading-row { gap: 16px; margin-bottom: 28px; }
  #days h2 { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
  #days h2 span { display: block; }
  #days .days-japanese { margin-top: 10px; font-size: 13px; letter-spacing: .05em; }
  #days .days-all { gap: 10px; font-size: 13px; }
  #days .days-all svg { width: 22px; }
  #days .days-rail {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  #days .days-rail::-webkit-scrollbar { display: none; }
  #days .days-article { flex: 0 0 calc((100% - var(--days-gap)) / 2); scroll-snap-align: start; }
  #days .days-meta { display: block; margin-top: 13px; }
  #days .days-meta p { font-size: 14px; }
  #days .days-meta time { margin-top: 2px; font-size: 13px; }
  #days h3 { margin-top: 10px; font-size: 16px; line-height: 1.7; letter-spacing: -.025em; overflow-wrap: anywhere; }
  #days .days-controls:not([hidden]) { display: flex; align-items: center; gap: 9px; margin-top: 21px; }
  #days .days-controls button { flex: 0 0 44px; display: grid; place-items: center; min-height: 44px; padding: 10px; border: 0; border-radius: 0; background: transparent; color: var(--days-ink); }
  #days .days-controls button svg { width: 14px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }
  #days .days-controls button:disabled { opacity: .28; cursor: default; }
  #days .days-track { position: relative; flex: 1; height: 2px; background: #dce6e9; }
  #days .days-track span { position: absolute; height: 100%; width: var(--days-window, 66.6667%); left: var(--days-progress, 0%); background: var(--days-ink); }
}
@media (max-width: 350px) {
  #days { --days-gap: 12px; }
  #days .days-heading-row { gap: 8px; }
  #days h2 { font-size: 30px; }
  #days .days-all { font-size: 12px; gap: 7px; }
  #days .days-all svg { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #days .days-photo img { transition: none; }
}
