/* ページ共通：リセット・ヘッダー・フッター・見出し */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #faf6f0;
  color: #452f24;
  font-family: 'Tsukushi A Round Gothic', '筑紫A丸ゴシック',
    'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro',
    'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

a,
button {
  pointer-events: auto;
}

.main {
  flex: 1 0 auto;
  width: 100%;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 18px calc((100vw - min(92vw, 450px)) / 2) 18px;
  box-sizing: border-box;
  background: #9a8578;
}

.site-logo {
  display: inline-block;
  align-self: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo svg {
  display: block;
  width: auto;
  height: 20px;
}

.site-logo svg .cls-1 {
  fill: #ffffff;
  transition: fill-opacity 0.15s ease;
}

.site-logo:hover svg .cls-1,
.site-logo:focus svg .cls-1 {
  fill-opacity: 0.78;
}

@media (min-width: 600px) {
  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-logo svg {
    height: 26px;
  }
}

.qa-page .tarot-page-head {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

.qa-page .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: #5c4033;
  font-weight: 400;
  transition: opacity 0.15s ease;
}

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

.qa-page .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: #5c4033;
  font-weight: 400;
}

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

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

  .qa-page .tarot-portal-back__label {
    font-size: 14px;
  }
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-heading--spaced {
  margin-top: 50px;
}

.section-heading__ornament {
  display: block;
  width: 40px;
  height: auto;
  aspect-ratio: 40 / 24;
  color: #5f4a40;
}

.section-heading__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section-heading__text {
  display: block;
  font-size: 18.5px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: #2a1810;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .section-heading__ornament {
    width: 46px;
  }

  .section-heading__text {
    font-size: 20px;
  }
}

/* 一問一答 詳細・一覧・依頼 */
.qa-page {
  --qa-ink: #2a1810;
  --qa-muted: #5c4a40;
  --qa-gold: #c9a227;
  position: relative;
  width: min(94vw, 440px);
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.qa-page-head {
  margin: 14px 0 18px;
}

.qa-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  color: #452f24;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}

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

.qa-detail {
  padding: 8px 0 0;
  --qa-wx-mu: #3d8b6e;
  --qa-wx-huo: #b54552;
  --qa-wx-tu: #8c644d;
  --qa-wx-jin: #e27b00;
  --qa-wx-shui: #3a6d9e;
}

.qa-detail__no {
  display: block;
  margin: 0 auto 16px;
  width: fit-content;
  padding: 8px 14px;
  background: #3d2818;
  color: #fcfaf7;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
}

.qa-detail__question {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: normal;
  line-height: 1.55;
  letter-spacing: 0.05em;
  color: var(--qa-ink);
  text-align: center;
}

.qa-detail__date {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--qa-muted);
  text-align: center;
}

.qa-detail__gua {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--qa-ink);
  text-align: center;
}

.qa-detail__gua-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.qa-detail__gua-link:hover,
.qa-detail__gua-link:focus {
  opacity: 0.78;
}

.qa-detail__nickname {
  margin: 20px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--qa-ink);
  text-align: center;
}

.qa-detail__nickname-label {
  margin-right: 0.45em;
  letter-spacing: 0.12em;
}

.qa-detail__nickname-label::after {
  content: "：";
  letter-spacing: 0;
  margin-left: 0.1em;
}

.qa-detail__nickname-honorific {
  margin-left: 0.1em;
}

