@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #192b2e;
  --muted: #637274;
  --paper: #f5f4f0;
  --line: #d9dcd7;
  --teal: #1d6264;
  --teal-dark: #164b4d;
  --serif: 'Noto Serif JP', Georgia, serif;
  --sans: 'DM Sans', 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
::selection { background: #b9d7d1; color: var(--ink); }

.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner, .site-footer__inner { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.article-heading__inner, .article-body__inner { width: min(860px, calc(100% - 64px)); margin-inline: auto; }
.site-header__inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }

.article-heading { padding: 42px 0 38px; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin: 0 10px; color: #9ba8a5; }
.breadcrumbs a { color: var(--teal-dark); text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }
.article-heading h1 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.45; letter-spacing: -.05em; }
.article-heading__intro { max-width: 850px; margin: 0; color: #495b5d; font-size: 16px; line-height: 1.9; }

.directory-page { min-height: calc(100vh - 176px); padding: 46px 0 90px; }
.directory-page__inner { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }
.directory-heading { max-width: 790px; margin-bottom: 48px; }
.directory-heading__eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 15px; font-weight: 700; letter-spacing: .09em; }
.directory-heading h1 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; line-height: 1.5; letter-spacing: -.055em; }
.directory-heading > p:last-child { margin: 0; color: #495b5d; font-size: 16px; line-height: 1.9; }
.region-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 54px; }
.region-group, .area-group { min-width: 0; }
.region-group h2, .area-group h2 { margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
.prefecture-list, .area-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prefecture-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.directory-link, .area-link { display: flex; min-width: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.directory-link { align-items: center; justify-content: space-between; min-height: 60px; padding: 14px 17px; font-size: 16px; font-weight: 600; }
.directory-link__arrow, .area-link__arrow { flex: none; margin-left: 15px; color: var(--teal); }
.directory-link:hover, .area-link:hover { border-color: #8ea9a0; background: #f9fcf9; }
.directory-link:focus-visible, .area-link:focus-visible, .breadcrumbs a:focus-visible { outline: 2px solid #ce7f52; outline-offset: 3px; }
.directory-page--prefecture .breadcrumbs { margin-bottom: 32px; }
.directory-page--prefecture .directory-heading { margin-bottom: 52px; }
.area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.area-link { position: relative; flex-direction: column; min-height: 148px; padding: 22px 48px 23px 22px; }
.area-link strong { margin-bottom: 12px; color: var(--teal-dark); font-family: var(--serif); font-size: 21px; font-weight: 600; }
.area-link > span:nth-child(2) { color: #526366; font-size: 15px; line-height: 1.75; }
.area-link__arrow { position: absolute; top: 24px; right: 21px; }

.article-body { padding: 18px 0 85px; }
.sort-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sort-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding: 3px 0 16px; color: var(--muted); font-size: 15px; }
.sort-bar__label { font-weight: 600; }
.sort-bar__options { display: flex; align-items: baseline; gap: 11px; }
.sort-bar__options > span { color: #9fa9a6; }
.sort-bar label { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 2px; border-bottom: 1px solid transparent; color: #556567; cursor: pointer; font-weight: 600; }
.sort-bar label:hover { color: var(--teal-dark); }
#sort-date:checked ~ .sort-bar label[for="sort-date"], #sort-views:checked ~ .sort-bar label[for="sort-views"] { border-color: var(--teal); color: var(--teal-dark); font-weight: 700; }
#sort-date:focus-visible ~ .sort-bar label[for="sort-date"], #sort-views:focus-visible ~ .sort-bar label[for="sort-views"] { outline: 2px solid #ce7f52; outline-offset: 3px; }
.sort-bar__current { margin-left: auto; color: var(--teal-dark); font-size: 15px; }
.sort-bar__current-views { display: none; }
#sort-views:checked ~ .sort-bar .sort-bar__current-date { display: none; }
#sort-views:checked ~ .sort-bar .sort-bar__current-views { display: inline; }
.video-sections { display: flex; flex-direction: column; }
#sort-views:checked ~ .video-sections .video-card { order: var(--views-rank); }
.video-card { min-width: 0; padding: 42px 0 56px; border-top: 1px solid #cbd1cc; }
.video-card__label { display: flex; align-items: center; flex-wrap: nowrap; gap: 20px; margin: 0 0 16px; }
.video-card__position { flex: none; margin-left: auto; color: #526366; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.video-card__position--views { display: none; }
#sort-views:checked ~ .video-sections .video-card__position--date { display: none; }
#sort-views:checked ~ .video-sections .video-card__position--views { display: inline; }
.video-card__type { display: inline-block; order: -1; min-width: 0; max-width: 100%; padding: 7px 12px; border: 1px solid #adc1b8; color: var(--teal); font-size: 15px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; overflow-wrap: anywhere; }
.video-card__body { min-width: 0; max-width: 860px; }
.video-card__info { margin-top: 13px; color: #4b5c5d; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.65; }
.video-card__byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; margin: 0; }
.video-card__channel { min-width: 0; color: var(--teal-dark); font-weight: 600; overflow-wrap: anywhere; }
.video-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.55; letter-spacing: -.045em; overflow-wrap: anywhere; }
.video-card__story { margin-top: 24px; }
.video-card__story p { margin: 0; color: #394b4d; font-size: 16px; line-height: 1.9; }
.video-card__story p + p { margin-top: 14px; }
.video-card__link { margin: 18px 0 0; }
.video-card__link a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--teal); color: var(--teal-dark); font-size: 16px; font-weight: 700; text-decoration: none; }
.video-card__link a:hover { color: var(--teal); border-color: var(--teal); }
.video-card__link a:focus-visible { outline: 2px solid #ce7f52; outline-offset: 3px; }
.video-card__contents { margin-top: 26px; padding: 22px 25px; background: #e2e9e3; }
.video-card__contents h3 { margin: 0 0 14px; color: var(--teal-dark); font-family: var(--sans); font-size: 17px; }
.video-card__contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; margin: 0; padding-left: 1.2em; color: #3e5554; font-size: 15px; line-height: 1.75; }
.video-card__contents li { min-width: 0; }
.video-card__contents li::marker { color: var(--teal-dark); }
.video-card__meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 3px; font-weight: 500; font-variant-numeric: tabular-nums; }
.video-card__meta > :not(:first-child)::before { content: '·'; margin: 0 10px; color: #8a9795; font-weight: 400; }
.video-card__meta time { color: var(--teal-dark); font-weight: 600; }
#sort-views:checked ~ .video-sections .video-card__meta time { color: inherit; font-weight: 500; }
#sort-views:checked ~ .video-sections .video-card__views { color: var(--teal-dark); font-weight: 600; }

.related-articles { padding-top: 44px; border-top: 1px solid var(--line); }
.related-articles h2 { margin: 0 0 20px; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.5; }
.related-articles ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.related-articles li { min-width: 0; padding: 19px 21px; border: 1px solid var(--line); background: #fff; }
.related-articles a { color: var(--teal-dark); font-size: 16px; font-weight: 700; line-height: 1.6; text-underline-offset: 4px; overflow-wrap: anywhere; }
.related-articles a:hover { color: var(--teal); }
.related-articles a:focus-visible { outline: 2px solid #ce7f52; outline-offset: 3px; }
.related-articles p { margin: 9px 0 0; color: #526366; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }

.site-footer { border-top: 2px solid #a9c3b4; background: #e3ece5; color: #203839; }
.site-footer__inner { padding-block: 44px 19px; }
.site-footer__top { display: flex; justify-content: flex-end; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px 26px; margin: 4px 0 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-block; padding: 3px 0; color: #164b4d; font-size: 15px; line-height: 1.7; text-decoration-color: #7eaa95; text-underline-offset: 5px; }
.site-footer__nav a:hover { color: #1d6264; }
.site-footer__nav a:focus-visible { outline: 2px solid #e6ae83; outline-offset: 4px; }
.site-footer__bottom { margin-top: 38px; padding-top: 16px; color: #5c756c; }
.site-footer__bottom small { font-size: 15px; letter-spacing: .02em; }

.fixed-page { min-height: calc(100vh - 176px); padding: 42px 0 90px; }
.fixed-page__inner { width: min(860px, calc(100% - 64px)); margin-inline: auto; }
.fixed-page__body h1 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.45; letter-spacing: -.05em; }
.fixed-page__body h2 { margin: 46px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.6; }
.fixed-page__body p { margin: 0 0 17px; color: #394b4d; font-size: 16px; line-height: 1.9; }
.fixed-page__body a { color: var(--teal-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
.fixed-page__body a:focus-visible { outline: 2px solid #ce7f52; outline-offset: 3px; }

@media (max-width: 850px) {
  .video-card__contents ul { grid-template-columns: 1fr; }
  .region-groups { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 700px) {
  .site-footer__inner { padding-block: 35px 20px; }
  .site-footer__nav ul { margin-top: 0; }
  .site-footer__bottom { margin-top: 30px; }
}

@media (max-width: 550px) {
  .site-header__inner, .article-heading__inner, .article-body__inner, .directory-page__inner, .fixed-page__inner, .site-footer__inner { width: min(100% - 34px, 1180px); }
  .site-header__inner { min-height: 54px; }
  .article-heading { padding: 30px 0 32px; }
  .article-heading h1 { font-size: 29px; }
  .directory-page { padding: 31px 0 66px; }
  .directory-heading, .directory-page--prefecture .directory-heading { margin-bottom: 36px; }
  .directory-heading h1 { font-size: 30px; }
  .directory-page--prefecture .directory-heading h1 span { display: block; }
  .prefecture-list, .area-list { grid-template-columns: 1fr; }
  .area-link { min-height: 0; }
  .fixed-page { padding: 30px 0 65px; }
  .fixed-page__body h1 { font-size: 29px; }
  .fixed-page__body h2 { margin-top: 37px; font-size: 22px; }
  .fixed-page__body p { font-size: 16px; }
  .article-body { padding: 14px 0 67px; }
  .sort-bar__current { width: 100%; margin-left: 0; }
  .video-card { padding: 35px 0 43px; }
  .video-card h2 { font-size: 24px; }
  .video-card__meta { column-gap: 13px; }
  .video-card__meta > :not(:first-child)::before { content: none; }
  .video-card__contents { padding: 19px 17px; }
  .related-articles { padding-top: 34px; }
  .related-articles h2 { font-size: 22px; }
  .related-articles ul { grid-template-columns: 1fr; }
}

@media (max-width: 499.98px) {
  .video-card__label { flex-direction: column; align-items: flex-start; gap: 16px; }
  .video-card__position { margin-left: 0; }
  .video-card__type { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
