@charset "UTF-8";
/* =========================================================
   heart agency 2026 — ブロックエディタで作った部分の調整
   （base.css のデザインを、コアブロックの構造に合わせ直す）
   ========================================================= */

/* ---------- ブロックの共通リセット ---------- */
.wp-block-group,
.wp-block-columns,
.wp-block-column { min-width: 0; }

figure { margin: 0; }
.wp-block-image img { width: 100%; }

.wp-block-columns { margin-bottom: 0; }

/* セクションの入れ物 */
.section > .wrap { width: 100%; }

/* 見出しセット */
.sec-head > .eyebrow { margin-top: 0; }
.sec-head .h-sec + p { margin-top: 18px; }
.sec-head--row {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.sec-head--row .h-sec { margin-top: 0; }

/* =========================================================
   ボタン（コアの「ボタン」ブロック）
   ========================================================= */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 32px; border-radius: 999px;
	font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
	background: var(--red); color: #fff; text-decoration: none;
	box-shadow: 0 8px 22px rgba(228, 38, 44, .26);
	transition: transform .25s var(--ease), background-color .25s var(--ease),
		box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.wp-block-button__link:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }

.wp-block-button.is-style-ha-blue .wp-block-button__link { background: var(--blue-600); box-shadow: 0 8px 22px rgba(27, 118, 188, .24); }
.wp-block-button.is-style-ha-blue .wp-block-button__link:hover { background: var(--blue-700); }

.wp-block-button.is-style-ha-white .wp-block-button__link { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.wp-block-button.is-style-ha-white .wp-block-button__link:hover { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-md); }

