
.tarot-figure img,
.card-detail img.tarot-card-img,
.card-detail figure img {
  max-width: 320px;        
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarot-figure img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}


.page-header {
  max-width: 900px;
  margin: 30px auto 25px;
  padding: 0 15px;
  text-align: center;
}
.page-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
}
.page-header p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}
.page-header .pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(90deg,#f5f0ff,#e8f0ff);
  color: #4b0082;
  margin-bottom: 8px;
}


.card-detail {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 22px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  line-height: 1.8;
}
.card-detail h3.section {
  display: inline-block;
  padding: 6px 14px;
  font-size: 18px;
  margin-bottom: 14px;
  border-left: 5px solid #6a5acd;
  background: linear-gradient(90deg,#f9f9ff,#ffffff);
  border-radius: 0 8px 8px 0;
  color: #333;
}


.kw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.kw span {
  font-size: 13px;
  background: #f0f0f5;
  border-radius: 14px;
  padding: 4px 12px;
  color: #444;
  border: 1px solid #ddd;
}


.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 14px;
  margin-top: 15px;
}
.facts div {
  background: #faf7ff;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #e0dff7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.facts div strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #555;
}


.nextprev {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.nextprev a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 25px;
  border: 2px solid #6a5acd;
  color: #6a5acd;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
}
.nextprev a:hover {
  background: #6a5acd;
  color: #fff;
  transform: translateY(-2px);
}


.breadcrumbs {
  font-size: 13px;
  color: #666;
  margin: 12px 0 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: #6a5acd;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs::before {
  content: "🏠";
  margin-right: 4px;
}
.breadcrumbs span::before {
  content: "›";
  margin: 0 6px;
  color: #aaa;
}


@media screen and (max-width: 768px) {
  .page-header h2 { font-size: 22px; }
  .page-header p { font-size: 14px; }
  .card-detail { padding: 18px 14px; }
  .card-detail h3.section { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .nextprev { flex-direction: column; }
  .nextprev a { font-size: 15px; padding: 12px 0; }
}



.symbols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 15px;
  padding: 0;
  list-style: none;
}

.symbols li {
  background: #faf7ff;
  border: 1px solid #e0dff7;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.symbols li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  background: #fdfcff;
}

.symbols li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #4b0082;
  font-weight: bold;
}


.symbols li::before {
  content: "✦"; 
  position: absolute;
  top: -8px;
  left: -8px;
  background: #6a5acd;
  color: #fff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.comparison .box {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.comparison .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.comparison .title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}


.comparison .upright {
  border-top: 4px solid #6a5acd;
  background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
}
.comparison .upright .title {
  color: #4b0082;
}
.comparison .upright::before {
  content: "☀";
  color: #6a5acd;
}


.comparison .reversed {
  border-top: 4px solid #b85c5c;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
}
.comparison .reversed .title {
  color: #a52a2a;
}
.comparison .reversed::before {
  content: "☾";
  color: #b85c5c;
}


.comparison p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}


.meaning-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 15px;
}

.meaning-summary .item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.meaning-summary .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.meaning-summary .label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
}


.meaning-summary .upright .label {
  background: #f3f0ff;
  color: #4b0082;
  border: 1px solid #d3c6ff;
}
.meaning-summary .upright::before {
  content: "☀";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  color: #6a5acd;
}


.meaning-summary .reversed .label {
  background: #fff0f0;
  color: #a52a2a;
  border: 1px solid #f0bebe;
}
.meaning-summary .reversed::before {
  content: "☾";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  color: #b85c5c;
}


.meaning-summary p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}


.context-reading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.context-reading .context-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.context-reading .context-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.context-reading .title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}


.context-reading .love .title { color: #d6336c; }
.context-reading .work .title { color: #1c7ed6; }
.context-reading .money .title { color: #e67700; }
.context-reading .health .title { color: #2f9e44; }


.context-reading p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}




.spread-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.spread-card {
  background: linear-gradient(135deg, #faf9ff, #ffffff);
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spread-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.spread-card .title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b0082;
}

.spread-card .title::before {
  content: "🃏";
  font-size: 16px;
}


.spread-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}




.relation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.relation-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #e0dff7;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.relation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.relation-card .pair {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.relation-card .pair span {
  background: #f5f0ff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  color: #4b0082;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}


.relation-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}




.detail-text {
  background: linear-gradient(135deg, #faf9ff, #ffffff);
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  position: relative;
}



.detail-text::before {
  content: "❖ 意味・解釈の核心 ❖";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #6a5acd;
  background: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #e0dff7;
}


.story-box {
  background: linear-gradient(135deg, #faf9ff, #ffffff);
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  position: relative;
}


.story-box::before {
  content: "📖 愚者の物語";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: bold;
  color: #6a5acd;
  background: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #e0dff7;
}

.story-box::after {
  content: none;
}



.personality-box {
  background: #fff;
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  margin-top: 15px;
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.personality-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.personality-box h4 {
  font-size: 15px;
  margin: 0 0 8px;
  color: #4b0082;
  display: flex;
  align-items: center;
  gap: 6px;
}


.personality-box h4::before {
  font-size: 16px;
}

.personality-box .character h4::before { content: "👤"; }
.personality-box .mind h4::before { content: "💭"; }

.personality-box p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #444;
}




.yesno-box {
  background: #fff;
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yesno-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}


.yesno-box h4 {
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
  color: #4b0082;
}


.yesno-labels {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}


.yesno-label {
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
}


.yes-label {
  background: #f0fff4;
  color: #2f9e44;
  border: 1px solid #b2f2bb;
}
.no-label {
  background: #fff5f5;
  color: #c92a2a;
  border: 1px solid #ffc9c9;
}
.neutral-label {
  background: #f8f5ff;
  color: #6a5acd;
  border: 1px solid #d0c4ff;
}


.yesno-box p {
  text-align: left;
  margin: 0;
}



.yesno-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e0dff7;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}
.yesno-grid div {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}
.yesno-grid div:nth-child(1) { background:#f0fff4; color:#2f9e44; }
.yesno-grid div:nth-child(2) { background:#f8f5ff; color:#6a5acd; }
.yesno-grid div:nth-child(3) { background:#fff5f5; color:#c92a2a; }



.advice-box {
  background: #fff;
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.advice-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}


.advice-box h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #4b0082;
}


.advice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.advice-list li {
  position: relative;
  padding-left: 28px;  
  margin-bottom: 10px;
}

.advice-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a5acd;
  font-size: 14px;
  line-height: 1.6;
  margin-right: 8px;   
}



.history-box {
  background: #fdfcff;
  border: 1px solid #e0dff7;
  border-radius: 12px;
  padding: 28px 20px 20px; 
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  position: relative;
  text-align: left;
}


.history-box::before {
  content: "📜 歴史・文化コラム";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: bold;
  color: #6a5acd;
  background: #fff;
  padding: 2px 12px;
  border-radius: 12px;
  border: 1px solid #e0dff7;
}


.history-box p {
  margin: 0;
}



.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.facts .fact-item {
  background: #fff;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.facts .fact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


.facts .fact-item::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #6a5acd;
  border-radius: 2px;
  margin: 0 auto 10px;
}


.facts strong {
  display: block;
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  margin-bottom: 6px;
}


.facts span {
  display: block;
  font-size: 17px;
  font-weight: bold;
  color: #333;
}




.context-reading.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-top: 10px;
}

.context-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.context-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.context-card .title {
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #444;
}

.context-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #555;
}


@media screen and (max-width: 768px) {
  .context-reading.grid-2x2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
