:root {
  --map-green: #315c4b;
  --map-green-dark: #24463a;
  --map-coral: #c96f64;
  --map-pink: #e89aa0;
  --map-cream: #fbf8f0;
  --map-paper: #fffef9;
  --map-text: #26352f;
  --map-muted: #68756e;
  --map-border: rgba(49, 92, 75, .16);
  --map-shadow: 0 18px 45px rgba(46, 68, 57, .10);
}

.map-container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.map-site-header { position: relative; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--map-border); backdrop-filter: blur(10px); }
.map-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.map-brand { display: inline-flex; align-items: center; text-decoration: none; }
.map-brand img { width: 188px; display: block; }
.map-nav { display: flex; align-items: center; gap: 24px; font-size: .93rem; font-weight: 700; }
.map-nav a { text-decoration: none; padding: 10px 2px; border-bottom: 2px solid transparent; }
.map-nav a:hover, .map-nav a:focus-visible { color: var(--map-coral); border-color: var(--map-coral); }

.map-hero { padding: 58px 0 50px; background: radial-gradient(circle at 85% 15%, rgba(232,154,160,.16), transparent 30%), linear-gradient(180deg, #fffdf9 0%, #f8f4e8 100%); border-bottom: 1px solid var(--map-border); }
.map-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--map-muted); margin-bottom: 30px; }
.map-breadcrumb a { text-decoration: none; }
.map-kicker { margin: 0 0 10px; color: var(--map-coral); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.map-hero h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; line-height: 1.25; color: var(--map-green-dark); }
.map-lead { max-width: 720px; margin: 18px 0 0; color: var(--map-muted); font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.9; }

.map-main, .map-areas { padding: 72px 0; }
.map-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 460px); gap: 48px; align-items: end; margin-bottom: 30px; }
.map-section-heading.compact { margin-bottom: 26px; }
.map-section-heading h2, .map-relation-note h2, .map-message h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; color: var(--map-green-dark); font-weight: 600; }
.map-section-heading h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.map-section-heading > p { margin: 0; color: var(--map-muted); line-height: 1.9; }

.map-figure { margin: 0; background: white; padding: 18px; border: 1px solid var(--map-border); border-radius: 28px; box-shadow: var(--map-shadow); }
.map-figure img { height: auto; width: 100%; display: block; border-radius: 18px; }
.map-figure figcaption { padding: 13px 4px 0; color: var(--map-muted); font-size: .78rem; line-height: 1.65; }

.map-relation-note { margin-top: 28px; padding: 28px 30px; border-radius: 22px; background: linear-gradient(135deg, #f6f3e7, #fffaf3); border: 1px solid rgba(201,111,100,.15); }
.map-relation-note h2 { font-size: 1.35rem; margin-bottom: 10px; }
.map-relation-note p { margin: 0; line-height: 1.9; color: #59665f; }

.map-areas { background: #f7f5ed; border-top: 1px solid var(--map-border); border-bottom: 1px solid var(--map-border); }
.map-area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.map-area-card { position: relative; min-height: 220px; padding: 28px; border-radius: 24px; text-decoration: none; overflow: hidden; background: white; border: 1px solid var(--map-border); box-shadow: 0 12px 30px rgba(43,64,53,.07); transition: transform .2s ease, box-shadow .2s ease; }
.map-area-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -44px; bottom: -50px; opacity: .18; pointer-events: none; }
.map-area-card:hover, .map-area-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(43,64,53,.12); }
.map-area-card.koryo::after { background: #e88b9a; }
.map-area-card.yamatotakada::after { background: #df7c52; }
.map-area-card.tawaramoto::after { background: #6b9b67; }
.map-area-card.kawai::after { background: #2e5b45; }
.map-area-card.ikaruga::after { background: #a94a34; }
.map-area-type { display: inline-block; font-size: .72rem; letter-spacing: .16em; color: var(--map-muted); margin-bottom: 42px; }
.map-area-card h3 { margin: 0 0 5px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.7rem; color: var(--map-green-dark); }
.map-area-card p { margin: 0; font-weight: 700; color: var(--map-muted); }
.map-area-arrow { position: absolute; right: 25px; bottom: 22px; font-size: 1.5rem; font-weight: 700; }
.map-more-link { margin-top: 28px; text-align: right; }
.map-more-link a { color: var(--map-green-dark); font-weight: 800; text-decoration: none; }

.map-message { padding: 80px 0; background: radial-gradient(circle at 16% 22%, rgba(232,154,160,.14), transparent 25%), linear-gradient(160deg, #fffdf8, #eef4ed); }
.map-message-inner { text-align: center; max-width: 760px; }
.map-message h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.map-message p:not(.map-kicker) { color: var(--map-muted); line-height: 1.9; }
.map-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.map-button { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 13px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.map-button.primary { color: white; background: var(--map-green); }
.map-button.secondary { color: var(--map-green); background: white; border: 1px solid var(--map-border); }

.map-footer { padding: 50px 0 24px; color: #eef5f0; background: #274a3d; }
.map-footer-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.map-footer-brand { display: inline-flex; background: rgba(255,255,255,.94); border-radius: 12px; padding: 8px 10px; }
.map-footer-brand img { width: 170px; }
.map-footer p { max-width: 560px; color: rgba(255,255,255,.75); line-height: 1.8; }
.map-footer nav { display: grid; gap: 10px; }
.map-footer nav a { text-decoration: none; color: rgba(255,255,255,.88); }
.map-footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.65); }
.map-footer-bottom a { color: inherit; text-decoration: none; }

@media (max-width: 900px) {
  .map-nav { display: none; }
  .map-header-inner { min-height: 72px; }
  .map-brand img { width: 162px; }
  .map-section-heading { grid-template-columns: 1fr; gap: 14px; }
  .map-area-grid { grid-template-columns: 1fr; }
  .map-area-card { min-height: 175px; }
  .map-area-type { margin-bottom: 25px; }
  .map-footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
  .map-container { width: min(100% - 28px, 1120px); }
  .map-hero { padding: 40px 0 38px; }
  .map-main, .map-areas { padding: 52px 0; }
  .map-figure { padding: 9px; border-radius: 18px; }
  .map-figure img { border-radius: 12px; }
  .map-relation-note { padding: 22px 20px; }
  .map-message { padding: 58px 0; }
  .map-footer-bottom { flex-direction: column; }
}
