.tarot-page .app {
  background: var(--color-cream);
  color: var(--color-ink);
}

.tarot-header {
  padding: 3rem 4% 0;
  text-align: center;
}

.tarot-header__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.tarot-header__lead {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(28, 26, 22, 0.7);
}

.tarot-list {
  padding: 1.5rem 6% 2rem;
}

/* ---------- カテゴリの開閉 ---------- */

.tarot-category__empty {
  padding: 0.4rem 0 1.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(28, 26, 22, 0.5);
}

/* ---------- カード一覧 ---------- */

.tarot-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 0.8rem;
  padding: 0.4rem 0 1.6rem;
}

.tarot-card {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.tarot-card__img,
.tarot-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
}

.tarot-card__img {
  height: auto;
  object-fit: cover;
}

.tarot-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(28, 26, 22, 0.3);
  font-size: 0.7rem;
  color: rgba(28, 26, 22, 0.5);
}

.tarot-card__name {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.tarot-card:active .tarot-card__img {
  opacity: 0.8;
}

/* ---------- タブ ---------- */

.tarot-tabs {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
  padding-bottom: 1rem;
}

.tarot-tabs__item {
  position: relative;
  appearance: none;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0.3rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-ink);
  cursor: pointer;
}

/* 項目の間の縦線 */
.tarot-tabs__item + .tarot-tabs__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  border-left: 1px solid rgba(28, 26, 22, 0.5);
}

/* 選択中の項目:赤字 + 下線 */
.tarot-tabs__item.is-active {
  color: #e60012;
  border-bottom-color: var(--color-ink);
}

/* ---------- 詳細ページ ---------- */

.tarot-breadcrumb {
  padding: 1.4rem 6% 0;
  font-size: 0.8rem;
}

.tarot-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

.tarot-detail {
  padding: 1rem 8% 2rem;
}

.tarot-detail__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.2rem;
}

.tarot-detail__visual {
  text-align: center;
  margin-bottom: 2.2rem;
}

.tarot-detail__img {
  display: inline-block;
  width: 200px;
  max-width: 60%;
  height: auto;
}

.tarot-detail__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  max-width: 60%;
  aspect-ratio: 2 / 3;
  border: 1px dashed rgba(28, 26, 22, 0.3);
  font-size: 0.8rem;
  color: rgba(28, 26, 22, 0.5);
}

.tarot-detail__section {
  margin-bottom: 2.4rem;
}

.tarot-detail__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(28, 26, 22, 0.25);
}

/* 逆位置セクションの小さな画像(180度回転) */
/* .tarot-detail__thumb {
  text-align: center;
  margin-bottom: 1.2rem;
}

.tarot-detail__thumb img {
  width: 100px;
  height: auto;
  transform: rotate(180deg);
} */

.tarot-keywords {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.tarot-keywords li {
  padding: 0.25rem 0.8rem;
  border: 1px solid #a6446b;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #a6446b;
}

.tarot-detail__text {
  font-size: 0.9rem;
  line-height: 1.9;
}

.tarot-detail .ad-slot {
  margin-top: 2rem;
}

/* 前のカード / 次のカード */
.tarot-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 8% 1.5rem;
  font-size: 0.82rem;
}

.tarot-pager a {
  color: #a6446b;
  text-decoration: none;
}