/* R-2 home sample. Existing city/list/detail styles keep their current scope. */
.home-r2 { padding-top: 0; }
.home-r2 .home-shell { max-width: 1040px; margin: 0 auto; padding: 32px 24px 24px; }
.home-r2 h1 { margin: 0 0 28px; font-size: clamp(23px, 3.5vw, 32px); line-height: 1.5; letter-spacing: .02em; color: #173c36; font-weight: 800; }
.home-r2 .home-choice { margin: 0 0 26px; }
.home-r2 .home-choice-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-r2 h2 { font-size: 17px; margin: 0; color: #243e38; }
.home-r2 .home-scroll-hint { font-size: 12px; color: #526b65; }
.home-city-scroll { position: relative; min-width: 0; }
.home-city-scroll::after { content: ''; position: absolute; inset: 0 0 8px auto; width: 28px; pointer-events: none; background: linear-gradient(90deg, transparent, #f8fafc 95%); }
.home-city-scroll.at-end::after { opacity: 0; }
.home-city-chips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 56px); grid-auto-columns: 148px; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 24px 10px 2px; scroll-padding-inline: 2px; scrollbar-width: thin; scrollbar-color: #9ebfb5 transparent; }
.home-city-chips[data-rows="3"] { grid-template-rows: repeat(3, 56px); }
.home-city-chips .city-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 56px; padding: 10px 12px; margin: 0; border: 1px solid #d4e2dd; border-radius: 12px; background: #fff; color: #294c42; font-size: 15px; line-height: 1.3; font-weight: 700; white-space: nowrap; text-decoration: none; }
.home-city-chips .city-btn:hover { background: #e8f6f0; border-color: #7da99a; }
.home-city-chips .city-temp { min-width: 47px; font-size: 12px; line-height: 1.3; font-weight: 500; color: #506962; text-align: right; }
.home-city-chips .city-hi { display: block; font-size: 10px; color: #506962; }
.home-city-chips .city-hi.temp-warm { color: #9a4a08; }
.home-city-chips .city-hi.temp-hot { color: #b91c1c; }
.home-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-theme-link { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 76px; box-sizing: border-box; padding: 14px 18px; border: 1px solid #dbe8e1; border-radius: 16px; background: #fff; color: #24483d; text-decoration: none; font-size: 17px; font-weight: 750; box-shadow: 0 2px 0 #e9f0ec; }
.home-theme-link:hover { background: #eaf6ee; border-color: #8bab9b; color: #19533b; }
.home-theme-link svg { flex: 0 0 auto; width: 30px; height: 30px; color: #397860; }
.home-theme-link .home-theme-arrow { margin-left: auto; color: #59796a; font-size: 23px; font-weight: 400; }
.home-help { display: flex; justify-content: center; gap: 28px; padding: 4px 0 10px; }
.home-help a { font-size: 14px; color: #46645a; text-decoration: underline; text-underline-offset: 4px; }
.home-japan-group { margin: -2px 0 26px; padding: 16px; border: 1px solid #ddd9d0; border-radius: 14px; background: #f3f0e9; }
.home-japan-group h2 { margin: 0 0 10px; }
.home-japan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-japan-guides { display: flex; align-items: center; gap: 8px; flex-basis: 100%; margin-top: 4px; padding-top: 12px; border-top: 1px solid #d9d3c7; }
.home-japan-guides > span { margin-right: 4px; font-size: 12px; color: #605b50; }
.home-japan-chips .city-btn { margin: 0; padding: 9px 14px; color: #4e493e; background: #fff; border: 1px solid #ccc5b7; border-radius: 10px; font-size: 14px; text-decoration: none; }
.home-r2 a:focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; }
@media (max-width: 600px) {
  .home-r2 .home-shell { padding: 24px 20px 16px; }
  .home-r2 h1 { margin-bottom: 24px; }
  .home-r2 .home-choice { margin-bottom: 22px; }
  .home-theme-link { min-height: 72px; padding: 12px; gap: 8px; font-size: 15px; border-radius: 13px; }
  .home-theme-link svg { width: 26px; height: 26px; }
}

/* Finalized vertical cards. Historical comparison samples retain their original layout. */
.home-theme-grid--icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-theme-grid--icons .home-theme-link { flex-direction: column; justify-content: center; gap: 8px; min-height: 112px; padding: 12px 8px; text-align: center; }
.home-theme-icon { position: relative; display: block; flex: 0 0 auto; width: 56px; height: 56px; }
.home-theme-grid--icons .home-theme-icon svg,
.home-theme-grid--icons .home-theme-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-theme-grid--icons .home-theme-icon img[hidden],
.home-theme-grid--icons .home-theme-icon svg[hidden] { display: none; }
@media (max-width: 600px) {
  .home-theme-grid--icons .home-theme-link { min-height: 106px; gap: 6px; padding: 10px 4px; }
  .home-theme-icon { width: 52px; height: 52px; }
}

/* Two utility entries share the theme cards' surface and image/SVG fallback. */
.home-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.home-tool-link { min-height: 76px; }
.home-tool-link .home-theme-icon { width: 48px; height: 48px; }
.home-tool-link .home-theme-icon img,
.home-tool-link .home-theme-icon svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-tool-link .home-theme-icon [hidden] { display: none; }
.home-tool-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-tool-description { font-size: 12px; line-height: 1.5; font-weight: 500; color: #526b65; white-space: nowrap; }
@media (max-width: 600px) {
  .home-tool-link { min-height: 72px; }
  .home-tool-link .home-theme-icon { width: 32px; height: 32px; }
}
