/* =====================================================
   トップページ（案C：目的別の入口型）
   既存の追加CSS（--asocio-wine など）を使い、無い場合の値も指定
   ===================================================== */

/* トップページでは Cocoon の投稿日・SNSフォロー・著者リンクを出さない */
.bk-tool-page .article-header .date-tags,
.bk-tool-page .article-footer .sns-follow,
.bk-tool-page .article-footer .footer-meta { display: none; }

.asocio-top-sec {
	--tp-accent: var(--asocio-wine, #650006);
	--tp-line: #e3dcdc;
	--tp-soft: #faf7f7;
	max-width: var(--asocio-content-width, 1200px);
	margin: 0 auto 56px;
	padding: 0 20px;
	box-sizing: border-box;
}
.asocio-top-sec .bk-icon { width: 26px; height: 26px; }
.asocio-top-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 18px; }
.entry-content .asocio-top-head h2.asocio-top-title { margin: 0; padding: 0 0 0 12px; border: none; border-left: 4px solid var(--tp-accent); background: none; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: #1a1a1a; }
.entry-content p.asocio-top-lead { margin: 0; font-size: 14px; color: #666; }

/* 3. 目的別の入口 */
.asocio-top-entry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.asocio-top-entry__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px 20px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; text-align: center; text-decoration: none; color: #1a1a1a; transition: border-color .2s, box-shadow .2s, transform .2s; }
.asocio-top-entry__item:hover { border-color: var(--tp-accent); box-shadow: 0 6px 18px rgba(101, 0, 6, .12); transform: translateY(-2px); color: #1a1a1a; }
.asocio-top-entry__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-accent); margin-bottom: 4px; }
.asocio-top-entry__icon .bk-icon { width: 30px; height: 30px; }
.asocio-top-entry__title { font-size: 19px; font-weight: 700; }
.asocio-top-entry__desc { font-size: 13px; color: #666; }
.asocio-top-entry__go { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--tp-accent); }
.asocio-top-entry__go::after { content: " →"; }

/* 4. 新着物件 */
.bk-new__tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--tp-accent); margin: 0 0 16px; }
.bk-new__tab { padding: 8px 26px; border: none; border-radius: 8px 8px 0 0; background: #f1ecec; color: #444; font-size: 15px; font-weight: 700; cursor: pointer; }
.bk-new__tab.is-active { background: var(--tp-accent); color: #fff; }
.entry-content ul.bk-new__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.bk-new__item { margin: 0; border: 1px solid var(--tp-line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; }
.bk-new__item:hover { border-color: var(--tp-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.bk-new__item a { display: block; color: inherit; text-decoration: none; }
.bk-new__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #f2efef; }
.bk-new__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-new__kind { position: absolute; left: 0; top: 0; padding: 3px 10px; background: var(--tp-accent); color: #fff; font-size: 12px; }
.bk-new__body { display: block; padding: 10px 12px 12px; }
.bk-new__price { display: block; font-size: 20px; font-weight: 700; color: var(--tp-accent); line-height: 1.3; }
.bk-new__title { display: block; font-size: 14px; font-weight: 700; margin: 2px 0; }
.bk-new__meta { display: block; font-size: 12px; color: #666; }
.entry-content p.bk-new__more { margin: 14px 0 0; text-align: right; font-size: 14px; }
.bk-new__more a { color: var(--tp-accent); font-weight: 700; }
.bk-new__more a::after { content: " →"; }
.entry-content p.bk-new__empty { background: var(--tp-soft); border-radius: 10px; padding: 20px; margin: 0; font-size: 14px; }

/* 6. 選ばれる理由 */
.asocio-top-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.asocio-top-reason { padding: 22px 22px 20px; background: var(--tp-soft); border-radius: 12px; }
.asocio-top-reason__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--tp-accent); margin-bottom: 10px; }
.entry-content p.asocio-top-reason__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.asocio-top-reason__title em { font-style: normal; color: var(--tp-accent); }
.entry-content p.asocio-top-reason__text { margin: 0; font-size: 14px; line-height: 1.8; color: #444; }

/* 7. 専門サービス（既存の事業カード・関連サイトを流用） */
.asocio-top-sec .asocio-biz-cards, .asocio-top-sec .asocio-link-cards { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.asocio-top-sec .asocio-biz-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* WordPress が段落整形で入れる余分な改行・空段落を出さない */
.asocio-top-sec > br, .asocio-top-sec > p:empty { display: none; }
.entry-content p.asocio-top-subhead { margin: 28px 0 12px; font-size: 15px; font-weight: 700; color: #444; }

/* 8. 新着コラム（アソシオ3件＋こだせん3件） */
.bk-columns { display: grid; gap: 28px; }
.bk-columns__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid var(--tp-line); }
.entry-content p.bk-columns__label { margin: 0; font-size: 17px; font-weight: 700; }
.bk-columns__label span { margin-left: 10px; font-size: 13px; font-weight: 400; color: #666; }
.bk-columns__more { font-size: 13px; font-weight: 700; color: var(--tp-accent); white-space: nowrap; }
.bk-columns__more::after { content: " →"; }
.entry-content ul.bk-columns__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.bk-columns__item { margin: 0; }
.bk-columns__item a { display: block; color: inherit; text-decoration: none; }
.bk-columns__img { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #f2efef; margin-bottom: 8px; }
.bk-columns__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bk-columns__item a:hover img { transform: scale(1.04); }
.bk-columns__noimg { display: grid; place-items: center; height: 100%; color: #aaa; font-size: 12px; }
.bk-columns__date { display: block; font-size: 12px; color: #888; }
.bk-columns__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; }
.bk-columns__item a:hover .bk-columns__title { color: var(--tp-accent); }

/* 9. お問い合わせ帯 */
.asocio-top-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 28px 32px; border-radius: 14px; background: var(--tp-accent); color: #fff; }
.entry-content p.asocio-top-contact__lead { margin: 0 0 4px; font-size: 14px; color: #f3d6d8; }
.asocio-top-contact__tel { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .03em; }
.asocio-top-contact__tel:hover { color: #fff; opacity: .9; }
.asocio-top-contact__tel .bk-icon { width: 26px; height: 26px; }
.entry-content p.asocio-top-contact__hours { margin: 2px 0 0; font-size: 13px; color: #f3d6d8; }
.asocio-top-contact__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.asocio-top-contact__btns a { display: inline-block; padding: 12px 22px; border: 1px solid #fff; border-radius: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.asocio-top-contact__btns a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.asocio-top-contact__btns a.is-main { background: #fff; color: var(--tp-accent); }

/* ---------- 下層ページ（オーナー様向けなど）の共通パーツ ---------- */
.asocio-pg .asocio-top-sec { padding: 0; }
.asocio-pg-hero { --tp-accent: var(--asocio-wine, #650006); margin: 0 0 40px; padding: 32px 32px 28px; border-radius: 14px; background: #faf7f7; }
.entry-content p.asocio-pg-hero__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--tp-accent); letter-spacing: .04em; }
.entry-content p.asocio-pg-hero__title { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.45; color: #1a1a1a; }
.entry-content p.asocio-pg-hero__lead { margin: 0 0 18px; font-size: 15px; line-height: 1.9; color: #333; }
.asocio-pg-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.asocio-pg-btn { display: inline-block; padding: 12px 22px; border: 1px solid var(--asocio-wine, #650006); border-radius: 8px; background: #fff; color: var(--asocio-wine, #650006); font-weight: 700; text-decoration: none; }
.asocio-pg-btn:hover { opacity: .85; color: var(--asocio-wine, #650006); }
.asocio-pg-btn.is-main { background: var(--asocio-wine, #650006); color: #fff; }
.asocio-pg-btn.is-main:hover { color: #fff; }

/* ポイント（アイコン＋見出し＋説明）を2〜3列で */
.asocio-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
/* 5枚以上は3列にそろえて、半端な1枚だけの行を作らない */
@media (min-width: 835px) { .asocio-points:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.asocio-point { padding: 18px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; }
.asocio-point__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-accent); margin-bottom: 8px; }
.asocio-point__icon .bk-icon { width: 22px; height: 22px; }
.entry-content p.asocio-point__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.entry-content p.asocio-point__text { margin: 0; font-size: 14px; line-height: 1.8; color: #444; }

/* 進め方（番号付きのステップ） */
.entry-content ol.asocio-flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.asocio-flow li { position: relative; counter-increment: flow; margin: 0; padding: 40px 14px 14px; border-radius: 12px; background: var(--tp-soft); font-size: 14px; line-height: 1.7; }
.asocio-flow li::before { content: "STEP " counter(flow); position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--tp-accent); }
.asocio-flow li strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* お約束（目立たせる帯） */
.asocio-promise { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 2px solid var(--tp-accent); border-radius: 12px; background: #fff; }
.asocio-promise .bk-icon { flex: none; width: 30px; height: 30px; color: var(--tp-accent); }
.entry-content p.asocio-promise__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--tp-accent); }
.entry-content p.asocio-promise__text { margin: 0; font-size: 14px; line-height: 1.8; }

/* 対応エリア */
.asocio-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.asocio-areas a { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--tp-accent); color: var(--tp-accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.asocio-areas a:hover { background: var(--tp-accent); color: #fff; }
.asocio-top-entry.is-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asocio-areas span { padding: 6px 16px; border-radius: 999px; background: var(--tp-soft); border: 1px solid var(--tp-line); font-size: 14px; font-weight: 700; }

/* 冒頭に写真を添える（会社情報） */
.asocio-pg-hero.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; }
.asocio-pg-hero__photo { margin: 0; }
.asocio-pg-hero__photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.entry-content p.asocio-pg-hero__sign { margin: 0; font-size: 14px; font-weight: 700; color: #444; }

/* 数字で見る（大きな数字＋説明） */
.asocio-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.asocio-stat { padding: 20px 16px; border-radius: 12px; background: var(--tp-soft); text-align: center; }
.asocio-stat__label { display: block; font-size: 13px; color: #666; }
.asocio-stat__num { display: block; margin: 2px 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.3; color: var(--tp-accent); }
.asocio-stat__num small { font-size: 15px; margin-left: 2px; }
.asocio-stat__note { display: block; font-size: 13px; color: #444; }

/* ご挨拶 */
.asocio-greeting { padding: 26px 28px; border-radius: 12px; border: 1px solid var(--tp-line); background: #fff; }
.entry-content .asocio-greeting p { margin: 0 0 1em; font-size: 15px; line-height: 2; }
.asocio-greeting em { font-style: normal; font-weight: 700; color: var(--tp-accent); }
.entry-content .asocio-greeting p.asocio-greeting__sign { margin: 1.4em 0 0; text-align: right; font-weight: 700; }

/* 地図とアクセス */
.asocio-access { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.asocio-map { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--tp-soft); }
.asocio-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content p.asocio-access__name { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.entry-content p.asocio-access__addr { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.entry-content ul.asocio-access__list { margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; }
.asocio-access__list li { position: relative; padding-left: 1.2em; }
.asocio-access__list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--tp-accent); }
.asocio-pg [id] { scroll-margin-top: 80px; }
.entry-content p.asocio-note { margin: 10px 0 0; font-size: 13px; color: #666; }

/* 料金・プランの表 */
.asocio-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tp-line); border-radius: 12px; }
.entry-content table.asocio-plan { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; font-size: 13px; }
.asocio-plan th, .asocio-plan td { padding: 10px 10px; border-bottom: 1px solid var(--tp-line); border-right: 1px solid var(--tp-line); vertical-align: middle; }
.asocio-plan tr > *:last-child { border-right: none; }
.asocio-plan tbody tr:last-child > * { border-bottom: none; }
.asocio-plan thead th { background: var(--tp-accent); color: #fff; text-align: center; font-weight: 700; }
.asocio-plan thead .asocio-plan__fee { display: block; font-size: 18px; }
.asocio-plan tbody th { text-align: left; background: var(--tp-soft); width: 38%; font-weight: 400; }
.asocio-plan tbody th b { display: block; font-size: 14px; }
.asocio-plan tbody th span { color: #666; font-size: 12px; }
.asocio-plan td { text-align: center; font-size: 18px; color: var(--tp-accent); }
.asocio-plan td.is-no { color: #bbb; }
.asocio-plan td small { display: block; font-size: 10px; color: #666; }
.asocio-plan .is-reco { background: #fff8f8; }
.entry-content ol.asocio-footnotes { margin: 10px 0 0; padding-left: 0; list-style: none; font-size: 12px; color: #666; line-height: 1.8; }
.entry-content table.asocio-kv { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.asocio-kv th, .asocio-kv td { padding: 12px 14px; border: 1px solid var(--tp-line); vertical-align: top; text-align: left; }
.asocio-kv th { width: 9em; background: var(--tp-soft); white-space: nowrap; }
.asocio-kv ul { margin: 0; padding-left: 1.2em; }

/* よくある質問 */
.asocio-faq details { border-bottom: 1px solid var(--tp-line); }
.asocio-faq summary { position: relative; list-style: none; cursor: pointer; padding: 14px 36px 14px 2.2em; font-weight: 700; font-size: 15px; }
.asocio-faq summary::-webkit-details-marker { display: none; }
.asocio-faq summary::before { content: "Q"; position: absolute; left: 0; top: 13px; color: var(--tp-accent); font-size: 17px; }
.asocio-faq summary::after { content: "+"; position: absolute; right: 8px; top: 10px; font-size: 22px; color: var(--tp-accent); }
.asocio-faq details[open] summary::after { content: "−"; }
.entry-content .asocio-faq details p { position: relative; margin: 0 0 14px; padding-left: 2.2em; font-size: 14px; line-height: 1.8; }
.entry-content .asocio-faq details p::before { content: "A"; position: absolute; left: 0; top: 0; font-weight: 700; color: #888; font-size: 16px; }

/* フォームの見出し */
.asocio-form-sec { scroll-margin-top: 80px; }

/* 自動整形で入る空の段落を詰める */
.asocio-pg p:empty { display: none; }

@media (max-width: 834px) {
	.asocio-pg-hero { padding: 22px 18px; margin-bottom: 32px; }
	.asocio-pg-hero__btns .asocio-pg-btn { flex: 1 1 auto; text-align: center; }
	.asocio-kv th { width: auto; white-space: normal; }
	.asocio-pg-hero.has-photo { grid-template-columns: 1fr; gap: 18px; }
	.asocio-pg-hero__photo { max-width: 150px; }
	.asocio-stats { grid-template-columns: 1fr; gap: 10px; }
	.asocio-greeting { padding: 20px 18px; }
	.asocio-access { grid-template-columns: 1fr; }
	/* 料金表：項目名の列を固定して横にスクロール */
	.asocio-table-wrap::before { content: "← 横にスクロールできます →"; position: sticky; left: 0; display: block; padding: 6px 10px; font-size: 11px; color: #888; text-align: center; background: #fff; }
	.entry-content table.asocio-plan { min-width: 600px; }
	.asocio-plan tbody th, .asocio-plan thead th:first-child { position: sticky; left: 0; z-index: 1; width: 150px; min-width: 150px; box-shadow: 2px 0 4px rgba(0,0,0,.06); }
	.asocio-plan tbody th span { font-size: 11px; line-height: 1.5; display: block; }
}

@media (max-width: 834px) {
	.asocio-top-sec { margin-bottom: 44px; padding: 0 16px; }
	.asocio-top-entry, .asocio-top-entry.is-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.asocio-top-entry__item { padding: 18px 8px 16px; }
	.asocio-top-entry__icon { width: 50px; height: 50px; }
	.asocio-top-entry__title { font-size: 16px; }
	.asocio-top-entry__go { display: none; }
	/* 新着物件は横にスワイプ */
	.entry-content ul.bk-new__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
	.bk-new__item { flex: 0 0 72%; scroll-snap-align: start; }
	.asocio-top-reasons { grid-template-columns: 1fr; gap: 10px; }
	.asocio-top-sec .asocio-biz-cards { grid-template-columns: 1fr; }
	.entry-content ul.bk-columns__list { grid-template-columns: 1fr; gap: 12px; }
	.bk-columns__item a { display: grid; grid-template-columns: 120px 1fr; column-gap: 12px; }
	.bk-columns__img { grid-row: span 2; margin: 0; aspect-ratio: 4 / 3; }
	/* アソシオのアイキャッチは左に家（文字）・右にキャラクター。4:3 に切ると中央寄せでは文字の左端が切れる。
	   家は横768pxのうち 25〜557px、4:3 の枠に入るのは 537px 分 → 枠の始まりを 23px（はみ出し231pxの10%）にすると家全体が収まる */
	.bk-columns__item.is-local .bk-columns__img img { object-position: 10% center; }
	.bk-columns__label span { display: block; margin: 2px 0 0; }
	.asocio-top-contact { padding: 22px 18px; }
	.asocio-top-contact__btns { width: 100%; }
	.asocio-top-contact__btns a { flex: 1 1 auto; text-align: center; padding: 12px 10px; }
}
