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

/* ════════════════════════════════════════
   リセット
════════════════════════════════════════ */
*, *::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;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

a,
button {
  pointer-events: auto;
}

/* ════════════════════════════════════════
   レイアウト
════════════════════════════════════════ */
.main {
  flex: 1 0 auto;
  width: 100%;
}

.page {
  width: min(94vw, 440px);
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 36px;
}

.page-main {
  width: 100%;
  min-width: 0;
}

:root {
  --white: #ffffff;
  --ink: #5c4033;
  --ink-deep: #3d2818;
  --ink-muted: #7a6558;
  --ink-reversed: #c43838;
  --gold: #c9a227;
  --star-off: #ddd5c8;
  --graph-tier-low: #8a9bae;
  --graph-tier-fair: #9a8478;
  --graph-tier-good: #5c4033;
  --graph-tier-excellent: #c9a227;
}

/* ════════════════════════════════════════
   ヘッダー（トップページと統一）
════════════════════════════════════════ */
.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;
  border-bottom: none;
  box-shadow: none;
}

.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;
  }
}

/* ════════════════════════════════════════
   ページ見出し・無料占いへ戻る
════════════════════════════════════════ */
.tarot-page-head {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 6px;
}

.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;
}

.tarot-page-head__title {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: var(--ink-deep);
  text-align: center;
  line-height: 1.45;
}

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

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

  .tarot-page-head__title {
    margin-top: 12px;
    font-size: 17px;
  }
}

/* ════════════════════════════════════════
   メイン解説
════════════════════════════════════════ */
.tarot-card {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.tarot-card__frame {
  position: relative;
  width: 100%;
  padding: 22px 16px 20px;
  box-sizing: border-box;
}

.tarot-card__frame-lines {
  display: none;
}

.tarot-card__corner {
  display: none;
}

.tarot-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.tarot-card__en {
  margin: 0;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.tarot-card__visual {
  display: block;
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  margin: 0;
  padding: 0;
}

.tarot-card__img-frame {
  display: grid;
  width: 100px;
  height: 100px;
  padding: 4px;
  background: var(--white);
  border: 1px solid rgba(92, 64, 51, 0.24);
  box-sizing: border-box;
}

.tarot-card__img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.tarot-card--reversed .tarot-card__img-frame img {
  transform: rotate(180deg);
}

.tarot-card__name {
  margin: 0;
  font-size: 19px;
  font-weight: normal;
  letter-spacing: 0.18em;
  color: var(--ink-deep);
  line-height: 1.4;
}

.tarot-card__keywords {
  width: 100%;
  margin-top: 2px;
  padding: 8px 0;
  border-top: 1px solid rgba(92, 64, 51, 0.14);
  border-bottom: 1px solid rgba(92, 64, 51, 0.14);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.tarot-card__keyword {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 27px;
  padding: 0 3px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 5px;
}

.tarot-card__keyword--positive {
  background: #fce8ec;
  border-color: rgba(190, 130, 145, 0.22);
}

.tarot-card__keyword--negative {
  background: #e3f0f8;
  border-color: rgba(110, 155, 190, 0.22);
}

/* ════════════════════════════════════════
   運勢セクション
════════════════════════════════════════ */
.tarot-fortunes {
  position: relative;
  width: 100%;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.fortune-block__title {
  margin: 0;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--ink-deep);
}

/* ── 星5段階評価 ── */
.star-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

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

.star-rating__icons .star--off {
  color: var(--star-off);
}

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

.star-rating__icons .star--half__bg {
  color: var(--star-off);
}

.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);
  white-space: nowrap;
}

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

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

.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;
}

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

.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;
}

.fortune-subitem__label::before {
  content: "・";
}

.fortune-subitem .star-rating {
  flex: 0 0 auto;
}

.star-rating--sub .star-rating__icons {
  font-size: 13px;
}

.star-rating--sub .star-rating__score {
  font-size: 11px;
}



.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;
}

/* ════════════════════════════════════════
   正逆位置リンク
════════════════════════════════════════ */
.position-switch {
  margin-top: 24px;
  width: 88%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.position-switch__lead,
.related-products__lead,
.tarot-index__lead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--ink-deep);
  text-align: center;
}

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

.position-switch__card:hover,
.position-switch__card:focus {
  opacity: 0.84;
}

.position-switch__frame {
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(51, 34, 17, 0.58);
}

.position-switch__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.position-switch__img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 3px;
  background: var(--white);
  border: 1px solid rgba(92, 64, 51, 0.24);
  box-sizing: border-box;
}

.position-switch__img img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.position-switch__img--reversed img {
  transform: rotate(180deg);
}

.position-switch__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink-deep);
}

/* ════════════════════════════════════════
   シェア用キャプチャ
════════════════════════════════════════ */
.share-capture__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: var(--ink-deep);
  text-align: center;
  line-height: 1.45;
}

.share-capture {
  width: 100%;
}

.share-capture .fortune-block {
  padding-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(92, 64, 51, 0.08);
}

@media (min-width: 600px) {
  .share-capture__title {
    margin-bottom: 14px;
    font-size: 17px;
  }
}

/* ════════════════════════════════════════
   おすすめ商品
════════════════════════════════════════ */
.related-products {
  margin-top: 36px;
  margin-bottom: 36px;
  width: 100%;
}

.related-products__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 88%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.related-products__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-products__img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid rgba(51, 34, 17, 0.58);
  background: var(--white);
}

.related-products__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-products__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--ink-deep);
}

.related-products__price {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
  color: var(--ink-muted);
}

.related-products__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(51, 34, 17, 0.58);
  background: var(--white);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  color: var(--ink-deep);
  transition: opacity 0.2s ease;
}

.related-products__btn:hover,
.related-products__btn:focus {
  opacity: 0.84;
}

/* ════════════════════════════════════════
   大アルカナ一覧（コンパクト）
════════════════════════════════════════ */
.tarot-index {
  margin-top: 28px;
  width: 100%;
}

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

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

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

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

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

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

.tarot-index:not(.tarot-index--minor) .tarot-index__img {
  border-color: var(--gold);
}

.tarot-card--major .tarot-card__img-frame,
.tarot-card--major .position-switch__img {
  border-color: var(--gold);
}

.tarot-index__img img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.tarot-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: var(--ink-deep);
}

.tarot-index--minor {
  margin-top: 28px;
}

.tarot-minor-index {
  display: flex;
  flex-direction: column;
  gap: 22px;
}


/* ════════════════════════════════════════
   レスポンシブ
════════════════════════════════════════ */
@media (min-width: 600px) {
  .tarot-card__frame {
    padding: 26px 20px 22px;
  }

  .tarot-card__visual {
    width: 108px;
    height: 108px;
  }

  .tarot-card__img-frame {
    width: 108px;
    height: 108px;
  }

  .tarot-card__name {
    font-size: 21px;
  }

  .tarot-card__keywords-title {
    font-size: 15px;
  }

  .tarot-card__keywords-row {
    font-size: 14px;
  }

  .tarot-card__keywords {
    gap: 6px;
  }

  .tarot-card__keyword {
    min-height: 28px;
    font-size: 13px;
  }

  .fortune-block__title {
    font-size: 16px;
  }

  .position-switch__lead,
  .related-products__lead,
  .tarot-index__lead {
    font-size: 16px;
  }

  .star-rating__icons {
    font-size: 16px;
  }

  .fortune-block__text {
    font-size: 15px;
  }

  .fortune-subitem__label {
    font-size: 14px;
  }

  .star-rating--sub .star-rating__icons {
    font-size: 14px;
  }

}
