:root {
  --color-bg: #faf9f6;
  --color-text: #1f1f1f;
  --color-sub: #6b6b6b;
  --color-accent: #b3552e;
  --color-line: #e2e0da;
  --color-card: #ffffff;
  --max-width: 880px;
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #171614;
    --color-text: #f2f0ea;
    --color-sub: #a8a49b;
    --color-accent: #e08a5c;
    --color-line: #35332d;
    --color-card: #201f1c;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.hero {
  border-bottom: 1px solid var(--color-line);
  padding: 72px 0 56px;
  text-align: center;
}

header.hero .kicker {
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-sub);
  margin-bottom: 16px;
}

header.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

header.hero p.lead {
  color: var(--color-sub);
  font-size: 1rem;
  margin: 0;
}

/* Nav */
nav.top {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9rem;
}

nav.top a {
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.75;
}

nav.top a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Sections */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--color-line);
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 1.3rem;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

section h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--color-accent);
  display: inline-block;
  border-radius: 2px;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.info-table th {
  width: 8em;
  color: var(--color-sub);
  font-weight: 500;
  white-space: nowrap;
}

/* Cards */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 24px 28px;
}

/* Rules list */
ul.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

ul.rules li {
  padding-left: 1.6em;
  position: relative;
}

ul.rules li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.note {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--color-card);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--color-sub);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--color-accent);
}

.faq-a {
  padding: 0 0 18px;
  color: var(--color-sub);
  font-size: 0.95rem;
}

.faq-a p {
  margin: 0 0 10px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* Map */
.map-embed {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* Footer */
footer {
  padding: 40px 0 60px;
  text-align: center;
  color: var(--color-sub);
  font-size: 0.85rem;
}

footer a {
  color: var(--color-sub);
}

/* Responsive (smartphone) */
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  header.hero {
    padding: 48px 0 36px;
  }

  header.hero p.lead {
    font-size: 0.9rem;
  }

  nav.top {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 14px 16px;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

  .card {
    padding: 18px 20px;
  }

  /* Stack table rows for readability on narrow screens */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: auto;
  }

  .info-table tr {
    padding: 10px 0;
  }

  .info-table th {
    border-bottom: none;
    padding: 0 0 4px;
    white-space: normal;
  }

  .info-table td {
    padding: 0 0 10px;
  }

  .faq details {
    padding: 4px 16px;
  }

  .map-embed iframe {
    height: 240px;
  }
}
