/* ふたり手帖 */
:root {
  --paper: #FBF7F1; --paper-2: #F5EEE4; --surface: #FFFFFF; --ink: #2B2530; --body: #4A4250; --sub: #6F6674; --muted: #968C98;
  --line: #EADFD2; --line-2: #DDD0BF; --rule: rgba(160, 130, 100, .13);
  --me: #B8506A; --me-soft: #F7E6EA; --you: #3E5C8A; --you-soft: #E6ECF5;
  --gold: #B08A4E; --good: #B8506A; --mid: #9A7A3C; --low: #3E5C8A;
  --gogyo-wood: #4F8A5B; --gogyo-fire: #C6583E; --gogyo-earth: #9A7A3C; --gogyo-metal: #8A8F99; --gogyo-water: #3E5C8A;
  --serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --hand: 'Klee One', 'Zen Old Mincho', serif;
  --num: 'Cormorant Garamond', 'Zen Old Mincho', serif;
  --sans: system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
a { color: var(--me); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--me); outline-offset: 2px; }
.container { max-width: 680px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.note { font-size: 12.5px; color: var(--sub); }

/* ヘッダー */
.site-header { position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 6px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .08em; }
.ribbon { position: absolute; right: 24px; top: 0; width: 12px; height: 44px; background: var(--me); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a { flex-shrink: 0; padding: 10px 10px 9px; font-size: 14px; color: var(--body); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--me); }

/* 見出し */
.eyebrow { font-family: var(--hand); font-weight: 600; font-size: 14px; color: var(--me); letter-spacing: .06em; }
.sec { padding-top: 36px; }
.sec-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.5; margin: 2px 0 14px; }
.sec-lead { color: var(--body); margin: -6px 0 16px; font-size: 15px; }
.crumb { font-size: 12.5px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 6px; }
.crumb a { color: var(--sub); }
.page-head { padding-top: 4px; }
.page-title { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.5; margin: 6px 0 8px; }
.lead { color: var(--body); font-size: 15.5px; margin: 0 0 18px; }
.cta { margin-top: 18px; }

/* ヒーロー */
.hero { padding-top: 22px; }
.hero-title { font-family: var(--serif); font-weight: 700; font-size: 31px; line-height: 1.5; margin: 4px 0 10px; letter-spacing: .02em; }
.hero-lead { color: var(--body); font-size: 15px; margin: 0 0 18px; }

