@charset "utf-8";

:root {
  --gold: #D4AF37;
  --gold-gradient: linear-gradient(45deg, #B67B03 0%, #DAA520 50%, #FDF5E6 100%);
}

/* =========================================
   4. ヘッダーデザイン (Result Header)
   ========================================= */

.result-header-group {
  text-align: center;
  margin: 50px auto;
  padding: 40px 20px;
  position: relative;
  max-width: 600px;
  background: radial-gradient(
    ellipse at center, 
    rgba(10, 7, 57, 0.9) 0%, 
    rgba(10, 7, 57, 0.6) 60%, 
    rgba(10, 7, 57, 0) 100%
  );
}

.result-header-group::before,
.result-header-group::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.result-header-group::before { top: 0; }
.result-header-group::after { bottom: 0; }

.result-header-group h2{
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  line-height: 1.4;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.result-header-group h2 .honorific {
  display: block;
  font-size: 1.8rem;
  color: var(--gold);
  margin-top: 5px;
  font-weight: normal;
  letter-spacing: 0.3em;
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.result-header-group p{
  color: #fff;
}

.result-header-subtitle {
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.4em;
  margin-bottom: 15px !important;
  text-transform: uppercase;
  opacity: 0.7;
}

.header-info-box {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  font-size: 1.0rem;
  color: #e0d4ff;
  letter-spacing: 0.1em;
}

.header-info-box .label {
  font-size: 0.8rem;
  color: #888;
  margin-right: 8px;
  vertical-align: middle;
}

/* =========================================
   文章・章デザイン (Chapter Styles)
   ========================================= */

h3.chapter-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.15em;
  line-height: 1.4;
  padding: 25px 20px;
  margin: 10px 0 40px 0;
  position: relative;
  filter: drop-shadow(0 5px 10px rgba(60, 40, 20, 0.4));
  --corner-r: 20px;
  -webkit-mask-image: 
      radial-gradient(circle at top left, transparent var(--corner-r), black 0),
      radial-gradient(circle at top right, transparent var(--corner-r), black 0),
      radial-gradient(circle at bottom left, transparent var(--corner-r), black 0),
      radial-gradient(circle at bottom right, transparent var(--corner-r), black 0);
  mask-image: 
      radial-gradient(circle at top left, transparent var(--corner-r), black 0),
      radial-gradient(circle at top right, transparent var(--corner-r), black 0),
      radial-gradient(circle at bottom left, transparent var(--corner-r), black 0),
      radial-gradient(circle at bottom right, transparent var(--corner-r), black 0);
  -webkit-mask-size: 51% 51%;
  mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top left, top right, bottom left, bottom right;
  mask-position: top left, top right, bottom left, bottom right;
  --b-color: #c5a059;
  --bg-color-top: #4b3621;
  --bg-color-bot: #2a1b15;
  background: 
      radial-gradient(circle at top left, transparent 20px, var(--b-color) 20px, var(--b-color) 23px, transparent 23px, transparent 25px, var(--b-color) 25px, var(--b-color) 26px, transparent 26px),
      radial-gradient(circle at top right, transparent 20px, var(--b-color) 20px, var(--b-color) 23px, transparent 23px, transparent 25px, var(--b-color) 25px, var(--b-color) 26px, transparent 26px),
      radial-gradient(circle at bottom left, transparent 20px, var(--b-color) 20px, var(--b-color) 23px, transparent 23px, transparent 25px, var(--b-color) 25px, var(--b-color) 26px, transparent 26px),
      radial-gradient(circle at bottom right, transparent 20px, var(--b-color) 20px, var(--b-color) 23px, transparent 23px, transparent 25px, var(--b-color) 25px, var(--b-color) 26px, transparent 26px),
      linear-gradient(to bottom, var(--b-color) 3px, transparent 3px, transparent 5px, var(--b-color) 5px, var(--b-color) 6px, transparent 6px),
      linear-gradient(to top, var(--b-color) 3px, transparent 3px, transparent 5px, var(--b-color) 5px, var(--b-color) 6px, transparent 6px),
      linear-gradient(to right, var(--b-color) 3px, transparent 3px, transparent 5px, var(--b-color) 5px, var(--b-color) 6px, transparent 6px),
      linear-gradient(to left, var(--b-color) 3px, transparent 3px, transparent 5px, var(--b-color) 5px, var(--b-color) 6px, transparent 6px),
      linear-gradient(to bottom, var(--bg-color-top), var(--bg-color-bot));
  background-size: 
      51% 51%, 51% 51%, 51% 51%, 51% 51%, 
      100% 26px, 100% 26px, 26px 100%, 26px 100%, 
      100% 100%;
  background-repeat: no-repeat;
  background-position: 
      top left, top right, bottom left, bottom right, 
      top center, bottom center, left center, right center, 
      center center;
}

h3.chapter-title .ttl-number {
  display: block;
  font-family: "Times New Roman", "Shippori Mincho", serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: normal;
  line-height: 1.2;
  font-style: italic;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px #000, 0 0 15px rgba(212, 175, 55, 0.5);
}

h3.chapter-title::after {
  content: '❖';
  display: block;
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #c5a059;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

/* =========================================
   7. ハイライト・キーワードボックス
   ========================================= */

.keyword-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 0 4px 4px 0;
  font-size: 1.1rem;
  color: var(--gold);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  border-left: 3px solid var(--gold);
  background: linear-gradient(to right, rgba(255, 215, 0, 0.15), transparent);
}

.keyword-box span {
  font-size: 0.8rem;
}

.keyword-box::before {
  content: '';
  position: absolute;
  top: 50%; left: -4.5px;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

.highlight-box,
.life-stage--normal,
.life-stage--highlight{
  background: linear-gradient(135deg, rgba(20, 15, 30, 0.8), rgba(40, 30, 50, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.highlight-box.deep-green { border-left-color: #2e8b57; }
.highlight-box.deep-blue { border-left-color: #4682b4; }
.highlight-box.deep-gold { border-left-color: #d4af37; }


/* =========================================
   6章：ライフステージ・カードデザイン
   ========================================= */

.life-stage--highlight {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.6));
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.05);
  color: #fff;
}

.life-stage--highlight::after {
  content: '✦';
  position: absolute;
  top: 15px; right: 15px;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.8;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.life-stage--normal h5,
.life-stage--highlight h5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-radius: 0 4px 4px 0;
}

.life-stage--normal h5 {
  color: #e0e0e0;
  border-bottom: 1px dashed #e0e0e0;
}

.life-stage--highlight h5 {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  border-bottom: 1px dashed var(--gold);
}

.life-stage--normal h5 .eng-title,
.life-stage--highlight h5 .eng-title {
  font-size: 1.2rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

.life-stage--normal .chapter-sub-title,
.life-stage--highlight .chapter-sub-title {
  font-weight: normal;
  letter-spacing: 0.15em;
  margin: 5px 0 15px 0;
  padding: 4px 0 4px 12px;
  position: relative;
  line-height: 1.4;
  border-radius: 0 2px 2px 0;
}

.life-stage--normal .chapter-sub-title {
  color: #ccc;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.life-stage--highlight .chapter-sub-title {
  color: var(--gold);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  border-left: 3px solid var(--gold);
  background: linear-gradient(to right, rgba(255, 215, 0, 0.15), transparent);
}

.life-stage--highlight .chapter-sub-title::before {
  content: '';
  position: absolute;
  top: 50%; left: -4.5px;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

/* 天中殺の年強調（赤背景） */
.life-stage--normal span[style*='color:#ff6b6b'] {
  background: rgba(255, 0, 0, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* =========================================
   ゴールドボックス
   ========================================= */

.gold-box {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.4));
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1), 0 0 15px rgba(255, 215, 0, 0.3);
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  margin: 20px 0;
}

.gold-box h5 {
  color: var(--gold);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  padding-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gold-box p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* =========================================
   メッセージボックス
   ========================================= */

.final-message-box {
  position: relative;
  background: linear-gradient(to bottom, #fffcf5, #f2e6d8);
  border: 1px solid #d4af37;
  border-radius: 5px;
  padding: 55px 35px 45px;
  margin-top: 50px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 240, 200, 0.5);
  text-align: center;
  color: #3e2b1f;
}

.final-message-box::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  pointer-events: none;
  border-radius: 3px;
}

.final-message-box::after {
  content: '⚜️';
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #b8860b;
}

.final-message-box h5 {
  color: #b8860b;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin: 10px 0 25px;
  display: inline-block;
  border-bottom: 1px solid rgba(184, 134, 11, 0.4);
  padding-bottom: 10px;
}

.final-message-box p {
  color: #4b3621;
  line-height: 2.2;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.final-message-box strong {
  color: #8b0000;
  background: linear-gradient(transparent 70%, rgba(255, 215, 0, 0.3) 70%);
}

.final-message-box h4.chapter-section-title {
  color: #8b5a00 !important;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  border-left: 5px solid #b8860b;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  
  padding: 10px 15px;
  margin: 35px 0 20px;
  border-radius: 0 4px 4px 0;
  text-align: left;
}

.final-message-box h4.chapter-section-title::before {
  content: '✦';
  display: inline-block;
  margin-right: 10px;
  font-size: 1.1rem;
  color: #b8860b;
}

@media (max-width: 600px) {
  .final-message-box h4.chapter-section-title {
    font-size: 1.0rem;
    margin: 30px -15px 15px;
    padding-left: 20px;
  }
}

.shion-signature {
  margin-top: 60px;
  text-align: right;
  font-size: 1.1rem;
  color: #b8860b;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.shion-signature::before {
  content: '―';
  margin-right: 12px;
  color: #b8860b;
  opacity: 0.6;
}

/* =========================================
   5. 命式表エリア
   ========================================= */

.four-pillars-wrapper {
  margin: 40px auto 60px auto;
  width: 95%;
  max-width: 600px;
  padding: 40px 20px;
  position: relative;
  background: radial-gradient(circle at center, #2e1a47, #0d0515 80%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  outline: 4px double #8a6d3b;
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 
    0 0 20px rgba(0, 0, 0, 0.8),
    inset 0 0 50px rgba(0, 0, 0, 0.9);
}

.four-pillars-wrapper::after {
  content: '';
  position: absolute;
  top: -8px; bottom: -8px; left: -8px; right: -8px;
  background:
    linear-gradient(to right,  var(--gold) 2px, transparent 2px) 0 0,
    linear-gradient(to bottom, var(--gold) 2px, transparent 2px) 0 0,
    linear-gradient(to left,   var(--gold) 2px, transparent 2px) 100% 0,
    linear-gradient(to bottom, var(--gold) 2px, transparent 2px) 100% 0,
    linear-gradient(to right,  var(--gold) 2px, transparent 2px) 0 100%,
    linear-gradient(to top,    var(--gold) 2px, transparent 2px) 0 100%,
    linear-gradient(to left,   var(--gold) 2px, transparent 2px) 100% 100%,
    linear-gradient(to top,    var(--gold) 2px, transparent 2px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.fortune-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  color: #e0d4ff;
  text-align: center;
}

.fortune-table th {
  color: #a89078;
  font-weight: normal;
  font-size: 0.9rem;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fortune-table td {
  padding: 15px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.fortune-table th.fortune-table__th--day {
  color: var(--gold);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  border-bottom: 1px solid var(--gold);
}

.fortune-table__th--vertical {
  vertical-align: middle;
  padding: 10px 2px !important;
  white-space: nowrap;
  width: 30px;
  min-width: 30px;
  max-width: 40px;
  box-sizing: border-box;
}

.fortune-table__th--vertical span {
  display: inline-block;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.fortune-energy {
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: 0.1em;
}

.center-star-text {
  font-size: 4rem;
  line-height: 1.2;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  margin: 15px 0;
}

.ten-gods-section {
  text-align: center;
}

.ten-gods-section .text-sub {
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* =========================================
   10. 人体星図（Body Map）
   ========================================= */

.body-map-section {
  margin: 40px auto;
  max-width: 500px;
}

.body-map-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  background: radial-gradient(circle, rgba(60, 20, 80, 0.6), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
}

.bm-cell {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 15px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  transition: transform 0.3s ease;
}

.bm-label {
  font-size: 0.7rem;
  color: #aaa;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.bm-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}

.bm-chest {
  border: 2px solid var(--gold);
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.05);
}

.bm-chest .bm-label { color: var(--gold); }
.bm-chest .bm-value {
  font-size: 1.3rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.bm-energy {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(186, 85, 211, 0.3);
}

.bm-energy .bm-label { color: #d8c0ff; }
.bm-energy .bm-value { font-size: 0.95rem; color: #e0d4ff; }

.bm-empty {
  visibility: hidden;
}

@media (max-width: 400px) {
  .body-map-container { gap: 5px; padding: 10px; }
  .bm-cell { min-height: 70px; }
  .bm-value { font-size: 0.95rem; }
  .bm-chest .bm-value { font-size: 1.1rem; }
}

/* =========================================
   魂の構成図（構造図）
   ========================================= */

.structure-diagram-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
}

.structure-title {
  text-align: center;
  font-size: 1.1rem;
  color: #e0d4ff;
  margin-bottom: 25px;
  padding-bottom: 10px;
  position: relative;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent) bottom / 100% 1px no-repeat;
}

.structure-title::after {
  content: '◆';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.8rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.structure-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.struct-box {
  flex: 1;
  background: #fff;
  color: #333;
  padding: 12px 5px;
  border-radius: 4px;
  min-width: 80px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.struct-box.highlight {
  border: 2px solid var(--gold);
  transform: scale(1.05);
  z-index: 1;
}

.struct-label {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 5px;
}

.struct-value {
  font-size: 1.3rem;
  font-weight: bold;
}

.struct-value.gold-text {
  color: #b8860b;
}

.struct-sub {
  font-size: 0.6rem;
  color: #888;
}

.struct-arrow {
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left: 14px solid var(--gold);
  margin: 0 8px;
}

.struct-desc {
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 20px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .structure-flow { flex-direction: column; }
  .struct-box { width: 100%; max-width: 300px; }
  .struct-arrow {
    border: 14px solid transparent;
    border-top-color: var(--gold);
    margin: 10px 0;
  }
}
/* =========================================
   用語解説 (Term Glossary)
   ========================================= */

.term-glossary {
  margin-top: 50px;
  background: rgba(15, 10, 25, 0.6);
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 6px;
  padding: 40px 25px 30px 25px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.term-glossary::before {
  content: '📖';
  position: absolute;
  top: -18px; left: 20px;
  font-size: 2rem;
  background: #2a1b15;
  padding: 0 10px;
  border-radius: 4px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(184, 134, 11, 0.4);
}

.term-glossary h4 {
  text-align: center;
  color: #d4af37;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.1em;
}

/* =========================================
   五行バランスグラフ
   ========================================= */

.elements-chart-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.5),
    0 0 20px rgba(218, 165, 32, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

.element-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.element-label {
  width: 30px;
  font-weight: normal;
  color: #e0d4ff;
  text-shadow: 0 0 5px rgba(224, 212, 255, 0.3);
}

.element-bar-bg {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  height: 10px;
  border-radius: 5px;
  margin: 0 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.element-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
  position: relative;
}

.element-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 5px 5px 0 0;
}

.el-wood { background: linear-gradient(to right, #006400, #50c878); box-shadow: 0 0 8px rgba(80, 200, 120, 0.5); }
.el-fire { background: linear-gradient(to right, #8b0000, #ff4500); box-shadow: 0 0 8px rgba(255, 69, 0, 0.5); }
.el-earth { background: linear-gradient(to right, #8b4500, var(--gold)); box-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
.el-metal { background: linear-gradient(to right, #696969, #e0e0e0); box-shadow: 0 0 8px rgba(224, 224, 224, 0.5); }
.el-water { background: linear-gradient(to right, #00008b, #1e90ff); box-shadow: 0 0 8px rgba(30, 144, 255, 0.5); }

.element-count {
  width: 25px;
  text-align: right;
  font-family: "Times New Roman", serif;
  color: var(--gold);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* =========================================
   15. 西の星・ラッキーアイテム等
   ========================================= */

.keyword-list {
  list-style: none;
  padding: 0;
  margin: 2em 0;
}

.keyword-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(214, 165, 186, 0.4);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.keyword-list li:last-child { border-bottom: none; }

.keyword-list li::before {
  content: '';
  position: absolute;
  left: 5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px; height: 6px;
  background-color: var(--gold);
  box-shadow: 0 0 4px rgba(214, 165, 186, 0.6);
}

.lucky-grid {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
}

.lucky-item {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.lucky-item h5 {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.lucky-item p { margin: 0; color: #fff; font-weight: 600; }

@media (max-width: 600px) {
  .health-grid, .lucky-grid { flex-direction: column; gap: 15px; }
}

/* =========================================
   16. 天中殺 (Void Period)
   ========================================= */

.void-star-text {
  color: #b39ddb;
  text-shadow: 0 0 15px #7e57c2;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 15px 0;
  animation: floating 3s ease-in-out infinite;
}

.void-period-box {
  background: linear-gradient(135deg, rgba(75, 40, 100, 0.5), rgba(40, 20, 60, 0.7));
  border: 1px solid rgba(179, 157, 219, 0.5);
  border-radius: 8px;
  padding: 25px 20px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.void-period-box::before {
  content: '✦  .  * .  ✦';
  position: absolute;
  top: -10px; right: -10px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
  transform: rotate(15deg);
  pointer-events: none;
}

.void-period-title {
  color: #d1c4e9;
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed rgba(179, 157, 219, 0.4);
  padding-bottom: 5px;
  text-shadow: 0 0 5px rgba(179, 157, 219, 0.5);
}

.void-period-title .icon {
  font-size: 1.4rem;
  margin-right: 8px;
}

.void-period-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.void-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.void-item .label {
  color: #ccc;
  margin-bottom: 5px;
}

.void-item .value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(179, 157, 219, 0.5);
}

.void-item .value small {
  font-size: 0.9rem;
  font-weight: normal;
  color: #aaa;
  margin: 0 3px;
}

.void-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #9fa8da;
  font-style: italic;
}

@media (max-width: 600px) {
  .void-period-grid { flex-direction: column; gap: 20px; }
}

/* =========================================
   17. エネルギーグラフ & スタミナ診断
   ========================================= */

.energy-graph-box {
  margin: 40px 0;
  padding: 35px 20px 25px 20px;
  background: rgba(20, 10, 30, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.5),
    0 0 20px rgba(218, 165, 32, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.graph-flex {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 240px;
  padding-bottom: 10px;
  margin-bottom: 15px;
  position: relative;
}

.graph-column {
  width: 30%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.graph-label-age {
  margin-bottom: auto;
  font-size: 0.75rem;
  color: #ccc;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.graph-column--middle .graph-label-age {
  color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(184, 134, 11, 0.25));
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  font-weight: bold;
  transform: translateY(-2px);
}

.energy-bar {
  width: 36px;
  margin: 15px auto 0 auto;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 1s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.bar-value {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  font-family: "Times New Roman", serif;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.energy-bar--early {
  background: linear-gradient(to top, #4b0082, #8a2be2);
  border: 1px solid rgba(138, 43, 226, 0.5);
}

.energy-bar--middle {
  background: linear-gradient(to top, #b8860b, var(--gold));
  border: 1px solid #fffacd;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.energy-bar--late {
  background: linear-gradient(to top, #006400, #3cb371);
  border: 1px solid rgba(60, 179, 113, 0.5);
}

.graph-label-star {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
  height: 1.5em;
}

.graph-column--middle .graph-label-star {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.graph-arrow {
  align-self: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  margin-top: 30px;
}

.stamina-box {
  margin-top: 40px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stamina-header {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 5px;
}

.stamina-score-area {
  margin-right: 25px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stamina-number {
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.stamina-max {
  color: #888;
  font-weight: normal;
  display: inline;
  margin-top: 0;
}

.stamina-type-title {
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .graph-label-age { font-size: 0.65rem; padding: 4px 8px; }
  .stamina-header { flex-direction: column; text-align: center; }
  .stamina-score-area { margin-right: 0; margin-bottom: 15px; }
}

/* =========================================
   18. Cross Analysis Box (本質×今年)
   ========================================= */

.cross-tags-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 15px 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.cross-analysis-box .tag-black {
  background-color: #000;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.9em;
  font-weight: normal;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
}

.cross-analysis-box .tag-gold {
  background: linear-gradient(135deg, #b8860b, var(--gold));
  color: #000;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.9em;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 0.05em;
}

.cross-analysis-box .tag-separator {
  color: #666;
  padding: 0 5px;
  opacity: 0.7;
}

@media screen and (max-width: 480px) {
  .cross-analysis-box .cross-tags-wrapper { flex-direction: column; gap: 8px; }
  .cross-analysis-box .tag-separator { transform: rotate(90deg); font-size: 0.8em; margin: 2px 0; }
}

/* =========================================
   22. 無料鑑定用スタイル (Free Result Extended)
   ========================================= */

.nature-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 5px 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  text-align: center;
  line-height: 1.7;
}

/* ロック演出エリア */

.locked-content-area {
  position: relative;
  margin-top: 30px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.blurred-list {
  filter: blur(5px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.blur-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

.lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  background: rgba(20, 10, 30, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gold);
  width: 90%;
  max-width: 400px;
  backdrop-filter: blur(4px);
}

.lock-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.lock-text {
  font-weight: bold;
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* --- 高級感のある金額表示エリア（黒背景） --- */
.price-offer-section.dark-luxury {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 背景：深い黒からグレーへのグラデーション */
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
    /* 枠線：落ち着いたゴールド */
    border: 1px solid #c5a059; 
    /* 影：ゴールドの淡い光彩を持たせる */
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.2); 
    padding: 25px;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 4px; /* 角丸は小さめにしてシャープに */
    gap: 30px;
    position: relative;
    overflow: hidden;
}

/* 光の反射エフェクト（装飾） */
.price-offer-section.dark-luxury::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* 左側：画像エリア */
.price-img-col {
    width: 35%;
    flex-shrink: 0;
    z-index: 1;
}

.price-img-col img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #444; /* 画像の境界線 */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5); /* 深い影 */
}

/* 右側：テキストエリア */
.price-text-col {
    flex: 1;
    text-align: left;
    z-index: 1;
}

/* テキスト装飾 */
p.offer-target {
    font-size: 15px;
    color: #c5a059; /* ゴールド */
    margin-bottom: 8px;
    padding-bottom: 0;
    font-weight: bold;
    letter-spacing: 0.05em;
    font-family: serif; /* 明朝体 */
}

.offer-product-name {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #fff; /* 白文字 */
    font-family: serif; /* 明朝体 */
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3); /* 薄いゴールドの下線 */
    letter-spacing: 0.1em;
}

.offer-price {
    font-size: 32px;
    font-weight: bold;
    color: #fff; /* 価格は白ではっきりと */
    margin: 0;
    line-height: 1;
    font-family: sans-serif; /* 数字は見やすいゴシック系 */
}

.offer-price .currency {
    font-size: 16px;
    margin-left: 2px;
    font-weight: normal;
}

.tax-label {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .price-offer-section.dark-luxury {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .price-img-col {
        width: 60%;
        margin: 0 auto;
    }

    .price-text-col {
        text-align: center;
    }
    
    .offer-product-name {
        font-size: 20px;
    }
    
    .offer-price {
        font-size: 28px;
    }
}
/* 追加：値上げ示唆の注釈テキスト */
.price-note {
  font-size: 0.8rem;       /* 小さめの文字 */
  color: #a89078;          /* 少し暗めのゴールド/ベージュで控えめに */
  margin-top: 15px;        /* 価格との余白 */
  line-height: 1.5;
  opacity: 0.9;
  font-weight: normal;
  letter-spacing: 0.05em;
  font-family: "Shippori Mincho", serif; /* 明朝体で上品に */
}

/* スマホ表示時の調整 */
@media (max-width: 600px) {
  .price-note {
    font-size: 0.75rem;
    text-align: left; /* スマホでも読みやすく左寄せ、または center お好みで */
    display: inline-block;
  }
}

/* =========================================
   23. LP風販売セクション (Upsell LP Style - Premium Ver.)
   ========================================= */

/* チェックリストセクション：ガラスモーフィズム風 */
.lp-check-section {
  background: rgba(255, 255, 255, 0.05); /* 半透明 */
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.5),
    0 0 20px rgba(218, 165, 32, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

.lp-check-section h4 {
  text-align: center;
  color: #d4af37;
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* 章プレビューリスト */

.chapter-preview dl dt {
  color: #d8c0ff;
  font-weight: bold;
  margin-top: 20px;
  border-left: 3px solid #b39ddb;
  padding-left: 10px;
  background: linear-gradient(to right, rgba(179, 157, 219, 0.1), transparent);
}

.chapter-preview dl dd {
  margin: 8px 0 0 0;
  padding-left: 15px;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
}

/* ボタンを中央寄せする外枠 */
.btn-area {
    text-align: center;
    margin: 40px 0; /* 少し余白を広げてボタンを主役に */
}

.btn-area {
    text-align: center;
    margin: 40px 0;
}

a.cta-btn {
    display: inline-flex !important;
    flex-direction: column;          /* 縦並びにする */
    align-items: center;             /* 中央揃え */
    justify-content: center;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    min-width: 300px;
    border-radius: 50px;
    color: #735422;
    font-weight: bold;
    font-size: 19px;
    letter-spacing: 0.05em;
    background: linear-gradient(to bottom, #fffdf2 0%, #f3e2a9 100%);
    border: 1px solid #eac87e;
    border-bottom: 4px solid #c9a050;
    box-shadow: 0 5px 15px rgba(201, 160, 80, 0.3), inset 0 1px 0 #fff;
    transition: all 0.3s ease;
    line-height: 1.3;                /* 行間を少し詰める */
    padding: 12px 40px;              /* 上下の余白を少し調整 */
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 60%
    );
    transform: rotate(30deg);
    animation: shine-effect 3.5s infinite;
}

@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* 上部の補足テキスト（使い回しではない〜） */
.cta-sub {
    font-size: 0.8em;               /* メインより小さく */
    font-weight: normal;             /* 太字にしない */
    margin-bottom: 5px;              /* 下との隙間 */
    opacity: 0.9;                    /* 少しだけ色を抑える */
    letter-spacing: 0.05em;
    color: #735422;                  /* 既存のボタン文字色に合わせる */
    white-space: nowrap;             /* 改行させない（スマホで崩れる場合は削除可） */
}

/* メインテキスト（運命鑑定書を手に入れる） */
.cta-main {
    font-size: 1.1em;
    font-weight: bold;
}

/* スマホ表示時の微調整 */
@media (max-width: 600px) {
    .cta-sub {
        white-space: normal; /* 必要に応じて改行を許可 */
    }
}

/* =========================================
   目次（TOC）用スタイル
   ========================================= */

/* 1. ハンバーガーボタン (右下固定) */
.toc-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8); /* 背景：濃い半透明の黒 */
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: none; /* 初期状態は非表示（JSで表示制御） */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s;
}

.toc-fab:hover {
    transform: scale(1.1);
    background: #000;
}

.toc-fab span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff; /* ハンバーガーの線：白 */
    margin: 3px 0;
    transition: 0.3s;
}

/* 2. モーダル全体（初期状態は隠す） */
.toc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* アクティブ時の表示切り替え */
.toc-modal.active {
    visibility: visible;
    opacity: 1;
}

/* 3. 背景 (半透明) */
.toc-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 60%の黒 */
    backdrop-filter: blur(3px); /* 背景を少しぼかす */
}

/* 4. 目次コンテンツエリア（中央配置） */
.toc-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: #fff; /* 目次自体の背景：白 */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow-y: auto;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s;
}

.toc-modal.active .toc-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.toc-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}

.toc-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 5px;
}
.toc-close:hover {
    color: #333;
}

/* 6. 目次リストのデザイン */
#toc-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
}
#toc-list li:last-child {
    border-bottom: none;
}

#toc-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 10px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

#toc-list a:hover {
    background: #f9f9f9;
    color: #000;
    border-left-color: #e65c8a; /* サイトのテーマカラー（ピンク系）に合わせる */
}