.qa-detail__board {
  --qa-ink: #2a1810;
  --qa-muted: #5c4a40;
  --qa-wx-mu: #3d8b6e;
  --qa-wx-huo: #b54552;
  --qa-wx-tu: #8c644d;
  --qa-wx-jin: #e27b00;
  --qa-wx-shui: #3a6d9e;
  --qa-grid: #333333;
  --qa-yao-bar-w: 68px;
  --qa-yao-bar-h: 22.5px;
  --qa-yao-gap-w: 22px;
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.qa-detail__board .qa-m__board {
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
}

.qa-detail__board .qa-m__board-scaler {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 390px;
  transform: translateX(-50%) scale(0.85);
  transform-origin: top center;
  --yao-bar-w: var(--qa-yao-bar-w);
  --yao-bar-h: var(--qa-yao-bar-h);
  --yao-gap-w: var(--qa-yao-gap-w);
  pointer-events: none;
}

@media (min-width: 600px) {
  .qa-detail__board .qa-m__board-scaler {
    transform: translateX(-50%) scale(0.72);
  }
}

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

.qa-detail__board .pillar-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2px;
  text-align: center;
}

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

.qa-detail__board .pillar-tile .value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--qa-ink);
}

.qa-detail__board .pillar-tile--month .value,
.qa-detail__board .pillar-tile--day .value {
  font-size: 19px;
}

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

.qa-detail__board .board-table {
  width: 100%;
  max-width: 390px;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
  font-weight: 500;
}

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

.qa-detail__board .board-table th,
.qa-detail__board .board-table td {
  border: 1px solid var(--qa-grid);
  text-align: center;
  vertical-align: middle;
  padding: 2px 1px;
  background: transparent;
}

.qa-detail__board .board-table thead th {
  height: 38px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--qa-muted);
}

.qa-detail__board .board-table tbody td {
  height: 60px;
}

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

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

.qa-detail__board .cell-pair .c1,
.qa-detail__board .cell-pair .c2,
.qa-detail__board .board-cell-text {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
}

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

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

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

.qa-detail__board .yao-box--yang.yao-box--dong-yang,
.qa-detail__board .yao-box--yin.yao-box--dong-yin {
  background: #a64a4a;
  outline: none;
}

.qa-detail__board .yao-box--dong-yang .yao-mark-yang {
  color: #ffffff;
}

.qa-detail__board .cell-pair--kongwang .c1,
.qa-detail__board .cell-pair--kongwang .c2,
.qa-detail__board .zhi--kongwang,
.qa-detail__board .zhi--kongwang.wx-mu,
.qa-detail__board .zhi--kongwang.wx-huo,
.qa-detail__board .zhi--kongwang.wx-tu,
.qa-detail__board .zhi--kongwang.wx-jin,
.qa-detail__board .zhi--kongwang.wx-shui {
  color: #b7ad9c !important;
}

.qa-detail__board .yao-mark-yang {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  pointer-events: none;
}

.qa-detail__board .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);
  max-width: var(--yao-bar-w);
  min-width: var(--yao-bar-w);
  margin: 0 auto;
}

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

.qa-detail__board .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;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
}

.qa-detail__panel {
  margin: 0 0 16px;
  padding: 17.5px 18px 18px;
  background: #ffffff;
  border: 1px solid rgba(42, 24, 16, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(42, 24, 16, 0.04);
  position: relative;
}

.qa-detail__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(158, 126, 88, 0.55) 18%,
    rgba(201, 162, 39, 0.45) 50%,
    rgba(158, 126, 88, 0.55) 82%,
    transparent 100%
  );
}

.qa-detail__panel-label {
  margin: 0 0 7.5px;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.22em;
  color: #8a7260;
  text-align: center;
  line-height: 1.3;
}

.qa-detail__panel-body {
  margin: 0;
}

.qa-detail__panel-body p {
  margin: 0 0 1em;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--qa-ink);
}

.qa-detail__term {
  color: #9a4545;
}

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

.qa-detail__panel-body p:last-child {
  margin-bottom: 0;
}

.qa-detail__panel--soudan .qa-detail__panel-body p {
  line-height: 1.85;
}

.qa-detail__panel--ketsuron .qa-detail__panel-body p {
  line-height: 1.85;
  margin-bottom: 0;
}

.qa-detail__panel--handan {
  margin-bottom: 16px;
}

