/*
 * TOP と「占いを探す」ページ（すべての占い・悩み別・検索・相談のしかた）の一覧の部品
 *   背景はサイト共通の濃い紫のまま。一覧・カードは少し明るい紫の面＋細い線で、区切りが分かるようにする。
 *   body.home のページだけに効く。
 */
body.home {
  --tile: #1a1326; --tile-hover: #251a36; --chip: #2a1d3d;
  --line: #3f2f52; --line-soft: rgba(255, 255, 255, .07);
  --brand: #b79bff; --brand-strong: #7459ff; --brand-soft: rgba(162, 124, 255, .14); --brand-line: #5a4580;
  font-size: 16px; line-height: 1.75;
}
body.home a { color: var(--brand); }
body.home a:hover { color: #d6c6ff; }
body.home h1, body.home h2, body.home h3 { font-family: var(--sans); color: var(--text); }
body.home .eyebrow { display: none; }
body.home :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
body.home .pr-notice { max-width: 1040px; margin: 0 auto; padding: 8px 16px 0; font-size: 12px; color: var(--muted); }
body.home .wrap-narrow .pr-notice { padding: 8px 0 0; }

/* 紹介と検索 */
.home-intro { padding: 18px 0 16px; border-bottom: 1px solid var(--line-soft); }
.home-intro h1 { font-size: 22px; margin: 0 0 4px; color: var(--gold) !important; letter-spacing: .04em; }
.home-lead { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.home-tagline { display: block; font-size: 13px; color: var(--brand); margin-top: 2px; }
.home-intro-sub { background: transparent; border: 0; padding: 8px 0 0; }
.search-label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.search-row { display: flex; }
.search-input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 2px solid var(--brand-line); border-right: 0; border-radius: 10px 0 0 10px; background: #120c1b; color: var(--text); font: 16px var(--sans); }
.search-input::placeholder { color: #8f84a0; }
.search-input:focus { border-color: var(--brand); outline: none; }
.search-btn { flex: none; width: 56px; height: 50px; border: 0; border-radius: 0 10px 10px 0; background: var(--brand-strong); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-btn svg { width: 24px; height: 24px; }
.search-btn:hover { background: #8a73ff; }

/* レイアウト（PCは左にサイドメニュー） */
.home-layout { padding-top: 6px; }
.home-side { display: none; }
@media (min-width: 960px) {
  .home-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
  .home-side { display: block; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; margin-top: 22px; }
}
.side-title { margin: 0 !important; padding: 10px 14px; font-size: 15px; background: var(--chip); color: var(--gold) !important; border: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.home-side nav + nav { margin-top: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; background: var(--tile); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
.side-list a { display: block; padding: 9px 14px; font-size: 14px; color: var(--text) !important; text-decoration: none; border-top: 1px dashed var(--line); }
.side-list li:first-child a { border-top: 0; }
.side-list a:hover { background: var(--tile-hover); color: var(--brand) !important; }

/* ブロックと見出し */
.home-block { margin-top: 26px; }
.block-title { font-size: 18px; margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--gold); line-height: 1.4; }
.block-note { font-size: 14px; color: var(--muted); margin: -4px 0 10px; }
.more { text-align: right; margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.more a { text-decoration: none; }
.more a::after { content: " ›"; }

/* タブ */
body.home .tab-list { grid-template-columns: repeat(2, 1fr); border-bottom: 3px solid var(--brand-strong); margin-bottom: 14px; }
body.home .tab { background: var(--tile); color: var(--muted); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; font-size: 15px; }
body.home .tab[aria-selected="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
body.home .tab:hover:not([aria-selected="true"]) { background: var(--tile-hover); color: var(--text); }

/* タイル（2列〜4列） */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; align-items: center; gap: 10px; min-height: 64px; height: 100%; padding: 8px 10px; background: var(--tile); border: 1px solid var(--line); border-radius: 8px; color: var(--text) !important; text-decoration: none; }
.tile:hover { border-color: var(--brand); background: var(--tile-hover); }
.tile-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--chip); color: var(--gold); }
.tile-icon svg { width: 26px; height: 26px; }
.tile-name { font-size: 15px; font-weight: 700; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.tile-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* 行の一覧（おすすめ・新着・カテゴリ・検索結果） */
.rows { list-style: none; margin: 0; padding: 0; background: var(--tile); border: 1px solid var(--line); border-radius: 8px; }
.rows li + li .row { border-top: 1px solid var(--line-soft); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text) !important; text-decoration: none; }
.row:hover { background: var(--tile-hover); }
.row-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--chip); color: var(--gold); }
.row-icon svg { width: 28px; height: 28px; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-body b { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-body small { font-size: 14px; color: var(--muted); line-height: 1.6; }
.row-arrow { flex: none; color: var(--brand); font-size: 22px; line-height: 1; }
.row-cat { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge-new { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 4px; background: var(--gold); color: #1a1022; }

/* 検索 */
.search-none { font-weight: 700; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--tile); border: 1px solid var(--brand-line); text-decoration: none; font-size: 14px; }
.chips a:hover { background: var(--tile-hover); }

/* 今日の占い（毎日更新の欄をコンパクトに） */
body.home .today { margin-top: 0; padding: 16px; background: var(--tile); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; grid-template-columns: 1fr; gap: 12px; }
body.home .today-head h2 { font-size: 18px; padding-left: 10px; border-left: 4px solid var(--gold); }
body.home .today-head .lead { font-size: 14px; color: var(--muted); }
body.home .today-top3 h3 { color: var(--gold); font-size: 13px; }
body.home .today-links { grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { body.home .today-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.home .today-links a { background: var(--chip); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; }
body.home .today-links a:hover { border-color: var(--brand); }

/* カード */
body.home .card { background: var(--tile); border: 1px solid var(--line); box-shadow: none; border-radius: 8px; }

/* 相談サービスの案内（広告）・LINE の案内 */
.aff-compact-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.aff-compact-list a { font-weight: 700; }
.aff-compact-list span { margin-left: 8px; font-size: 13px; color: var(--muted); }
body.home .line-cta { border-color: rgba(6, 199, 85, .45); }
.line-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.line-compact .line-cta-title { font-size: 17px; margin: 0 !important; font-family: var(--sans); }
.line-compact p { margin: 0; }

/* 相談のしかた */
.soudan-dl { margin: 0; display: grid; gap: 10px; }
.soudan-dl > div { padding: 12px 14px; background: var(--tile); border: 1px solid var(--line); border-radius: 8px; }
.soudan-dl dt { font-weight: 800; color: var(--gold); }
.soudan-dl dd { margin: 4px 0 0; font-size: 15px; }
