/* ==========================================================================
   上達の Tips集（/tips/）— body.tipsx だけに効く。生成は tools/build_tips.py
   色・書体は site.css の変数（navy / teal / orange、Apple JP トーン）
   ========================================================================== */
body.tipsx { background: var(--bg); }
.tipsx main { padding-top: var(--nav-h); }
.tipsx [hidden] { display: none !important; }

/* パンくず */
.tp-bc ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .8rem; color: var(--ink-3); margin-bottom: 18px; }
.tp-bc li { display: inline-flex; align-items: center; }
.tp-bc li + li::before { content: "›"; margin: 0 8px; color: var(--ink-3); }
.tp-bc a { color: var(--ink-2); }
.tp-bc a:hover { color: var(--teal-ink); }
.tp-hero .tp-bc ol, .tp-hero .tp-bc a, .tp-hero .tp-bc li::before { color: var(--on-dark-2); }

/* ---------------- 一覧のヒーロー ---------------- */
.tp-hero { position: relative; color: var(--on-dark); background: var(--navy-deep); overflow: clip; }
.tp-hero-bg { position: absolute; inset: 0; }
.tp-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.tp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,16,48,.96) 0%, rgba(16,16,48,.82) 48%, rgba(16,16,48,.35) 100%); }
.tp-hero-in { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(44px, 6vw, 80px); }
.tp-hero .kicker { color: var(--teal); }
.tp-h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin-top: 10px; }
.tp-h1 small { display: block; font-size: clamp(1.02rem, 1.9vw, 1.4rem); font-weight: 600; letter-spacing: 0; margin-top: 14px; color: var(--teal); }
.tp-hero-lead { max-width: 640px; margin-top: 18px; color: var(--on-dark-2); font-size: clamp(.98rem, 1.4vw, 1.1rem); line-height: 1.9; }
.tp-nums { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.tp-nums li { display: flex; align-items: baseline; gap: 8px; font-size: .85rem; color: var(--on-dark-2); font-weight: 600; }
.tp-nums b { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; font-weight: 800; letter-spacing: -.02em; }

/* ---------------- 絞り込み ---------------- */
.tp-find-wrap { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.tp-find { padding-block: 22px 20px; }
.tp-find-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.tp-find-row label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-find-row label > span:first-child { font-size: .74rem; font-weight: 700; color: var(--ink-3); letter-spacing: .12em; }
.tp-find-q { flex: 1 1 320px; }
.tp-find-cat { flex: 0 1 280px; }
.tp-input-ico { position: relative; display: block; }
.tp-input-ico i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 1.05rem; pointer-events: none; }
.tp-find input, .tp-find select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(26,26,62,.16); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.tp-find input { padding-left: 40px; }
.tp-find select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.tp-find input:focus, .tp-find select:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(71,214,212,.25); }
.tp-find-count { margin: 0 0 12px auto; font-weight: 800; font-size: .95rem; white-space: nowrap; color: var(--navy); }
.tp-chipgroups { display: grid; gap: 10px; margin-top: 16px; }
.tp-chipgroup { display: grid; grid-template-columns: 11em 1fr; gap: 8px; align-items: start; }
.tp-chipgroup-name { font-size: .78rem; font-weight: 700; color: var(--ink-3); padding-top: 8px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--pill); background: #fff; border: 1px solid rgba(26,26,62,.12); font-size: .88rem; font-weight: 600; line-height: 1.3; color: var(--navy); transition: background .2s, border-color .2s, color .2s; }
.tp-chip i { color: var(--teal-ink); font-size: 1rem; }
.tp-chip .num { font-size: .74rem; color: var(--ink-3); font-weight: 700; }
.tp-chip:hover { border-color: var(--teal-2); }
.tp-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tp-chip.on i { color: var(--teal); }
.tp-chip.on .num { color: var(--on-dark-2); }

/* ---------------- 分類ごとの一覧 ---------------- */
.tp-list { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 100px); }
.tp-sec { padding-top: clamp(28px, 4vw, 52px); scroll-margin-top: calc(var(--nav-h) + 12px); }
.tp-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tp-sec-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; }
.tp-sec-head h2 i { width: 40px; height: 40px; border-radius: 12px; background: rgba(71,214,212,.16); color: var(--teal-ink); display: grid; place-items: center; font-size: 1.25rem; }
.tp-sec-head h2 .num { font-size: .9rem; color: var(--ink-3); font-weight: 700; }
.tp-sec-head p { color: var(--ink-2); font-size: .95rem; }
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tp-grid { grid-template-columns: 1fr; gap: 12px; } }
.tp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 20px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: box-shadow .4s var(--ease), border-color .25s, translate .4s var(--ease); }
.tp-card:hover { border-color: rgba(26,26,62,.22); box-shadow: var(--shadow); translate: 0 -3px; }
.tp-card-top { display: flex; align-items: center; gap: 10px; }
.tp-card-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(71,214,212,.16); color: var(--teal-ink); display: grid; place-items: center; font-size: 1.15rem; transition: background .25s, color .25s; }
.tp-card:hover .tp-card-ico { background: var(--navy); color: var(--teal); }
.tp-card-cat { flex: 1; min-width: 0; font-size: .74rem; font-weight: 700; color: var(--teal-ink); letter-spacing: .06em; }
.tp-card-go { flex: none; color: var(--ink-3); font-size: 1.1rem; transition: color .25s, translate .3s var(--ease); }
.tp-card:hover .tp-card-go { color: var(--orange); translate: 2px -2px; }
.tp-card-title { font-size: 1.12rem; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; color: var(--navy); margin-top: 2px; }
.tp-card-lead { color: var(--ink-2); font-size: .86rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card-meta, .tp-ameta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.tp-card-meta span, .tp-ameta span { display: inline-flex; align-items: center; gap: 4px; }
.tp-card-meta i, .tp-ameta i { color: var(--teal-ink); }
.tp-empty { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 22px 24px; border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); }
.tp-empty i { font-size: 1.8rem; color: var(--teal-ink); }

