@import url("hub-cta.css?v=20260724b");

/* 無料占いカード */
.page > #free-fortune {
  margin-top: 18.75px;
  /* 末尾ハブの margin:-45 を吸収し、フッターまでカード〜ボタンと同程度の余白に */
  padding-bottom: 60px;
}

.free-fortune-mascot {
  display: flex;
  justify-content: center;
  margin: 0 0 37.5px;
  line-height: 0;
}

.free-fortune-mascot__img {
  display: block;
  width: 175px;
  height: auto;
  animation-name: free-fortune-mascot-float;
  animation-duration: 3.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes free-fortune-mascot-float {
  0%,
  100% {
    transform: translateY(7.5px);
  }
  50% {
    transform: translateY(-7.5px);
  }
}

@media (min-width: 600px) {
  .page > #free-fortune {
    margin-top: 18.75px;
    padding-bottom: 60px;
  }

  .free-fortune-mascot {
    margin-bottom: 37.5px;
  }

  .free-fortune-mascot__img {
    width: 210px;
  }
}

#free-fortune .fortune-today-band__intro {
  margin-bottom: 25px;
}

.free-fortune-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

/* 茶色帯（タロットハブへ・上下余白均等） */
.free-fortune-hub {
  margin: -45px auto;
  list-style: none;
}

/* 連続ハブ同士のボタン間隔を 30px に（20 + 60 - 45 - 25 + 20） */
.free-fortune-hub + .free-fortune-hub {
  margin-top: -25px;
}

.free-fortune-list > li:not(.free-fortune-hub) {
  display: flex;
  flex-direction: column;
}

.free-fortune-card-wrap,
.free-fortune-card,
.free-fortune-card__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.free-fortune-card:not(.is-playing) {
  min-height: 100%;
}

.free-fortune-card-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  --free-fortune-frame: #c47a88;
  --free-fortune-title: #a85f6d;
  --free-fortune-pale: #f4dce1;
  --free-fortune-page-bg: #ffffff;
}

.free-fortune-card-wrap:has(.free-fortune-card--syueki) {
  --free-fortune-frame: #759a84;
  --free-fortune-title: #5d7f68;
  --free-fortune-pale: #dcebdd;
}

.free-fortune-card-wrap:has(.free-fortune-card--daneki) {
  --free-fortune-frame: #6e9a96;
  --free-fortune-title: #527f7b;
  --free-fortune-pale: #d9eae8;
}

.free-fortune-card-wrap:has(.free-fortune-card--aisyo) {
  --free-fortune-frame: #c48a62;
  --free-fortune-title: #a6724c;
  --free-fortune-pale: #f3e4d6;
}

.free-fortune-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 3 / 4;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--free-fortune-pale);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  z-index: 0;
}

.free-fortune-card.is-playing {
  box-shadow: none;
}

.free-fortune-card--syueki {
  --free-fortune-pale: #dcebdd;
  --free-fortune-wash: #f2f8f3;
}

.free-fortune-card--daneki {
  --free-fortune-pale: #d9eae8;
  --free-fortune-wash: #f1f8f7;
}

.free-fortune-card--aisyo {
  --free-fortune-pale: #f3e4d6;
  --free-fortune-wash: #faf4ee;
}

.free-fortune-card__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
}

.free-fortune-card.is-playing .free-fortune-card__inner {
  overflow: hidden;
  padding: 0;
}

.free-fortune-card__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 17px 16px 15px;
  background: var(--free-fortune-frame);
  color: #fffaf5;
  box-sizing: border-box;
}

.free-fortune-card__band-title {
  margin: 0;
  padding: 0;
  font-size: 16.5px;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.35;
  text-align: center;
  color: inherit;
}

.free-fortune-card__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --free-fortune-text-top: 60%;
  --free-fortune-tags-top: 75%;
  --free-fortune-cta-top: 89.0625%;
}

.free-fortune-card__text {
  position: absolute;
  top: var(--free-fortune-text-top);
  left: 20px;
  right: 20px;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #3a281c;
  text-align: center;
  box-sizing: border-box;
  transform: translateY(-50%);
}

.free-fortune-card__body {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
}

.free-fortune-card__banner-frame {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  width: 100%;
  margin: 0;
  transform: none;
}

