/* =====================================================================
   ABOUT ページの「掟」（神聖 KILLAKERS）
   明朝体（Shippori Mincho）で、スクロールに合わせて 1 行ずつふわっと現れる
   ===================================================================== */

.oath-section {
  --oath-font: "Shippori Mincho", "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  padding-top: 72px;
}

#oath-root {
  font-family: var(--oath-font);
  max-width: 44rem;
  margin-inline: auto;
}

/* ---------- ふわっと現れる ---------- */
.ofx {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1.2s ease;
  will-change: opacity, transform;
}
.ofx.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .ofx {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ---------- タイトル ---------- */
.oath-hero {
  text-align: center;
  padding: 24px 0 40px;
}
.oath-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: var(--c-primary-bright);
  opacity: 0.85;
}
.oath-title {
  margin: 0;
  font-family: var(--oath-font);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  letter-spacing: 0.12em;
  line-height: 1.3;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(var(--c-primary-rgb), 0.35));
}
.oath-hero-sub {
  /* 「掟」：このページでいちばん大切な文字なので、タイトルより大きく、白で出す */
  margin: 18px 0 0;
  font-family: var(--oath-font);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 9.5rem);
  letter-spacing: 0.1em;
  padding-left: 0.1em;
  line-height: 1.15;
  color: #fff; /* 白い文字（金色に戻したいときは、ここを金のグラデーションに） */
  text-shadow: 0 0 22px rgba(var(--c-primary-rgb), 0.45);
}
.oath-hero .oath-title {
  /* 文字送りの拡大・ぼかしと、背景クリップの描画が重ならないように */
  filter: none;
}
.oath-hero.is-in .oath-title {
  filter: drop-shadow(0 0 18px rgba(var(--c-primary-rgb), 0.35));
}

/* ---------- 条文の目次 ---------- */
/* 画面の上（ヘッダーのすぐ下）にくっついて、どこまでスクロールしても押せる。ボタンが多いときは 1 行のまま横にスクロール */
.oath-toc {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 56px;
  padding: 10px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: rgba(8, 8, 10, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-block: 1px solid rgba(var(--c-primary-rgb), 0.35);
}
.oath-toc::-webkit-scrollbar {
  display: none;
}
/* ボタンが少ないときは中央に寄せる（あふれるときは左から）。justify-content: center だと、あふれた左側が切れるため、両端の auto で寄せている */
.oath-toc > :first-child {
  margin-left: auto;
}
.oath-toc > :last-child {
  margin-right: auto;
}
.oath-toc-label {
  flex: none;
  white-space: nowrap;
  margin-right: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--c-muted);
}
.oath-toc a {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  white-space: nowrap;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(var(--c-primary-rgb), 0.5);
  transition: background 0.2s ease, color 0.2s ease;
}
.oath-toc a.oath-toc-wide {
  padding: 0 12px;
  letter-spacing: 0.12em;
}
.oath-toc a:hover,
.oath-toc a:focus-visible {
  background: rgba(var(--c-primary-rgb), 0.28);
  color: var(--c-primary-bright);
}
/* いま読んでいる所 */
.oath-toc a.is-active {
  background: rgba(var(--c-primary-rgb), 0.4);
  color: var(--c-primary-bright);
  box-shadow: inset 0 0 0 1px var(--c-primary-bright);
}

/* パソコンでは、本文の幅（44rem）より広げて、ボタンが全部見えるようにする */
@media (min-width: 800px) {
  .oath-toc {
    margin-inline: calc((100% - min(960px, 100vw - 64px)) / 2);
  }
}

/* 前文・結語へ飛んだとき、ヘッダーと目次の下に隠れないようにする */
.oath-chapter[id] {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

/* ---------- 章 ---------- */
.oath-chapter {
  margin-bottom: 96px;
}
.oath-chead {
  text-align: center;
  margin: 0 0 56px;
  padding-top: 24px;
}
.oath-cno {
  margin: 0;
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem); /* 「第〇章」の文字の大きさ */
  font-weight: 800;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--c-primary-bright);
}
.oath-ctitle {
  margin: 12px 0 0;
  font-family: var(--oath-font);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  line-height: 1.5;
  color: var(--c-silver-bright);
}
.oath-ctitle::before,
.oath-ctitle::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(90deg, transparent, var(--c-primary-bright), transparent);
}
.oath-csub {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}

/* ---------- 条 ---------- */
/* 1 条ごとに警告テープ（js/tape.js）が貼られる。テープが文字に重ならないよう、
   条の上に余白（margin + padding）を取り、その真ん中あたりにテープを置く */
.oath-article {
  margin-top: 64px;
  padding-top: 96px;
  scroll-margin-top: calc(var(--header-h) - 30px);
}
.oath-article > .tape {
  top: calc(16px - var(--tape-h) / 2);
}
.oath-chapter > .oath-p,
.oath-chapter > .oath-em,
.oath-chapter > .oath-verse {
  margin-top: 0;
}
.oath-ahead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  text-align: center;
}
.oath-ano {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); /* 「第〇条」の文字の大きさ */
  font-weight: 800;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: var(--c-primary-bright);
}
.oath-atitle {
  margin: 0;
  font-family: var(--oath-font);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.8vw, 1.8rem);
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--c-text);
}
.oath-ahead::after {
  content: "";
  width: 1px;
  height: 36px;
  margin-top: 8px;
  background: linear-gradient(180deg, var(--c-primary-bright), transparent);
}

