/* =====================================================================
   entry.css — 六命タイプ別ページ等「静的入口ページ」用スタイル。
   SPA(app.jsx) のヒーロー表現に寄せて世界観を統一（中央寄せ・字間・
   六角形＋北極星ロゴ・金グラデ見出し・ゴールド区切り線）。本文は可読性
   優先で左寄せ。CSSのみで軽量。デザイントークンは index.html からミラー。
   ===================================================================== */

:root {
  --void: #FFF8F0;
  --deep: #FFF3E4;
  --surface: #FFFFFF;
  --border: rgba(61, 52, 40, 0.12);
  --gold: #FF8A3D;
  --gold-light: #FFB067;
  --jade: #38B99B;
  --crimson: #F2617A;
  --text: #3D3428;
  --text-dim: rgba(61, 52, 40, 0.72);
  --serif-jp: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --serif-en: 'Quicksand', 'Zen Maru Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.lc-entry {
  background: var(--void);
  color: var(--text);
  font-family: var(--serif-jp);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
/* やわらかい紙のグラデ（アプリと同じ空気） */
body.lc-entry::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 232, 214, 0.55) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.lc-entry__main, .lc-breadcrumb, .lc-entry__footer { position: relative; z-index: 1; }

/* パンくず（上部・控えめ） */
.lc-breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 20px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.lc-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.lc-breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.lc-breadcrumb span[aria-hidden] { margin: 0 6px; color: var(--border); }
.lc-breadcrumb__current { color: var(--text); }

