:root {
  --soft-green: #f3faef;
  --soft-yellow: #fff9e9;
  --soft-blue: #f1f8ff;
  --placeholder-bg: #fffaf0;
  --placeholder-line: #e7b84d;
}

a {
  color: inherit;
}

.subpage-shell {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.subpage-header {
  position: relative;
  z-index: 10;
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.subpage-header .brand-lockup {
  position: absolute;
  top: 15px;
  left: 42px;
  text-decoration: none;
}

.subpage-nav {
  position: absolute;
  top: 0;
  left: 330px;
  display: flex;
  height: 66px;
  align-items: flex-start;
  gap: 24px;
  overflow: hidden;
  white-space: nowrap;
}

.subpage-nav a {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding-top: 21px;
  color: #4d574f;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.subpage-nav a[aria-current='page'] {
  color: #338c2e;
  font-weight: 700;
}

.subpage-nav a[aria-current='page']::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--green);
  content: '';
  transform: translateX(-50%);
}

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

.subpage-hero {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6fbf3 0%, #fff 62%);
}

.subpage-hero--support {
  min-height: 300px;
}

.subpage-hero-copy {
  position: absolute;
  top: 62px;
  left: 64px;
  z-index: 1;
  width: 390px;
}

.subpage-hero h1 {
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
}

.subpage-hero p {
  margin-top: 14px;
  color: var(--body);
  font-size: 15px;
  line-height: 26px;
}

.subpage-hero-art {
  position: absolute;
  top: 10px;
  right: 34px;
  width: 390px;
  height: 250px;
  object-fit: contain;
}

.subpage-hero--support .subpage-hero-art {
  top: 0;
  right: 20px;
  width: 390px;
  height: 250px;
}

.page-intro {
  padding: 26px 56px 10px;
  text-align: center;
}

.page-intro h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 34px;
}

.page-intro p {
  max-width: 620px;
  margin: 8px auto 0;
  color: #606b63;
  font-size: 13px;
  line-height: 22px;
}

.content-wrap {
  width: 748px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 28px 0 58px;
}

.content-wrap--compact {
  padding-top: 16px;
}

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

.info-card,
.policy-card,
.legal-section,
.route-card {
  border: 1px solid #e5eee2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(34, 69, 37, 0.06);
}

.info-card {
  min-height: 190px;
  padding: 22px 18px;
  text-align: center;
}

.info-card:nth-child(1) {
  background: var(--soft-green);
}

.info-card:nth-child(2) {
  background: var(--soft-yellow);
}

.info-card:nth-child(3) {
  background: var(--soft-blue);
}

.info-card img {
  width: 28px;
  height: 28px;
  margin: 0 auto 13px;
}

.info-card h2 {
  font-size: 17px;
  line-height: 26px;
}

.info-card p {
  margin-top: 7px;
  color: #59655d;
  font-size: 12px;
  line-height: 20px;
}

.preparation {
  margin-top: 24px;
  padding: 25px 30px;
  border-radius: 18px;
  background: #f7faf5;
}

.preparation h2 {
  font-size: 20px;
  line-height: 30px;
}

.preparation ul {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 36px;
  color: #566259;
  font-size: 13px;
  line-height: 22px;
  list-style-position: inside;
}

.placeholder {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px dashed var(--placeholder-line);
  border-radius: 12px;
  color: #755816;
  background: var(--placeholder-bg);
  font-size: 13px;
  line-height: 21px;
}

