/* Base */
:root {
  color-scheme: light;
  --color-navy: #20245f;
  --color-gold: #92701e;
  --color-paper: #f5f5f1;
  --color-text: #282a32;
  --color-muted: #64666f;
  --color-line: #dcdedc;
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --width-container: 75rem;
  --header-offset: 7rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 1.5rem); }
body { margin: 0; color: var(--color-text); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif; font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration: underline; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 5px; }
iframe { display: block; max-width: 100%; border: 0; }
li + li { margin-top: .25rem; }

/* Layout utilities */
.container { width: min(var(--width-container), calc(100% - 5rem)); margin-inline: auto; }
.grid { display: grid; }
.hidden { display: none; }
.grid > * { min-width: 0; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-self-end { justify-self: end; }
.w-full { width: 100%; }
.max-w-40 { max-width: 10rem; }
.overflow-x-auto { overflow-x: auto; overscroll-behavior-inline: contain; }
.min-w-table { min-width: 58rem; }
.ratio-landscape { aspect-ratio: 3 / 2; }
.object-cover { object-fit: cover; }

/* Spacing utilities */
.section-space { padding-block: var(--space-section); }
.section-space-sm { padding-block: 2.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-4 { padding-block: 1rem; }
.py-8 { padding-block: 2rem; }
.py-12 { padding-block: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.stack-2 > * + * { margin-top: .5rem; }
.stack-4 > * + * { margin-top: 1rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.stack-8 > * + * { margin-top: 2rem; }
.stack-12 > * + * { margin-top: 3rem; }

/* Typography and color utilities */
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.text-2xl { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.text-3xl { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.text-5xl { font-size: 3.5rem; }
.leading-none { line-height: 1; }
.text-hero { font-size: clamp(1.875rem, 3.2vw, 2.875rem); line-height: 1.65; letter-spacing: .025em; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.tracking-wide { letter-spacing: .1em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-navy { color: var(--color-navy); }
.text-gold { color: var(--color-gold); }
.text-white { color: #fff; }
.text-muted { color: var(--color-muted); }
.bg-white { background: #fff; }
.bg-paper { background: var(--color-paper); }
.bg-navy { background: var(--color-navy); }
.border-bottom { border-bottom: 1px solid var(--color-line); }
.list-disc { padding-left: 1.25rem; list-style: disc; }
.list-none { padding: 0; list-style: none; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--color-line); }
.header-grid { grid-template-columns: 11rem 1fr auto; padding-block: .75rem; column-gap: 5.5rem; }
.brand { display: block; }
.brand-image { width: 11rem; height: 5.5rem; object-fit: contain; }
.site-nav { display: grid; grid-template-columns: repeat(4, max-content); justify-content: end; gap: 1.5rem; }
.site-nav a { padding-block: .75rem; color: var(--color-navy); font-size: .875rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 2px; text-underline-offset: .65em; }
.header-phone { display: grid; grid-template-columns: 11.6875rem; grid-template-rows: 1.3125rem calc(clamp(1.125rem, 1.6vw, 1.375rem) * 1.75) 1.3125rem; line-height: 1.75; }
.header-phone a { align-self: center; justify-self: end; font-size: 1.75rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.breadcrumb { display: grid; grid-template-columns: max-content max-content 1fr; gap: .75rem; padding-block: 1rem; color: var(--color-muted); }
.footer-nav { display: grid; grid-template-columns: repeat(4, max-content); gap: 1.5rem; justify-content: end; font-size: 1rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 5; padding: .75rem 1rem; background: #fff; color: var(--color-navy); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Shared components */
.hero-grid { grid-template-columns: 1.05fr 1fr; }
.hero-copy { padding: 4rem 3rem 4rem 0; }
.hero-image { width: 100%; height: 100%; min-height: 30rem; object-fit: cover; object-position: 55% center; }
.banner-grid { grid-template-columns: 1fr 1fr; }
.banner-image { width: 100%; height: clamp(11rem, 21vw, 17rem); object-fit: cover; }
.detail-grid { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); }
.definition-grid { grid-template-columns: 11rem 1fr; }
.button { display: inline-grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; padding: .875rem 1.5rem; width: fit-content; min-height: 3.25rem; font-size: .9375rem; font-weight: 700; line-height: 1.6; text-decoration: none; transition: background-color .15s, color .15s; }
.button:hover { text-decoration: none; }
.button-navy { color: #fff; background: var(--color-navy); border: 1px solid var(--color-navy); }
.button-navy:hover { background: #353a7b; }
.button-outline { width: 100%; border: 1px solid #c7c9cf; color: var(--color-navy); background: #fff; }
.button-outline:hover { background: var(--color-paper); border-color: var(--color-navy); }
.button-light { color: var(--color-navy); background: #fff; }
.button-light:hover { background: #e9eaf1; }
.text-link { color: var(--color-navy); font-weight: 700; }
.phone { display: inline-block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; text-decoration: none; letter-spacing: .025em; white-space: nowrap; }
.phone:hover { text-decoration: underline; }
.map-frame { width: 100%; height: 24rem; background: var(--color-paper); }
.fee-table { border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--color-line); text-align: right; }
.fee-table th { background: var(--color-paper); font-weight: 700; color: var(--color-navy); }
.fee-table th:first-child { text-align: left; }
.fee-table tr:last-child td { border: 0; padding-top: .75rem; font-size: .875rem; text-align: right; }

/* Responsive */
@media (min-width: 68.001rem) {
  .lg\:block { display: block; }
  .lg\:w-half { width: 50%; }
}
@media (min-width: 48rem) {
  .md\:max-w-xs { max-width: 20rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 68rem) {
  .header-grid { grid-template-columns: 10rem 1fr; }
  .header-phone { display: none; }
  .site-nav { justify-content: end; gap: 1.25rem; }
  .hero-copy { padding-right: 2rem; }
  .hero-image { min-height: 26rem; }
  .definition-grid { grid-template-columns: 1fr; gap: .25rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 47.999rem) {
  :root { --header-offset: 3.25rem; --header-logo-space: 4.75rem; }
  .site-header { top: calc(-1 * var(--header-logo-space)); }
  .site-header:has(.brand:focus-visible) { top: 0; }
  .max-md\:text-center { text-align: center; }
  .container { width: calc(100% - 2.5rem); }
  .header-grid { grid-template-columns: 1fr; gap: 0; padding-top: .25rem; padding-bottom: .75rem; }
  .brand { justify-self: center; }
  .brand-image { width: 9rem; height: 4.5rem; }
  .site-nav { grid-template-columns: max-content 1fr 1fr max-content; gap: .25rem; justify-content: stretch; }
  .site-nav a { font-size: clamp(.625rem, 3vw, .75rem); text-align: center; padding-block: .5rem; white-space: nowrap; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  .hero-grid, .banner-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.5rem 0; }
  .hero-copy .text-hero { font-size: clamp(1.25rem, 6.4vw, 1.875rem); }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .banner-image { height: 11rem; object-position: center; }
  .banner-grid h1 { padding-block: 2rem; }
  .detail-grid { gap: 1.25rem; }
  .map-frame { height: 20rem; }
  .button { padding: .875rem 1rem; gap: .75rem; }
  .justify-self-end { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