.free-fortune-card__banner {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.free-fortune-card__banner picture {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 0;
}

.free-fortune-card__banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.free-fortune-card__tags {
  position: absolute;
  top: var(--free-fortune-tags-top);
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.free-fortune-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6em;
  height: 30px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  color: #452f24;
  background: #f5ebe0;
  box-sizing: border-box;
}

.free-fortune-card__tag--love {
  background: #fce8e0;
  border-color: #f0d0c4;
  color: #a85868;
}

.free-fortune-card__tag--work {
  background: #e8f4f0;
  border-color: #c8e4dc;
  color: #508880;
}

.free-fortune-card__tag--money {
  background: #faf4e0;
  border-color: #ece0b8;
  color: #987830;
}

.free-fortune-card__tag--people {
  background: #ecf4e4;
  border-color: #d0e4c8;
  color: #689060;
}

.free-fortune-card__tag--total {
  background: #ede4d6;
  border-color: #d8c8b4;
  color: #735538;
}

.free-fortune-card__cta {
  position: absolute;
  top: var(--free-fortune-cta-top);
  left: 50%;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 160px;
  min-height: 52px;
  margin: 0;
  padding: 12px 24px;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 999px;
  background: var(--free-fortune-frame);
  color: #fffaf5;
  font: inherit;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.15;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.free-fortune-card__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 18%,
    rgba(255, 255, 255, 0.08) 32%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 68%,
    transparent 82%,
    transparent 100%
  );
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .free-fortune-card__cta::before {
    animation: free-fortune-cta-shine 4.8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .free-fortune-card__cta::before {
    animation: none;
  }
}

.free-fortune-card__cta > * {
  position: relative;
  z-index: 1;
}

@keyframes free-fortune-cta-shine {
  0%,
  62% {
    transform: translateX(-130%) skewX(-18deg);
  }
  78% {
    transform: translateX(130%) skewX(-18deg);
  }
  100% {
    transform: translateX(130%) skewX(-18deg);
  }
}

.free-fortune-card__play {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.free-fortune-card.is-playing .free-fortune-card__intro {
  flex: 0 0 auto;
  aspect-ratio: auto;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.free-fortune-card.is-playing .free-fortune-card__banner-frame,
.free-fortune-card.is-playing .free-fortune-card__body {
  display: none !important;
}

.free-fortune-card.is-playing .free-fortune-card__cta {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.free-fortune-card.is-playing .free-fortune-card__play,
.free-fortune-card.is-playing .free-fortune-card__play[hidden] {
  display: flex !important;
  position: relative;
  inset: auto;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  z-index: 1;
  padding: 28px 0 14px;
  box-sizing: border-box;
  background: transparent;
}

.free-fortune-card__play-cue {
  margin: 0 0 12px;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #3a281c;
  text-align: center;
}

.free-fortune-card .tarot-one-draw,
.free-fortune-card .tarot-fortune {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 0;
}

.free-fortune-card__one-draw {
  position: relative;
  gap: 0;
}

.free-fortune-card__fortune {
  position: relative;
  gap: 0;
}

.free-fortune-card__daneki,
.free-fortune-card__syueki {
  position: relative;
  gap: 0;
}

.free-fortune-card__one-draw .free-fortune-card__play-cue {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: 3;
  width: min(92%, 280px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.free-fortune-card__fortune .free-fortune-card__play-cue {
  position: absolute;
  top: 15%;
  left: 50%;
  z-index: 3;
  width: min(92%, 280px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.free-fortune-card__daneki .free-fortune-card__play-cue,
.free-fortune-card__syueki .free-fortune-card__play-cue {
  position: absolute;
  top: 20%;
  left: 50%;
  z-index: 3;
  width: min(92%, 280px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.free-fortune-card .tarot-one-draw .tarot-fortune__frame,
.free-fortune-card__one-draw-frame {
  position: relative;
  width: 86%;
  max-width: 268px;
  margin: 0 auto;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}

.free-fortune-card__one-draw-frame .tarot-fortune__frame-lines {
  display: none;
}

.free-fortune-card .tarot-one-draw .tarot-fortune__inner,
.free-fortune-card__one-draw-frame .tarot-fortune__inner {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.free-fortune-card .tarot-one-draw__hero-deck {
  width: 148px;
  max-width: 56%;
}

.free-fortune-card .tarot-one-draw__hero-card {
  box-shadow: none;
}

.free-fortune-card .tarot-one-draw__spread {
  --spread-width: 148px;
  --spread-gap: 12px;
}

.free-fortune-card .tarot-one-draw__card-img {
  border-radius: 4px;
  box-shadow: none;
}

.free-fortune-card .tarot-one-draw .tarot-one-draw__casting {
  z-index: 10;
  background: #fff;
}

.free-fortune-card .tarot-one-draw__casting-dots {
  color: var(--free-fortune-frame);
}

.free-fortune-card-wrap:has(.tarot-one-draw__casting:not([hidden])) .free-fortune-card__title {
  visibility: hidden;
}

.free-fortune-card .tarot-fortune__frame {
  width: 100%;
  padding: 14px 10px 12px;
}

.free-fortune-card__fortune-frame,
.free-fortune-card__daneki-frame,
.free-fortune-card__syueki-frame {
  border: none;
  background: transparent;
}

.free-fortune-card__fortune-frame .tarot-fortune__frame-lines,
.free-fortune-card__daneki-frame .tarot-fortune__frame-lines,
.free-fortune-card__syueki-frame .tarot-fortune__frame-lines {
  display: none;
}

.free-fortune-card__daneki-frame,
.free-fortune-card__syueki-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.free-fortune-card__daneki-frame .tarot-fortune__inner,
.free-fortune-card__syueki-frame .tarot-fortune__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
}

.daneki-cast__casting,
.syueki-cast__casting {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.daneki-cast__casting[hidden],
.syueki-cast__casting[hidden] {
  display: none;
}

.free-fortune-card-wrap:has(.daneki-cast__casting:not([hidden])) .free-fortune-card__title,
.free-fortune-card-wrap:has(.syueki-cast__casting:not([hidden])) .free-fortune-card__title {
  visibility: hidden;
}

.daneki-cast__casting-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6e9a96;
}

.syueki-cast__casting-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #759a84;
}

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

.daneki-cast__casting-dots span:nth-child(2),
.syueki-cast__casting-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.daneki-cast__casting-dots span:nth-child(3),
.syueki-cast__casting-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.free-fortune-card .tarot-fortune__inner {
  gap: 16px;
}

.free-fortune-card .tarot-fortune__field-label {
  font-size: 12px;
}

.free-fortune-card .tarot-fortune__tab {
  min-width: 32px;
  height: 32px;
  font-size: 13px;
}

.free-fortune-card .tarot-fortune__count-tabs .tarot-fortune__tab {
  min-width: 36px;
  height: 36px;
  font-size: 14px;
}

.free-fortune-card .tarot-fortune__period-tabs .tarot-fortune__tab {
  height: 36px;
  font-size: 13px;
}

.free-fortune-card .tarot-fortune__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  box-sizing: border-box;
}

.free-fortune-card__fortune .tarot-fortune__submit {
  border: none;
  background: var(--free-fortune-frame);
  color: #fffaf5;
}

.free-fortune-card__syueki .tarot-fortune__submit,
.free-fortune-card__daneki .tarot-fortune__submit {
  display: inline-flex;
  width: auto;
  max-width: none;
  min-width: 156px;
  height: auto;
  min-height: 52px;
  margin: 0 auto;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  color: #fffaf5;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1.15;
  box-shadow: none;
  transition: opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.free-fortune-card__syueki .tarot-fortune__submit {
  background: #759a84;
}

.free-fortune-card__daneki .tarot-fortune__submit {
  background: #6e9a96;
}

.free-fortune-card__syueki .tarot-fortune__submit:hover,
.free-fortune-card__syueki .tarot-fortune__submit:focus-visible,
.free-fortune-card__daneki .tarot-fortune__submit:hover,
.free-fortune-card__daneki .tarot-fortune__submit:focus-visible {
  opacity: 0.88;
  transform: none;
}

.free-fortune-card__syueki .tarot-fortune__submit:active,
.free-fortune-card__daneki .tarot-fortune__submit:active {
  opacity: 0.88;
  transform: none;
}

.free-fortune-card__syueki .tarot-fortune__submit:disabled,
.free-fortune-card__daneki .tarot-fortune__submit:disabled {
  transform: none;
  opacity: 0.72;
}

.free-fortune-card__cta:hover,
.free-fortune-card__cta:focus-visible {
  opacity: 0.88;
}

.free-fortune-card__cta-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.82;
}

.free-fortune-card__cta-main {
  font-size: 14px;
  letter-spacing: 0.14em;
}

@media (prefers-reduced-motion: reduce) {
  .free-fortune-card__cta::before {
    animation: none;
  }
}

@media (min-width: 600px) {
  .free-fortune-hub {
    max-width: 340px;
    padding: 20px 18px;
  }

  .free-fortune-hub .cta--05 {
    max-width: 320px;
  }

  .free-fortune-card-wrap {
    max-width: 100%;
  }

  .free-fortune-card {
    width: 100%;
    max-width: 100%;
  }

  .free-fortune-card__text {
    font-size: 15px;
    line-height: 1.75;
  }

  .free-fortune-card__tag {
    min-width: 3.8em;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
  }

  .free-fortune-card__cta {
    gap: 4px;
    min-width: 180px;
    min-height: 58px;
    padding: 14px 28px;
  }

  .free-fortune-card__cta-sub {
    font-size: 11px;
  }

  .free-fortune-card__cta-main {
    font-size: 15px;
  }

  .free-fortune-card__inner {
    margin: 0;
    padding: 0;
  }

  .free-fortune-card.is-playing .free-fortune-card__inner {
    padding: 0;
  }

  .free-fortune-card.is-playing .free-fortune-card__play,
  .free-fortune-card.is-playing .free-fortune-card__play[hidden] {
    padding: 32px 0 16px;
  }

  .free-fortune-card .tarot-fortune__count-tabs .tarot-fortune__tab {
    min-width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .free-fortune-card .tarot-fortune__period-tabs .tarot-fortune__tab {
    height: 38px;
    font-size: 14px;
  }

  .free-fortune-card .tarot-fortune__submit {
    height: 38px;
  }

  .free-fortune-card__syueki .tarot-fortune__submit,
  .free-fortune-card__daneki .tarot-fortune__submit {
    height: auto;
    min-height: 52px;
    font-size: 18px;
  }

  .free-fortune-card .tarot-one-draw .tarot-fortune__frame,
  .free-fortune-card__one-draw-frame {
    width: 86%;
    max-width: 280px;
  }

  .free-fortune-card .tarot-one-draw__hero-deck {
    width: 156px;
  }

  .free-fortune-card .tarot-one-draw__spread {
    --spread-width: 160px;
    --spread-gap: 12px;
  }

  .free-fortune-card__play-cue {
    font-size: 15px;
  }
}

/* ════════════════════════════════════════
   無料ツール専用ランディング
════════════════════════════════════════ */
.tool-page__lead {
  margin: 18px 0 0;
  text-align: center;
}

.tool-page__lead p {
  margin: 0 0 0.75em;
  color: #5c4a40;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.tool-page__lead p:last-child {
  margin-bottom: 0;
}

.tool-page__unique {
  margin-top: 14px !important;
  padding: 12px 14px;
  background: rgba(154, 133, 120, 0.1);
  border-radius: 10px;
  color: #2a1810 !important;
  font-size: 13.5px !important;
  text-align: left;
}

.tool-page__tool {
  margin: 28px 0 8px;
}

.tool-page__tool .free-fortune-card-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.tool-page .qa-request__lead p {
  text-align: center;
}

.tool-page .qa-request__list--center a {
  color: #452f24;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-underline-offset: 3px;
}

.tool-page .qa-request__list--center li + li {
  margin-top: 10px;
}

.tool-page__section {
  margin-top: 36px;
}

.tool-page__h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: #2a1810;
  text-align: center;
}

.tool-page__list {
  margin: 0;
  padding: 0 4px 0 1.2em;
  color: #5c4a40;
  font-size: 14px;
  line-height: 1.85;
}

.tool-page__list li + li {
  margin-top: 0.45em;
}

.tool-page__faq-item + .tool-page__faq-item {
  margin-top: 16px;
}

.tool-page__faq-q {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #2a1810;
}

.tool-page__faq-a {
  margin: 0;
  color: #5c4a40;
  font-size: 13.5px;
  line-height: 1.8;
}

.tool-page__related {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.tool-page__related li + li {
  margin-top: 10px;
}

.tool-page__related a {
  color: #452f24;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-underline-offset: 3px;
}

.free-fortune-card__more {
  display: inline-block;
  margin-top: 12px;
  color: #6b574a;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-underline-offset: 3px;
}

@media (min-width: 600px) {
  .tool-page__lead p {
    font-size: 15px;
  }

  .tool-page__h2 {
    font-size: 17px;
  }
}
