:root {
  --brand:#1e2a78;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#f8f9fb;
  --white:#ffffff;
  --gold:#C5A14E;
  --lavender:#8a78c8;
  --map-bg:#edeef0;
}

/* ===============================
   Base
================================ */
html, body {
  margin:0;
  padding:0;
  min-height:100dvh;
  font:16px/1.8 'Noto Serif JP', serif;
  color:var(--ink);
  background:var(--map-bg);
  display:flex;
  flex-direction:column;
}

/* ===============================
   Header
================================ */
.open-header {
  background:var(--white);
  border-bottom:1px solid #e5e7eb;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.campus-title {
  font-family:'Crimson Pro', serif;
  font-size:clamp(14px,0.7rem + 1vw,20px);
  font-weight:600;
  color:var(--brand);
  margin:0;
}

.join-link {
  font-family:'Crimson Pro', serif;
  font-size:clamp(11.5px,0.5rem + 1vw,15px);
  text-decoration:none;
  color:var(--muted);
  transition:.3s ease;
}

.join-link:hover {
  color:var(--lavender);
}

/* ===============================
   Hero
================================ */
.campus-map-header {
  background:radial-gradient(circle at 50% 40%, #2a3a96 0%, #161e54 100%);
  padding:40px 0 52px;
  text-align:center;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.campus-map-header::before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.03) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.03) 100%
  );
  pointer-events:none;
}

.campus-map-header h2 {
  font-family:'Crimson Pro', serif;
  font-size:clamp(21.4px,1.35rem + 1vw,27px);
  font-weight:500;
  margin:0;
  color:#ffffff;
  letter-spacing:0.04em;
  text-shadow:0 4px 20px rgba(0,0,0,0.4);
}

.open-declaration {
  margin-top: 22px;
  font-family: 'Crimson Pro', serif;
  font-size: clamp(15px, 0.9rem + 0.4vw, 18px);
  letter-spacing: 0.45em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}


/* ===============================
   Live Clock
================================ */
.live-clock {
  margin-top:14px;
  font-family:'Crimson Pro', serif;
  font-size:clamp(9px,0.6rem + 0.2vw,12px);
  color:rgba(255,255,255,0.45);
  letter-spacing:0.15em;
  font-variant-numeric:tabular-nums;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.live-clock::before {
  content:"";
  width:4px;
  height:4px;
  background:#ed6931e7;
  border-radius:50%;
  margin-right:12px;
  animation:clockPulse 4s infinite;
}

@keyframes clockPulse {
  0% { opacity:0.3; transform:scale(0.9); }
  50% { opacity:1; transform:scale(1.1); }
  100% { opacity:0.3; transform:scale(0.9); }
}

/* ===============================
   Campus Map
================================ */
.campus-map {
  width:100%;
  margin:0;
  padding:0;
}

.campus-map-inner {
  position:relative;
  width:100%;
  padding:0 0 95px;
  min-height:calc(32px * 10);
}

.campus-map-inner::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(to right,
      color-mix(in srgb, var(--lavender) 8%, transparent) 1px,
      transparent 1px),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--lavender) 8%, transparent) 1px,
      transparent 1px);
  background-size:32px 32px;
  background-position:0 0;
  z-index:1;
}

.landmark-container {
  max-width:1300px;
  margin:0 auto;
  padding-top:40px;
  position:relative;
  z-index:5;
}

/* ===============================
   Navigation Area (Mobile Optimized)
================================ */
.map-navigation-area {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: -30px;
  margin-left: 15px; /* 少し余裕を持たせる */
  position: relative;
  z-index: 10;
}

.map-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  width: max-content;
  background: #cec5f04d;
  box-shadow: 0 3px 12px rgba(21, 21, 23, 0.12);
  border: 1px solid #b8b1d64c;
  border-radius: 2px;
}

.map-label {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(11.7px, 0.7rem + 1vw, 18.5px);
  opacity: 0.9;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.2;
}

