/* 家づくりのポータルの見た目（2026-11-05）。/home と トップ（/）で共通。すべて .hp の中だけに効く */
/* 家づくりのポータル（/home、2026-11-05〜）。中身は home/home.js
   形：上のバー＋検索の帯 → 左に「ここから診断」「みんなの間取り（最新）」「みんなの診断結果」「いまの段階」「カテゴリ」、右に「数」「計算ツール」「すぐ使える」「読みもの」 */
/* 色の決まり（assets/app.css と同じ。トップ（/）は app.css を読まないので、ここでも持つ） */
.hp { --bg: #FAFAF7; --surface: #FFFFFF; --text: #2B2F33; --muted: #6B6F76; --line: #E7E5E0; --main: #1F7F73; --main-dark: #186A60; --main-soft: #E6F4F1; --radius: 14px; }
.hp-embed .btn-primary { background: var(--main); color: #fff; border-color: var(--main); }
.hp-embed .btn-secondary { background: #fff; color: var(--main); border: 1px solid var(--main); }
.hp-embed a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.hp { font-feature-settings: "palt"; letter-spacing: .02em; background: #F4F3EF; }
.hp a { color: inherit; }
.hp .in { max-width: 1120px; margin: 0 auto; padding: 0 14px; }
/* 上のバー */
.hp .hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hp .hd-top { display: flex; align-items: center; gap: 10px; height: 54px; }
.hp .hd-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.hp .hd-logo img { width: 30px; height: 30px; border-radius: 8px; }
.hp .hd-logo b { font-size: 16px; font-weight: 900; }
.hp .hd-logo small { font-size: 11px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px; }
.hp .hd .me-link { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--main); text-decoration: none; border: 1px solid var(--main); border-radius: 99px; padding: 5px 14px; }
.hp .hd-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 10px; }
.hp .hd-nav::-webkit-scrollbar { display: none; }
.hp .hd-nav a { flex: none; padding: 8px 10px 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.hp .hd-nav a:hover { color: var(--main); border-bottom-color: var(--main); }
@media (max-width: 520px) { .hp .hd-logo small { display: none; } }
/* 検索の帯 */
.hp .band { background: linear-gradient(135deg, #1F7F73 0%, #176358 100%); color: #fff; }
.hp .band .in { padding-top: 18px; padding-bottom: 16px; display: grid; gap: 10px; }
@media (min-width: 900px) { .hp .band .in { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; } }
.hp .band-h { margin: 0; font-size: clamp(19px, 4.8vw, 24px); font-weight: 900; line-height: 1.4; }
.hp .band-h small { display: block; font-size: 12px; font-weight: 500; opacity: .88; margin-top: 2px; }
.hp .srch { position: relative; }
.hp .srch input { width: 100%; height: 48px; border: 0; border-radius: 12px; padding: 0 14px 0 42px; font: inherit; font-size: 16px; color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.hp .srch input:focus { outline: 3px solid #F2A15F; }
.hp .srch svg { position: absolute; left: 13px; top: 14px; width: 20px; height: 20px; color: var(--muted); }
.hp .srch-res { position: absolute; left: 0; right: 0; top: 54px; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.2); padding: 6px; z-index: 30; max-height: 60vh; overflow: auto; color: var(--text); }
.hp .srch-res[hidden] { display: none; }
.hp .srch-res a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.hp .srch-res a:hover { background: var(--main-soft); }
.hp .srch-res img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.hp .srch-res .kd { flex: none; font-size: 10.5px; font-weight: 700; color: var(--main); background: var(--main-soft); border-radius: 6px; padding: 2px 6px; }
.hp .srch-res b { font-size: 14px; font-weight: 700; display: block; }
.hp .srch-res small { font-size: 12px; color: var(--muted); display: block; }
.hp .srch-res p { margin: 0; padding: 12px; font-size: 13px; color: var(--muted); }
.hp .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.hp .chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .hp .chips { grid-column: 2; } }
.hp .chips span { flex: none; font-size: 12px; opacity: .85; }
.hp .chips button { flex: none; appearance: none; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; border-radius: 99px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.hp .chips button:hover { background: rgba(255,255,255,.22); }
/* 2列 */
.hp .lay { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 960px) { .hp .lay { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .hp .side { position: sticky; top: 112px; } }
.hp .main, .hp .side { display: grid; gap: 14px; min-width: 0; }
/* 箱 */
.hp .mod { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; scroll-margin-top: 110px; min-width: 0; }
.hp .mod-hd { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.hp .mod-hd h2 { margin: 0; font-size: 16.5px; font-weight: 900; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.hp .mod-hd h2::before { content: ''; width: 4px; height: 17px; border-radius: 2px; background: var(--main); }
.hp .mod-hd .live { font-size: 10.5px; font-weight: 700; color: #B85A1B; background: #FFF0E3; border-radius: 5px; padding: 1px 6px; }
.hp .mod-hd .more { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--main); text-decoration: none; white-space: nowrap; }
/* いちおし */
.hp .pk-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .hp .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp .pk { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.hp .pk[hidden] { display: none; }
.hp .pk:hover { border-color: var(--main); box-shadow: 0 6px 18px rgba(31,127,115,.12); }
.hp .pk-fig { display: block; aspect-ratio: 16 / 9; background: #F3F1EC; overflow: hidden; }
.hp .pk-fig img, .hp .pk-fig svg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hp .pk-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.hp .pk-lb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--main); }
.hp .pk-lb img { width: 20px; height: 20px; border-radius: 5px; }
.hp .pk-body b { font-size: 16.5px; font-weight: 900; line-height: 1.5; }
.hp .pk-p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.hp .pk-n { font-size: 12px; font-weight: 700; color: #B85A1B; }
.hp .pk-n:empty { display: none; }
.hp .pk .btn { margin-top: auto; width: 100%; }
/* ここから診断 */
.hp .dg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px -16px 14px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.hp .dg-tabs::-webkit-scrollbar { display: none; }
.hp .dg-tabs button { flex: none; appearance: none; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 8px 10px 10px; border-bottom: 3px solid transparent; cursor: pointer; }
.hp .dg-tabs button[aria-selected="true"] { color: var(--main); border-bottom-color: var(--main); }
.hp .dg-pane[hidden] { display: none; }
.hp .drop { display: grid; place-items: center; gap: 6px; text-align: center; border: 2px dashed #BFDCD6; background: #F6FBFA; border-radius: 14px; padding: 22px 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.hp .drop:hover, .hp .drop.over { background: var(--main-soft); border-color: var(--main); }
.hp .drop svg { width: 34px; height: 34px; color: var(--main); }
.hp .drop b { font-size: 15px; font-weight: 900; }
.hp .drop small { font-size: 12px; color: var(--muted); }
.hp .drop-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hp .drop-files span { font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .dg-go { margin-top: 10px; }
.hp .dg-go .btn { width: 100%; }
.hp .dg-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.hp .dg-note a { color: var(--main); font-weight: 700; }
.hp .dg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .hp .dg-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp .dg-row label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hp .dg-row input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 16px; width: 100%; }
.hp .dg-out { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hp .dg-out div { background: #F6FBFA; border-radius: 10px; padding: 10px; text-align: center; }
.hp .dg-out b { display: block; font-size: 19px; font-weight: 900; color: var(--main); font-variant-numeric: tabular-nums; }
.hp .dg-out small { font-size: 11px; color: var(--muted); }
.hp .dg-tabs button img { width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-right: 5px; }
/* 診断のタブは全部見えるように並べる（スマホ3列・広い画面6列） */
.hp #dgTabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 0; border-bottom: 0; overflow: visible; }
@media (min-width: 640px) { .hp #dgTabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hp #dgTabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.hp #dgTabs button img { width: 28px; height: 28px; border-radius: 8px; margin: 0; }
.hp #dgTabs button[aria-selected="true"] { border-color: var(--main); background: var(--main-soft); color: var(--main-dark); box-shadow: inset 0 0 0 1px var(--main); }
.hp .dgp { display: grid; gap: 12px; }
.hp .dgp-head { display: flex; gap: 12px; align-items: center; }
.hp .dgp-head img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.hp .dgp-head b { display: block; font-size: 16px; font-weight: 900; line-height: 1.45; }
.hp .dgp-head small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hp .dgp ul { list-style: none; margin: 0; padding: 12px 14px; background: #F6FBFA; border-radius: 12px; display: grid; gap: 6px; }
.hp .dgp li { font-size: 13px; line-height: 1.6; padding-left: 18px; position: relative; }
.hp .dgp li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--main); }
.hp .dgp .btn { width: 100%; }
.hp .dgp-how { margin: 0; font-size: 12px; color: var(--muted); }
.hp .dg-lead { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.hp .dg-lead b { color: var(--text); }
/* みんなの間取り（最新） */
.hp .mm { display: grid; }
.hp .mm a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid #F0EEE9; text-decoration: none; color: var(--text); }
.hp .mm a:first-child { border-top: 0; padding-top: 2px; }
.hp .mm a:hover b { color: var(--main); }
.hp .mm .th { width: 64px; height: 64px; border-radius: 10px; background: #EEF3F1 center/cover no-repeat; overflow: hidden; position: relative; }
.hp .mm .th svg { position: absolute; inset: 18px; color: #9CC5BD; }
.hp .mm .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px); transform: scale(1.12); background: #EEF3F1; }
.hp .mm b { display: block; font-size: 14px; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp .mm .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 11.5px; color: var(--muted); align-items: center; }
.hp .mm .st { font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; color: var(--main); background: var(--main-soft); }
.hp .mm .st.end { color: var(--muted); background: #F0EEE9; }
.hp .mm .st.ok { color: #B85A1B; background: #FFF0E3; }
.hp .mm-cta { display: flex; gap: 8px; margin-top: 10px; }
.hp .mm-cta a { flex: 1; text-align: center; font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 10px; }
.hp .mm-cta .a1 { background: var(--main); color: #fff; }
.hp .mm-cta .a2 { border: 1px solid var(--main); color: var(--main); }
.hp .skel { height: 64px; border-radius: 10px; background: linear-gradient(90deg, #F2F1ED, #F8F7F4, #F2F1ED); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 6px 0; }
@keyframes sk { to { background-position: -200% 0; } }
/* みんなの診断結果 */
.hp .res { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.hp .res::-webkit-scrollbar { display: none; }
.hp .rc { flex: 0 0 240px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: linear-gradient(180deg, #F6FBFA, #fff 60%); text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.hp .rc .sc { display: flex; align-items: baseline; gap: 6px; }
.hp .rc .sc b { font-size: 26px; font-weight: 900; color: var(--main); font-variant-numeric: tabular-nums; }
.hp .rc .sc i { font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: var(--main); border-radius: 6px; padding: 0 6px; }
.hp .rc .ty { font-size: 14px; font-weight: 900; line-height: 1.5; }
.hp .rc .ct { font-size: 12px; color: var(--muted); line-height: 1.6; }
.hp .rc .sw { font-size: 11.5px; line-height: 1.55; }
.hp .rc .sw span { display: block; }
.hp .rc .sw span::before { font-weight: 700; margin-right: 4px; }
.hp .rc .sw .p::before { content: '得意'; color: var(--main); }
.hp .rc .sw .m::before { content: '苦手'; color: #B85A1B; }
.hp .rc .ig { margin-top: auto; font-size: 11px; color: var(--muted); }
/* いまどのあたり？ */
.hp .stg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hp .stg-tabs::-webkit-scrollbar { display: none; }
.hp .stg-tabs button { flex: none; appearance: none; border: 1px solid var(--line); background: #FBFBF9; color: var(--text); border-radius: 99px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hp .stg-tabs button[aria-selected="true"] { background: var(--main); border-color: var(--main); color: #fff; }
.hp .stg-head { margin: 14px 0 2px; font-size: 15px; font-weight: 900; }
.hp .stg-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
/* サービスのカード */
.hp .grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .hp .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp .svc { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--text); }
.hp .svc:hover { border-color: var(--main); }
.hp .svc img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.hp .svc .t { min-width: 0; flex: 1; }
.hp .svc b { display: block; font-size: 14px; font-weight: 900; line-height: 1.45; }
.hp .svc small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.hp .lb { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 3px; }
.hp .lb i { font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; color: var(--main); background: var(--main-soft); }
.hp .lb i.hot { color: #B85A1B; background: #FFF0E3; }
.hp .lb i.soon { color: #8A6A2E; background: #F5EEDD; }
.hp .svc.top { border-color: var(--main); box-shadow: inset 0 0 0 1px var(--main); }
/* カテゴリ（タブで切りかえ） */
.hp .ct-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 12px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.hp .ct-tabs::-webkit-scrollbar { display: none; }
.hp .ct-tabs button { flex: none; appearance: none; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 8px 10px 10px; border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.hp .ct-tabs button svg { width: 16px; height: 16px; }
.hp .ct-tabs button[aria-selected="true"] { color: var(--main); border-bottom-color: var(--main); }
.hp .reads { margin-top: 10px; display: grid; }
.hp .reads a { display: flex; gap: 8px; padding: 8px 2px; font-size: 13px; text-decoration: none; color: var(--text); line-height: 1.55; border-top: 1px solid #F0EEE9; }
.hp .reads a:hover { color: var(--main); }
.hp .reads a::before { content: '読む'; flex: none; font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; height: fit-content; margin-top: 2px; }
.hp .reads .all { justify-content: flex-end; color: var(--main); font-weight: 700; }
.hp .reads .all::before { content: none; }
/* 右の列 */
.hp .nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hp .nums div { background: #F6FBFA; border-radius: 12px; padding: 10px 12px; }
.hp .nums b { display: block; font-size: 21px; font-weight: 900; color: var(--main); font-variant-numeric: tabular-nums; line-height: 1.2; }
.hp .nums small { font-size: 11px; color: var(--muted); }
.hp .nums-note { margin: 8px 0 0; font-size: 10.5px; color: var(--muted); }
.hp .tl { display: grid; }
.hp .tl a { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #F0EEE9; text-decoration: none; color: var(--text); }
.hp .tl a:first-child { border-top: 0; padding-top: 0; }
.hp .tl a:hover b { color: var(--main); }
.hp .tl .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--main-soft); color: var(--main); display: grid; place-items: center; flex: none; }
.hp .tl .ic svg { width: 18px; height: 18px; }
.hp .tl .ic img { width: 32px; height: 32px; border-radius: 9px; }
.hp .tl b { display: block; font-size: 13px; font-weight: 700; line-height: 1.45; }
.hp .tl small { display: block; font-size: 11px; color: var(--muted); }
.hp .tl .rk { flex: none; width: 18px; font-size: 13px; font-weight: 900; color: var(--muted); text-align: center; }
.hp .tl .rk.r1 { color: #E07B39; }
.hp .cols { display: flex; flex-wrap: wrap; gap: 6px; }
.hp .cols a { font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--text); background: #F6F5F1; border-radius: 99px; padding: 5px 11px; }
.hp .cols a:hover { background: var(--main-soft); color: var(--main); }
.hp .login p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.hp .login .btn { width: 100%; }
.hp .who p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.hp .who a { color: var(--main); font-weight: 700; font-size: 12.5px; }
/* 下のリンク集 */
.hp .ft { margin-top: 40px; background: #fff; border-top: 1px solid var(--line); padding: 30px 0 24px; }
.hp .ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
@media (min-width: 820px) { .hp .ft-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hp .ft h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 900; }
.hp .ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hp .ft li a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.hp .ft li a:hover { color: var(--main); }
.hp .ft-bottom { margin-top: 24px; padding-top: 14px; border-top: 1px solid #F0EEE9; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--muted); }
.hp .ft-bottom a { color: var(--muted); }
.hp .main, .hp .side { grid-template-columns: minmax(0, 1fr); } /* 中身が広くても列を広げない（トップの入力欄を入れたとき、はみ出していた） */

/* 2026-11-05 6人の議論で直したところ（/home とトップで共通） */
.hp .band-h { margin: 0; }
.hp .lay, .hp .main, .hp .side { gap: 18px; }
.hp .mod { padding: 20px; }
@media (min-width: 960px) { .hp .mod { padding: 22px 24px; } }
.hp .mod-hd { margin-bottom: 14px; }
.hp .mod-hd h2 { display: block; font-size: 18.5px; }
.hp .mod-hd h2::before { content: ''; display: block; width: 22px; height: 3px; border-radius: 2px; background: #E07B39; margin: 0 0 8px; }
@media (max-width: 699px) { .hp .chips { display: none; } } /* スマホは「たとえば」を出さない（アップロードを最初の画面に） */
.hp .chips button { min-height: 34px; }
.hp .stg-tabs button, .hp .ct-tabs button, .hp .dg-tabs button { min-height: 42px; }
.hp #dgTabs { min-height: 148px; align-content: start; } /* あとから6つに増えても下がずれないように（2段ぶん） */
@media (min-width: 640px) { .hp #dgTabs { min-height: 72px; } }
.hp .hd-nav { min-height: 40px; }
.hp .reads a::before { content: none; } /* 「読む」の札はやめた */
.hp .rc { background: #fff; }
.hp .rc .sc b { font-size: 30px; }
.hp .mm-lead { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.hp .mm .th img { filter: blur(6px); }
/* 横にすべらせる列は、右のはしをうすくして「続きがある」と分かるように */
.hp .hd-nav, .hp .stg-tabs, .hp .ct-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (min-width: 960px) { .hp .hd-nav { -webkit-mask-image: none; mask-image: none; } }

/* すべてのサービス（アイコンと名前だけの一覧） */
.hp .as-g + .as-g { margin-top: 16px; }
.hp .as-g h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.hp .as-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
@media (min-width: 640px) { .hp .as-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hp .as-list a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.35; }
.hp .as-list a:hover { background: var(--main-soft); color: var(--main-dark); }
.hp .as-list img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.hp .as-list i { font-style: normal; font-size: 10px; color: #8A6A2E; margin-left: 4px; }
@media (min-width: 960px) { .hp .side { max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; } } /* 右の列が画面より長いときは、列の中だけスクロール */
@media (min-width: 900px) { .hp .band .in { grid-template-columns: minmax(0, 1fr); } .hp .band .srch { max-width: 720px; } } /* 帯は検索欄だけ（見出しなし） */

/* ===== AIっぽさを抜く（2026-11-05 ユーザー：ぱっと見でAIっぽいものを取り除く）=====
   ・グラデーション＋方眼の帯 → 白い地に枠つきの検索欄（ふつうのサイトの検索）
   ・宙に浮いた角丸の箱 → スマホは端から端までの面を細いすき間で区切る（アプリの形）、パソコンは角を小さく・影なし
   ・色つきの札・数字のタイル・枠で囲んだアイコンをやめて、文字とアイコンだけに */
.hp .band { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.hp .band::after { content: none; }
.hp .band .in { padding-top: 10px; padding-bottom: 12px; }
.hp .srch input { box-shadow: none; border: 1.5px solid #CFCBC2; border-radius: 10px; height: 46px; background: #fff; }
.hp .srch input:focus { outline: none; border-color: var(--main); }
.hp .srch svg { top: 13px; }
.hp .chips span { color: var(--muted); }
.hp .chips button { color: var(--text); border-color: var(--line); background: #fff; }
.hp .mod { border-radius: 10px; box-shadow: none; }
@media (max-width: 959px) {
  .hp .lay { gap: 8px; padding: 0; margin-top: 8px; }
  .hp .main, .hp .side { gap: 8px; }
  .hp .mod { border-radius: 0; border-left: 0; border-right: 0; }
}
.hp .mod-hd .live { background: none; padding: 0; color: #B85A1B; font-size: 11.5px; }
.hp .lb i, .hp .lb i.hot, .hp .lb i.soon { background: none; padding: 0; border-radius: 0; color: var(--muted); font-weight: 700; }
.hp .mm .st, .hp .mm .st.end, .hp .mm .st.ok { background: none; padding: 0; }
.hp .mm .st { color: var(--main); } .hp .mm .st.end { color: var(--muted); } .hp .mm .st.ok { color: #B85A1B; }
.hp .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.hp .nums div { background: none; padding: 0; border-radius: 0; border-left: 2px solid var(--line); padding-left: 10px; }
.hp .tl .ic { background: none; }
.hp .tl .ic svg { color: var(--muted); }
.hp #dgTabs button { border-color: transparent; background: none; box-shadow: none; }
.hp #dgTabs button[aria-selected="true"] { background: none; border-color: transparent; box-shadow: inset 0 -3px 0 var(--main); border-radius: 0; color: var(--main-dark); }
.hp .pk { box-shadow: none; }
.hp .pk:hover { box-shadow: none; }
.hp .svc:hover { box-shadow: none; }
.hp .rc { border-radius: 8px; }
.hp .stg-tabs button { border-radius: 8px; background: #fff; }
.hp .stg-tabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); }

/* つくりかけの間取り */
.hp .tr-list { display: grid; gap: 8px; }
@media (min-width: 640px) { .hp .tr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hp .tr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--text); }
@media (min-width: 640px) { .hp .tr { flex-direction: column; align-items: stretch; } }
.hp .tr:hover { border-color: var(--main); }
.hp .tr-fig { flex: none; width: 64px; height: 52px; display: grid; place-items: center; background: #FAFAF7; border-radius: 6px; }
@media (min-width: 640px) { .hp .tr-fig { width: 100%; height: 110px; } }
.hp .tr-fig svg { width: 100%; height: 100%; }
.hp .tr-t { flex: 1; min-width: 0; }
.hp .tr-t b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .tr-t small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.hp .tr-go { flex: none; font-size: 12.5px; font-weight: 700; color: var(--main); }
@media (min-width: 640px) { .hp .tr-go { display: none; } }

/* お知らせ */
.hp .hp-notice { border-color: #F1DFAE; background: #FFFBF0; }
.hp .nt-list { display: grid; }
.hp .nt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 2px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 700; border-top: 1px solid #F3E8C8; }
.hp .nt:first-child { border-top: 0; }
.hp .nt i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #E07B39; }
.hp .nt span:first-of-type { flex: 1; min-width: 0; }
.hp .nt b { margin-left: 6px; font-size: 12px; color: #B85A1B; white-space: nowrap; }
.hp .nt-go { color: var(--muted); font-size: 18px; }

/* パソコンで右の列に寄せたとき：つくりかけの間取りは縦に1列・お知らせは小さめに */
html.hp-pside .hp .side .tr-list { grid-template-columns: minmax(0, 1fr); }
html.hp-pside .hp .side .tr { flex-direction: row; align-items: center; }
html.hp-pside .hp .side .tr-fig { width: 64px; height: 52px; }
html.hp-pside .hp .side .tr-go { display: none; }
html.hp-pside .hp .side .nt { font-size: 13px; }
