/* ==========================================================================
   REALSPACE RAID TOURNAMENT 2026 — Dark Gothic Cinematic
   ========================================================================== */

:root {
  --color-bg-dark: #07070a;
  --color-bg-card-dark: rgba(18, 12, 20, 0.78);
  --color-bg-slate: #16101a;
  --color-bg-bone: #efeae0;
  --color-bg-bone-light: #f8f5ee;
  --color-crimson: #9e1b2c;
  --color-crimson-light: #d2394f;
  --color-crimson-glow: rgba(158, 27, 44, 0.45);
  --color-gold: #b8934a;
  --color-gold-light: #e2c98a;
  --color-toxin: #3fae8c;
  --color-text-dark: #141117;
  --color-text-muted: #5c5550;
  --color-text-light: #ffffff;
  --color-text-light-muted: rgba(255, 255, 255, 0.65);
  --font-mincho: 'Shippori Mincho B1', serif;
  --font-gothic: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-display: 'Cinzel', serif;
  --font-serif-en: 'Cormorant Garamond', Georgia, serif;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
/* .lenis-stopped に overflow:hidden は付けない（iPhone Safari でメニューを開くと画面の高さが変わるため）。スクロール停止は Lenis 側で行う */

html {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-gothic);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--color-bg-dark);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  word-break: normal;
  line-break: strict; /* 句読点・小さい「ょ」等を行頭に置かない */
  overflow-wrap: anywhere;
}

@media (max-width: 640px) { body { font-size: 15px; } }

.font-mincho { font-family: var(--font-mincho); }
.font-gothic { font-family: var(--font-gothic); }
.font-display { font-family: var(--font-display); }
.font-en { font-family: var(--font-serif-en); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #07070a; }
::-webkit-scrollbar-thumb { background: #2a1d26; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-crimson); }

::selection { background: var(--color-crimson); color: #fff; }

/* Typo helpers */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  font-size: clamp(28px, 4.6vw, 56px);
}
.gold-text {
  background: linear-gradient(135deg, #f6ecd2 0%, #c9a65c 50%, #7d6230 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-shadow { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.crimson-btn {
  color: #fff;
  background: linear-gradient(135deg, #b3233a 0%, #7a1220 100%);
  box-shadow: 0 4px 20px var(--color-crimson-glow);
}
.crimson-btn:hover {
  background: linear-gradient(135deg, #d2394f 0%, #9e1b2c 100%);
  box-shadow: 0 6px 28px rgba(210, 57, 79, 0.55);
  transform: translateY(-2px);
}
.glass-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-pill:hover { border-color: var(--color-gold); color: var(--color-gold-light); }
.btn.is-disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: none;
  animation: none;
}

/* Glass */
.glass-card-dark {
  background: var(--color-bg-card-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 147, 74, 0.18);
}
.glass-nav {
  background: rgba(7, 7, 10, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Nav */
.desktop-nav-link { color: rgba(255, 255, 255, 0.78); transition: color 0.3s; position: relative; }
.desktop-nav-link:hover, .desktop-nav-link.is-active { color: var(--color-gold-light); }
.desktop-nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px;
  height: 5px;
  background: var(--color-crimson-light);
  transform: translateX(-50%) rotate(45deg);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.status-pill[data-tone="toxin"] .dot { background: var(--color-toxin); box-shadow: 0 0 10px var(--color-toxin); }
.status-pill[data-tone="crimson"] .dot { background: var(--color-crimson-light); box-shadow: 0 0 10px var(--color-crimson-light); }

#mobileMenuDrawer { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; overscroll-behavior: contain; touch-action: none; }
#mobileMenuDrawer.is-open { opacity: 1; pointer-events: auto; }

#backToTop { opacity: 0; pointer-events: none; transform: translateY(24px); transition: all 0.3s ease; }
#backToTop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Section divider: gold hairline + ◆ */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-gold);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.45; }
.divider span { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }

/* Invitation frame corners */
.frame-corners { position: relative; }
.frame-corners::before, .frame-corners::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-gold);
  border-style: solid;
  opacity: 0.7;
  pointer-events: none;
}
.frame-corners::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.frame-corners::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* ◆ list */
.diamond-list li { position: relative; padding-left: 22px; }
.diamond-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  transform: rotate(45deg);
}
.diamond-list li.is-key { border-left: 3px solid var(--color-crimson); padding-left: 30px; }
.diamond-list li.is-key::before { left: 12px; background: var(--color-crimson); }

/* Custom cursor */
.custom-cursor {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--color-crimson-light); border-radius: 50%;
  pointer-events: none; z-index: 99999; transform: translate(-50%, -50%);
}
.cursor-follower {
  position: fixed; top: 0; left: 0; width: 38px; height: 38px;
  border: 1px solid rgba(226, 201, 138, 0.5); border-radius: 50%;
  pointer-events: none; z-index: 99998; transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.cursor-hover .cursor-follower {
  width: 56px; height: 56px;
  border-color: var(--color-crimson-light);
  background: rgba(158, 27, 44, 0.1);
}
@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor, .cursor-follower { display: none !important; }
}

/* Hero */
.hero-scroll-container { height: 560vh; position: relative; } /* 最後の約1.1画面分はタイトル表示で停止 */
.hero-sticky-track {
  position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden;
}
.hero-canvas-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.arena-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(7, 7, 10, 0.95) 100%),
    linear-gradient(to top, rgba(7, 7, 10, 0.75) 0%, transparent 45%);
}
.hero-stage { position: absolute; inset: 0; z-index: 10; will-change: opacity, transform; }
.hero-heading {
  font-family: var(--font-mincho);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 4.2vw, 56px);
}