.wp-block-button.is-style-ha-outline .wp-block-button__link { background: #fff; color: var(--blue-700); border: 1px solid var(--sky-200); box-shadow: none; }
.wp-block-button.is-style-ha-outline .wp-block-button__link:hover { background: #fff; color: var(--blue-700); border-color: var(--blue-600); }

/* =========================================================
   バナー（自由に増やせる枠）
   ========================================================= */
.ha-banners { gap: 20px; }
.ha-banner { margin: 0; }
.ha-banner img { width: 100%; height: auto; border-radius: 6px; display: block; }
.ha-banner a { display: block; transition: opacity .25s var(--ease); }
.ha-banner a:hover { opacity: .85; }
.ha-banner figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* =========================================================
   法人／個人の2カード
   ※カード全体はリンクではないので、ホバー効果は付けない
   ========================================================= */
.wp-block-columns.audience { gap: 28px; }
.wp-block-column.aud-card { display: flex; flex-direction: column; }
.aud-card .aud-card__media { overflow: hidden; }
.aud-card .aud-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.aud-card .aud-card__body { padding: 30px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.aud-card p.aud-card__num {
	font-family: "Barlow", var(--ff-sans); font-size: 11.5px; letter-spacing: .2em;
	color: var(--blue-500); margin-bottom: 10px; font-weight: 600;
}
.aud-card .wp-block-heading { font-family: var(--ff-serif); font-size: 25px; font-weight: 600; color: var(--ink); margin-bottom: 12px; word-break: auto-phrase; }
.aud-card p { font-size: 14px; line-height: 1.95; color: var(--body); margin-bottom: 22px; }
.aud-card p.aud-card__link { margin-top: auto; margin-bottom: 0; }

/* =========================================================
   選ばれる理由
   ========================================================= */
.wp-block-columns.reasons { gap: 40px; }
.wp-block-column.reason { border-top: 2px solid var(--blue-500); padding-top: 24px; }
.reason p.reason__no {
	font-family: "Barlow", var(--ff-sans); font-size: 12px; font-weight: 700;
	letter-spacing: .16em; color: var(--red); margin-bottom: 12px;
}
.reason .wp-block-heading { font-family: var(--ff-serif); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.65; margin-bottom: 12px; word-break: auto-phrase; }
.reason p { font-size: 14.5px; color: var(--body); }

/* =========================================================
   取扱保険商品
   ========================================================= */
.prod-group__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prod-group__head .wp-block-heading { font-family: var(--ff-serif); font-size: 23px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.prod-group__head .wp-block-heading::before { content: ""; width: 5px; height: 22px; background: var(--red); border-radius: 2px; }
.prod-group__head p { font-size: 13.5px; color: var(--muted); }

.wp-block-group.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wp-block-group.prod-item { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 20px 18px; }
.prod-item .wp-block-heading { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.7; }
.prod-item p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }

/* =========================================================
   取扱保険会社
   ========================================================= */
.wp-block-group.partner-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
.wp-block-group.partner-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 18px 22px; }
.partner-item p.badge {
	font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff;
	background: var(--blue-600); padding: 4px 10px; border-radius: 3px; flex: none;
	line-height: 1.6;
}
.partner-item p.badge.is-life { background: var(--red); }
.partner-item p.partner-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* =========================================================
   ご相談の流れ
   ========================================================= */
.wp-block-group.flow { display: grid; gap: 8px; }
.wp-block-group.flow-step {
	display: grid; grid-template-columns: 76px 1fr; gap: 22px;
	background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 26px 28px;
	position: relative;
}
.wp-block-group.flow-step + .flow-step { margin-top: 30px; }
.wp-block-group.flow-step + .flow-step::before {
	content: ""; position: absolute; left: 50%; top: -23px;
	width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
	border-right: 2px solid var(--sky-200); border-bottom: 2px solid var(--sky-200);
}
.flow-step__no { text-align: center; }
.flow-step p.flow-no { font-family: "Barlow", var(--ff-sans); font-weight: 700; font-size: 34px; line-height: 1; color: var(--blue-600); }
.flow-step p.flow-en { font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.flow-step .wp-block-heading { font-family: var(--ff-serif); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.flow-step__body p { font-size: 14px; color: var(--body); }

/* =========================================================
   よくあるご質問（詳細ブロック）
   ========================================================= */
.wp-block-group.faq { border-top: 1px solid var(--line); }
.faq .wp-block-details { border-bottom: 1px solid var(--line); background: #fff; }
.faq .wp-block-details summary {
	display: flex; align-items: flex-start; gap: 14px; list-style: none; cursor: pointer;
	padding: 22px 4px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::before { content: "Q"; font-family: "Barlow", var(--ff-sans); font-weight: 700; color: var(--red); flex: none; line-height: 1.6; }
.faq .wp-block-details summary::after {
	content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; margin-top: 10px;
	border-right: 1.5px solid var(--blue-400); border-bottom: 1.5px solid var(--blue-400);
	transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq .wp-block-details[open] summary::after { transform: rotate(-135deg); }
.faq .wp-block-details > p {
	display: flex; gap: 14px; padding: 0 4px 24px; font-size: 14.5px; color: var(--body);
}
.faq .wp-block-details > p::before { content: "A"; font-family: "Barlow", var(--ff-sans); font-weight: 700; color: var(--blue-600); flex: none; line-height: 1.7; }

/* =========================================================
   本文（文章だけのセクション）
   ========================================================= */
.rich p { margin-bottom: 0; }
.rich > * + * { margin-top: 1.6em; }
.rich .wp-block-heading { margin-top: 0; }
.rich h2.wp-block-heading {
	font-family: var(--ff-serif); font-size: 24px; font-weight: 600; color: var(--ink);
	margin-top: 52px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.rich > h2.wp-block-heading:first-child { margin-top: 0; }
.rich h3.wp-block-heading { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 32px; margin-bottom: 12px; }
.rich ul { list-style: disc; padding-left: 1.2em; }
.rich ol { list-style: decimal; padding-left: 1.4em; }
.rich li { margin-bottom: .5em; }
.rich a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.rich a:hover { color: var(--red); }

/* 記事本文（single） */
.post__body > * + * { margin-top: 1.6em; }
.post__body .wp-block-heading { margin-top: 0; }
.post__body h2.wp-block-heading {
	font-family: var(--ff-serif); font-size: 22px; font-weight: 600; color: var(--ink);
	margin-top: 44px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.post__body h3.wp-block-heading { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 28px; margin-bottom: 10px; }
.post__body ul { list-style: disc; padding-left: 1.2em; }
.post__body ol { list-style: decimal; padding-left: 1.4em; }
.post__body img { border-radius: 6px; }

/* 会社概要などの表 */
.wp-block-table.def-table table { width: 100%; }
.wp-block-table.def-table th,
.wp-block-table.def-table td {
	text-align: left; vertical-align: top; padding: 20px 8px;
	border: 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.wp-block-table.def-table th { width: 32%; font-weight: 700; color: var(--ink); }
.wp-block-table.def-table td { color: var(--body); }

/* 2カラム */
.wp-block-columns.two-col { gap: 40px; }

/* 地図 */
.map-frame iframe,
.map-frame .wp-block-embed__wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* リード文 */
p.lead-copy {
	font-family: var(--ff-serif); word-break: auto-phrase;
	font-size: clamp(19px, 2.4vw, 25px); font-weight: 500;
	line-height: 1.95; color: var(--ink); letter-spacing: .02em;
}

/* 注釈 */
p.note-plain { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* =========================================================
   ヘッダー・フッターのメニュー（WordPressの出力に合わせる）
   ========================================================= */
.gnav .current-menu-item > a::after,
.gnav .current_page_item > a::after { width: 100%; }
.gnav .current-menu-item > a,
.gnav .current_page_item > a { color: var(--red); }
.footer__nav h2 {
	font-family: "Barlow", var(--ff-sans); font-size: 11px; font-weight: 700; letter-spacing: .16em;
	color: var(--blue-500); margin-bottom: 12px;
}
.util-links a + a { margin-left: 0; }

/* スキップリンク */
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto;
	clip: auto; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (min-width: 600px) {
	.wp-block-group.partner-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 782px) {
	.wp-block-group.flow-step { grid-template-columns: 96px 1fr; padding: 30px 36px; }
}
@media (min-width: 900px) {
	.wp-block-group.prod-grid { grid-template-columns: repeat(3, 1fr); }
	.wp-block-columns.two-col--aside { gap: 56px; }
}
@media (max-width: 781px) {
	.wp-block-columns.audience,
	.wp-block-columns.reasons { gap: 24px; }
	.wp-block-group.prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
	.wp-block-group.prod-grid { grid-template-columns: 1fr; }
	.ha-banners { gap: 14px; }
}

/* =========================================================
   画像がまだ入っていないバナーは、表側では出さない
   （編集画面では「画像を追加」の枠として見えます）
   ========================================================= */
.ha-banner:empty { display: none; }
.ha-banners .wp-block-column:has(> .ha-banner:empty) { display: none; }
.aud-card__media:empty { display: none; }

/* =========================================================
   カレンダーウィジェット（WordPressの出力に合わせる）
   ========================================================= */
.cal table caption,
.widget_calendar table caption {
	font-size: 12.5px; font-weight: 700; color: var(--ink);
	padding-bottom: 8px; text-align: center;
}
.cal table th, .widget_calendar table th { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.cal table th:nth-child(6), .widget_calendar table th:nth-child(6) { color: var(--blue-600); }
.cal table th:nth-child(7), .widget_calendar table th:nth-child(7) { color: var(--red); }
.cal table td:nth-child(6), .widget_calendar table td:nth-child(6) { color: var(--blue-600); }
.cal table td:nth-child(7), .widget_calendar table td:nth-child(7) { color: var(--red); }
.cal .wp-calendar-nav, .widget_calendar .wp-calendar-nav {
	display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-top: 8px;
}
.cal .wp-calendar-nav a, .widget_calendar .wp-calendar-nav a { color: var(--blue-600); }
.cal .wp-calendar-nav a:hover, .widget_calendar .wp-calendar-nav a:hover { color: var(--red); }

/* フッターのリンクが不自然に折り返さないように */
.footer__nav a { word-break: auto-phrase; }

/* =========================================================
   セクション内のボタン行・お問い合わせ枠
   ========================================================= */
.section .wrap > .wp-block-buttons.btn-row { margin-top: 44px; }
.contact-aside__sep { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.contact-aside p.contact-aside__addr { margin-bottom: 0; }
.contact-aside p.contact-aside__map { margin: 16px 0 0; }
.figure-stack figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.two-col .rich { align-self: start; }
.rich p.lead-copy { margin-bottom: 0; }
.rich + .wpcf7, .rich + .form-block, .rich ~ .wpcf7 { margin-top: 40px; }

/* =========================================================
   Contact Form 7 をデモのフォームと同じ見た目に
   ========================================================= */
.wpcf7 .form-block { display: grid; gap: 24px; }
.wpcf7-form-control-wrap { display: block; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea { width: 100%; }
.radio-row .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row .wpcf7-list-item { margin: 0; }
.consent .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.consent .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.consent a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.wpcf7-submit.btn { border: 0; cursor: pointer; font-family: inherit; }
.wpcf7-submit.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wpcf7-not-valid-tip { font-size: 12.5px; color: var(--red); margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 18px; border-radius: 5px; font-size: 14px; }
.wpcf7-spinner { vertical-align: middle; }

/* 2カラム（左を広めに） */
@media (min-width: 782px) {
	.wp-block-columns.two-col--aside > .wp-block-column:first-child { flex-basis: 0; flex-grow: 1.6; }
	.wp-block-columns.two-col--aside > .wp-block-column:last-child { flex-basis: 0; flex-grow: 1; }
}
/* カレンダーの今日 */
.cal td#today, .widget_calendar td#today { outline: 1px solid var(--line); border-radius: 4px; font-weight: 700; color: var(--ink); }

/* =========================================================
   ヘッダーの横幅調整
   メニュー＋電話番号＋ボタンが1行に収まらない幅では、
   ・1024〜1199px … スマホと同じ「≡」メニューにする
   ・1200〜1399px … 電話番号を隠してボタンだけにする
   ========================================================= */
.header > .wrap { max-width: 1400px; }
@media (min-width: 1024px) and (max-width: 1199px) {
	.util { display: none; }
	.gnav, .header__cta { display: none; }
	.burger { display: flex; }
	.drawer { display: block; }
	.header__inner { height: 70px; }
	.logo img { height: 46px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
	.header__tel { display: none; }
	.gnav ul { gap: 22px; }
	.gnav a { font-size: 14px; }
}