.map-sub {
  font-size: clamp(8px, 0.37rem + 0.5vw, 10.5px);
  font-weight: 450;
  opacity: 0.95;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 1px;
}

/* --- Prompt (語りかけ) --- */
.map-prompt {
  display: flex;
  align-items: center;
}

.prompt-text {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(15px, 0.9rem + 0.6vw, 19.4px);
  font-style: italic;
  font-weight: 420;
  color: var(--brand);
  opacity: 0.9;
  letter-spacing: 0.02em;
  position: relative;
  white-space: nowrap;
}


/* ===============================
   Landmark
================================ */
.landmark {
  position:relative;
  margin:70px auto;
  width:max-content;
  text-align:center;
  transition:transform .4s ease;
}

.landmark.left {
  margin-left:20%;
  margin-right:auto;
}

.landmark.right {
  margin-right:20%;
  margin-left:auto;
}

.landmark::after {
  content:"";
  display:block;
  width:120px;
  height:2px;
  margin:14px auto 0;
  background:linear-gradient(
    to right,
    transparent,
    rgba(27,38,110,0.5),
    transparent
  );
}

.landmark h3 {
  font-family:'Crimson Pro', serif;
  font-size:clamp(18px,1rem + 1vw,26px);
  font-weight:600;
  margin-bottom:6px;
  color:var(--brand);
}

.landmark p.en {
  font-size:clamp(13px,0.5rem + 1vw,16px);
  color:var(--muted);
  margin:0;
}

.landmark p.jp {
  font-size:clamp(11px,0.5rem + 1vw,13px);
  color:var(--muted);
  opacity:0.75;
  margin-top:1px;
}

/* ===============================
   Dot
================================ */
.dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#dcbe97;
  margin-bottom:6px;
  box-shadow:
    0 0 0 5px rgba(206,170,70,0.24),
    0 0 14px rgba(205,168,83,0.45);
  animation:dot-breathe 4.6s ease-in-out infinite;
  opacity:0.8;
}

@keyframes dot-breathe {
  0% { transform:scale(1); opacity:0.75; }
  50% { transform:scale(1.08); opacity:1; }
  100% { transform:scale(1); opacity:0.75; }
}

.dot.muted {
  background:#d1d5db;
  box-shadow:none;
  animation:none;
  opacity:0.6;
}

/* ===============================
   Coming Soon
================================ */
.coming-soon {
  opacity:0.85;
}

.soon-text {
  font-size:12px;
  color:#8a93a3;
  font-family:'Crimson Pro', serif;
  letter-spacing:.06em;
  display:block;
  margin-top:6px;
}

/* ===============================
   Footer
================================ */
.open-footer {
  font-family:'Crimson Pro', serif;
  background:rgba(255,255,255,0.85);
  border-top:1px solid #e5e7eb;
  font-size:13px;
  color:var(--muted);
  text-align:center;
  padding:14px;
}

/* Open Campus - clickable landmark */
.free-core {
  cursor: pointer;
}

.free-core:hover {
  transform: translateY(-3px);
}

.free-core:hover h3 {
  color: var(--lavender);
}


/* --- Responsive 調整 --- */
@media (max-width: 767px) {
  .map-navigation-area {
    flex-direction: column; /* 縦並びに変更 */
    align-items: flex-start; /* 左揃えに */
    margin-left: 15px;
    gap: 8px; /* 縦の隙間を少し広げる */
    margin-top: -20px;
  }
  
  .map-prompt {
    padding-left: 4px; /* Badgeの左端に合わせる微調整 */
  }

  /* ランドマークの左右余白をスマホ用に最適化 */
  .landmark.left {
    margin-left: 10%;
  }
  .landmark.right {
    margin-right: 10%;
  }

  /* ヒーローエリアのパディング調整 */
  .campus-map-header {
    padding: 30px 15px 40px;
  }
}