.placeholder-label {
  display: inline-flex;
  height: 23px;
  align-items: center;
  margin-right: 8px;
  padding: 0 9px;
  border-radius: 12px;
  color: #73530c;
  background: #ffe7a8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

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

.policy-card {
  position: relative;
  min-height: 174px;
  padding: 23px 22px 22px 70px;
}

.policy-card img {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 34px;
  height: 34px;
}

.policy-card h2 {
  font-size: 18px;
  line-height: 28px;
}

.policy-card p {
  margin-top: 8px;
  color: #59655d;
  font-size: 13px;
  line-height: 22px;
}

.policy-meta {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 56px;
  border-bottom: 1px solid #eef2ec;
  color: #667168;
  font-size: 12px;
  text-align: center;
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 25px 28px;
}

.legal-section--spaced {
  margin-top: 18px;
}

.legal-section h2 {
  color: var(--ink);
  font-size: 20px;
  line-height: 30px;
}

.legal-section h3 {
  margin-top: 20px;
  color: #29332d;
  font-size: 16px;
  line-height: 26px;
}

.legal-section p,
.legal-section li,
.legal-section td,
.legal-section th {
  color: #515e55;
  font-size: 13px;
  line-height: 23px;
}

.legal-section p {
  margin-top: 10px;
}

.legal-section ul,
.legal-section ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 5px;
}

.legal-section a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

.data-table {
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #dfe9dc;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-right: 1px solid #e5eee2;
  border-bottom: 1px solid #e5eee2;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #314b35;
  background: #f3f9f0;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.route-card {
  padding: 26px 28px;
}

.route-card + .route-card {
  margin-top: 18px;
}

.route-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.route-card h2 {
  font-size: 19px;
  line-height: 29px;
}

.route-card p {
  margin-top: 8px;
  color: #556159;
  font-size: 13px;
  line-height: 23px;
}

.notice {
  margin-bottom: 18px;
  padding: 17px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  color: #445048;
  background: #f3faef;
  font-size: 13px;
  line-height: 22px;
}

.subpage-footer {
  position: relative;
  min-height: 112px;
  padding: 20px 150px 20px 42px;
  border-top: 1px solid #e3ede0;
  background: #f7faf5;
}

.subpage-footer .brand-lockup {
  height: 34px;
}

.subpage-footer .brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.subpage-footer .brand-name {
  font-size: 16px;
}

.subpage-footer p {
  margin-top: 6px;
  color: #657067;
  font-size: 10px;
  line-height: 17px;
}

.subpage-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.subpage-footer-links a {
  color: #407a3d;
  font-size: 11px;
  text-decoration: none;
}

.subpage-footer-links a:hover,
.subpage-footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-footer .footer-leaf {
  top: auto;
  right: 35px;
  bottom: 17px;
}

@media (min-width: 861px) {
  .subpage-shell {
    box-shadow: 0 0 0 1px rgba(58, 89, 61, 0.03);
  }
}

@media (max-width: 700px) {
  .subpage-header {
    height: 106px;
  }

  .subpage-header .brand-lockup {
    top: 14px;
    left: 20px;
  }

  .subpage-nav {
    top: 59px;
    right: auto;
    left: 0;
    width: 100%;
    height: 47px;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
  }

  .subpage-nav::-webkit-scrollbar {
    display: none;
  }

  .subpage-nav a {
    padding-top: 10px;
    line-height: 18px;
  }

  .subpage-nav a[aria-current='page']::after {
    bottom: -10px;
  }

  .subpage-hero,
  .subpage-hero--support {
    display: flex;
    min-height: 485px;
    flex-direction: column;
    align-items: center;
    padding: 42px 24px 20px;
    text-align: center;
  }

  .subpage-hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .subpage-hero h1 {
    font-size: 32px;
  }

  .subpage-hero-art,
  .subpage-hero--support .subpage-hero-art {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 390px);
    height: 255px;
    margin-top: 14px;
  }

  .page-intro {
    padding: 28px 24px 8px;
  }

  .content-wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 24px 20px 44px;
  }

  .contact-grid,
  .policy-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-card {
    min-height: 165px;
  }

  .preparation ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-meta {
    flex-direction: column;
    gap: 6px;
    padding: 18px 24px;
  }

  .legal-section,
  .route-card {
    padding: 22px 20px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .subpage-footer {
    min-height: 200px;
    padding: 22px 22px 76px;
    text-align: center;
  }

  .subpage-footer .brand-lockup,
  .subpage-footer-links {
    justify-content: center;
  }

  .subpage-footer .footer-leaf {
    right: 18px;
    bottom: 8px;
  }
}
