@import url("facility-detail.css");

:root {
  --ink: #10203b;
  --green: #12355d;
  --green-2: #28547f;
  --mint: #e9f1f8;
  --cream: #f2f5f9;
  --paper: #ffffff;
  --yellow: #c9480a;
  --line: #dce3ec;
  --muted: #5c697c;
  --shadow: 0 20px 55px rgba(16, 32, 59, .13);
  --radius: 18px;
}

body {
  background: #fff;
  color: var(--ink);
}

.preview-notice {
  background: #f4f5f7;
  color: #536075;
  border-bottom-color: #e6e9ee;
  text-align: right;
}

.preview-notice .shell {
  justify-content: flex-end;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(220, 227, 236, .9);
}

.brand-symbol {
  border-radius: 10px;
  background: var(--green);
}

.brand-symbol::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 4px;
  bottom: 5px;
  left: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  transform: none;
}

.brand-symbol::before {
  width: 0;
  height: 0;
  top: 7px;
  left: 15px;
  border: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 12px solid #fff;
  border-radius: 0;
}

.brand-symbol > span {
  display: block;
  width: 2px;
  height: 26px;
  bottom: 7px;
  left: 13px;
  background: #fff;
}

.brand-copy strong {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 900;
  color: var(--green);
}

.site-header nav a,
.header-action {
  color: var(--green);
}

.header-action {
  border: 0;
  border-radius: 9px;
  background: var(--yellow);
  color: #fff;
  box-shadow: 0 8px 20px rgba(243, 106, 43, .2);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle-lines {
  display: grid;
  gap: 3px;
}

.nav-toggle-lines i {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
}

.hero {
  padding: 62px 0 0;
  background: linear-gradient(110deg, #fff 0%, #fff 45%, #edf4f9 100%);
}

.hero-grid {
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}

.hero-status {
  display: inline-block;
  margin: 0 0 17px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--yellow);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
}

.hero h1 {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(2.5rem, 4.7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.18;
}

.hero h1 em {
  color: var(--green);
}

.hero h1 em::after {
  bottom: 1px;
  height: 8px;
  background: var(--yellow);
  opacity: .3;
}

.hero-lead {
  margin: 22px 0 28px;
}

.button,
.filter-reset {
  border-radius: 9px;
}

.button-primary,
.filter-reset {
  background: var(--yellow);
  box-shadow: 0 10px 24px rgba(243, 106, 43, .22);
}

.hero-facts {
  margin-top: 34px;
}

.hero-facts dt {
  color: var(--green);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 900;
}

.art-card {
  overflow: hidden;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 24px 65px rgba(16, 32, 59, .17);
  transform: none;
}

.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .28), transparent 38%);
  pointer-events: none;
}

.art-card img {
  border-radius: 18px;
}

.art-badge {
  z-index: 1;
  border-radius: 9px;
  transform: none;
}

.badge-top {
  top: 22px;
  left: 22px;
}

.badge-bottom {
  right: 22px;
  bottom: 22px;
}

.hero-search-card {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 42px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 32, 59, .13);
}

.hero-search-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
}

.hero-search-heading span {
  color: var(--yellow);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .17em;
}

.hero-search-heading strong {
  margin-top: 3px;
  font-size: 1.02rem;
}

.hero-search-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.hero-search-field select {
  width: 100%;
  min-height: 49px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #cfd8e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
}

#hero-search-submit {
  min-height: 49px;
  padding: 10px 21px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}

.city-rail {
  min-height: 64px;
  margin-top: 30px;
}

.steps-section {
  padding: 48px 0;
  background: #eef3f8;
}

.steps-section h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.65rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-grid li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid #d9e1eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 32, 59, .06);
}

.steps-grid li > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
}

.steps-grid h3,
.steps-grid p {
  margin: 0;
}

.steps-grid h3 {
  font-size: .95rem;
}

.steps-grid p {
  color: var(--muted);
  font-size: .72rem;
}

.section {
  padding: 82px 0;
}

.section-heading h2,
.cta-inner h2,
.facility-body h3,
.choice-card h3,
.city-card strong,
.guide-grid h3 {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 900;
}

.finder-section {
  background: #fff;
}

.finder-panel {
  border-radius: 14px;
  background: #f6f8fb;
  box-shadow: none;
}

.facility-grid {
  gap: 18px;
}

