/* ビズタク フロント（種類トップ）
 * 元はデザイン見本 docs/design-mockups の案F。見本を直したら scratchpad の export_css.py で書き出し直すか、ここを直接直す。
 */
/* メインビジュアル */
.tmv { position: relative; overflow: hidden; background: linear-gradient(120deg, #F4F7FB 0%, #EAF0F7 55%, #E1E9F3 100%); }
.tmv::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.85) 0 34%, transparent 34.2%); }
.tmv .wrap { position: relative; }
.tmv-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 8px 0 64px; }
.tmv-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.tmv-kicker .kind-tag { font-size: 13px; padding: 3px 12px; }
.tmv h1 { margin: 0 0 18px; font-size: clamp(28px, 3.7vw, 46px); font-weight: 900; line-height: 1.3; color: var(--ink); letter-spacing: .01em; }
.tmv h1 .nw { display: inline-block; }
.tmv .lead { margin: 0 0 28px; font-size: clamp(14px, 1.3vw, 16px); color: #374151; line-height: 1.9; }
/* 探す */
.tsearch { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(11,37,69,.14); padding: 8px; gap: 8px; }
.tsearch label { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 8px; background: var(--pale-2); color: var(--mute); min-width: 0; }
.tsearch input, .tsearch select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); height: 52px; width: 100%; min-width: 0; }
.tsearch .btn { height: 52px; padding: 0 28px; border-radius: 8px; font-size: 15px; }
.tfacts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; font-size: 13px; color: var(--sub); }
.tfacts span { display: inline-flex; align-items: center; gap: 6px; }
.tfacts span::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; display: grid; place-items: center; }
.tfacts b { color: var(--navy); }
.tmv-photo { position: relative; aspect-ratio: 5 / 4; }
.tmv-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 24px; background: var(--navy); }
.tmv-photo span { position: absolute; inset: 0; border-radius: 24px; background: var(--pale) center / cover; box-shadow: 0 24px 50px rgba(11,37,69,.18); }

section { padding: 88px 0; }
.h-sec { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--navy); line-height: 1.4; }
.h-sec-sub { margin: 0 0 36px; color: var(--sub); font-size: 14.5px; }
.center { text-align: center; }