/* ════════════════════════════════════════
   占断パネル（卦名・用神・関係性）＋結論別枠
════════════════════════════════════════ */
.qa-detail__panel--judge {
  background: #ffffff;
  margin-bottom: 16px;
}

.qa-judge-block {
  margin: 0;
}

.qa-judge-gua {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  line-height: 1.85;
  color: var(--qa-ink);
  text-align: left;
}

.qa-judge-section {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  column-gap: 10px;
  align-items: start;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 24, 16, 0.1);
}

.qa-judge-section:first-child {
  padding-top: 4px;
}

.qa-judge-section:last-child {
  padding-bottom: 2px;
  border-bottom: none;
}

.qa-judge-section__label {
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  line-height: 1.85;
  color: #8a7260;
}

.qa-judge-section__body {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.qa-judge-yong {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-judge-yong li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  line-height: 1.85;
  color: var(--qa-ink);
}

.qa-judge-yong li + li {
  margin-top: 2px;
}

.qa-judge-yong__qin {
  min-width: 1.2em;
}

.qa-judge-yong__sep {
  margin: 0 0.5em;
  color: #b09a88;
}

.qa-judge-yong__role {
  margin-right: 0;
}

.qa-judge-yong__role .qa-judge-mark {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0.05em;
  transform: translateY(-0.07em);
}

.qa-judge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-left: 0.1em;
  line-height: 1;
  flex: 0 0 auto;
}

.qa-judge-mark svg {
  display: block;
  width: 14px;
  height: 14px;
}

.qa-judge-mark--excellent,
.qa-judge-mark--good {
  color: #c43838;
}

.qa-judge-mark--fair {
  color: #3a6d9e;
}

.qa-judge-mark--weak {
  color: #332211;
}

.qa-judge-mark--sheng {
  color: #c43838;
}

.qa-judge-mark--ke {
  color: #3a6d9e;
}

.qa-judge-relation {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  line-height: 1.85;
  color: var(--qa-ink);
}

.qa-judge-relation__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1em;
  line-height: 1;
  transform: translateY(0.04em);
}

.qa-judge-relation__text {
  font-size: inherit;
  letter-spacing: 0.12em;
  color: #8a7260;
}

.qa-judge-relation__arrow svg {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}

.qa-judge-relation__arrow--out svg {
  transform: rotate(90deg);
}

.qa-judge-yong .wx-mu,
.qa-judge-relation .wx-mu,
.qa-judge-gua .wx-mu { color: var(--qa-wx-mu); }
.qa-judge-yong .wx-huo,
.qa-judge-relation .wx-huo { color: var(--qa-wx-huo); }
.qa-judge-yong .wx-tu,
.qa-judge-relation .wx-tu { color: var(--qa-wx-tu); }
.qa-judge-yong .wx-jin,
.qa-judge-relation .wx-jin { color: var(--qa-wx-jin); }
.qa-judge-yong .wx-shui,
.qa-judge-relation .wx-shui { color: var(--qa-wx-shui); }

.qa-detail__panel--ketsuron {
  background: #ffffff;
  margin-bottom: 28px;
}

.qa-detail__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(42, 24, 16, 0.1);
}

.qa-detail__cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.qa-detail__cta-lead {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--qa-ink);
  text-align: center;
}

.qa-detail__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 15px 20px;
  border-radius: 2px;
  background: #a64a4a;
  color: #fcfaf7;
  font-size: 15px;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  box-shadow: none;
  transition: opacity 0.15s ease;
}

.qa-detail__cta:hover,
.qa-detail__cta:focus {
  transform: none;
  box-shadow: none;
  opacity: 0.88;
}

.qa-detail__cta--light {
  background: #ffffff;
  color: var(--qa-ink);
  border: 1px solid rgba(42, 24, 16, 0.2);
  box-shadow: none;
}

.qa-detail__cta--light:hover,
.qa-detail__cta--light:focus {
  background: #ffffff;
  box-shadow: none;
  transform: none;
  opacity: 0.86;
}