/* Keyframes */
@keyframes spin-img { to { transform: rotate(360deg); } }
.spin-img { animation: spin-img 16s linear infinite; will-change: transform; }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.spin-rev { animation: spin-rev 3s linear infinite; }
.spin-fast { animation: spin-img 1.6s linear infinite; }

@keyframes sis-fade { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
.sis-fade { animation: sis-fade 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; will-change: transform; }

@keyframes sisf-fade { 0% { opacity: 0.3; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1.02); } }
.sisf-fade { animation: sisf-fade 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate; }

@keyframes zoom3d {
  0%, 40% { transform: perspective(1000px) translateZ(0) scale(1) rotateX(0); }
  50% { transform: perspective(1000px) translateZ(6px) scale(1.04) rotateX(-2deg); }
  60% { transform: perspective(1000px) translateZ(12px) scale(1.08) rotateX(0); }
  70% { transform: perspective(1000px) translateZ(6px) scale(1.04) rotateX(2deg); }
  80%, 100% { transform: perspective(1000px) translateZ(0) scale(1) rotateX(0); }
}
.sis-zoom-3d { animation: zoom3d 4s ease-in-out infinite; transform-style: preserve-3d; will-change: transform; }

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(63, 174, 140, 0.25)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8)); }
  50% { filter: drop-shadow(0 0 26px rgba(63, 174, 140, 0.55)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8)); }
}
.logo-glow { animation: logo-glow 4s ease-in-out infinite; }

/* Curtain reveal (crimson) */
.sis-reveal { position: relative; overflow: hidden; }
.sis-reveal::after {
  content: ''; position: absolute; inset: 0; background: var(--color-crimson);
  transform: translateX(-101%); z-index: 5; pointer-events: none;
}
.sis-reveal.is-revealed::after { animation: curtain-wipe 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
@keyframes curtain-wipe { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(101%); } }
.sis-reveal img { transform: scale(1.15); opacity: 0; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, opacity 0.6s ease 0.55s; }
.sis-reveal.is-revealed img { transform: scale(1); opacity: 1; }