/* 手帖のページ（ノート罫） */
.notebook { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px 18px 18px 6px; padding: 18px 18px 18px 28px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(60, 40, 30, .35); }
.notebook::before { content: ''; position: absolute; left: 12px; top: 14px; bottom: 14px; border-left: 2px dotted var(--line-2); }
.person { margin-bottom: 14px; }
.person-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.who { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.who.me { background: var(--me); } .who.you { background: var(--you); }
.date-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.date-row label { display: flex; align-items: center; gap: 4px; min-width: 0; }
.date-row select { width: 100%; min-width: 0; height: 46px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 16px; }
.date-row select.invalid { border-color: var(--me); box-shadow: 0 0 0 2px var(--me-soft); }
.unit { font-size: 14px; color: var(--sub); flex-shrink: 0; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chips label { position: relative; }
.rel-chips input { position: absolute; opacity: 0; pointer-events: none; }
.rel-chips span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; background: var(--surface); cursor: pointer; }
.rel-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rel-chips input:focus-visible + span { outline: 2px solid var(--me); outline-offset: 2px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-main { background: linear-gradient(100deg, var(--me), #9A4A78 55%, var(--you)); color: #fff; box-shadow: 0 8px 18px -10px rgba(120, 50, 80, .7); }
.btn-main:hover { filter: brightness(1.05); }
.btn-line { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--sub); }
.form-note { font-size: 12.5px; color: var(--sub); margin: 10px 0 0; text-align: center; }
.form-error { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--me); }
.finder-out:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.finder-result { display: grid; gap: 6px; }
.finder-result .fr-name { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.finder-result .fr-sub { font-size: 13.5px; color: var(--sub); }
.finder-result a.btn { margin-top: 6px; min-height: 46px; }

/* 結果 */
.result[hidden] { display: none; }
.score-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; text-align: center; }
.score-pair { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--sub); }
.score-big { font-family: var(--num); font-weight: 600; font-size: 72px; line-height: 1; margin: 10px 0 2px; color: var(--ink); }
.score-big small { font-size: 28px; margin-left: 2px; }
.score-label { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 6px 0 14px; }
.bars { display: grid; gap: 8px; text-align: left; }
.bar { display: grid; grid-template-columns: 5.5em 1fr 2.4em; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--me), var(--you)); }
.bar b { font-family: var(--num); font-size: 17px; text-align: right; }
.cusp { margin-top: 12px; background: #FFF8E8; border: 1px solid #EBD3A0; border-radius: 14px; padding: 14px 16px; font-size: 14px; color: #6B4A12; }
.cusp b { color: #5A3C08; }
.cusp-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cusp input { height: 40px; border: 1px solid #DDBF83; border-radius: 10px; padding: 0 10px; background: #fff; font-size: 16px; }
.rcard { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.rcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rcard-name { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.rcard-score { font-family: var(--num); font-weight: 600; font-size: 22px; color: var(--sub); }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.type { border-radius: 12px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; text-decoration: none; color: var(--ink); display: block; }
.type.me { background: var(--me-soft); } .type.you { background: var(--you-soft); }
.type span { color: var(--sub); }
.type b { display: block; font-size: 16px; color: var(--ink); font-family: var(--serif); }
.type small { display: block; color: var(--sub); }
a.type:hover b { text-decoration: underline; }
.rel { display: inline-block; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--paper-2); border-radius: 8px; padding: 2px 10px; margin-bottom: 6px; }
.rcard p { margin: 0 0 8px; font-size: 15px; color: var(--body); }
.rcard .more { font-size: 14px; font-weight: 700; text-decoration: none; }
.rcard .more::after { content: ' →'; }
.tips { margin-top: 12px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 16px; padding: 16px 18px; }
.tips-title { font-family: var(--hand); font-weight: 600; font-size: 16px; color: var(--me); margin-bottom: 6px; }
.tips ul { margin: 0; padding-left: 1.2em; color: var(--body); font-size: 15px; }
.tips li { margin: 6px 0; }

/* 電話占いの案内（PR） */
.pr { margin-top: 20px; background: linear-gradient(160deg, #FFF 0%, var(--me-soft) 120%); border: 1px solid #EBCBD3; border-radius: 18px; padding: 18px; }
.pr.soft { background: var(--surface); border-color: var(--line); }
.pr-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--sub); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; background: #fff; }
.pr-title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.55; margin: 8px 0 6px; }
.pr.soft .pr-title { margin-top: 0; }
.pr p { margin: 0 0 12px; font-size: 14.5px; color: var(--body); }
.svc { display: grid; gap: 8px; margin-bottom: 12px; }
.svc-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.svc-head b { display: block; font-size: 15px; }
.svc-head span { font-size: 12.5px; color: var(--sub); }
.a8 { margin-top: 6px; font-weight: 700; }
.pr-note { font-size: 12px !important; color: var(--sub) !important; margin: 0 !important; }

/* 入口タイル・一覧 */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.tile:hover { border-color: var(--line-2); }
.tile-mark { font-family: var(--num); font-size: 30px; line-height: 1; color: var(--gold); }
.tile-name { font-family: var(--serif); font-weight: 700; font-size: 17px; margin-top: 6px; }
.tile-desc { font-size: 12.5px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.tile-count { position: absolute; right: 12px; top: 12px; font-size: 11px; color: var(--sub); background: var(--paper-2); border-radius: 999px; padding: 0 8px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-size: 15px; }
.list a::after { content: '›'; color: var(--muted); font-size: 20px; line-height: 1; }
.list small { display: block; color: var(--sub); font-size: 12.5px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type-card { display: grid; gap: 1px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.type-card:hover { border-color: var(--line-2); }
.type-card b { font-family: var(--serif); font-size: 17px; }
.type-card small { font-size: 11.5px; color: var(--sub); }
.type-card > span:last-child { font-size: 12.5px; color: var(--body); }
.type-card-elem { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--elem); }
.type-card-num { font-family: var(--num); font-weight: 600; font-size: 24px; line-height: 1; color: var(--gold); }
.elem-grid, .gogyo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.elem-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.elem-card b { font-family: var(--serif); font-size: 16px; display: block; }
.elem-card span { font-size: 13px; color: var(--sub); }
.elem-card p { margin: 4px 0 0; font-size: 14px; color: var(--body); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rel-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.rel-card b { font-family: var(--serif); font-size: 19px; }
.rel-card b small { font-size: 12px; color: var(--sub); margin-left: 6px; font-family: var(--sans); font-weight: 400; }
.rel-card span { display: block; font-size: 12.5px; color: var(--me); font-weight: 700; }
.rel-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--body); line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--ink); }
.chips a:hover { border-color: var(--line-2); }

/* 表 */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.table-wrap tbody th { white-space: nowrap; font-weight: 700; }
.table-wrap tbody th small { display: block; font-size: 11px; color: var(--sub); font-weight: 400; }
.table-wrap td small { font-size: 11px; color: var(--sub); margin-left: 2px; }
.shuku-table td, .combo td { white-space: nowrap; }

/* タイプ別ページ */
.type-head { padding-top: 4px; }
.type-hero { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; margin-top: 10px; }
.type-mark { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #fff, var(--me-soft) 70%); border: 1px solid #EBCBD3; }
.mark-num { font-family: var(--num); font-weight: 600; font-size: 56px; line-height: 1; padding-bottom: 6px; color: var(--ink); }
.mark-kyusei { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.2; color: var(--ink); text-align: center; }
.type-title { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.45; margin: 2px 0 0; }
.type-nick { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--me); }
.type-range { font-size: 14px; color: var(--body); margin: 10px 0 0; }
.type-range small { color: var(--sub); margin-left: 4px; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kw span { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.type-head .lead { margin-top: 14px; }
.toc { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.toc ol { margin: 4px 0 0; padding-left: 1.3em; }
.prose h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; line-height: 1.5; }
.prose p { color: var(--body); margin: 0 0 12px; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clist li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.clist-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.clist-head a { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.clist-label { font-size: 13px; color: var(--sub); }
.clist p { margin: 4px 0 0; font-size: 14.5px; color: var(--body); line-height: 1.75; }
.clist-tip b { display: inline-block; font-size: 12px; color: var(--me); margin-right: 8px; }
.mark { font-weight: 700; font-size: 17px; }
.mark.good { color: var(--good); } .mark.mid { color: var(--mid); } .mark.low { color: var(--low); }
.rel-kind { display: inline-block; font-size: 13px; font-weight: 700; color: var(--me); background: var(--me-soft); border-radius: 999px; padding: 2px 12px; margin: 0 0 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.faq details + details { margin-top: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--body); font-size: 15px; }

/* 運営者情報など */
.legal dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 24px; }
.legal dt { font-weight: 700; } .legal dd { margin: 0; overflow-wrap: anywhere; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.legal ul { padding-left: 1.3em; color: var(--body); }

/* フッター */
.site-footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); background: var(--paper-2); text-align: center; }
.footer-logo { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .08em; }
.footer-tag { font-size: 12.5px; color: var(--sub); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; font-size: 13.5px; }
.footer-nav a { color: var(--body); }
.footer-nav.sub { margin-top: 8px; font-size: 12.5px; }
.footer-nav.sub a { color: var(--sub); }
.footer-sisters { font-size: 12.5px; color: var(--sub); margin-top: 14px; }
.footer-sisters a { color: var(--body); }
.site-footer .note { max-width: 32em; margin: 10px auto 0; }

@media (min-width: 720px) {
  .hero-title { font-size: 36px; }
  .page-title { font-size: 30px; }
}