.qa-detail__sublink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 2px;
  color: var(--qa-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.qa-list__item a {
  display: block;
  padding: 16px 14px;
  border: 1px solid rgba(42, 24, 16, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(247, 241, 234, 0.92));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(42, 24, 16, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qa-list__item a:hover,
.qa-list__item a:focus {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 12px 24px rgba(42, 24, 16, 0.08);
}

.qa-list__question {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--qa-ink);
}

.qa-list__meta {
  margin: 0;
  font-size: 12px;
  color: var(--qa-muted);
  letter-spacing: 0.06em;
}

.qa-request__text {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: #452f24;
  text-align: center;
}

.qa-request__lead {
  margin: 12.5px auto 0;
  width: 90%;
  max-width: 90%;
  box-sizing: border-box;
}

.qa-request__lead p {
  margin: 0 0 1em;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--qa-ink);
  text-align: left;
}

.qa-request__lead p:last-child {
  margin-bottom: 0;
}

.qa-request__price {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--qa-ink);
  text-align: center;
}

/* モニター鑑定一覧 */
.qa-page--list {
  width: min(94vw, 450px);
  max-width: 450px;
}

.qa-list-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.qa-list-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 18px 28px;
  width: 100%;
}

.qa-list-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.qa-list-field__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a7260;
  line-height: 1.2;
}

.qa-list-field__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%, var(--qa-ink) 50%) calc(100% - 12px) calc(50% - 1px) / 5px 5px no-repeat,
    linear-gradient(135deg, var(--qa-ink) 50%, transparent 50%) calc(100% - 7px) calc(50% - 1px) / 5px 5px no-repeat,
    transparent;
  color: var(--qa-ink);
  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;
}

.qa-list-field__select:focus {
  outline: none;
  border-bottom-color: rgba(42, 24, 16, 0.4);
}

.qa-list-count {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--qa-muted);
}

.qa-list-monitors {
  margin: 0 auto 8px;
  max-width: 300px;
}

.qa-list-empty {
  margin: 28px 0 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--qa-muted);
  text-align: center;
}

.qa-list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 22px 0 6px;
}

.qa-list-pager[hidden] {
  display: none;
}

.qa-list-pager__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.qa-list-pager__nav,
.qa-list-pager__page {
  appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--qa-muted);
  font: inherit;
  cursor: pointer;
  letter-spacing: 0.08em;
  line-height: 1.3;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.qa-list-pager__nav {
  padding: 6px 4px;
  font-size: 13px;
}

.qa-list-pager__page {
  min-width: 32px;
  padding: 6px 8px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  text-align: center;
}

.qa-list-pager__page.is-active {
  color: var(--qa-ink);
  border-bottom-color: rgba(158, 126, 88, 0.9);
}

.qa-list-pager__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.qa-list-pager__nav:not(:disabled):hover,
.qa-list-pager__nav:not(:disabled):focus,
.qa-list-pager__page:hover,
.qa-list-pager__page:focus {
  color: var(--qa-ink);
}

@media (min-width: 600px) {
  .qa-page--list {
    width: min(92vw, 660px);
    max-width: 660px;
  }

  .qa-list-toolbar {
    margin: 26px 0 22px;
  }

  .qa-list-toolbar__row {
    gap: 36px;
  }

  .qa-list-field__label {
    font-size: 12px;
  }

  .qa-list-field__select {
    font-size: 14px;
    min-width: 11em;
  }

  .qa-list-count {
    font-size: 15px;
  }

  .qa-list-monitors {
    max-width: 640px;
  }

  .qa-list-pager {
    margin-top: 28px;
    gap: 12px 18px;
  }

  .qa-list-pager__nav {
    font-size: 14px;
  }

  .qa-list-pager__page {
    font-size: 15px;
    min-width: 36px;
  }
}