/* Split text */
.sis-text-anime-style-3 { overflow: hidden; }
.sis-text-anime-style-3 .split-phrase { display: inline-block; white-space: nowrap; max-width: 100%; }
.hero-stage-3-inner { position: relative; }
.hero-stage-3-inner::before {
  content: ''; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(7, 7, 10, 0.72) 0%, rgba(7, 7, 10, 0.45) 45%, transparent 72%);
}
.sis-text-anime-style-3 .char-span {
  display: inline-block; opacity: 0; transform: translateY(100%) rotateX(-45deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.sis-text-anime-style-3.is-revealed .char-span { opacity: 1; transform: none; }

.reveal-item { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-item.is-revealed { opacity: 1; transform: none; }

/* Tilt */
.tilt-card { transform-style: preserve-3d; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s; }
.tilt-card:hover { border-color: rgba(210, 57, 79, 0.5); }
.tilt-content { transform: translateZ(30px); }

/* Progress bar */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #9e1b2c, #e2c98a);
  z-index: 100000;
  box-shadow: 0 0 10px rgba(158, 27, 44, 0.7);
}

/* Pre-event steps */
.pre-step { transition: opacity 0.4s; }
.pre-step .done-label { display: none; }
.pre-step.is-done { opacity: 0.45; }
.pre-step.is-done .done-label { display: inline-flex; }
.pre-step .next-dot { display: none; }
.pre-step.is-next { border-color: rgba(210, 57, 79, 0.6) !important; }
.pre-step.is-next .next-dot { display: inline-block; }

/* Day timeline */
.timeline-wrap { position: relative; }
.timeline-track { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: rgba(255, 255, 255, 0.12); }
.timeline-progress {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; margin-left: -0.5px;
  background: linear-gradient(to bottom, #d2394f, #9e1b2c);
  box-shadow: 0 0 12px rgba(210, 57, 79, 0.6);
  transform-origin: top; transform: scaleY(0);
}
.timeline-item .node {
  position: absolute; left: 0; top: 0.55em; width: 15px; height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: #07070a; transform: rotate(45deg) scale(0.6);
  transition: all 0.4s ease;
}
.timeline-item.is-passed .node { background: var(--color-crimson-light); border-color: var(--color-crimson-light); box-shadow: 0 0 12px var(--color-crimson-glow); }
.timeline-item.is-round .node { transform: rotate(45deg) scale(0.85); }

/* Rule stepper */
.rule-step { opacity: 0.4; transition: opacity 0.5s ease, border-color 0.5s ease, background-color 0.5s ease; }
.rule-step.is-active { opacity: 1; border-color: rgba(184, 147, 74, 0.6) !important; background: rgba(184, 147, 74, 0.07); }
.rule-step { cursor: pointer; }
.rule-step:hover:not(.is-active) { opacity: 0.7; }
.rule-step:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
#matchDiagram .dg { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease; transform-box: view-box; }
#matchDiagram .dg.is-dim { opacity: 0.3; }
#matchDiagram .dg .ring { opacity: 0; transition: opacity 0.4s; }
#matchDiagram .dg.is-hl .ring { opacity: 1; }
#matchDiagram [data-show] { opacity: 0; transition: opacity 0.5s ease; }
#matchDiagram [data-show].is-shown { opacity: 1; }

/* Sponsors */
.sponsor-card { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s; }
.sponsor-card:hover { transform: translateY(-6px); border-color: var(--color-crimson) !important; box-shadow: 0 16px 40px rgba(20, 17, 23, 0.12); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sis-reveal img, .sis-text-anime-style-3 .char-span, .reveal-item { opacity: 1 !important; transform: none !important; }
  .timeline-progress { transform: scaleY(1) !important; }
}

/* 見出しは文節の切れ目で改行（対応ブラウザのみ。非対応なら通常の改行） */
.section-title, .hero-heading { word-break: auto-phrase; }

/* チーム戦ルールの図解：スマホでは上部に固定して、下のステップが見える高さに抑える */
@media (max-width: 1023px) {
  .match-diagram-panel { background: rgba(12, 8, 14, 0.96); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6); }
  .match-diagram-panel #matchDiagram { max-height: 28vh; }
  .match-diagram-panel #diagramCaption { margin-top: 0.5rem; min-height: 0; font-size: 12px; line-height: 1.6; }
  .match-diagram-panel #diagramCaption + div { display: none; } /* 凡例はスマホでは省略 */
}

/* ---- FAQ page ---- */
.faq-hero {
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(7, 7, 10, 0.95) 100%),
    linear-gradient(rgba(7, 7, 10, .55), rgba(7, 7, 10, .9)),
    url('../images/final-arena.jpg') center / cover no-repeat;
}
.faq-chip {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  background: var(--color-bg-bone-light);
  border: 1px solid rgba(20, 17, 23, .12);
  transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.faq-chip:hover { border-color: var(--color-crimson); color: var(--color-text-dark); }
.faq-chip[aria-pressed="true"] { background: var(--color-text-dark); color: #fff; border-color: var(--color-text-dark); }
.faq-chip .count { font-family: var(--font-display); color: var(--color-gold); margin-left: 6px; }

.faq-search {
  width: 100%;
  padding: 16px 20px 16px 50px;
  background: var(--color-bg-bone-light);
  border: 1px solid rgba(20, 17, 23, .15);
  color: var(--color-text-dark);
  font-size: 15px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.faq-search:focus { border-color: var(--color-crimson); box-shadow: 0 0 0 3px rgba(158, 27, 44, .12); }

.faq-cat-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--color-text-dark);
  display: flex; align-items: baseline; gap: 14px;
}
.faq-cat-title .num { font-family: var(--font-display); font-size: 14px; color: var(--color-gold); letter-spacing: .2em; }

.faq-item {
  background: var(--color-bg-bone-light);
  border: 1px solid rgba(20, 17, 23, .08);
  border-left: 3px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item:hover { box-shadow: 0 12px 30px rgba(20, 17, 23, .07); }
.faq-item[open] { border-left-color: var(--color-crimson); box-shadow: 0 16px 40px rgba(20, 17, 23, .08); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  gap: 12px;
  align-items: start;
  padding: 22px 22px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--color-crimson); outline-offset: -2px; }
.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-crimson);
}
.faq-question { font-weight: 700; font-size: 16px; line-height: 1.7; color: var(--color-text-dark); }
.faq-toggle { position: relative; width: 24px; height: 24px; margin-top: 2px; }
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute; left: 5px; right: 5px; top: 50%;
  height: 1.5px; background: var(--color-gold); transition: transform .35s;
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }

