/* 繝吶繧ｹ險ｭ螳 */
:root {
  /* 蜥碁｢ｨ繧ｰ繝ｪ繝ｼ繝ｳ繧ｫ繝ｩ繝ｼ繝代Ξ繝ヨ */
  --kachi-iro: #2a4234;
  /* 豺ｱ邱托ｼ亥鴻豁ｳ邱托ｼ峨繝ｼ繧ｹ縺ｮ閭梧勹 */
  --nibi-iro: #8aa389;
  /* 驤崎牡繝吶繧ｹ縺ｮ邱代∩ */
  --gold: #dbe4be;
  /* 繧｢繧ｯ繧ｻ繝ｳ繝医き繝ｩ繝ｼ域柑闌ｶ濶ｲ繝ｻ譟ｳ辣､遶ｹ芽ｪｭ縺ｿ繧☆縺輔ｒ驥崎ｦ悶＠縺滓繧九＞濶ｲ */
  --bg-dark: #1a2b21;
  /* 譛繧よ囓縺レ譎ｯ濶ｲ */
  --text-main: #f5faef;
  /* 逋ｽ縺ｫ霑代＞縺悟ｰ代＠邱代′縺九▲縺溘Γ繧､繝ｳ繝く繧ｹ繝 */
  --text-muted: #a8b8a9;
  /* 關ｽ縺｡逹縺◆繝く繧ｹ繝郁牡 */
  --card-bg: rgba(42, 66, 52, 0.6);
  /* 繧ｫ繝ｼ繝峨閭梧勹 */
  --border-color: rgba(189, 199, 155, 0.3);
  /* 譫邱 */

  font-family: 'Zen Kaku Gothic New', sans-serif;
}

h1,
h2,
h3,
.serif {
  font-family: 'Noto Serif JP', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 閭梧勹繝代ち繝ｼ繝ｳ縺ｮ陬�｣ｾ�亥柱邏吶ｄ鮗ｻ縺ｮ闡画ｨ｡讒倥�繧､繝｡繝ｼ繧ｸ�� */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(26, 43, 33, 0.95), rgba(26, 43, 33, 0.95)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
  z-index: -1;
  pointer-events: none;
}

/* 逕ｻ髱｢蛻�ｊ譖ｿ縺亥�騾� */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  min-height: 100vh;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* -------------------------------------
 * 繝ｭ繧ｰ繧､繝ｳ逕ｻ髱｢
 * ------------------------------------- */
#login-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.login-container {
  background: var(--card-bg);
  padding: 4rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo-title {
  font-size: 3rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(189, 199, 155, 0.2);
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

#password-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  color: var(--text-main);
  padding: 0.5rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  transition: all 0.3s ease;
  width: 200px;
  font-family: inherit;
}

#password-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
  width: 240px;
}

#login-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Serif JP', serif;
}

#login-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.error-msg {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-msg.show {
  opacity: 1;
}

/* -------------------------------------
 * 蜈ｱ騾壹�繝�ム繝ｼ繝ｻ繝ｬ繧､繧｢繧ｦ繝�
 * ------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(26, 43, 33, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

nav a:hover,
a.active-link {
  color: var(--gold);
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex: 1;
  width: 100%;
}

.page-title {
  font-size: 2.2rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

/* 繧ｫ繝ｼ繝峨Ξ繧､繧｢繧ｦ繝茨ｼ亥�騾夲ｼ� */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  transition: transform 0.3s ease, background 0.3s ease;
  animation: fadeIn 0.8s ease-out forwards;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(43, 69, 56, 0.8);
}

.card-date {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: 'Noto Serif JP', serif;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 繝ｪ繧ｹ繝医Ξ繧､繧｢繧ｦ繝茨ｼ郁ｪ槫ｽ吝ｸｳ縺ｪ縺ｩ�� */
.list-container {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.voc-item {
  display: flex;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.voc-item:last-child {
  border-bottom: none;
}

.voc-term {
  flex: 0 0 180px;
  color: var(--gold);
  font-weight: bold;
  font-size: 1.1rem;
}

.voc-meaning {
  flex: 1;
  color: var(--text-main);
}

/* 繧ｿ繧､繝�繝ｩ繧､繝ｳ�井ｻ雁ｾ後�莠亥ｮ夲ｼ� */
.timeline-list {
  list-style: none;
  position: relative;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.timeline-date {
  font-family: 'Noto Serif JP', serif;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.timeline-title {
  font-size: 1.2rem;
}

/* 蜷崎ｨ髮�Ξ繧､繧｢繧ｦ繝� */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.quote-card {
  position: relative;
  padding: 3rem 4rem;
  background: linear-gradient(135deg, rgba(27, 46, 36, 0.4), transparent);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
}

.quote-card::before {
  content: '窶�';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-family: serif;
  color: rgba(189, 199, 155, 0.15);
  line-height: 1;
}

.quote-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.quote-author {
  text-align: right;
  color: var(--gold);
  font-size: 1rem;
}

.quote-author::before {
  content: '窶� ';
}

/* 繝壹�繧ｸ荳翫�繝輔ぉ繝ｼ繝峨う繝ｳ繧｢繝九Γ繝ｼ繧ｷ繝ｧ繝ｳ逕ｨ */
.page-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 繝｡繧､繝ｳ繝｡繝九Η繝ｼ逕ｻ髱｢縺ｮ繝懊ち繝ｳ */
.main-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s;
  text-align: center;
}

.menu-card:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-5px);
}

.menu-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Noto Serif JP', serif;
}


footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

/* 繝ｬ繧ｹ繝昴Φ繧ｷ繝門ｯｾ蠢� */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .voc-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .voc-term {
    flex: none;
  }

  .timeline-list::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-item::before {
    left: 16px;
  }
}