/* ---------- 本文 ---------- */
.oath-p,
.oath-verse,
.oath-em {
  margin: 0 0 1.9em;
  line-height: 2.25;
  letter-spacing: 0.07em;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.oath-p {
  font-weight: 500;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  color: rgba(244, 244, 247, 0.92);
}
.oath-verse {
  text-align: center;
  font-weight: 800; /* 強調の行（.oath-em）と同じ、太字＋金色にそろえている */
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  letter-spacing: 0.1em;
  margin-block: 2.6em;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.oath-em {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  letter-spacing: 0.1em;
  line-height: 2.1;
  margin-block: 2.6em;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.oath-rule {
  text-align: center;
  margin: 3.4em 0;
  color: var(--c-primary-bright);
  font-size: 0.7rem;
  letter-spacing: 1.2em;
  padding-left: 1.2em;
  opacity: 0.8;
}
.oath-rule span::before,
.oath-rule span::after {
  content: "";
  display: inline-block;
  width: 64px;
  height: 1px;
  vertical-align: middle;
  margin: 0 18px;
  background: linear-gradient(90deg, transparent, var(--c-primary-bright));
}
.oath-rule span::after {
  background: linear-gradient(270deg, transparent, var(--c-primary-bright));
}
.oath-sub {
  margin: 2.4em 0 1.6em;
  text-align: center;
  font-family: var(--oath-font);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: var(--c-primary-bright);
}

/* 第八条など：小見出しつきのまとまり */
.oath-group {
  margin: 0 0 2em;
  padding: 18px 22px 6px;
  border-left: 2px solid rgba(var(--c-primary-rgb), 0.8);
  background: linear-gradient(90deg, rgba(var(--c-primary-rgb), 0.12), transparent);
}
.oath-group-title {
  margin: 0 0 10px;
  font-family: var(--oath-font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--c-primary-bright);
}
.oath-group ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.oath-group li {
  position: relative;
  padding-left: 1.4em;
  line-height: 2.1;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: rgba(244, 244, 247, 0.92);
  line-break: strict;
  text-wrap: pretty;
}
.oath-group li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.6em;
  line-height: 3.2;
  color: var(--c-primary-bright);
}
.oath-group .oath-p {
  margin-bottom: 1em;
}

/* ---------- 【本文】の枠と【解説】のラベル ---------- */
.oath-honbun {
  position: relative;
  margin: 0 0 2.4em;
  padding: 34px 26px 14px;
  border: 1px solid rgba(var(--c-primary-rgb), 0.55);
  background: linear-gradient(160deg, rgba(var(--c-primary-rgb), 0.14), rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 22px rgba(var(--c-primary-rgb), 0.12);
}
.oath-honbun-label {
  position: absolute;
  left: 50%; /* 枠の真ん中に置く */
  transform: translateX(-50%);
  top: -0.75em;
  padding: 0 14px 0 calc(14px + 0.4em); /* 字間の分だけ左に余白を足して、文字が真ん中に見えるようにする */
  font-size: 1.35rem; /* 「本文」の文字の大きさ */
  font-weight: 700;
  letter-spacing: 0.4em;
  white-space: nowrap;
  color: var(--c-primary-bright);
  background: var(--c-bg, #08080c);
}
.oath-honbun-p {
  margin: 0 0 1.3em;
  line-height: 2.1;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  color: var(--c-silver-bright);
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.oath-label {
  margin: 2.2em 0 1.6em;
  text-align: center;
  font-size: 1.6rem; /* 「解説」の文字の大きさ */
  font-weight: 700;
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  color: var(--c-silver-bright, #dcdce4);
}
.oath-label::before,
.oath-label::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  vertical-align: middle;
  margin: 0 14px;
  background: linear-gradient(90deg, transparent, rgba(var(--c-primary-rgb), 0.7));
}
.oath-label::after {
  background: linear-gradient(270deg, transparent, rgba(var(--c-primary-rgb), 0.7));
}
.oath-strong {
  font-weight: 800;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--c-primary-bright);
}

.oath-em.oath-sign {
  line-height: 1.55; /* 署名の行間（つめたいときは小さく） */
  margin-block: 1.6em 2.6em;
  /* 署名は白い文字（金色のグラデーションをやめて、白にする） */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
}

/* 結語など、中央ぞろえにする章（js/pages/about.js が付ける） */
.oath-chapter--center .oath-p,
.oath-chapter--center .oath-strong,
.oath-chapter--center .oath-verse,
.oath-chapter--center .oath-em,
.oath-chapter--center .oath-honbun-p,
.oath-chapter--center .oath-group,
.oath-chapter--center .oath-group li {
  text-align: center;
}
.oath-chapter--center .oath-group {
  border-left: 0;
}
.oath-chapter--center .oath-group li {
  padding-left: 0;
}
.oath-chapter--center .oath-group li::before {
  display: none;
}

@media (max-width: 600px) {
  .oath-section {
    padding-top: 48px;
  }
  .oath-article {
    margin-top: 40px;
    padding-top: 72px;
  }
  .oath-chapter {
    margin-bottom: 64px;
  }
  .oath-p,
  .oath-verse,
  .oath-em {
    line-height: 2.15;
  }
  .oath-group {
    padding-inline: 16px;
  }
  .oath-rule span::before,
  .oath-rule span::after {
    width: 32px;
    margin: 0 10px;
  }
}