.qa-request__info {
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.qa-request__panel {
  margin: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(42, 24, 16, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(42, 24, 16, 0.04);
  position: relative;
}

.qa-request__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(158, 126, 88, 0.55) 18%,
    rgba(201, 162, 39, 0.45) 50%,
    rgba(158, 126, 88, 0.55) 82%,
    transparent 100%
  );
}

.qa-request__panel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  width: fit-content;
  padding: 8px 20px;
  background: #e9e1d8;
  border: 1px solid #d0c4b8;
  color: #5c4840;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  /* letter-spacing の末尾余白を相殺し、見た目の中央揃えにする */
  padding-right: calc(20px - 0.18em);
}

.qa-request__panel-label--sub {
  margin: 18px auto;
}

.qa-request__list {
  margin: 0;
  padding: 0 0 0 1.15em;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--qa-ink);
}

.qa-request__list li {
  margin: 0 0 0.35em;
}

.qa-request__list li:last-child {
  margin-bottom: 0;
}

.qa-request__list--plain {
  list-style: none;
  padding-left: 0;
}

.qa-request__list--plain li {
  position: relative;
  padding-left: 1em;
}

.qa-request__list--plain li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #8a7260;
}

.qa-request__list--center {
  list-style: none;
  padding-left: 0;
  text-align: center;
}

.qa-request__list--center li {
  position: static;
  padding-left: 0;
}

.qa-request__list--center li::before {
  content: none;
}

.qa-request__panel-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--qa-ink);
  text-align: center;
}

.qa-request__actions {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.section-heading__note {
  display: block;
  margin-top: 8px;
  font-size: 0.78em;
  letter-spacing: 0.14em;
  color: var(--qa-muted, #5c4a40);
  line-height: 1.4;
}

.qa-monitor-status {
  margin: 22px auto 0;
  padding: 14px 20px;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(42, 24, 16, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(42, 24, 16, 0.04);
  text-align: center;
  box-sizing: border-box;
}

.qa-monitor-status--open {
  border-color: rgba(154, 133, 120, 0.45);
  background: linear-gradient(180deg, #f7f1ea 0%, #ffffff 55%);
}

.qa-monitor-status__label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #8a7260;
}

.qa-monitor-status__date {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--qa-ink);
  line-height: 1.4;
  white-space: nowrap;
}

.qa-monitor-status__note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--qa-muted);
}

.qa-monitor-plan {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa-monitor-plan.is-collapsed .qa-monitor-plan__item:nth-child(n + 6) {
  display: none;
}

.qa-monitor-plan__item {
  margin: 0;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(42, 24, 16, 0.08);
}

.qa-monitor-plan__item:first-child:not(.is-current) {
  padding-top: 2px;
}

.qa-monitor-plan:not(.is-collapsed) .qa-monitor-plan__item:last-child:not(.is-current),
.qa-monitor-plan.is-collapsed .qa-monitor-plan__item:nth-child(5):not(.is-current) {
  border-bottom: none;
  padding-bottom: 2px;
}

.qa-monitor-plan__item.is-current {
  margin: 0 -10px;
  padding: 14px;
  background: rgba(154, 133, 120, 0.1);
  border-bottom-color: transparent;
}

.qa-monitor-plan__row {
  display: grid;
  grid-template-columns: 2.5em 1fr;
  gap: 10px;
  align-items: center;
}

.qa-monitor-plan__row + .qa-monitor-plan__row {
  margin-top: 6px;
}

.qa-monitor-plan__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8a7260;
  line-height: 1.55;
}

.qa-monitor-plan__value {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--qa-ink);
  line-height: 1.55;
  text-align: left;
}

