:root {
  --ink: #253044;
  --muted: #6f7787;
  --line: #dce7eb;
  --paper: #fffdf7;
  --mint: #5fd0ad;
  --mint-dark: #289779;
  --sky: #70b8ff;
  --yellow: #ffd45d;
  --coral: #ff7b7b;
  --lavender: #a88bf5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(39, 58, 79, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 212, 93, 0.35), transparent 24rem),
    linear-gradient(180deg, #f4fbff 0%, var(--paper) 48%, #f7fff9 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 231, 235, 0.85);
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--mint-dark);
}

.hero {
  display: grid;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: min(660px, calc(84vh - 72px));
  margin: 0 auto;
  padding: 46px 0 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: #475268;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.reset-button,
.facility-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button,
.facility-link {
  background: var(--mint);
}

.secondary-button,
.reset-button,
.back-link {
  background: var(--white);
}

.primary-button:hover,
.secondary-button:hover,
.reset-button:hover,
.facility-link:hover,
.back-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.search-section,
.list-section,
.guide-section,
.page-hero,
.form-section,
.detail-hero,
.detail-section,
.operator-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.page-hero,
.detail-hero {
  display: grid;
  align-items: center;
  min-height: 330px;
  padding-top: 72px;
}

.detail-hero {
  align-content: center;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  margin-top: 24px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 4px rgba(95, 208, 173, 0.2);
}

.form-actions {
  display: flex;
  align-items: end;
}

.reset-button {
  height: 48px;
  cursor: pointer;
  font: inherit;
}

.list-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.category-list {
  display: grid;
  gap: 36px;
}

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

.category-group {
  display: grid;
  gap: 16px;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
}

.category-heading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.35;
}

.category-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.9rem;
  font-weight: 800;
}

.facility-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  padding: 18px;
  box-shadow: 6px 6px 0 rgba(37, 48, 68, 0.95);
}

.facility-card h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.facility-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 10px;
  background: #f7fbff;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag.service {
  background: var(--yellow);
}

.facility-description {
  margin: 10px 0 14px;
  color: #556175;
  line-height: 1.7;
  font-weight: 500;
}

.facility-details {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  color: #4b5668;
  font-size: 0.94rem;
}

.facility-details div {
  display: flex;
  gap: 8px;
}

.facility-details dt {
  min-width: 58px;
  color: var(--muted);
  font-weight: 800;
}

.facility-details dd {
  margin: 0;
  font-weight: 700;
}

.facility-link {
  margin-top: auto;
  width: fit-content;
  min-height: 42px;
  font-size: 0.9rem;
}

.back-link {
  width: fit-content;
  min-height: 40px;
  font-size: 0.9rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.detail-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.detail-info-list div {
  min-height: 98px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  padding: 18px;
  box-shadow: 5px 5px 0 rgba(37, 48, 68, 0.95);
}

.detail-info-list dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.detail-info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.6;
}

.info-panel {
  margin-top: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  padding: 22px;
  box-shadow: 5px 5px 0 rgba(37, 48, 68, 0.95);
}

.info-panel p {
  margin: 0;
  color: #556175;
  font-weight: 700;
  line-height: 1.9;
}

.operator-info-list {
  margin-top: 18px;
}

.operator-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.operator-profile > div {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  padding: 22px;
  box-shadow: 5px 5px 0 rgba(37, 48, 68, 0.95);
}

.operator-profile h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.operator-profile p:not(.eyebrow) {
  margin: 0;
  color: #556175;
  font-weight: 700;
  line-height: 1.9;
}

.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sns-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  padding: 0 14px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.text-link {
  color: var(--mint-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.empty-message {
  margin: 26px 0 0;
  padding: 22px;
  border: 2px dashed var(--mint-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.google-form-frame {
  margin-top: 24px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow), 8px 8px 0 var(--ink);
  overflow: hidden;
}

.google-form-frame iframe {
  display: block;
  width: 100%;
  min-height: 840px;
  border: 0;
  background: var(--white);
}

.guide-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 86px;
}

.guide-item {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 20px;
}

.guide-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
}

.guide-item h3 {
  margin: 14px 0 8px;
}

.guide-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide,
  .form-actions {
    grid-column: 1 / -1;
  }

  .facility-grid,
  .guide-section,
  .operator-profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.86rem;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 36px;
    gap: 32px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .search-panel,
  .facility-grid,
  .guide-section,
  .detail-info-list,
  .operator-profile {
    grid-template-columns: 1fr;
  }

  .list-top,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}
