@import url("hub-cta.css?v=20260721h");

body.board-mode {
  overflow-x: clip;
}

body.board-mode .page {
  width: min(94vw, 440px);
  max-width: 440px;
}

body.daneki-result-page {
  overflow-x: clip;
}

body.daneki-result-page .page {
  width: min(94vw, 440px);
  max-width: 440px;
}

body.daneki-result-page .board-panel {
  display: block;
  opacity: 1;
}

body.daneki-result-page .reading-frame-wrap {
  margin-bottom: 0;
  position: relative;
}

.daneki-recast-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 28px 0;
  padding: 0 16px;
  box-sizing: border-box;
}

/* もう一度占うボタンが凡例の直前に入るため、凡例側の上マージンを打ち消して
   ボタンの上下余白を均等に見せる */
body.daneki-result-page .page > .daneki-recast-cta ~ .daneki-legend {
  margin-top: 0;
}

.daneki-recast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 15px 34px;
  border: none;
  border-radius: 8px;
  background: #6e9a96;
  color: #fffaf5;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.daneki-recast:hover,
.daneki-recast:focus-visible {
  opacity: 0.88;
}

.daneki-recast:active {
  opacity: 0.88;
}

.daneki-recast:disabled {
  cursor: wait;
  opacity: 0.72;
}

.daneki-recast-casting {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  background: #faf6f0;
}

.daneki-recast-casting[hidden] {
  display: none;
}

.daneki-recast-casting__dots {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6e9a96;
}

.daneki-recast-casting__dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  transform: scale(0.9);
  animation: daneki-recast-dot 1.35s ease-in-out infinite;
}

.daneki-recast-casting__dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.daneki-recast-casting__dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes daneki-recast-dot {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.88);
  }

  45% {
    opacity: 1;
    transform: scale(1);
  }
}

body.daneki-gua-page .tarot-page-head__inner {
  justify-content: space-between;
}

body.daneki-gua-page .daneki-result-view.share-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.daneki-gua-page .daneki-result-view.share-capture .reading-result-head {
  width: 100%;
  margin-top: 0;
  margin-bottom: 8px;
}

body.daneki-gua-page .daneki-result-view.share-capture .reading-result__title {
  margin-top: -2px;
  margin-bottom: 4px;
}

body.daneki-gua-page .daneki-result-view__board {
  margin-top: 0;
  max-width: 320px;
}

body.daneki-gua-page .daneki-result-view__board-scaler {
  max-width: 320px;
  --frame-board-scale: 0.82;
}

@media (min-width: 600px) {
  body.daneki-gua-page .daneki-result-view__board {
    max-width: 360px;
  }

  body.daneki-gua-page .daneki-result-view__board-scaler {
    max-width: 360px;
    --frame-board-scale: 0.9;
  }
}

body.daneki-gua-page .reading-result-head {
  margin-bottom: 8px;
}

body.daneki-gua-page .gua-page-yomi {
  margin: 0;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: var(--ink-deep);
  text-align: center;
}

@media (min-width: 600px) {
  body.daneki-gua-page .gua-page-yomi {
    font-size: 10px;
  }
}

body.daneki-gua-page .board-table--gua3 col.c-side {
  width: 30%;
}

body.daneki-gua-page .board-table--gua3 col.c-yao {
  width: 40%;
}

body.daneki-gua-page .board-table--gua3 .yao-box--yang {
  background: #333333;
}

body.daneki-gua-page .board-table--gua3 .yao-box--yin {
  background: #c43838;
}

body.daneki-gua-page .board-table--gua3 .yao-mark-yang {
  color: #ffffff;
}

body.daneki-gua-page .board-table--gua3 .mark-between {
  color: #332211;
}

body.daneki-gua-page .board-table--gua3 td {
  overflow: visible;
}

body.daneki-gua-page .board-table--gua3 .cell-pair {
  overflow: visible;
}

body.daneki-gua-page .daneki-fortunes {
  width: 100%;
  margin-top: 28px;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 600px) {
  body.daneki-gua-page .daneki-fortunes {
    padding: 0 20px;
  }
}

body.daneki-gua-page .fortune-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  text-align: center;
  gap: 8px;
}

body.daneki-gua-page .fortune-block:not(:last-child) {
  border-bottom: 1px solid rgba(92, 64, 51, 0.08);
}