.qa-monitor-plan__more {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #8a7260;
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.qa-monitor-plan__more:hover,
.qa-monitor-plan__more:focus {
  color: var(--qa-ink);
  background: rgba(154, 133, 120, 0.08);
  outline: none;
}

.qa-monitor-plan__more[hidden] {
  display: none;
}

.qa-monitor-weekday--sun {
  color: #c04545;
}

.qa-monitor-weekday--sat {
  color: #3b8fc4;
}

.qa-monitor-md,
.qa-monitor-md__date,
.qa-monitor-md__wday {
  display: inline;
  letter-spacing: inherit;
}

.qa-monitor-range__sep {
  margin-left: 0.35em;
  margin-right: 1em; /* 半角2個分（0.5em × 2） */
  color: #8a7260;
}

.qa-form {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qa-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.qa-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-form__label {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #3d2a22;
}

.qa-form__req {
  margin-left: 0.2em;
  font-size: 1em;
  font-weight: normal;
  letter-spacing: 0;
  color: #c04545;
  line-height: 1;
}

.qa-form__input,
.qa-form__textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(42, 24, 16, 0.2);
  border-radius: 2px;
  background: #ffffff;
  color: #2a1810;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.65;
  box-sizing: border-box;
}

.qa-form__input:focus,
.qa-form__textarea:focus {
  outline: none;
  border-color: rgba(154, 133, 120, 0.75);
  box-shadow: 0 0 0 3px rgba(154, 133, 120, 0.14);
}

.qa-form__textarea {
  min-height: 110px;
  resize: vertical;
}

.qa-form__hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #6a5648;
}

.qa-form__checks {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}

.qa-form__check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px 2px;
  text-align: center;
  cursor: pointer;
}

.qa-form__check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qa-form__check-box {
  order: 2;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(61, 40, 24, 0.34);
  border-radius: 4px;
  background: #faf6f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.qa-form__check-box::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: no-repeat center / 12px 12px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.16s ease, transform 0.16s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faf6f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7'/%3E%3C/svg%3E");
}

.qa-form__check-text {
  order: 1;
  max-width: 22em;
  font-size: 13.5px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: #2a1810;
}

.qa-form__check:hover .qa-form__check-box {
  border-color: rgba(61, 40, 24, 0.52);
  background: #f5efe6;
}

.qa-form__check-input:focus-visible + .qa-form__check-box {
  outline: 2px solid rgba(154, 133, 120, 0.55);
  outline-offset: 3px;
}

.qa-form__check-input:checked + .qa-form__check-box {
  border-color: #8a7464;
  background: #9a8578;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.qa-form__check-input:checked + .qa-form__check-box::after {
  opacity: 1;
  transform: scale(1);
}

.qa-form__check:active .qa-form__check-box {
  transform: scale(0.96);
}

.qa-form__error {
  margin: 0;
  padding: 10px 12px;
  background: rgba(192, 69, 69, 0.08);
  border: 1px solid rgba(192, 69, 69, 0.22);
  color: #a33a3a;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.qa-form__submit {
  border: none;
  cursor: pointer;
  font: inherit;
}

.qa-form__submit-label {
  display: block;
}

.qa-form__submit-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 1em;
}

.qa-form__submit-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  transform: scale(0.9);
}

.qa-form__submit:disabled {
  cursor: wait;
}

.qa-form__submit.is-casting {
  opacity: 0.82;
  letter-spacing: 0;
}

.qa-form__submit.is-casting .qa-form__submit-label {
  display: none;
}

.qa-form__submit.is-casting .qa-form__submit-dots {
  display: inline-flex;
}

.qa-form__submit.is-casting .qa-form__submit-dots span {
  animation: qa-form-submit-dot 1.35s ease-in-out infinite;
}

.qa-form__submit.is-casting .qa-form__submit-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.qa-form__submit.is-casting .qa-form__submit-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes qa-form-submit-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.qa-form__casting {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf6f0;
}

.qa-form__casting[hidden] {
  display: none;
}

.qa-page:has(.qa-form__casting:not([hidden])) .qa-page-head,
.qa-page:has(.qa-form__casting:not([hidden])) .section-heading,
.qa-page:has(.qa-form__casting:not([hidden])) .qa-request__lead,
.qa-page:has(.qa-form__casting:not([hidden])) .qa-form,
.qa-page:has(.qa-form__casting:not([hidden])) .qa-form-done {
  visibility: hidden;
}