.facility-card {
  border-radius: 13px;
}

.facility-card:hover {
  box-shadow: 0 16px 34px rgba(16, 32, 59, .11);
}

.facility-visual {
  height: 108px;
  background: linear-gradient(135deg, #183d68, #2d5c88);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 900;
}

.facility-visual::before,
.facility-visual::after {
  border-radius: 0;
  border-color: rgba(255, 255, 255, .11);
  transform: rotate(35deg);
}

.facility-body {
  padding: 20px;
}

.tag-row span {
  border-radius: 5px;
  background: var(--mint);
}

.sample-label {
  color: #a83d0d;
}

#result-status:focus-visible {
  outline: 3px solid rgba(243, 106, 43, .38);
  outline-offset: 5px;
}

.facility-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 13px 0;
}

.facility-meta > div {
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.facility-meta > div:first-child {
  padding-left: 0;
}

.facility-meta > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.facility-meta dt {
  color: var(--green-2);
  font-size: .6rem;
  font-weight: 900;
}

.facility-meta dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.compare-section,
.guide-section {
  background: var(--cream);
}

.choice-card {
  min-height: 330px;
  border-radius: 14px;
}

.choice-outdoor {
  background: #12355d;
}

.choice-indoor {
  background: #1d4774;
}

.choice-school {
  background: #2a5883;
}

.choice-icon {
  border-color: rgba(243, 106, 43, .75);
  color: #ffae84;
}

.choice-card li::before {
  color: #ffae84;
}

.city-card {
  min-height: 195px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #edf3f9);
}

.city-card.featured {
  background: var(--green);
}

.city-card::after {
  content: "AREA";
  position: absolute;
  top: 22px;
  left: 26px;
  color: var(--yellow);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.methodology-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.methodology-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.methodology-grid h2 {
  margin: 12px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.methodology-grid > div > p:last-child {
  color: var(--muted);
  line-height: 1.9;
}

.methodology-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.methodology-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.methodology-list li > span {
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
}

.methodology-list strong {
  font-size: 1rem;
}

.methodology-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
}

.editorial-section {
  background: #102b4c;
}

.guide-grid article {
  border-radius: 13px;
  transition: border-color .18s ease, transform .18s ease;
}

.guide-grid article:hover,
.guide-grid article:focus-within {
  transform: translateY(-3px);
  border-color: var(--yellow);
}

.guide-grid .guide-main {
  background: linear-gradient(135deg, #e7f0f8, #fff4ed);
}

.guide-tag {
  border-radius: 5px;
  background: var(--yellow);
}

.guide-note {
  display: inline-block;
  margin-top: 15px;
  color: var(--green-2);
  font-size: .76rem;
  font-weight: 800;
}

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.faq-list summary {
  position: relative;
  padding: 20px 52px 20px 22px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--yellow);
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.8;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 900;
}

.comparison-table {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comparison-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--green);
  color: #fff;
  font-size: .78rem;
}

.comparison-table tbody th {
  color: var(--green);
  font-size: .84rem;
}

.comparison-table td {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.sample-cta {
  background: #fff1e8;
  border-top: 1px solid #ffd8c4;
}

.site-footer {
  background: #0b203b;
}

.footer-links a:hover {
  color: #ff9a69;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(16, 32, 59, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }

  .site-header nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-toggle[aria-expanded="false"] + #site-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    pointer-events: none !important;
  }

  .nav-toggle[aria-expanded="true"] + #site-nav {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .site-header nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }

  .header-action {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-search-card {
    grid-template-columns: 1fr 1fr;
  }

  .hero-search-heading {
    grid-column: 1 / -1;
  }

  #hero-search-submit {
    grid-column: 1 / -1;
  }

  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .preview-notice {
    text-align: left;
  }

  .preview-notice .shell {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-facts {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-search-card {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding: 19px;
  }

  .hero-search-heading,
  #hero-search-submit {
    grid-column: auto;
  }

  .city-rail {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-section h2 {
    font-size: 1.35rem;
  }

  .facility-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .facility-meta > div,
  .facility-meta > div:first-child,
  .facility-meta > div:last-child {
    display: grid;
    grid-template-columns: 72px 1fr;
    padding: 0;
    border-right: 0;
  }

  .facility-meta dd {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header nav,
  .guide-grid article {
    transition: none;
  }
}