.faq-answer {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 0 22px 24px;
  animation: faq-open .45s cubic-bezier(.16, 1, .3, 1);
}
.faq-a { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--color-gold); }
.faq-answer-body { border-top: 1px solid rgba(184, 147, 74, .3); padding-top: 16px; color: var(--color-text-muted); font-size: 15px; line-height: 1.9; }
.faq-answer-body p + p { margin-top: .8em; }
.faq-answer-body, .faq-question { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
.faq-answer-body strong { color: var(--color-text-dark); }
.faq-answer-body .note { display: inline-block; margin-top: .4em; padding: 6px 12px; border-left: 3px solid var(--color-crimson); background: rgba(158, 27, 44, .06); color: var(--color-text-dark); font-weight: 700; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

mark.hit { background: rgba(226, 201, 138, .55); color: inherit; padding: 0 2px; }

@media (max-width: 640px) {
  .faq-item summary { grid-template-columns: 26px 1fr 22px; gap: 10px; padding: 18px 16px; }
  .faq-answer { grid-template-columns: 26px 1fr; gap: 10px; padding: 0 16px 20px; }
  .faq-q, .faq-a { font-size: 17px; }
  .faq-question { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .faq-answer { animation: none; } }

/* Gallery lightbox */
dialog.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(7, 7, 10, 0.94);
  color: #fff;
}
dialog.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lightbox-figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox-img { max-width: 90vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox-caption { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--color-gold); }

/* 投稿本文（お知らせ・コラム） */
.post-content { font-size: 1rem; line-height: 2; color: var(--color-ink, #1c1a1f); overflow-wrap: anywhere; }
.post-content > * + * { margin-top: 1.4em; }
.post-content h2 { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 1.5rem; margin-top: 2.4em; padding-left: 0.8em; border-left: 3px solid var(--color-crimson, #b3202f); }
.post-content h3 { font-family: 'Shippori Mincho B1', serif; font-weight: 700; font-size: 1.2rem; margin-top: 2em; }
.post-content a { color: var(--color-crimson, #b3202f); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.post-content blockquote { border-left: 3px solid var(--color-gold, #b8934a); padding-left: 1em; color: rgba(28, 26, 31, 0.7); }
/* 表：枠線・見出し行の色。スマホでは表だけ横にスクロール */
.post-content .wp-block-table, .post-content > table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-content table { width: 100%; border-collapse: collapse; overflow-wrap: normal; font-size: 0.95rem; line-height: 1.7; background: rgba(255, 255, 255, 0.55); }
.post-content th, .post-content td { border: 1px solid rgba(28, 26, 31, 0.15); padding: 0.6em 0.9em; min-width: 4.5em; text-align: left; vertical-align: top; }
.post-content thead th, .post-content thead td { background: #1c1a1f; color: #fff; font-weight: 700; border-color: #1c1a1f; white-space: nowrap; }
.post-content tbody tr:nth-child(even) { background: rgba(28, 26, 31, 0.04); }
.post-content figcaption { margin-top: 0.5em; font-size: 0.8rem; color: rgba(28, 26, 31, 0.6); text-align: center; }

/* ページ送り */
.rsr-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rsr-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 9999px; border: 1px solid rgba(28, 26, 31, 0.2); font-weight: 700; font-size: 14px; }
.rsr-pagination a.page-numbers:hover { border-color: var(--color-crimson, #b3202f); color: var(--color-crimson, #b3202f); }
.rsr-pagination .page-numbers.current { background: var(--color-crimson, #b3202f); border-color: var(--color-crimson, #b3202f); color: #fff; }
.rsr-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