.qa-form__casting-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #826f66;
}

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

.qa-form__casting-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.qa-form__casting-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.qa-monitor-form-closed,
.qa-page > .section-heading:first-of-type {
  margin-top: 8px;
}

.qa-monitor-form-done,
.qa-form-done {
  margin: 28px auto 0;
  padding: 28px 18px;
  max-width: 360px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(42, 24, 16, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(42, 24, 16, 0.04);
}

.qa-monitor-form-closed__label,
.qa-monitor-form-done__label,
.qa-form-done__label {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--qa-ink);
}

.qa-monitor-form-closed__date,
.qa-monitor-form-done__text,
.qa-form-done__text {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #5c4840;
}

.qa-detail__cta.is-disabled,
.qa-detail__cta.is-disabled:hover,
.qa-detail__cta.is-disabled:focus {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .qa-detail__cta,
  .qa-list__item a {
    transition: opacity 0.15s ease;
  }

  .qa-detail__cta:hover,
  .qa-detail__cta:focus,
  .qa-list__item a:hover,
  .qa-list__item a:focus {
    transform: none;
  }
}

@media (min-width: 600px) {
  .qa-page {
    width: min(92vw, 560px);
    max-width: 560px;
  }

  .qa-page.qa-page--list {
    width: min(92vw, 660px);
    max-width: 660px;
  }

  .qa-detail__no {
    font-size: 15px;
    padding: 9px 16px;
  }

  .qa-detail__question {
    font-size: 19px;
  }

  .qa-detail__date {
    font-size: 15px;
  }

  .qa-detail__gua {
    font-size: 15px;
  }

  .qa-detail__nickname {
    font-size: 14px;
  }

  .qa-detail__panel {
    padding: 22.5px 22px 22px;
  }

  .qa-detail__panel-label {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .qa-detail__panel-body p {
    font-size: 15px;
  }

  .qa-judge-gua,
  .qa-judge-section__label,
  .qa-judge-yong li,
  .qa-judge-relation {
    font-size: 15px;
  }

  .qa-detail__cta-lead {
    font-size: 14px;
  }

  .qa-request__text {
    font-size: 14px;
  }

  .qa-request__lead {
    margin-top: 12.5px;
    width: 90%;
    max-width: 90%;
  }

  .qa-request__lead p {
    font-size: 14px;
  }

  .qa-request__list,
  .qa-request__panel-text {
    font-size: 14px;
  }

  .qa-request__info {
    margin-top: 48px;
    gap: 26px;
  }

  .qa-request__panel {
    padding: 22px;
  }

  .qa-monitor-plan__more {
    margin-top: 22px;
  }

  .qa-request__panel-label {
    margin-bottom: 22px;
    padding: 8px 22px;
    padding-right: calc(22px - 0.18em);
    font-size: 14px;
  }

  .qa-request__panel-label--sub {
    margin: 22px auto;
  }

  .qa-request__actions {
    margin-top: 48px;
  }
}


/* 法的ページ */
.legal-draft-note {
  margin-top: 0.75em;
  color: #8a6a3a;
  font-size: 0.92em;
}

.legal-dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.legal-dl__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35em;
  padding: 0.85em 0;
  border-bottom: 1px solid rgba(69, 47, 36, 0.12);
}

.legal-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-dl__row:first-child {
  padding-top: 0;
}

.legal-dl dt {
  font-weight: 700;
  color: #5f4a40;
  font-size: 0.95em;
}

.legal-dl dd {
  margin: 0;
  color: #452f24;
  line-height: 1.7;
}

@media (min-width: 600px) {
  .legal-dl__row {
    grid-template-columns: 11em 1fr;
    gap: 1em;
    align-items: start;
  }
}