/* ○○とは？ */
.what { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.what div { text-align: center; padding: 36px 26px; border-radius: 14px; background: var(--pale-2); }
.what svg { color: var(--navy); margin: 0 auto 14px; }
.what b { display: block; font-size: 18px; margin-bottom: 8px; }
.what span { font-size: 13.5px; color: var(--sub); line-height: 1.8; }

/* ジャンルから探す */
.genre-sec { background: var(--pale-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head .h-sec { margin: 0; }
.more { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.gtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gtiles a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 12px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; transition: border-color .15s, color .15s, box-shadow .15s; }
.gtiles a::after { content: "›"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--pale); color: var(--navy); display: grid; place-items: center; font-size: 15px; transition: background .15s, color .15s; }
.gtiles a:hover { border-color: var(--navy); color: var(--navy); box-shadow: 0 10px 24px rgba(11,37,69,.08); }
.gtiles a:hover::after { background: var(--navy); color: #fff; }
.conds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.conds > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.conds h3 { margin: 0 0 12px; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.conds h3::before { content: ""; width: 4px; height: 16px; background: var(--navy); border-radius: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--pale); color: var(--navy); font-weight: 500; transition: background .15s, color .15s; }
.chips a:hover { background: var(--navy); color: #fff; }

/* 都道府県から探す */
.tsearch.has-area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.tsearch.has-area > label:first-child { grid-column: 1 / -1; }
.prefs { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.pref-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--line); }
.pref-row:first-child { border-top: 0; }
.pref-row b { display: flex; align-items: center; padding: 16px 20px; background: var(--pale-2); color: var(--navy); font-size: 14px; border-right: 1px solid var(--line); }
.pref-row > div { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 12px 16px; align-items: center; }
.pref-row a { font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 6px; transition: background .15s, color .15s; }
.pref-row a:hover { background: var(--navy); color: #fff; }

/* 新着 */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pc:hover { box-shadow: 0 16px 36px rgba(11,37,69,.12); transform: translateY(-3px); }
.pc .ph { position: relative; aspect-ratio: 16 / 9; background: var(--pale) center / cover; }
.pc .ph .new { position: absolute; top: 12px; left: 12px; font-family: Inter, sans-serif; font-size: 11px; font-weight: 900; color: var(--navy); background: #fff; border-radius: 4px; padding: 1px 8px; letter-spacing: .06em; }
.pc .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc .co { font-size: 12.5px; color: var(--sub); }
.pc h3 { margin: 0; font-size: 16.5px; line-height: 1.55; }
.pc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pc .money { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.pc .money small { font-size: 12.5px; color: var(--sub); }
.pc .money b { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 28px; font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.pc .money b small { font-family: "Noto Sans JP", sans-serif; font-size: 13px; color: var(--navy); margin-left: 2px; letter-spacing: 0; }
.to-list { display: flex; justify-content: center; margin-top: 36px; }
.btn-big { height: 60px; padding: 0 14px 0 36px; border-radius: 999px; font-size: 16px; gap: 20px; box-shadow: 0 12px 28px rgba(11,37,69,.22); }
.btn-big .arr { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }

/* 始め方 */
.steps-sec { background: var(--pale-2); }
.tsteps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; counter-reset: s; margin-top: 8px; }
.tsteps li { list-style: none; position: relative; background: #fff; border-radius: 14px; padding: 40px 20px 26px; text-align: center; counter-increment: s; }
.tsteps li::before { content: counter(s); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-family: Inter, sans-serif; font-weight: 900; font-size: 17px; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--pale-2); }
.tsteps b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.tsteps span { font-size: 13px; color: var(--sub); line-height: 1.8; }
.tsteps-wrap { padding: 0; margin: 28px 0 0; }

/* よくある質問 */
.faq { max-width: 960px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 22px; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-family: Inter, sans-serif; font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--navy); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 22px 68px; font-size: 14.5px; color: #374151; line-height: 1.9; }

/* 締めの帯 */
.tcta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0B2545 0%, #12345E 55%, #1B4475 100%); }
.tcta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.06) 55% 62%, transparent 62%),
  radial-gradient(600px 300px at 90% 0%, rgba(120,160,220,.25), transparent 70%); }
.tcta .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.tcta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.45; }
.tcta p { margin: 0; color: #C9D6EA; font-size: 15px; }
.tcta .btn-big { background: #fff; color: var(--navy); }
.tcta .btn-big .arr { border: 1.5px solid var(--navy); background: none; }
.other { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.other a { font-size: 13.5px; font-weight: 700; color: #fff; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); }
.other a:hover { background: rgba(255,255,255,.1); }

@media (max-width: 1080px) {
  .gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .conds { grid-template-columns: minmax(0, 1fr); }
  .tsteps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 900px) {
  .tmv-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 48px; }
  .tmv-photo { order: -1; aspect-ratio: 16 / 9; margin-right: 24px; }
  .tsearch, .tsearch.has-area { grid-template-columns: minmax(0, 1fr); }
  .pref-row { grid-template-columns: minmax(0, 1fr); }
  .pref-row b { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .pref-row > div { padding: 10px 10px; }
  .tsearch .btn { width: 100%; }
  .what { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .gtiles { grid-template-columns: minmax(0, 1fr); }
  .tsteps { grid-template-columns: minmax(0, 1fr); }
  .btn-big { width: 100%; justify-content: space-between; white-space: normal; text-align: left; line-height: 1.4; padding-left: 24px; font-size: 15px; }
  .faq summary { padding: 16px; font-size: 14.5px; }
  .faq details p { padding: 0 16px 18px 16px; }
  .tmv-photo::before { inset: 14px -14px -14px 14px; }
}

/* ---------- メインビジュアル：左に要点のタイル、右に検索フォームのカード ---------- */
.tmv-in { align-items: center; }
/* 要点：トップページの .mv-card と同じ形（白いカード1枚・縦の区切り線・アイコン／小見出し／大きな値） */
.tbox-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; margin-top: 30px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(11,37,69,.14); padding: 22px 8px; }
.tbox-facts > div { text-align: center; padding: 0 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tbox-facts > div + div { border-left: 1px solid var(--line); }
.tbox-facts svg { color: var(--navy); margin-bottom: 2px; }
.tbox-facts small { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tbox-facts b { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.tbox-facts b span { font-size: 17px; font-family: "Noto Sans JP", sans-serif; }
.tbox-facts b.word { font-family: "Noto Sans JP", sans-serif; font-size: 22px; padding-top: 8px; white-space: normal; word-break: auto-phrase; line-height: 1.35; }

/* 検索フォームのカード */
.tbox { position: relative; background: #fff; border-radius: 24px; padding: 30px 30px 24px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(11,37,69,.16); overflow: hidden; }
.tmv-in > .tbox { isolation: isolate; }
.tmv .wrap { position: relative; }
.tmv-in::after { content: ""; position: absolute; z-index: 0; right: 4%; top: 18%; width: 40%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(43,90,147,.22), transparent); filter: blur(10px); pointer-events: none; }
.tmv-in { position: relative; }
.tmv-in > * { position: relative; z-index: 1; }
.tbox-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; font-size: 18px; color: var(--navy); }
.tbox-t { display: inline-flex; align-items: center; gap: 8px; }
.tbox-t svg { color: var(--navy); }
.tbox-n { font-size: 12.5px; font-weight: 700; color: var(--sub); background: var(--pale-2); border-radius: 999px; padding: 4px 12px; }
.tbox-n b { font-family: Inter, sans-serif; font-size: 15px; color: var(--navy); margin-right: 2px; }
/* 検索フォームは縦に積む（キーワード → ジャンル・都道府県 → 探す） */
.tbox .tsearch, .tbox .tsearch.has-area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); box-shadow: none; padding: 0; background: none; gap: 10px; }
.tbox .tsearch > label:first-child { grid-column: 1 / -1; }
.tbox .tsearch:not(.has-area) > label:nth-child(2) { grid-column: 1 / -1; }
.tbox .tsearch label { background: var(--pale-2); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.tbox .tsearch label:focus-within { border-color: var(--navy); background: #fff; }
.tbox .tsearch .btn { grid-column: 1 / -1; height: 56px; border-radius: 999px; font-size: 16px; box-shadow: 0 10px 24px rgba(11,37,69,.22); }
/* 人気のジャンル */
.tbox-pop { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.tbox-pop small { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.tbox-pop div { display: flex; flex-wrap: wrap; gap: 6px; }
.tbox-pop a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--pale-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px 5px 12px; transition: border-color .15s; }
.tbox-pop a:hover { border-color: var(--navy); }
.tbox-pop em { font-style: normal; font-family: Inter, sans-serif; font-size: 11px; background: #fff; border-radius: 999px; padding: 0 7px; color: var(--sub); }
@media (max-width: 1100px) {
  .tbox-facts b { font-size: 32px; }
  .tbox-facts b.word { font-size: 18px; }
}
@media (max-width: 900px) {
  .tbox { order: 2; }
  .tbox-facts { max-width: none; }
  .tmv-in::after { display: none; }
}
@media (max-width: 640px) {
  .tbox { padding: 22px 16px 18px; border-radius: 18px; }
  .tbox-facts { margin-top: 22px; padding: 16px 4px; }
  .tbox-facts > div { padding: 0 4px; }
  .tbox-facts svg { width: 24px; height: 24px; }
  .tbox-facts small { font-size: 11px; }
  .tbox-facts b { font-size: 28px; }
  .tbox-facts b span { font-size: 14px; }
  .tbox-facts b.word { font-size: 15px; padding-top: 4px; }
  .tbox .tsearch, .tbox .tsearch.has-area { grid-template-columns: minmax(0, 1fr); }
  .tbox-h { font-size: 16px; }
}