body.daneki-gua-page .fortune-block__title {
  margin: 0;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--ink-deep);
  line-height: 1.45;
}

body.daneki-gua-page .fortune-block__view {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.5;
}

body.daneki-gua-page .star-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.daneki-gua-page .star-rating__icons {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

body.daneki-gua-page .star-rating__icons .star--on {
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(201, 162, 39, 0.35);
}

body.daneki-gua-page .star-rating__icons .star--off {
  color: var(--star-off);
}

body.daneki-gua-page .star-rating__icons .star--half {
  position: relative;
  display: inline-block;
  width: 1em;
  line-height: 1;
  vertical-align: top;
}

body.daneki-gua-page .star-rating__icons .star--half__bg {
  color: var(--star-off);
}

body.daneki-gua-page .star-rating__icons .star--half__fg {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(201, 162, 39, 0.35);
}

body.daneki-gua-page .star-rating__score {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}

body.daneki-gua-page .fortune-block__text {
  margin: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  text-align: center;
}

body.daneki-gua-page .fortune-sublist {
  width: 100%;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(92, 64, 51, 0.06);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

body.daneki-gua-page .fortune-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.daneki-gua-page .fortune-subitem__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: left;
  line-height: 1.4;
}

body.daneki-gua-page .fortune-subitem__label::before {
  content: "・";
}

body.daneki-gua-page .fortune-subitem .star-rating {
  flex: 0 0 auto;
}

body.daneki-gua-page .star-rating--sub .star-rating__icons {
  font-size: 13px;
}

body.daneki-gua-page .star-rating--sub .star-rating__score {
  font-size: 11px;
}

body.daneki-result-page #share-capture.reading-frame-card {
  background-image: url("../card-images/reading-frame.webp");
}

    :root {
      --wx-mu: #3d8b6e;
      --wx-huo: #b54552;
      --wx-tu: #8c644d;
      --wx-jin: #e27b00;
      --wx-shui: #3a6d9e;
      --dong-bg: #a64a4a;
      --bian-dong-bg: #f0eee8;
      --kongwang: #b7ad9c;
      --grid: #333333;
      --ink: #5c4033;
      --ink-deep: #3d2818;
      --ink-muted: #7a6558;
      --muted: #8a8a8a;
      --bg: #ffffff;
      --yao-bar-w: 68px;
      --yao-bar-h: 22.5px;
      --yao-gap-w: 22px;
      --accent: #5c4033;
      --brown: #5c4033;
      --brown-soft: #6a6a6a;
      --cocoa: #5c4033;
      --pencil: #5c4033;
      --paper-bg: #ffffff;
      --pc-love: #fdecec;
      --pc-work: #e8f1fb;
      --pc-money: #fbf3d8;
      --pc-fortune: #ecf4ea;
    }

    /* ════════════════════════════════════════
       結果画面ヘッド（タロット占い結果と同型）
    ════════════════════════════════════════ */
    .tarot-page-head {
      width: 100%;
      margin-top: 14px;
      margin-bottom: 6px;
      font-weight: 400;
      letter-spacing: 0.02em;
      -webkit-font-smoothing: antialiased;
    }

    .tarot-page-head__inner {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .tarot-portal-back {
      align-self: center;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      max-width: 100%;
      min-height: 28px;
      padding: 4px 0;
      text-decoration: none;
      color: var(--ink);
      font-weight: 400;
      transition: opacity 0.15s ease;
    }

    .tarot-portal-back:hover,
    .tarot-portal-back:focus {
      opacity: 0.72;
    }

    .tarot-portal-back__arrow {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 17px;
      height: 17px;
      font-size: 15px;
      line-height: 1;
      color: var(--ink);
      font-weight: 400;
    }

    .tarot-portal-back__label {
      font-size: 13px;
      line-height: 17px;
      letter-spacing: 0.02em;
      white-space: nowrap;
      font-weight: 400;
    }

    .tarot-share-open {
      flex: 0 0 auto;
      align-self: center;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 28px;
      margin: 0;
      padding: 4px 0;
      border: none;
      background: none;
      cursor: pointer;
      font-family: inherit;
      color: var(--ink);
    }

    .tarot-share-open:hover,
    .tarot-share-open:focus-visible {
      opacity: 0.72;
    }

    .tarot-share-open:disabled {
      opacity: 0.45;
      cursor: wait;
    }

    .tarot-share-open__icon {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 17px;
      height: 17px;
      transform: translateY(-0.5px);
    }

    .tarot-share-open__icon svg {
      display: block;
      width: 17px;
      height: 17px;
    }

    .tarot-share-open__label {
      font-size: 13px;
      line-height: 17px;
      letter-spacing: 0.02em;
      white-space: nowrap;
      font-weight: 400;
    }

    .reading-result-head {
      margin-top: 8px;
      text-align: center;
      font-weight: 400;
      letter-spacing: 0.02em;
      -webkit-font-smoothing: antialiased;
    }

    .reading-result__title {
      margin: 0 0 6px;
      font-size: 17px;
      font-weight: normal;
      letter-spacing: 0.14em;
      color: var(--ink-deep);
    }

    .reading-result-head .section-heading.reading-result__heading {
      margin: 0 0 10px;
    }

    .reading-result__datetime {
      margin: 0;
      font-size: 12.5px;
      font-weight: 400;
      line-height: 1.4;
      letter-spacing: 0.06em;
      color: var(--ink-deep);
    }

    @media (min-width: 600px) {
      .tarot-page-head {
        margin-top: 16px;
        margin-bottom: 8px;
      }

      .tarot-portal-back__label,
      .tarot-share-open__label {
        font-size: 14px;
      }

      .reading-result__title {
        font-size: 18px;
      }

      .reading-result__datetime {
        font-size: 13.5px;
      }
    }

    .meta-block {
      width: 100%;
      margin: 0;
      background: transparent;
      border: none;
      padding: 0;
    }

    .reading-frame-wrap {
      width: 100%;
      margin: 12px auto 14px;
    }

    .daneki-result-view {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .daneki-result-view__meta {
      width: 100%;
      margin: 0 0 4px;
      text-align: center;
    }

    .daneki-result-view__gua-name {
      margin: 12px 0 0;
      font-size: 16px;
      font-weight: normal;
      line-height: 1.4;
      letter-spacing: 0.06em;
      /* letter-spacing の末尾余白を左にも足し、中央揃えを均等に見せる */
      text-indent: 0.06em;
      color: var(--ink-deep);
      text-align: center;
    }

    .daneki-result-view__gua-bian {
      display: block;
      margin-top: 2px;
      font-size: 12px;
      font-weight: normal;
      letter-spacing: 0.06em;
      text-indent: 0.06em;
      color: var(--ink-muted);
    }

    .daneki-result-view .pillars-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      width: 76%;
      max-width: 240px;
      margin: 0 auto;
    }

    .daneki-result-view .pillar-tile {
      padding: 0 2px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .daneki-result-view .pillar-tile .label {
      font-size: 10px;
      margin-bottom: 3px;
      line-height: 1.2;
      min-height: 12px;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    .daneki-result-view .pillar-tile .value {
      font-size: 17px;
      font-weight: 500;
      line-height: 1.1;
      min-height: 21px;
      display: flex;
      align-items: center;
      justify-content: center;
    }


    .daneki-result-view__board {
      margin-top: 14px;
      width: 100%;
      max-width: 390px;
      margin-left: auto;
      margin-right: auto;
      overflow: hidden;
      min-height: 0;
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }

    .daneki-result-view__board-scaler {
      width: 100%;
      max-width: 390px;
      margin: 0 auto;
      flex: 0 0 auto;
      transform-origin: center top;
      --frame-board-scale: 0.94;
    }

    .daneki-result-view .table-wrap {
      width: 100% !important;
      max-width: 390px !important;
    }

    .daneki-result-view .board-table thead th {
      height: 38px !important;
      font-size: 15px !important;
    }

    .daneki-result-view .board-table tbody td {
      height: 60px !important;
    }

    .daneki-result-view .cell-pair,
    .daneki-result-view .cell-pair .c1,
    .daneki-result-view .cell-pair .c2 {
      font-size: 20px !important;
    }

    .daneki-result-view .yao-wrap {
      min-height: 60px;
    }

    body.daneki-result-page .daneki-result-view .board-table,
    body.daneki-result-page .daneki-result-view .board-table th,
    body.daneki-result-page .daneki-result-view .board-table td,
    body.daneki-result-page .daneki-result-view .board-table td.cell--shi {
      background: transparent;
    }

    .daneki-share-capture,
    #share-capture.reading-frame-card {
      position: fixed;
      left: 0;
      top: 0;
      width: min(78vw, 320px);
      margin: 0;
      visibility: hidden;
      pointer-events: none;
      z-index: -1;
      aspect-ratio: 4 / 5;
      background: url("../card-images/reading-frame.webp") center / 100% 100% no-repeat;
    }

    #share-capture .reading-frame-card__inner {
      position: absolute;
      inset: 5.5% 8% 8.5%;
      min-height: 0;
      overflow: hidden;
    }

    #share-capture .reading-frame-card__meta {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
    }

    #share-capture .reading-frame-card__meta .reading-frame-card__gua-name {
      display: none;
    }

    #share-capture .reading-frame-card__meta .pillars-grid {
      position: absolute;
      top: 10.5%;
      left: 0;
      right: 0;
      width: 68%;
      max-width: 200px;
      margin-left: auto;
      margin-right: auto;
      transform: translateY(-50%);
      margin-top: 0;
    }

    #share-capture.reading-frame-card .datetime-block .solar {
      font-size: 11px;
      font-weight: 400;
      text-align: center;
      line-height: 1.3;
      letter-spacing: 0.02em;
    }

    #share-capture.reading-frame-card .pillars-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
    }

    #share-capture.reading-frame-card .pillar-tile {
      padding: 0 2px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    #share-capture.reading-frame-card .pillar-tile .label {
      font-size: 8px;
      margin-bottom: 2px;
      line-height: 1.2;
      min-height: 10px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    #share-capture.reading-frame-card .pillar-tile .value {
      font-size: 13px;
      font-weight: 500;
      line-height: 1;
      min-height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
    }


    #share-capture .reading-frame-card__board {
      position: absolute;
      inset: 0;
      z-index: 1;
      overflow: hidden;
    }

    #share-capture .reading-frame-card__board-scaler {
      position: absolute;
      left: 50%;
      top: 60%;
      width: 390px;
      transform: translate(-50%, -50%);
      transform-origin: center center;
      --frame-board-y: 60%;
      --frame-board-scale: 0.95;
    }

    #share-capture .reading-frame-card__board-scaler .table-wrap,
    #share-capture .reading-frame-card__board-scaler {
      width: 390px !important;
      max-width: 390px !important;
      margin: 0;
      background: transparent;
    }

    #share-capture .reading-frame-card__board-scaler .board-table,
    #share-capture .reading-frame-card__board-scaler .board-table th,
    #share-capture .reading-frame-card__board-scaler .board-table td {
      background: rgba(255, 255, 255, 0.5) !important;
    }

    #share-capture .reading-frame-card__board-scaler .board-table td.cell--bian-dong {
      background: rgba(255, 255, 255, 0.5) !important;
    }

    #share-capture .reading-frame-card__board-scaler .board-table td.cell--shi {
      background: rgba(243, 235, 227, 0.85) !important;
    }

    #share-capture .reading-frame-card__board-scaler .board-table thead th {
      height: 38px !important;
      padding: 2px 1px !important;
      font-size: 14px !important;
    }

    #share-capture .reading-frame-card__board-scaler .board-table tbody td {
      height: 60px !important;
      padding: 2px 1px !important;
    }

    #share-capture .reading-frame-card__board-scaler .cell-pair,
    #share-capture .reading-frame-card__board-scaler .cell-pair .c1,
    #share-capture .reading-frame-card__board-scaler .cell-pair .c2 {
      font-size: 20px !important;
    }

    #share-capture .reading-frame-card__board-scaler .yao-strength {
      top: 1px;
      right: 1px;
      width: 12px;
      height: 12px;
    }

    #share-capture .reading-frame-card__board-scaler .yao-strength svg {
      width: 12px;
      height: 12px;
    }

    #share-capture .reading-frame-card__board-scaler .yao-relation {
      top: 1px;
      left: 1px;
      width: 12px;
      height: 12px;
    }

    #share-capture .reading-frame-card__board-scaler .yao-relation svg {
      width: 12px;
      height: 12px;
    }

    #share-capture .reading-frame-card__board-scaler .yao-box {
      height: var(--yao-bar-h) !important;
      min-height: var(--yao-bar-h) !important;
    }

    #share-capture .reading-frame-card__board-scaler .yao-wrap {
      min-height: 60px;
    }

    @media (min-width: 600px) {
      .daneki-result-view .pillars-grid {
        max-width: 256px;
      }

      .daneki-result-view .pillar-tile .label {
        font-size: 11px;
      }

      .daneki-result-view .pillar-tile .value {
        font-size: 18px;
        min-height: 22px;
      }


      .daneki-share-capture {
        width: min(72vw, 340px);
      }

      #share-capture .reading-frame-card__meta .pillars-grid {
        width: 66%;
        max-width: 210px;
      }

      #share-capture.reading-frame-card .pillar-tile .label {
        font-size: 9px;
      }

      #share-capture.reading-frame-card .pillar-tile .value {
        font-size: 14px;
        min-height: 19px;
      }

    }

    .datetime-block .solar {
      font-size: 15px;
      font-weight: 500;
      text-align: center;
      line-height: 1.35;
    }

    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      margin-top: 9px;
      gap: 0;
    }

    .pillar-tile {
      text-align: center;
      padding: 2px 4px;
      background: transparent;
    }

    .pillar-tile .label {
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.1em;
      margin-bottom: 3px;
      line-height: 1.3;
    }

    .pillar-tile .value {
      font-size: 21px;
      font-weight: 500;
      letter-spacing: 0.05em;
      line-height: 1.3;
    }

    .wx-mu   { color: var(--wx-mu);   }
    .wx-huo  { color: var(--wx-huo);  }
    .wx-tu   { color: var(--wx-tu);   }
    .wx-jin  { color: var(--wx-jin);  }
    .wx-shui { color: var(--wx-shui); }

    .table-wrap {
      width: 94% !important;
      max-width: 390px !important;
      margin: 0 auto;
      background: var(--paper-bg);
    }

    .board-table {
      max-width: 390px !important;
    }

    .board-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-weight: 500;
      background: var(--paper-bg);
    }

    .board-table th,
    .board-table td {
      border: 1px solid var(--grid);
      text-align: center;
      vertical-align: middle;
      padding: 2px 1px !important;
      height: 60px;
      background: var(--paper-bg);
    }

    .board-table thead th {
      height: 36px;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.06em;
      color: var(--muted);
      background: var(--paper-bg);
      padding: 2px 1px !important;
    }

    .board-table col.c-eq  { width: 18%; }
    .board-table col.c-ben { width: 28%; }

    .board-table td.cell--kongwang {
      color: inherit;
    }

    .cell-pair--kongwang .c1,
    .cell-pair--kongwang .c2,
    .cell-pair--kongwang .c2.wx-mu,
    .cell-pair--kongwang .c2.wx-huo,
    .cell-pair--kongwang .c2.wx-tu,
    .cell-pair--kongwang .c2.wx-jin,
    .cell-pair--kongwang .c2.wx-shui,
    .zhi--kongwang,
    .board-table .zhi--kongwang.wx-mu,
    .board-table .zhi--kongwang.wx-huo,
    .board-table .zhi--kongwang.wx-tu,
    .board-table .zhi--kongwang.wx-jin,
    .board-table .zhi--kongwang.wx-shui {
      color: var(--kongwang) !important;
    }

    .board-table td.cell--kongwang .wx-mu,
    .board-table td.cell--kongwang .wx-huo,
    .board-table td.cell--kongwang .wx-tu,
    .board-table td.cell--kongwang .wx-jin,
    .board-table td.cell--kongwang .wx-shui {
      color: inherit;
    }

    .board-table td.cell--kongwang .yao-mark-yang {
      color: #ffffff !important;
    }

    .board-table td.cell--kongwang .mark-between {
      color: #332211 !important;
    }

    .board-table td.cell--bian-dong {
      background: transparent;
    }

    .board-table td.cell--shi {
      background: #f3ebe3;
    }

    .board-table td.yao-cell {
      padding: 0 !important;
      vertical-align: middle;
    }

    .cell-pair {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      width: 100%;
      height: 100%;
      font-size: 21px !important;
      font-weight: 500;
      line-height: 1;
      letter-spacing: 0.05em !important;
    }

    .yao-strength {
      position: absolute;
      top: 2px;
      right: 2px;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      line-height: 0;
      pointer-events: none;
    }

    .yao-strength svg {
      display: block;
      width: 14px;
      height: 14px;
    }

    .yao-strength--excellent {
      color: #c43838;
    }

    .yao-strength--good {
      color: #c43838;
    }

    .yao-strength--fair {
      color: #3a6d9e;
    }

    .yao-strength--weak {
      color: #332211;
    }

    .yao-relation {
      position: absolute;
      top: 2px;
      left: 2px;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      line-height: 0;
      pointer-events: none;
    }

    .yao-relation svg {
      display: block;
      width: 14px;
      height: 14px;
    }

    .yao-relation--sheng {
      color: #c43838;
    }

    .yao-relation--ke {
      color: #3a6d9e;
    }

    .cell-pair .c1,
    .cell-pair .c2 {
      display: inline-block;
      font-size: 21px !important;
      font-weight: 500;
    }

    .cell-pair--liushou {
      letter-spacing: 0.05em !important;
    }

    .yao-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 60px;
      margin: 0 auto;
      box-sizing: border-box;
    }

    .yao-pair {
      position: relative;
      display: grid;
      grid-template-columns: 1fr var(--yao-gap-w) 1fr;
      align-items: center;
      justify-items: stretch;
      width: var(--yao-bar-w) !important;
      max-width: var(--yao-bar-w) !important;
      min-width: var(--yao-bar-w) !important;
      flex-shrink: 0;
      margin: 0 auto;
    }

    .yao-gap {
      width: var(--yao-gap-w);
      height: var(--yao-bar-h);
    }

    .yao-box {
      display: block;
      box-sizing: border-box;
      height: var(--yao-bar-h) !important;
      min-height: var(--yao-bar-h) !important;
      border: none;
      border-radius: 2px;
      background: #333333;
      flex-shrink: 0;
      position: relative;
    }

    .yao-box--yang {
      width: var(--yao-bar-w) !important;
      max-width: var(--yao-bar-w) !important;
      min-width: var(--yao-bar-w) !important;
    }

    .yao-box--yin {
      width: 100% !important;
      max-width: none !important;
      min-width: 0 !important;
    }

    .board-table td.cell--kongwang .yao-box {
      background: #333333 !important;
    }

    .yao-mark-yang {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px !important;
      font-weight: bold;
      line-height: 1;
      pointer-events: none;
      z-index: 1;
      margin: 0;
      padding: 0;
      color: #ffffff;
      width: auto;
      height: auto;
    }

    .mark-between {
      display: flex;
      align-items: center;
      justify-content: center;
      width: var(--yao-gap-w);
      height: var(--yao-bar-h);
      text-align: center;
      color: #332211;
      font-size: 16px !important;
      font-weight: bold;
      line-height: 1;
      pointer-events: none;
      z-index: 1;
      margin: 0;
      padding: 0;
    }

    .yao-pair .yao-box--yin {
      width: 100% !important;
      max-width: none !important;
      min-width: 0 !important;
    }

    .board-panel {
      display: none;
      opacity: 0;
    }

    .board-panel.is-visible {
      display: block;
      animation: boardFadeIn 0.55s ease forwards;
    }

    @keyframes boardFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ══ 動爻ボックスの背景色（陰陽とも赤） ══ */
    .yao-box--dong-yang,
    .yao-box--dong-yin {
      background: var(--dong-bg) !important;
    }

    .board-table td.cell--kongwang .yao-box--dong-yang,
    .board-table td.cell--kongwang .yao-box--dong-yin {
      background: var(--dong-bg) !important;
    }

    .yao-box--dong-yang .yao-mark-yang {
      color: #ffffff !important;
    }

    /* ════════════════════════════════════════
       盤面の見かた
       ════════════════════════════════════════ */
    body.daneki-result-page .page > .daneki-legend {
      margin-top: 50px;
    }

    .daneki-legend {
      width: 100%;
    }

    .daneki-legend__tables {
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: 100%;
    }

    .daneki-legend__table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      background: #ffffff;
      border: 1px solid rgba(51, 34, 17, 0.22);
    }

    .daneki-legend__caption {
      caption-side: top;
      padding: 0 0 8px;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.12em;
      color: #5c4a40;
      text-align: center;
    }

    .daneki-legend__table th,
    .daneki-legend__table td {
      border: 1px solid rgba(51, 34, 17, 0.2);
      vertical-align: middle;
      padding: 8px 10px;
    }

    .daneki-legend__table th {
      width: 56px;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.04em;
      color: #2a1810;
      text-align: center;
      background: #efe4d8;
    }

    .daneki-legend__muted {
      color: #b0a094;
      font-weight: 400;
    }

    .daneki-legend__row--liuqin-start th,
    .daneki-legend__row--liuqin-start td,
    .daneki-legend__row--mark-split th,
    .daneki-legend__row--mark-split td {
      border-top-width: 3px;
      border-top-color: rgba(51, 34, 17, 0.34);
    }

    .daneki-legend__table td {
      font-size: 12.5px;
      line-height: 1.55;
      letter-spacing: 0.03em;
      color: #452f24;
      text-align: left;
      background: #ffffff;
    }

    .daneki-legend__table tr + tr th,
    .daneki-legend__table tr + tr td {
      border-top-color: rgba(51, 34, 17, 0.16);
    }

    .daneki-legend__mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      line-height: 0;
      vertical-align: middle;
    }

    .daneki-legend__mark svg {
      display: block;
      width: 15px;
      height: 15px;
    }

    .daneki-legend__mark--excellent,
    .daneki-legend__mark--good,
    .daneki-legend__mark--sheng {
      color: #c43838;
    }

    .daneki-legend__mark--fair,
    .daneki-legend__mark--ke {
      color: #3a6d9e;
    }

    .daneki-legend__mark--weak {
      color: #332211;
    }

    @media (min-width: 600px) {
      body.daneki-result-page .page > .daneki-legend {
        margin-top: 50px;
      }

      .daneki-legend__tables {
        gap: 18px;
      }

      .daneki-legend__caption {
        font-size: 13px;
      }

      .daneki-legend__table th {
        width: 64px;
        font-size: 15px;
        padding: 9px 12px;
      }

      .daneki-legend__table td {
        font-size: 13.5px;
        padding: 9px 12px;
      }
    }

    /* ════════════════════════════════════════
       六十四卦一覧（トップと同見出しサイズ・間隔50px）
       ════════════════════════════════════════ */
    .gua-index {
      margin-top: 50px;
      width: 100%;
    }

    .gua-index__lead {
      margin: 0 0 14px;
    }

    .gua-index__groups {
      display: flex;
      flex-direction: column;
      gap: 22px;
    }

    .gua-index-filter {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      margin: 22px 0 18px;
    }

    .gua-index-filter__row {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: center;
      gap: 18px 28px;
      width: 100%;
    }

    .gua-index-filter__field {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
      min-width: 0;
    }

    .gua-index-filter__label {
      font-size: 11px;
      letter-spacing: 0.2em;
      color: #8a7260;
      line-height: 1.2;
    }

    .gua-index-filter__select {
      appearance: none;
      margin: 0;
      padding: 8px 30px 8px 14px;
      border: none;
      border-bottom: 1px solid rgba(42, 24, 16, 0.18);
      border-radius: 0;
      background:
        linear-gradient(45deg, transparent 50%, #2a1810 50%) calc(100% - 12px) calc(50% - 1px) / 5px 5px no-repeat,
        linear-gradient(135deg, #2a1810 50%, transparent 50%) calc(100% - 7px) calc(50% - 1px) / 5px 5px no-repeat,
        transparent;
      color: #2a1810;
      font: inherit;
      font-size: 13px;
      letter-spacing: 0.06em;
      line-height: 1.3;
      cursor: pointer;
      min-width: 9.5em;
      max-width: 100%;
      text-align: center;
    }

    .gua-index-filter__select:focus {
      outline: none;
      border-bottom-color: rgba(42, 24, 16, 0.4);
    }

    .gua-index-filter__count {
      margin: 0;
      color: #7a6558;
      font-size: 14px;
      letter-spacing: 0.14em;
    }

    .gua-index__empty {
      margin: 28px 0;
      color: #7a6558;
      font-size: 13px;
      line-height: 1.7;
      text-align: center;
    }

    .gua-index__card[hidden],
    .gua-index__group[hidden],
    .gua-index__empty[hidden] {
      display: none;
    }

    .gua-index__grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      width: 84%;
      max-width: 280px;
      margin-left: auto;
      margin-right: auto;
    }

    .gua-index__card {
      display: block;
      text-decoration: none;
      color: inherit;
      transition: opacity 0.2s ease;
    }

    .gua-index__card:hover,
    .gua-index__card:focus {
      opacity: 0.84;
    }

    .gua-index__frame {
      padding: 6px 7px;
      box-sizing: border-box;
      border: 1px solid rgba(51, 34, 17, 0.58);
      height: 100%;
    }

    .gua-index__inner {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .gua-index__img {
      flex: 0 0 auto;
      width: 36px;
      height: 36px;
      padding: 2px;
      background: #ffffff;
      border: 1px solid rgba(92, 64, 51, 0.24);
      box-sizing: border-box;
    }

    .gua-index__yao {
      --gua-mini-bar-h: 2px;
      --gua-mini-line-gap: 4.5px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: var(--gua-mini-line-gap);
      width: 100%;
      height: 100%;
      padding: 1px 2px;
      transform: scale(0.72);
      transform-origin: center center;
    }

    .gua-index__line {
      display: flex;
      justify-content: center;
      gap: 2px;
      height: var(--gua-mini-bar-h);
    }

    .gua-index__line--yang::before {
      content: "";
      display: block;
      width: 100%;
      height: var(--gua-mini-bar-h);
      background: #5c4033;
      border-radius: 1.5px;
    }

    .gua-index__line--yin {
      --yin-gap: 5px;
      justify-content: space-between;
      gap: var(--yin-gap);
    }

    .gua-index__line--yin::before,
    .gua-index__line--yin::after {
      content: "";
      flex: 0 0 calc((100% - var(--yin-gap)) / 2);
      height: var(--gua-mini-bar-h);
      background: #5c4033;
      border-radius: 1.5px;
    }

    .gua-index__line--yang.wx-jin::before { background: var(--wx-jin); }
    .gua-index__line--yang.wx-mu::before { background: var(--wx-mu); }
    .gua-index__line--yang.wx-shui::before { background: var(--wx-shui); }
    .gua-index__line--yang.wx-tu::before { background: var(--wx-tu); }
    .gua-index__line--yang.wx-huo::before { background: var(--wx-huo); }

    .gua-index__line--yin.wx-jin::before,
    .gua-index__line--yin.wx-jin::after { background: var(--wx-jin); }
    .gua-index__line--yin.wx-mu::before,
    .gua-index__line--yin.wx-mu::after { background: var(--wx-mu); }
    .gua-index__line--yin.wx-shui::before,
    .gua-index__line--yin.wx-shui::after { background: var(--wx-shui); }
    .gua-index__line--yin.wx-tu::before,
    .gua-index__line--yin.wx-tu::after { background: var(--wx-tu); }
    .gua-index__line--yin.wx-huo::before,
    .gua-index__line--yin.wx-huo::after { background: var(--wx-huo); }

    .gua-index__text {
      flex: 1 1 auto;
      min-width: 0;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 13px;
      line-height: 1.35;
      letter-spacing: 0.04em;
      color: #2a1810;
    }


    @media (min-width: 600px) {
      .gua-index-filter {
        margin: 26px 0 22px;
      }

      .gua-index-filter__row {
        gap: 36px;
      }

      .gua-index-filter__label {
        font-size: 12px;
      }

      .gua-index-filter__select {
        font-size: 14px;
        min-width: 11em;
      }

      .gua-index-filter__count {
        font-size: 15px;
      }


      .gua-index__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        max-width: none;
      }

      .gua-index__frame {
        padding: 7px 9px;
      }

      .gua-index__inner {
        gap: 6px;
      }

      .gua-index__img {
        width: 40px;
        height: 40px;
      }

      .gua-index__text {
        font-size: 14px;
      }

      .gua-index__lead {
        margin-bottom: 16px;
      }
    }

.daneki-result-view__gua-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.daneki-result-view__gua-link:hover,
.daneki-result-view__gua-link:focus {
  opacity: 0.78;
}

.explain-tool-cta {
  margin: 18px 0 8px;
  padding: 0 16px;
  text-align: center;
  box-sizing: border-box;
}

.explain-tool-cta__lead {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #5c4a40;
}

.explain-tool-cta__links {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.explain-tool-cta__links a {
  color: #452f24;
  text-underline-offset: 3px;
}

.explain-tool-cta__links span {
  margin: 0 8px;
  color: #9a8578;
}