/* ---------------- 申し込みの帯 ---------------- */
.tp-cta { background: var(--navy); color: var(--on-dark); }
.tp-cta-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding-block: clamp(44px, 6vw, 80px); }
.tp-cta .kicker { color: var(--teal); }
.tp-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 8px; }
.tp-cta p { color: var(--on-dark-2); margin-top: 12px; line-height: 1.85; }
.tp-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.tp-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.tp-cta-link { flex-basis: 100%; text-align: right; color: var(--teal); font-weight: 600; font-size: .92rem; }
@media (max-width: 860px) { .tp-cta-in { grid-template-columns: 1fr; } .tp-cta-btns { justify-content: flex-start; } .tp-cta-link { text-align: left; } }

/* ---------------- 1件のページ ---------------- */
.tp-ahead { padding-top: clamp(28px, 4vw, 56px); }
.tp-acat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: rgba(71,214,212,.16); color: var(--teal-ink); font-weight: 700; font-size: .85rem; }
.tp-ah1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; margin-top: 16px; text-wrap: balance; word-break: auto-phrase; }
.tp-asub { margin-top: 10px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--orange); font-weight: 600; text-wrap: pretty; }
.tp-alead { margin-top: 18px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.9; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.tp-aliases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tp-aliases li { font-size: .78rem; padding: 3px 10px; border-radius: var(--pill); background: var(--bg-2); color: var(--ink-2); }
.tp-aliases li::before { content: "#"; color: var(--teal-ink); margin-right: 2px; }
.tp-ameta { margin-top: 14px; padding-top: 0; font-size: .82rem; }
.tp-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 14px 0; border-block: 1px solid var(--line); }
.tp-toc a { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); background: var(--bg-2); color: var(--navy); }
.tp-toc a:hover { background: var(--navy); color: #fff; }
.tp-apic { margin-top: clamp(24px, 3vw, 36px); max-width: 1100px; }
.tp-apic img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--r-lg); }
.tp-abody { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 80px); }
.tp-block { padding-top: clamp(32px, 4.5vw, 56px); scroll-margin-top: calc(var(--nav-h) + 12px); }
.tp-block h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.tp-block h2 i { color: var(--teal-ink); }
.tp-points { counter-reset: p; display: grid; gap: 10px; }
.tp-points li { counter-increment: p; position: relative; padding: 14px 18px 14px 58px; border-radius: var(--r); background: var(--bg-2); line-height: 1.8; }
.tp-points li::before { content: counter(p); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.tp-step { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 16px; background: #fff; }
.tp-step + .tp-step { margin-top: 14px; }
.tp-step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; }
.tp-step h3 .n { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--teal); color: var(--navy); display: grid; place-items: center; font-size: .9rem; }
.tp-step ol { list-style: decimal; padding-left: 1.4em; margin-top: 10px; display: grid; gap: 6px; line-height: 1.8; color: var(--ink); }
.tp-step ol li::marker { color: var(--teal-ink); font-weight: 700; }
.tp-pass { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(232,93,44,.08); line-height: 1.75; }
.tp-pass span { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-weight: 800; color: var(--orange); font-size: .88rem; }
.tp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tp-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tp-table th, .tp-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.tp-table thead th { background: var(--bg-2); font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.tp-table tbody tr:last-child > * { border-bottom: 0; }
.tp-table tbody th { font-weight: 700; white-space: nowrap; }
.tp-table tbody th a { color: var(--teal-ink); display: inline-flex; align-items: center; gap: 2px; }
.tp-table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-fine { margin-top: 10px; font-size: .8rem; color: var(--ink-3); }
.tp-miss { display: grid; gap: 8px; }
.tp-miss li { position: relative; padding-left: 26px; line-height: 1.8; }
.tp-miss li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.tp-booth p { padding: 18px 20px; border-radius: var(--r); background: var(--navy); color: var(--on-dark); line-height: 1.9; }
.tp-pns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
.tp-pn { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); font-weight: 700; line-height: 1.5; transition: border-color .2s; }
.tp-pn span { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.tp-pn.next { text-align: right; align-items: flex-end; }
.tp-pn:hover { border-color: var(--teal-2); }
.tp-related { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.tp-related h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.tp-back { margin-top: 22px; text-align: center; }
.tp-back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal-ink); }
@media (max-width: 700px) {
  .tp-find-cat { flex: 1 1 100%; }
  .tp-find-count { margin: 0; }
  .tp-chipgroups { gap: 8px; margin-top: 12px; }
  .tp-chipgroup { grid-template-columns: 1fr; gap: 4px; min-width: 0; }
  .tp-chipgroup-name { padding-top: 0; font-size: .72rem; }
  .tp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .tp-chips::-webkit-scrollbar { display: none; }
  .tp-chip { flex: none; white-space: nowrap; font-size: .82rem; padding: 6px 12px; }
  .tp-apic img { aspect-ratio: 16 / 9; border-radius: var(--r); }
  .tp-pns { grid-template-columns: 1fr; }
  .tp-pn.next { text-align: left; align-items: flex-start; }
  .tp-points li { padding-left: 52px; }
}
