:root {
  --bg: #fbfcff;
  --card: #ffffff;
  --accent: #344699;
  --text: #2b262e;
  --line: rgba(52, 70, 153, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.86;
  font-size: 1.05rem;
  letter-spacing: 0.012em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(251, 252, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-title {
  margin: 0;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
}

.top-nav {
  display: flex;
  gap: 24px;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.hero {
  max-width: 960px;
  margin: 28px auto 10px;
  padding: 0 20px;
  text-align: center;
}

.hero p {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(52, 70, 153, 0.12);
  border-top: 2px solid rgba(52, 70, 153, 0.24);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 18px rgba(52, 70, 153, 0.06);
  scroll-margin-top: 98px;
}

.card h2 {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-no {
  color: rgba(52, 70, 153, 0.58);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0.08em;
}

.section-name {
  color: var(--accent);
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(34px, 4.6vw, 40px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.card ul {
  margin: 0;
  padding-left: 1.25em;
}

#profile ul {
  line-height: 2;
}

.links a {
  color: #3b4d95;
  font-weight: 500;
  text-decoration-color: rgba(52, 70, 153, 0.55);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.links a:hover {
  text-decoration-color: rgba(52, 70, 153, 0.78);
}

.gallery-section {
  text-align: center;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
}

#carouselImage {
  width: 100%;
  max-width: 720px;
  height: 430px;
  object-fit: contain;
  border-radius: 10px;
  background: #f1f3fb;
  box-shadow: 0 12px 26px rgba(52, 70, 153, 0.16);
}


.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: none;
  font-size: 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  transition: background 0.2s ease;
}

.nav:hover {
  background: rgba(255, 255, 255, 0.86);
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.controls-row {
  margin-top: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mini-arrow {
  color: #7a8391;
  font-size: 14px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
}

.dot.active {
  background: var(--accent);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .site-title {
    font-size: 36px;
  }

  .top-nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .top-nav a {
    font-size: 16px;
  }

  .container {
    padding: 20px 16px 30px;
  }

  .card {
    padding: 22px 16px;
    scroll-margin-top: 146px;
  }

  .section-name {
    font-size: clamp(30px, 7vw, 34px);
  }

  #carouselImage {
    height: 250px;
  }
}
