:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --teal: #14b8a6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, .06);
  --shadow-md: 0 16px 38px rgba(15, 23, 42, .11);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--surface); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 14px; border-radius: 6px; background: #fff; transform: translateY(-150%); box-shadow: var(--shadow-sm); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 50; top: 0; min-height: 68px; padding: 0 max(24px, calc((100% - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(226, 232, 240, .8); box-shadow: 0 1px 8px rgba(15, 23, 42, .04); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-dark); font-weight: 800; font-size: 1.12rem; text-decoration: none; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { position: relative; padding: 21px 0; text-decoration: none; color: #475569; font-weight: 600; font-size: .9rem; transition: color .2s ease; }
nav a::after { position: absolute; right: 0; bottom: 14px; left: 0; height: 2px; content: ""; background: var(--primary); transform: scaleX(0); transition: transform .2s ease; }
nav a:hover { color: var(--primary-dark); }
nav a:hover::after { transform: scaleX(1); }

.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #f8fafc 0%, #fff 46%, #f0f9ff 100%); }
.hero-inner { position: relative; z-index: 2; width: min(1280px, calc(100% - 48px)); min-height: 594px; margin: auto; display: flex; align-items: center; }
.hero-visual { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 86% 84% at center, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 86% 84% at center, #000 62%, transparent 100%); filter: drop-shadow(0 24px 35px rgba(2, 132, 199, .08)); animation: image-in .75s ease-out both; }
.hero-content { position: relative; z-index: 2; width: min(52%, 610px); margin-left: auto; padding: 42px 46px; border: 1px solid rgba(186, 230, 253, .8); border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 20px 55px rgba(15, 23, 42, .11); backdrop-filter: blur(10px); animation: content-in .65s .08s ease-out both; }
.hero-content h1 { max-width: 700px; margin: 13px 0 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: #0f172a; font-size: clamp(3rem, 5vw, 4.8rem); line-height: 1.08; letter-spacing: -.05em; }
.title-place { color: #334155; font-size: .42em; font-weight: 750; line-height: 1; letter-spacing: .11em; }
.title-main { color: var(--primary); }
.hero-content > p:not(.eyebrow) { max-width: 600px; margin: 0 0 30px; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.route-line { width: 150px; height: 22px; margin: -2px 0 20px; display: flex; align-items: center; }
.route-line i { flex: none; width: 11px; height: 11px; border: 3px solid var(--primary); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, .12); }
.route-line span { flex: 1; height: 3px; margin-left: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--teal)); }
.route-line b { position: relative; flex: none; width: 18px; height: 18px; margin-left: 2px; border-radius: 50% 50% 50% 0; background: var(--teal); transform: rotate(-45deg); }
.route-line b::after { position: absolute; width: 6px; height: 6px; top: 6px; left: 6px; border-radius: 50%; content: ""; background: #fff; }
.hero-railway { position: absolute; right: 0; bottom: 52px; left: 0; z-index: 20; height: 86px; overflow: hidden; pointer-events: none; }
.track { position: absolute; right: 0; bottom: 0; left: 0; height: 32px; }
.track .rails { position: absolute; top: 0; right: 0; left: 0; height: 100%; border-top: 5px solid #475569; border-bottom: 5px solid #475569; }
.track .ties { position: absolute; top: 3px; right: 0; bottom: 3px; left: 0; background: repeating-linear-gradient(90deg, #94a3b8 0 16px, transparent 16px 44px); }
.train { position: absolute; bottom: 8px; left: -220px; z-index: 30; filter: drop-shadow(0 10px 18px rgba(2, 132, 199, .3)); animation: train-arrive 2.4s cubic-bezier(.22, 1, .36, 1) .4s forwards; }
@keyframes train-arrive { to { left: 42%; transform: translateX(-50%); } }
.eyebrow { margin: 0; color: var(--primary); font-size: .75rem; font-weight: 800; letter-spacing: .17em; }
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes span { position: absolute; display: block; border-radius: 38px; background: rgba(186, 230, 253, .35); animation: float 14s ease-in-out infinite; }
.hero-shapes span:nth-child(1) { width: 330px; height: 330px; top: -170px; right: -75px; transform: rotate(14deg); }
.hero-shapes span:nth-child(2) { width: 250px; height: 250px; bottom: -150px; left: -85px; background: rgba(153, 246, 228, .24); animation-delay: 1s; }
.hero-shapes span:nth-child(3) { width: 100px; height: 100px; top: 24%; right: 40%; border-radius: 24px; background: rgba(224, 242, 254, .55); transform: rotate(45deg); animation-duration: 11s; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 50px; padding: 11px 24px; border: 0; border-radius: 9px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary, .button-submit { color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(2, 132, 199, .22); }
.button-primary:hover, .button-submit:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(2, 132, 199, .25); }

.section { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0; }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading h2, .about-section h2, .contact-section h2 { margin: 8px 0 12px; color: #0f172a; font-size: clamp(2rem, 3.7vw, 2.8rem); line-height: 1.3; letter-spacing: -.03em; }
.section-heading > p:last-child, .contact-intro > p:last-child { margin: 0; color: var(--muted); }
.maps-section { width: 100%; max-width: none; padding-right: max(24px, calc((100% - 1280px) / 2)); padding-left: max(24px, calc((100% - 1280px) / 2)); }
.group-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #0f172a; font-size: 1.15rem; font-weight: 800; }
.group-heading span { width: 34px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--teal)); }
.group-heading:not(:first-of-type) { margin-top: 48px; }
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: station; }
.map-card { --route-color: #0284c7; counter-increment: station; }
.map-card:nth-child(3n + 2) { --route-color: #0f766e; }
.map-card:nth-child(3n) { --route-color: #7c3aed; }
.map-grid:last-child .map-card { --route-color: #b45309; }
.map-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.map-card:hover { border-color: #bae6fd; transform: translateY(-5px); box-shadow: var(--shadow-md); }
.map-card a { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.map-card img, .card-graphic { width: 100%; height: 170px; object-fit: cover; background: var(--surface-soft); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.area { width: fit-content; margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px; color: #475569; font-size: .75rem; font-weight: 700; }
.area::before { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid var(--route-color); border-radius: 50%; content: counter(station, decimal-leading-zero); content: counter(station, decimal-leading-zero) / ""; background: #fff; color: var(--route-color); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
.map-grid:last-child .area::before { content: "T" counter(station, decimal-leading-zero); content: "T" counter(station, decimal-leading-zero) / ""; }
.card-body h3 { position: relative; margin: 0 0 16px; padding-bottom: 20px; border-bottom: 7px solid var(--route-color); color: #0f172a; font-size: 1.18rem; font-weight: 800; line-height: 1.45; letter-spacing: .015em; }
.card-body h3::after { position: absolute; right: 2px; bottom: -10px; width: 13px; height: 13px; border-top: 3px solid #fff; border-right: 3px solid #fff; content: ""; transform: rotate(45deg); }
.map-card .card-link { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); color: var(--route-color); }
.map-card:hover .area::before { background: var(--route-color); color: #fff; }
.card-body > p:not(.area) { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.card-link { margin-top: auto; color: var(--primary); font-size: .86rem; font-weight: 700; }
.card-graphic { display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; background: linear-gradient(145deg, #38bdf8, #0369a1); }
.card-graphic span { font-size: .66rem; font-weight: 800; letter-spacing: .14em; opacity: .85; }
.card-graphic strong { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.12; }
.tone-coral .card-graphic { background: linear-gradient(145deg, #fb7185, #be123c); }
.tone-yellow .card-graphic { color: #713f12; background: linear-gradient(145deg, #fde68a, #f59e0b); }
.tone-night .card-graphic { background: radial-gradient(circle at 76% 20%, #fde68a 0 7%, transparent 8%), linear-gradient(145deg, #334155, #0f172a); }
.tone-purple .card-graphic { background: linear-gradient(145deg, #a78bfa, #5b21b6); }

.about-section { width: 100%; max-width: none; padding: 88px max(24px, calc((100% - 1080px) / 2)); display: grid; grid-template-columns: 150px 1fr; gap: 58px; align-items: center; background: var(--surface-soft); }
.about-mark { width: 130px; height: 130px; border-radius: 28px; display: grid; place-items: center; color: var(--primary-dark); background: linear-gradient(145deg, var(--primary-soft), #ccfbf1); font-size: 3.7rem; font-weight: 300; transform: rotate(-5deg); }
.about-section > div:last-child { max-width: 760px; }
.about-section > div:last-child > p:last-child { color: var(--muted); font-size: 1.02rem; }
.contact-section { margin-top: 96px; margin-bottom: 96px; padding: 68px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 82px; border: 1px solid #bae6fd; border-radius: 18px; background: linear-gradient(135deg, #f0f9ff, #fff 70%); box-shadow: var(--shadow-sm); }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { color: #334155; font-size: .86rem; font-weight: 700; }
.field label span { color: #64748b; font-size: .72rem; font-weight: 500; }
.field label b { color: #be123c; font-size: .72rem; }
.field input, .field textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; padding: 12px 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.button-submit { width: fit-content; min-width: 160px; }
.button-submit:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 1.6em; margin: -6px 0 0; font-weight: 700; font-size: .86rem; }
.form-status.success { color: #047857; }
.form-status.error { color: #be123c; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
footer { padding: 30px 24px; border-top: 1px solid var(--line); color: #64748b; background: var(--surface-soft); text-align: center; font-size: .78rem; }

@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 12px -16px; rotate: 3deg; }
}
@keyframes image-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes content-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .hero-inner { min-height: 560px; }
  .hero-content { width: min(58%, 540px); padding: 34px 38px; }
  .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section { grid-template-columns: 1fr; gap: 38px; padding: 52px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 62px; }
  .site-header { min-height: 62px; padding: 0 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: .93rem; }
  nav { gap: 0; }
  nav a { padding: 18px 0; }
  nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; }
  .hero-inner { width: calc(100% - 32px); min-height: 0; padding: 52px 0 34px; flex-direction: column; }
  .hero-content { order: 1; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; text-align: center; }
  .hero-content h1 { align-items: center; font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .hero-content > p:not(.eyebrow) { margin-right: auto; margin-left: auto; font-size: .98rem; }
  .route-line { margin-right: auto; margin-left: auto; }
  .hero-visual { position: static; order: 2; width: 100%; margin-top: 30px; }
  .hero-visual img { width: 100%; height: auto; }
  .hero-railway { bottom: 28px; height: 60px; }
  .train svg { width: 130px; height: 50px; }
  .hero-shapes span:nth-child(3) { display: none; }
  .section { width: calc(100% - 32px); padding: 72px 0; }
  .maps-section { width: 100%; padding-right: 16px; padding-left: 16px; }
  .map-grid { grid-template-columns: 1fr; gap: 18px; }
  .map-card a { display: grid; grid-template-columns: 104px 1fr; }
  .map-card img, .card-graphic { width: 104px; height: 100%; min-height: 175px; }
  .card-graphic { padding: 16px 10px; }
  .card-graphic strong { font-size: 1.18rem; overflow-wrap: anywhere; }
  .card-body { padding: 18px; }
  .card-body h3 { font-size: 1.02rem; }
  .card-body > p:not(.area) { margin-bottom: 13px; font-size: .81rem; }
  .about-section { width: 100%; padding: 70px 24px; grid-template-columns: 1fr; gap: 28px; }
  .about-mark { width: 90px; height: 90px; border-radius: 20px; font-size: 2.6rem; }
  .contact-section { width: calc(100% - 24px); margin-top: 72px; margin-bottom: 72px; padding: 38px 20px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
