:root {
  --bg: #111;
  --fg: #e9e6df;
  --muted: #8a857c;
  --line: #333;
  --accent: #c9b99a;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.notice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  box-sizing: border-box;
  width: 100%;
  padding: 72px 16px 48px;
}

.notice-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.notice-org {
  margin: 0;
  font-size: 18px;
  letter-spacing: .3em;
}

.notice-org-en {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
}

.notice-title {
  margin: 0;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.6;
}

.notice-date {
  margin: 0;
  padding: 4px 20px;
  border: 1px solid var(--accent);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--accent);
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  width: min(560px, 100%);
  font-size: 15px;
  line-height: 2.1;
}

.notice-body {
  text-align: center;
}

.notice-body p {
  margin: 0;
}

.notice-footer {
  padding: 16px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.notice-footer p {
  margin: 4px 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* 利用規約・プライバシーポリシーのモーダル */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: 80vh;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--line);
  background: #181818;
  color: var(--fg);
}

.modal::backdrop {
  background: rgba(0, 0, 0, .7);
}

.modal-title {
  margin: 0;
  padding: 32px 28px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
}

.modal-body {
  padding: 8px 28px 32px;
  font-size: 13px;
  line-height: 2;
}

.modal-body h3 {
  margin: 20px 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.modal-body p {
  margin: 0;
}

.modal-body a {
  color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .notice-body br {
    display: none;
  }
}

/* 404 ページ：文を画面の中央に寄せる */
.notice-missing {
  justify-content: center;
  text-align: center;
}

.notice-missing a {
  color: var(--accent);
}