/* =====================================
 * 新規追加機能のスタイル群
 * ===================================== */

/* スクロールインジケーター (Scroll / Top) */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  z-index: 1000;
  transition: opacity 0.5s ease;
  cursor: pointer;
  text-decoration: none;
  min-width: 60px;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.scroll-indicator:hover {
  color: #fff;
}

.indicator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease;
}

.indicator-content.fade-out-content {
  opacity: 0;
}

.scroll-indicator .arrow {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

.scroll-indicator.to-top .arrow {
  animation: bounce-up 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@keyframes bounce-up {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

/* メニューカードのディレイフェード表示 */
.menu-delay-1 {
  animation: fadeInDelay 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.menu-delay-2 {
  animation: fadeInDelay 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.menu-delay-3 {
  animation: fadeInDelay 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

.menu-delay-4 {
  animation: fadeInDelay 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.menu-delay-5 {
  animation: fadeInDelay 0.6s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInDelay {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* リンククリック時の画面暗転フェードアウト */
body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* アコーディオン・展開式カード（行事録、語彙帳など共通） */
.expandable-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  cursor: pointer;
  transition: background 0.3s ease;
}

.expandable-card:hover {
  background: rgba(43, 69, 56, 0.8);
}

.expand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expand-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.expandable-card.open .expand-icon {
  transform: rotate(180deg);
}

.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, margin-top 0.4s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.expandable-card.open .expand-content {
  max-height: 500px;
  margin-top: 1rem;
  opacity: 1;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* 絵馬風デザイン（名言集）木目調 */
.ema-card {
  position: relative;
  background:
    linear-gradient(rgba(205, 170, 125, 0.8), rgba(139, 101, 8, 0.8)),
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 15px),
    repeating-linear-gradient(to bottom, transparent 0%, transparent 20px, rgba(0, 0, 0, 0.02) 20px, rgba(0, 0, 0, 0.02) 21px);
  background-color: #d1ab7a;
  border: 3px solid #6b4423;
  padding: 3rem;
  text-align: center;
  clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
  margin-top: 2rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  color: #3b2313;
}

/* 絵馬の紐っぽく見せる丸穴 */
.ema-card::after {
  content: '';
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  background: var(--bg-dark);
  border-radius: 50%;
  border: 2px solid #5a3a1f;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.8);
}

.ema-card .quote-text,
.ema-card .quote-author {
  color: #2b170c;
  font-weight: bold;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
}

/* 桜のアニメーションコンテナ */
.sakura-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  background: radial-gradient(circle at 100% 0%, #ffc0cb, #ffb7c5);
  border-radius: 2px 20px 2px 20px;
  opacity: 0.8;
  filter: drop-shadow(1px 1px 3px rgba(255, 182, 193, 0.5));
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    transform: translate(0, -10px) rotate(0deg) rotateX(0deg) rotateY(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  100% {
    transform: translate(var(--translateX), 110vh) rotate(var(--rotate)) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    opacity: 0;
  }
}

/* おみくじのアニメーションとレイアウト */
.omikuji-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

/* おみくじ箱：さらに大きく、木目調に */
.omikuji-box {
  width: 160px;
  height: 350px;
  background:
    linear-gradient(rgba(107, 68, 35, 0.9), rgba(59, 35, 19, 0.9)),
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 2px, transparent 2px, transparent 8px);
  background-color: #5a3a1f;
  border: 4px solid #dbb381;
  position: relative;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.8), inset 10px 10px 30px rgba(255, 255, 255, 0.1);
}

.omikuji-box::before {
  content: '御神籤';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: #111;
  font-family: 'Noto Serif JP', serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.5em;
  white-space: nowrap;
  text-shadow:
    1px 1px 0px rgba(255, 255, 255, 0.2),
    -1px -1px 0px rgba(0, 0, 0, 0.8);
}

.omikuji-box.shake {
  animation: shakeBox 0.6s infinite;
  pointer-events: none;
}

@keyframes shakeBox {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-12deg) translateY(-20px);
    text-shadow: none;
  }

  50% {
    transform: rotate(0deg) translateY(0);
  }

  75% {
    transform: rotate(12deg) translateY(-20px);
  }

  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.omikuji-stick {
  width: 16px;
  height: 180px;
  background: #e6c59c;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  transition: top 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 2px solid #b88a53;
  border-radius: 4px;
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.4), inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

.omikuji-box.drawn .omikuji-stick {
  top: -150px;
}

/* キャプチャ保存用のラッパーデザイン */
.capture-wrapper {
  background: var(--bg-dark);
  /* 保存時に背景が透過しないように暗色指定 */
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(189, 199, 155, 0.1);
}

.omikuji-date-display {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.omikuji-result {
  margin-top: 4rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
  scroll-margin-top: 120px; /* ヘッダーの被りを防ぐための余白 */
}

.omikuji-result.show {
  opacity: 1;
  transform: scale(1);
  display: block;
}

.omikuji-rank {
  font-size: 4rem;
  color: var(--gold);
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(189, 199, 155, 0.4);
}

/* --- 神社風おみくじデザイン (ブロックベース) --- */
.shrine-strip {
  background-color: #f7f3e8 !important; /* 和紙風のクリーム色 */
  color: #2c2724 !important; /* 墨色 */
  box-sizing: border-box !important;
  padding: 40px 30px !important;
  width: 280px; /* 固定幅を持たせることでhtml2canvasでのズレを防ぐ */
  height: auto; /* キャプチャ時の余白切れを防ぐため明示 */
  margin: 0 auto;
  font-family: 'Noto Serif JP', serif;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 0 1px #2c2724, 0 4px 15px rgba(0,0,0,0.3) !important; /* outlineの代わりに内側シャドウで黒枠線を描画（キャプチャ切れ対策） */
  border: 4px solid #f7f3e8 !important; /* capture時の外枠の余白ごまかし用に背景色と同色 */
}

.strip-number-horizontal {
  font-size: 1.2rem;
  letter-spacing: 5px;
  margin-bottom: 25px;
  text-align: center;
  width: 100%;
}

.strip-rank-container {
  display: flex;
  justify-content: center;
  border-left: 1px solid #2c2724;
  border-right: 1px solid #2c2724;
  padding: 10px 40px; /* 上下パディングを追加して縦線を長く、左右余白を広めにする */
  margin-bottom: 30px;
}

.strip-rank-vertical {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 5px;
  color: #2c2724 !important;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.strip-desc-vertical {
  font-size: 0.95rem;
  line-height: 2em;
  text-align: left;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 190px; /* 約11~12文字で折り返すように高さを縮め、画像の比率に合わせる */
  margin: 0 auto;
  margin-bottom: 40px; /* 本文と区切り線の間隔を広げる */
}

.strip-horizontal-divider {
  border: none;
  border-top: 1px solid #2c2724;
  width: 100%;
  margin-bottom: 25px;
}

.strip-bottom-section-horizontal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px; /* 行間 */
}

.detail-item-horizontal {
  font-size: 0.9rem;
  line-height: 1.4;
}

.detail-label {
  font-weight: 900;
}

/* --- 保存処理中ローダー --- */
.save-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 43, 33, 0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.save-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(219, 228, 190, 0.3); /* muted gold */
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- ログイン画面の筆文字風背景設定 (CSSオンリー) --- */
.login-bg-slash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030303; /* 深い漆黒 */
  z-index: -2;
  overflow: hidden;
}

.login-bg-slash::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* 金色の重なるグラデーションで筆の力強い運びを表現 */
  background: 
    linear-gradient(135deg, 
      transparent 45%, 
      #8c6b14 47%, 
      #f8d568 49%, 
      #d4af37 51%, 
      #553a00 54%, 
      transparent 57%),
    linear-gradient(130deg, 
      transparent 44%, 
      #ffdf73 48%, 
      #aa7700 52%, 
      transparent 56%);
  /* ノイズのような細かいストライプで毛先の質感をエミュレート */
  -webkit-mask-image: repeating-linear-gradient(
    135deg, 
    #000 0px, 
    rgba(0,0,0,0.9) 2px, 
    transparent 3px, 
    #000 4px, 
    rgba(0,0,0,0.5) 6px, 
    transparent 8px
  );
  mask-image: repeating-linear-gradient(
    135deg, 
    #000 0px, 
    rgba(0,0,0,0.9) 2px, 
    transparent 3px, 
    #000 4px, 
    rgba(0,0,0,0.5) 6px, 
    transparent 8px
  );
  opacity: 1;
}