/* 本文コンテナ */
.lc-entry__main {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

/* ============ ヒーロー（中央寄せ・アプリ準拠） ============ */
.lc-hero { text-align: center; padding: 28px 0 8px; }

.lc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}
.lc-logo__svg { display: block; width: 100%; height: 100%; }
/* アプリと同じゆっくり回転（点線リング・六角形） */
@keyframes lc-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lc-spin-r { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.lc-spin-slow, .lc-spin-rev, .lc-spin-hex { transform-box: fill-box; transform-origin: center; }
.lc-spin-slow { animation: lc-spin 30s linear infinite; }
.lc-spin-rev  { animation: lc-spin-r 20s linear infinite; }
.lc-spin-hex  { animation: lc-spin 20s linear infinite; }

.lc-hero__eyebrow {
  font-family: var(--serif-en);
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.82;
  margin-bottom: 14px;
  padding-left: 0.4em; /* letter-spacing の右寄りを中央補正 */
}

.lc-hero__emoji { font-size: 84px; line-height: 1; margin-bottom: 10px; }

.lc-hero__title {
  font-size: clamp(2rem, 5.4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  background: linear-gradient(180deg, rgba(232, 204, 128, 0.98) 0%, rgba(255, 138, 61, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 0.18em;
}

.lc-hero__divider {
  width: 160px;
  height: 1px;
  margin: 20px auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.lc-hero__catch {
  font-size: clamp(15px, 3.2vw, 18px);
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto;
}

/* リード文（中央寄せカード） */
.lc-type__lead {
  font-size: 15.5px;
  line-height: 1.95;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 26px auto 0;
  max-width: 640px;
  box-shadow: 0 4px 18px rgba(61, 52, 40, 0.05);
}

/* ============ セクション（本文・左寄せで可読性優先） ============ */
.lc-sec { margin: 30px 0; }
.lc-sec h2 {
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 13px;
  border-left: 4px solid var(--gold);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.lc-sec h3 { font-size: 15.5px; font-weight: 700; margin: 16px 0 8px; }
.lc-sec p { font-size: 15.5px; }

/* チェックリスト */
.lc-check { list-style: none; padding: 0; }
.lc-check li {
  position: relative;
  padding: 9px 8px 9px 34px;
  border-bottom: 1px dashed var(--border);
  font-size: 15.5px;
}
.lc-check li::before { content: '✓'; position: absolute; left: 8px; color: var(--jade); font-weight: 700; }

/* 相性 */
.lc-compat { list-style: none; padding: 0; }
.lc-compat li {
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 15px;
}
.lc-compat a { color: var(--gold); font-weight: 700; text-decoration: none; }
.lc-compat a:hover { text-decoration: underline; }

/* FAQ */
.lc-faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.lc-faq__q { color: var(--gold); margin-bottom: 6px; }
.lc-faq__a { font-size: 15px; }

/* ============ タイプ図鑑カード ============ */
.lc-typecards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}
.lc-typecard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(61, 52, 40, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.lc-typecard:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(255, 138, 61, 0.18);
}
.lc-typecard__emoji { font-size: 34px; line-height: 1; flex-shrink: 0; }
.lc-typecard__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lc-typecard__name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.lc-typecard__catch { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.lc-typecard__arrow { color: var(--gold); font-size: 22px; flex-shrink: 0; opacity: 0.7; }

/* ============ CTA ============ */
.lc-cta { margin: 26px 0; text-align: center; }
.lc-cta--big { margin: 40px 0 8px; }
.lc-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(255, 138, 61, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lc-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 138, 61, 0.42); }
.lc-cta__btn--big { font-size: 18px; padding: 18px 38px; }

/* 更新日・運営者（信頼性） */
.lc-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin: 4px 0 8px;
}

/* ============ フッター（上品に整理） ============ */
.lc-entry__footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 20px 52px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.lc-disclaimer { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.7; max-width: 560px; margin-left: auto; margin-right: auto; }
.lc-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.lc-footer__nav a { font-size: 13px; color: var(--text-dim); text-decoration: none; }
.lc-footer__nav a:hover { color: var(--gold); text-decoration: underline; }
.lc-copyright { font-size: 12px; color: var(--text-dim); }

/* ============ 主命×副命 組み合わせ一覧（レスポンシブ） ============ */
.lc-combo-group { margin: 0 0 22px; }
.lc-combo-group:last-of-type { margin-bottom: 4px; }
.lc-combo-group__head {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--combo-accent, var(--gold));
}
.lc-combo-group__head small {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
  white-space: nowrap;
}
.lc-combo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.lc-combo-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.lc-combo-item:hover {
  transform: translateY(-2px);
  border-color: var(--combo-accent, var(--gold));
  box-shadow: 0 8px 20px rgba(61, 52, 40, 0.08);
}
.lc-combo-item__name { font-size: 14px; font-weight: 600; line-height: 1.45; }
.lc-combo-item__meta { font-size: 11.5px; color: var(--text-dim); }
/* P2: 30組の称号（コード｜呼び名＋一言コピー） */
.lc-combo-item__title { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--combo-accent, var(--text)); }
.lc-combo-item__copy { font-size: 12.5px; line-height: 1.55; color: var(--text); }
@media (max-width: 420px) {
  .lc-combo-list { grid-template-columns: 1fr 1fr; gap: 7px; }
  .lc-combo-item { padding: 9px 10px; border-radius: 10px; }
  .lc-combo-item__name { font-size: 13px; }
  .lc-combo-item__title { font-size: 14px; }
  .lc-combo-item__copy { font-size: 12px; }
  .lc-combo-item__meta { font-size: 11px; }
}

/* P2: 組み合わせ個別ページのヒーロー（絵文字→コード→呼び名→一言コピー→主命×副命） */
.lc-combo-hero__code {
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  margin-bottom: 4px;
}
.lc-combo-hero .lc-hero__title { margin: 0; }
.lc-combo-hero__copy {
  font-size: clamp(15px, 3.4vw, 18px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  max-width: 560px;
  margin: 10px auto 0;
}
.lc-combo-hero__types {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 8px auto 0;
}

/* 30組の称号のふりがな（ja のみ <ruby>）・リンクなしのコードカード（相性ページ en/th） */
.lc-yomi-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: bottom;
  line-height: 1.25;
}
.lc-ruby-rt {
  white-space: nowrap;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.lc-combo-item__title .lc-ruby-rt { font-size: 0.6em; }
.lc-combo-item--static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}
