/*
 * 標準ブロック用の差分
 * デモの CSS（tokens・base・components）は、デモの HTML（div・li・a.hl-btn など）向けに書いてある。
 * WordPress の標準ブロック（group・paragraph・image・button・table・details）で組んだときに同じ見た目になるよう、ここで足す。
 */

/* ---- 枠：テンプレートパーツの箱を消して、ヘッダーをページの上に貼り付ける ---- */
.hl-header-part, .hl-footer-part { display: contents; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.admin-bar .hl-header { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .hl-header--overlay { top: var(--wp-admin--admin-bar--height, 32px); }
main.hl-main { display: block; }
.hl-main > .entry-content > *,
.hl-main > .wp-block-post-content > * { margin-block: 0; }

/* ---- 標準ブロックの初期の余白・線をなくす（:where で弱くして、デモの部品の余白が勝つように） ---- */
:where(.wp-block-image, .wp-block-table, .wp-block-buttons, .wp-block-list, .wp-block-details, .wp-block-heading) { margin: 0; }
:where(.wp-block-image figcaption) { margin: 0; }
:where(.wp-block-group) { box-sizing: border-box; }
:where(.wp-block-group.has-background) { padding: 0; }
mark.has-inline-color { background: none; font-style: normal; }

/* ---- 写真の箱：デモは div > img、ブロックは figure > img ---- */
:where(.hl-promise__media, .hl-message__media, .hl-recruit__media, .hl-text__media, .hl-wide-photo,
.hl-page-hero__frame, .hl-cta-band__bg, .hl-recruit__bg) { margin: 0; }
/* リストの行：テーマ（Twenty Twenty-Five）の行間の余白を消す。デモの部品の余白はクラスで付く */
.wp-block-list > li { margin-block: 0; }
.hl-promise__media img, .hl-message__media img, .hl-recruit__media img, .hl-text__media img,
.hl-wide-photo img, .hl-page-hero__frame img, .hl-cta-band__bg img, .hl-recruit__bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---- ボタン：ブロックのボタンは div.hl-btn > a。見た目は div に付け、押せる範囲を div いっぱいに ---- */
.wp-block-button.hl-btn { position: relative; padding: 0; }
.wp-block-button.hl-btn > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 48px; padding: .7em 1.5em .7em 1.1em;
  background: none; color: inherit; border: 0; border-radius: inherit;
  font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none;
}
.wp-block-button.hl-btn > .wp-block-button__link::before {
  content: ""; flex: none; width: 1.6em; height: 1.6em; background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Ccircle%20cx=%278%27%20cy=%278%27%20r=%278%27%20fill=%27%23fff%27/%3E%3Cpath%20d=%27M4.4%208h6.2M8%205.2%2010.8%208%208%2010.8%27%20fill=%27none%27%20stroke=%27%23004098%27%20stroke-width=%271.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.hl-btn--white > .wp-block-button__link::before,
.wp-block-button.hl-btn--ghost > .wp-block-button__link::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Ccircle%20cx=%278%27%20cy=%278%27%20r=%278%27%20fill=%27%23004098%27/%3E%3Cpath%20d=%27M4.4%208h6.2M8%205.2%2010.8%208%208%2010.8%27%20fill=%27none%27%20stroke=%27%23fff%27%20stroke-width=%271.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
.wp-block-buttons.hl-btns { gap: .8rem 1rem; }

/* ---- 札：段落に付けたとき ---- */
p.hl-chip { width: fit-content; }
/* デモは p（行の高さ 1.8）の中に札。段落そのものを札にしたので、上下の差を足す */
p.hl-reasons__label.hl-chip { margin-top: calc(.9rem + 4px); margin-bottom: 1px; }

/* ---- 表：ブロックの表は figure.hl-compare__scroll > table（デモの table.hl-compare__table と同じ見た目に） ---- */
.wp-block-table.hl-compare__scroll { overflow-x: auto; }
/* 標準の表の枠線（四方の線・見出しの太い下線）を消す。下の線と余白はデモの .hl-compare__scroll table のまま */
.wp-block-table.hl-compare__scroll table { border: 0; }
.wp-block-table.hl-compare__scroll thead { border: 0; }
.wp-block-table.hl-compare__scroll :is(th, td) { border-top: 0; border-left: 0; border-right: 0; }
.hl-col-2 tr > :nth-child(2), .hl-col-3 tr > :nth-child(3), .hl-col-4 tr > :nth-child(4), .hl-col-5 tr > :nth-child(5) {
  background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary); font-weight: 700;
}
.hl-col-2 thead tr > :nth-child(2), .hl-col-3 thead tr > :nth-child(3), .hl-col-4 thead tr > :nth-child(4), .hl-col-5 thead tr > :nth-child(5) {
  background: var(--wp--preset--color--primary); color: #fff;
}

/* ---- よくあるご質問：ブロックの「詳細」は details > summary + p ---- */
.hl-faq__item > summary {
  display: grid; grid-template-columns: 2rem 1fr 1.4rem; gap: .8rem; align-items: center;
  padding: 1.2rem 1.4rem; font-weight: 700; color: var(--wp--preset--color--ink); cursor: pointer; list-style: none;
}
.hl-faq__item > summary::-webkit-details-marker { display: none; }
.hl-faq__item > summary::before {
  content: "Q"; font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; font-weight: 700; color: var(--wp--preset--color--primary);
}
.hl-faq__item > summary::after {
  content: ""; width: 1.1rem; height: 1.1rem; justify-self: end;
  background:
    linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 100% 2px no-repeat,
    linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 2px 100% no-repeat;
  transition: transform .3s;
}
.hl-faq__item[open] > summary::after { background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 100% 2px no-repeat; }
.hl-faq__item > .hl-faq__a { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: 0 1.4rem 1.4rem; font-size: .9375rem; }
.hl-faq__item > .hl-faq__a::before { content: "A"; font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: var(--wp--preset--color--accent); }

/* ---- 関連ページのカード：カード全体を押せるように ---- */
.hl-links__card { position: relative; }
.hl-links__label a { color: inherit; }
.hl-links__label a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hl-links__card::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%3E%3Ccircle%20cx=%278%27%20cy=%278%27%20r=%278%27%20fill=%27%23004098%27/%3E%3Cpath%20d=%27M4.6%208h6M8.2%205.4%2010.8%208%208.2%2010.6%27%20fill=%27none%27%20stroke=%27%23fff%27%20stroke-width=%271.2%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- プラン：金額の単位は段落を分けた ---- */
.hl-plans__unit { margin-top: .25rem; font-size: .8125rem; font-weight: 500; line-height: 1.2; color: var(--wp--preset--color--muted); }
.hl-plans__item { position: relative; }
p.hl-plans__badge { width: fit-content; }

/* ---- 料金の例：行は段落 2 つ ---- */
.hl-price-examples__row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--wp--preset--color--line); }
.hl-price-examples__row > :last-child { font-family: var(--wp--preset--font-family--number); white-space: nowrap; }
.hl-price-examples__total-label { font-family: var(--wp--preset--font-family--body); font-size: .8125rem; font-weight: 400; color: var(--wp--preset--color--muted); }
.hl-price__group.is-compact .hl-price__matrix { display: none; }
.hl-price__notes { font-size: .8125rem; color: var(--wp--preset--color--muted); }
.hl-price__estimate { font-family: var(--wp--preset--font-family--number); font-size: 1.6rem; font-weight: 700; color: var(--wp--preset--color--primary); }

/* ---- 約束：番号と言葉は段落 2 つ ---- */
.hl-promise__label > p { margin: 0; }

/* ---- ふわっと出る順番：デモは style="--hl-delay"、ブロックでは並び順から ---- */
:is(.hl-features__list, .hl-reasons__list, .hl-flow__list, .hl-commitments__list, .hl-plans__list, .hl-links__list, .hl-price-examples__list, .hl-group__list) > :nth-child(3n + 2) { --hl-delay: .08s; }
:is(.hl-features__list, .hl-reasons__list, .hl-flow__list, .hl-commitments__list, .hl-plans__list, .hl-links__list, .hl-price-examples__list, .hl-group__list) > :nth-child(3n + 3) { --hl-delay: .16s; }

/* ---- お問い合わせ：電話番号は大きく見やすく。グループのページは 2 つを左でそろえる（2026-10-30 宮本さん） ---- */
.hl-contact__tel { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: .01em; }
.hl-contact__tel--two { align-items: flex-end; }
.hl-contact__tel--two svg { margin-bottom: .18em; }
.hl-contact__tel--two small { display: block; margin-bottom: .1rem; font-family: var(--wp--preset--font-family--body); font-size: .9375rem; font-weight: 700; line-height: 1.4; letter-spacing: .04em; color: var(--wp--preset--color--ink); }
.hl-contact__tel--two + .hl-contact__tel--two { margin-top: .8rem; }
.hl-contact__side--two { justify-items: start; }
.hl-contact__hours { padding: .35rem 1rem; font-size: .875rem; }
.hl-cta-band__tel { margin-top: .6rem; }

/* ---- 税理士法人は大阪と東京の 2 つの番号を「【大阪】番号」で出す（2026-10-31 宮本さん） ---- */
/* 漢字は数字より背が高いので .8em で数字（Inter）と同じ高さに。少し上げて上下の端もそろえる */
.hl-contact__tel .hl-contact__area { display: inline; margin: 0 .04em 0 0; font-family: var(--wp--preset--font-family--body); font-size: .8em; font-weight: 700; letter-spacing: 0; font-feature-settings: "palt"; color: var(--wp--preset--color--ink); vertical-align: .08em; }
/* 【大阪】が付くと 1 行が長くなるので、スマホでは画面の幅に合わせて少し小さく（同じ欄の社労士法人の番号もそろえる） */
.hl-contact__side:has(.hl-contact__area) .hl-contact__tel { font-size: min(clamp(2rem, 3.6vw, 3rem), 7.5vw); }
.hl-contact__side .hl-contact__tel--more { margin-top: -.4rem; }
.hl-contact__side:not(.hl-contact__side--two):has(.hl-contact__tel--more) { grid-template-columns: max-content; }
.hl-contact__side:has(.hl-contact__tel--more) .hl-contact__tel { justify-self: start; }

/* ---- 税理士法人と社労士法人が並ぶ欄：法人名は青い札、番号は少し小さく、受付時間は番号の幅いっぱいで文字を中央に（2026-11-02 宮本さん） ---- */
.hl-contact__side.hl-contact__side--two { --hl-tel-fs: min(clamp(1.75rem, 3vw, 2.5rem), 7vw); }
.hl-contact__side.hl-contact__side--two .hl-contact__tel { font-size: var(--hl-tel-fs); }
/* 札の左端は電話のアイコン（.8em）と隙間（.5rem）の分だけ左へ出して、アイコン・受付時間・ボタンの左端にそろえる */
.hl-contact__side--two .hl-contact__tel--two small:not(.hl-contact__area) { width: fit-content; margin: 0 0 .45rem calc(-.8 * var(--hl-tel-fs) - .5rem); padding: .15em .85em; background: var(--wp--preset--color--primary); color: #fff; font-size: clamp(.9375rem, 1.2vw, 1.0625rem); line-height: 1.7; letter-spacing: .08em; }
.hl-contact__side--two .hl-contact__tel--two:not(:first-child):not(.hl-contact__tel--more) { margin-top: 1.4rem; }
.hl-contact__side--two .hl-contact__hours { justify-self: stretch; padding: .55rem 1rem; font-size: 1.0625rem; text-align: center; }
/* PC（2 列のとき）は札だけ左、ボタンは中央に。1 列（960px 以下）は左そろえのまま（2026-11-02 宮本さん） */
@media (min-width: 961px) {
  .hl-contact__side--two .hl-btn { justify-self: center; }
}

.hl-tels { display: grid; grid-template-columns: auto 1fr; column-gap: 1em; }
.hl-tels__corp { font-weight: 700; }

/* ---- グループ事業 ---- */
.hl-group__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.hl-group__item { padding: clamp(1.6rem, 3vw, 2.2rem); border: 1px solid var(--wp--preset--color--line); background: #fff; }
.hl-group__name { font-size: var(--wp--preset--font-size--title); font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-group__rep { margin-top: .4rem; font-weight: 700; color: var(--wp--preset--color--primary); }
.hl-group__addr { margin-top: .6rem; font-size: .9375rem; }
.hl-group__item .hl-btns { margin-top: 1.2rem; }

/* ---- ヘッダー：メニューのボタンは薄い青（2026-10-30 宮本さん。デモは薄い灰色 #ececec） ---- */
.hl-nav__link { background: var(--wp--preset--color--tint); }

/* ---- プライバシーポリシー・フォーム ---- */
.hl-container--narrow { max-width: calc(860px + var(--wp--custom--gutter) * 2); }
.hl-policy__h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-policy__body { margin-top: 2rem; }
.hl-policy__body > * + * { margin-top: 1rem; }
.hl-policy__title { margin-top: 2.2rem !important; font-size: 1.25rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-policy__body ul { padding-left: 1.4em; list-style: disc; }
/* ---- プライバシーポリシー（2026-11-01 改定）：上の小見出し・（1）の付いた項目・窓口・会社の表 ---- */
.hl-policy__en { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--wp--preset--color--primary); }
.hl-policy__sub { margin-top: .4rem; font-size: .9375rem; color: var(--wp--preset--color--muted); }
.hl-policy__body ul.hl-policy__num { padding-left: 0; list-style: none; }
.hl-policy__num li { position: relative; padding-left: 2.6em; }
.hl-policy__num li + li { margin-top: .45rem; }
.hl-policy__no { position: absolute; top: 0; left: 0; }
.hl-policy__contact { padding: 1rem 1.2rem; background: var(--wp--preset--color--tint); line-height: 1.9; }
.hl-policy__table table { min-width: 0; font-size: .875rem; }
.hl-policy__table table :is(th, td) { padding: .85rem 1rem; text-align: left; vertical-align: top; }
.hl-policy__table table tbody th { white-space: normal; }
@media (max-width: 640px) {
  .hl-policy__table thead { display: none; }
  .hl-policy__table :is(table, tbody, tr, th, td) { display: block; width: 100%; }
  .hl-policy__table tr { padding: .85rem 1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
  .hl-policy__table tr:last-child { border-bottom: 0; }
  .hl-policy__table table :is(th, td) { padding: 0; border: 0; }
  .hl-policy__table td::before { margin-right: .6em; font-weight: 700; color: var(--wp--preset--color--muted); }
  .hl-policy__table td:nth-of-type(1)::before { content: '所在地'; }
  .hl-policy__table td:nth-of-type(2)::before { content: '代表者'; }
}
.hl-form .wpcf7 { margin-top: 2rem; }
.hl-form .wpcf7 p { margin: 0 0 1.2rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-form .wpcf7 input[type="text"], .hl-form .wpcf7 input[type="email"], .hl-form .wpcf7 input[type="tel"], .hl-form .wpcf7 select, .hl-form .wpcf7 textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .8rem 1rem; font: inherit; font-weight: 400;
  border: 1px solid var(--wp--preset--color--line); border-radius: 0; background: #fff;
}
.hl-form .wpcf7 .wpcf7-list-item { display: inline-block; margin: .3rem 1.2rem .3rem 0; font-weight: 400; }
.hl-form .wpcf7 input[type="submit"] {
  min-height: 52px; padding: .8em 2.4em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--wp--preset--color--primary); color: #fff; font: inherit; font-weight: 700;
}
.hl-form .wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--primary-deep); }

/* ---- ニュース（投稿）のページ ---- */
.hl-post { padding-block: var(--wp--preset--spacing--50); }
.hl-post__title { margin-top: .6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.4; color: var(--wp--preset--color--ink); }
.hl-post__body { margin-top: 2rem; }
.hl-post__body > * + * { margin-top: 1.2rem; }
.hl-news-archive .wp-block-post { padding-block: 1.2rem; border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---- エディターの中：hl/data の空の案内 ---- */
.hl-editor-note { padding: 1.2rem 1.4rem; border: 1px dashed var(--wp--preset--color--accent); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); font-size: .875rem; }

/* ---- お問い合わせフォーム（宮本さんのシート「フォームの簡易構成案」2026-10-30）
   表のような並び（左に項目名・右に入力欄。スマホは縦）・入力中の行に色・その場のエラー・入力 → 確認 → 送信完了 ---- */
.hl-cf { --cf-line: var(--wp--preset--color--line); --cf-err: #c81e1e; max-width: 900px; margin-inline: auto; }
.hl-form .wpcf7 .hl-cf p { margin: 0; font-weight: inherit; }
.hl-cf__field br, .hl-cf__agree br, .hl-cf__actions br, .hl-cf__intro br { display: none; }
/* 自動の段落が入ったときの保険（中身だけを並べる） */
.hl-cf__steps li > p, .hl-cf__progress > p, .hl-cf__label > p, .hl-cf__field > p, .hl-cf__agree > p, .hl-cf__actions > p { display: contents; }
.hl-cf__intro { margin-bottom: 2rem; padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--wp--preset--color--tint); }
.hl-cf__lead { text-align: center; font-size: clamp(.9375rem, 1.6vw, 1.0625rem); font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-cf__lead strong { color: var(--wp--preset--color--primary); font-size: 1.15em; }
.hl-cf__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.hl-cf__steps li { position: relative; display: grid; gap: .1rem; padding: .7rem .4rem .7rem 1.4rem; background: #fff; border: 1px solid var(--cf-line); text-align: center; font-size: .875rem; font-weight: 700; color: var(--wp--preset--color--muted); }
.hl-cf__steps li + li { border-left: 0; }
.hl-cf__steps li span { font-family: var(--wp--preset--font-family--number); font-size: .6875rem; letter-spacing: .08em; }
.hl-cf__steps li.is-current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hl-cf__steps li.is-done { color: var(--wp--preset--color--primary); }
.hl-cf__progress { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .8125rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-cf__bar { flex: 1 1 auto; height: 8px; background: #fff; border: 1px solid var(--cf-line); }
.hl-cf__bar i { display: block; width: 0; height: 100%; background: var(--wp--preset--color--primary); transition: width .3s; }
.hl-cf__rate b { color: var(--wp--preset--color--primary); font-size: 1.1em; }
.hl-cf__rows { border-top: 1px solid var(--cf-line); }
.hl-cf__row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); border-bottom: 1px solid var(--cf-line); transition: background-color .2s, box-shadow .2s; }
.hl-cf__label { display: flex; align-items: flex-start; gap: .7rem; padding: 1.5rem 1.2rem; background: var(--wp--preset--color--surface); font-weight: 700; line-height: 1.6; color: var(--wp--preset--color--ink); }
.hl-cf__badge { flex: none; margin-top: .15em; padding: .05em .55em; border: 1px solid var(--wp--preset--color--muted); font-size: .6875rem; font-weight: 700; line-height: 1.6; color: var(--wp--preset--color--muted); background: #fff; }
.hl-cf__badge.is-req { border-color: var(--cf-err); background: var(--cf-err); color: #fff; }
.hl-cf__field { display: grid; gap: .5rem; padding: 1.2rem 1.4rem; align-content: center; }
.hl-cf__hint { font-size: .8125rem; line-height: 1.7; color: var(--wp--preset--color--muted); }
.hl-cf__row:focus-within { background: #f3f8ff; box-shadow: inset 4px 0 0 var(--wp--preset--color--primary); }
.hl-cf__row:focus-within .hl-cf__label { background: transparent; }
.hl-form .wpcf7 .hl-cf input[type="text"], .hl-form .wpcf7 .hl-cf input[type="email"], .hl-form .wpcf7 .hl-cf input[type="tel"], .hl-form .wpcf7 .hl-cf select, .hl-form .wpcf7 .hl-cf textarea { margin-top: 0; padding: .85rem 1rem; border-radius: 4px; font-size: 1rem; }
.hl-form .wpcf7 .hl-cf input:focus, .hl-form .wpcf7 .hl-cf select:focus, .hl-form .wpcf7 .hl-cf textarea:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 0; border-color: var(--wp--preset--color--primary); }
.hl-form .wpcf7 .hl-cf textarea { min-height: 12rem; }
.hl-cf__zip { display: flex; gap: .6rem; align-items: stretch; }
.hl-cf__zip .wpcf7-form-control-wrap { flex: 0 1 12rem; }
.hl-cf__zip-btn, .hl-cf__back { padding: 0 1.2rem; border: 1px solid var(--wp--preset--color--primary); border-radius: 4px; background: #fff; color: var(--wp--preset--color--primary); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.hl-cf__zip-btn:hover, .hl-cf__back:hover { background: var(--wp--preset--color--tint); }
.hl-form .wpcf7 .hl-cf .wpcf7-radio { display: flex; flex-wrap: wrap; gap: .5rem; }
.hl-form .wpcf7 .hl-cf .wpcf7-list-item { margin: 0; }
.hl-form .wpcf7 .hl-cf .wpcf7-radio label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--cf-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .9375rem; }
.hl-form .wpcf7 .hl-cf .wpcf7-radio label:has(input:checked) { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary); font-weight: 700; }
.hl-cf__err, .hl-form .wpcf7 .hl-cf .wpcf7-not-valid-tip { display: block; color: var(--cf-err); font-size: .8125rem; font-weight: 700; }
.hl-cf__row.is-error { background: #fff6f6; }
.hl-cf__row.is-error input, .hl-cf__row.is-error select, .hl-cf__row.is-error textarea { border-color: var(--cf-err) !important; }
.hl-cf__err ~ .wpcf7-not-valid-tip, .hl-cf__field .wpcf7-not-valid-tip + .hl-cf__err { display: none; }
.hl-cf__agree { display: grid; justify-items: center; gap: .6rem; margin-top: 2rem; text-align: center; }
.hl-cf__agree.is-error .wpcf7-list-item label { color: var(--cf-err); }
.hl-cf__agree a { font-size: .875rem; color: var(--wp--preset--color--primary); text-decoration: underline; }
.hl-cf__confirm-lead { margin-bottom: 1rem !important; text-align: center; font-weight: 700; color: var(--wp--preset--color--ink); }
.hl-cf__confirm-list { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--cf-line); }
.hl-cf__confirm-list dt, .hl-cf__confirm-list dd { margin: 0; padding: 1rem 1.2rem; border-bottom: 1px solid var(--cf-line); line-height: 1.7; }
.hl-cf__confirm-list dt { background: var(--wp--preset--color--surface); font-weight: 700; }
.hl-cf__confirm-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.hl-cf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hl-cf__to-confirm, .hl-form .wpcf7 .hl-cf input.hl-cf__send { min-width: min(100%, 22rem); min-height: 56px; padding: .8em 2.4em; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hl-cf__to-confirm:hover, .hl-form .wpcf7 .hl-cf input.hl-cf__send:hover { background: var(--wp--preset--color--primary-deep); }
.hl-cf__back { min-height: 56px; border-radius: 999px; }
/* 段ごとに見せるもの：1＝入力、2＝確認 */
.hl-cf[data-step="1"] .hl-cf__back, .hl-cf[data-step="1"] .hl-cf__send, .hl-cf[data-step="1"] .wpcf7-spinner { display: none !important; }
.hl-cf[data-step="2"] .hl-cf__rows, .hl-cf[data-step="2"] .hl-cf__agree, .hl-cf[data-step="2"] .hl-cf__to-confirm, .hl-cf[data-step="2"] .hl-cf__progress { display: none !important; }
@media (max-width: 760px) {
  .hl-cf__row, .hl-cf__confirm-list { grid-template-columns: minmax(0, 1fr); }
  .hl-cf__label { padding: 1.1rem 1rem .2rem; background: transparent; }
  .hl-cf__field { padding: .5rem 1rem 1.2rem; }
  .hl-cf__confirm-list dt { padding-bottom: .3rem; border-bottom: 0; }
  .hl-cf__steps li { padding-left: .4rem; font-size: .75rem; }
  .hl-cf__actions { flex-direction: column-reverse; align-items: stretch; }
}


/* ---- ヘッダーのメニュー：項目が 8 つ（グループ法人・よくあるご質問・コラムを足した）ので、
   中くらいの幅では少し詰め、狭い幅では早めにスマホのメニュー（右上のボタン）に切り替える ---- */
@media (max-width: 1280px) {
  .hl-nav__link { min-width: 72px; padding: 0 1rem; }
  .hl-nav__cta { padding: 0 1.1rem; }
}
@media (max-width: 1180px) {
  .hl-nav { display: none; }
  .hl-burger { display: block; }
}

/* ---- トップ：開いた画面の下に流れる英文が見えるように、写真の高さを画面の高さに合わせる（2026-10-30 宮本さん） ---- */
:root { --hl-marquee-h: calc(var(--wp--preset--font-size--marquee) * 1.1 + 2 * clamp(.8rem, 2vw, 1.6rem)); }
/* ヘッダーは写真に重ねないので、写真の高さ＝画面 − ヘッダー − 流れる英文（− ログイン中の管理バー） */
:root { --hl-fold: calc(100svh - var(--wp--custom--header-height) - var(--hl-marquee-h) - var(--wp-admin--admin-bar--height, 0px)); }
.hl-hero-collage { height: max(400px, min(max(560px, 52vw), 860px, var(--hl-fold))); }
@media (max-width: 640px) {
  .hl-hero-collage { height: max(420px, min(760px, var(--hl-fold))); min-height: 0; max-height: none; }
}

/* ---- トップの写真：上 3 枚・下 3 枚（2026-10-30 宮本さん。上 3・下 2 だと下の枠が横長すぎて顔が切れる） ---- */
.hl-hero-collage__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 50% 50%; }
.hl-hero-collage__cell:nth-child(n) { grid-column: auto; grid-row: auto; }
.hl-hero-collage__cell:nth-child(6) { --wipe: inset(100% 0 0 0); }
/* タブレット・スマホは 2 列で、上 2 枚・下 2 枚の写真で「HEARTLAND GROUP」をはさむ。真ん中の段は写真を出さない（文字が人に重なるため。2026-10-30 宮本さん）
   帯の色は --hl-hero-band、文字の色は --hl-hero-ink */
.hl-hero-collage__cell--sp { display: none; }
@media (max-width: 960px) {
  /* 白い帯に紺の文字（見本 B）。写真はスマホ用の 4 枚（内装か外装 1・ソロ 2・複数 1）に入れ替える */
  .hl-hero-collage { --hl-hero-band: #fff; --hl-hero-ink: var(--wp--preset--color--primary); background: var(--hl-hero-band); }
  .hl-hero-collage::after { display: none; }
  /* 真ん中の帯は文字の高さ＋上下の余白だけ（文字は 17vw で 2 行） */
  .hl-hero-collage__grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr calc(33vw + 3.5rem) 1fr; }
  .hl-hero-collage__cell { display: none; }
  .hl-hero-collage__cell.hl-hero-collage__cell--sp { display: block; }
  /* 左上 ソロ（細め）/ 右上 内装・外装（広め）・ 左下 複数（広め）/ 右下 ソロ（細め） */
  .hl-hero-collage__cell.hl-hero-collage__cell--sp-1 { grid-row: 1; grid-column: 1 / 6; }
  .hl-hero-collage__cell.hl-hero-collage__cell--sp-2 { grid-row: 1; grid-column: 6 / 13; }
  .hl-hero-collage__cell.hl-hero-collage__cell--sp-3 { grid-row: 3; grid-column: 1 / 8; }
  .hl-hero-collage__cell.hl-hero-collage__cell--sp-4 { grid-row: 3; grid-column: 8 / 13; }
  .hl-hero-collage__title { top: 50%; transform: translateY(-50%); color: var(--hl-hero-ink); text-shadow: none; }
  /* 写真は大きい状態から戻る動きをしない（スマホでは揺れて見えるため）。入れ替わりは幕が開くだけ */
  .js .hl-hero-collage__cell img.is-active, .js .is-loaded .hl-hero-collage__cell img.is-active { transform: none; }
  .hl-hero-collage__cell img.is-entering { animation-name: hl-cell-wipe-flat; }
  /* オープニングの青い帯をゆっくりに。写真・文字・ヘッダーの出だしもそれに合わせる */
  .intro-slash { --reveal: 2.35s; --reveal-title: 2.6s; --reveal-header: 3.1s; }
  .hl-intro--slash { animation-delay: 3.45s; }
  .hl-intro--slash .hl-intro__base { animation-delay: 2.3s; }
  .hl-intro__bands i {
    animation: hl-band-in .7s cubic-bezier(.86, 0, .07, 1) calc(1.4s + var(--b) * .1s) forwards,
               hl-band-out .85s cubic-bezier(.86, 0, .07, 1) calc(2.35s + (2 - var(--b)) * .1s) forwards;
  }
}
@keyframes hl-cell-wipe-flat { from { clip-path: var(--wipe, inset(0 0 0 100%)); } to { clip-path: inset(0 0 0 0); } }

/* 電話番号のリンク（スマホでタップして電話をかける。app.js が番号の文字をリンクにする）。見た目は文字のまま、マウスで操作する PC では押せない */
a.hl-tel { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a.hl-tel { pointer-events: none; cursor: text; }
}

/* オフィスの詳細：法人名を見やすい大きさに、ボタンと上の表のあいだを空ける（2026-10-30 宮本さん） */
.hl-office-detail__corp { font-size: clamp(1rem, 1.4vw, 1.125rem); letter-spacing: .02em; }
.hl-office-detail__item .hl-btns { margin-top: 2rem; }
/* 地図はビジネスプロフィール（名前・口コミ）の札が出る高さに。低いと札が小さくなる */
.hl-office-detail__map { height: 320px; }

/* スマホのメニュー：開閉の見出し（summary）とメニューのボタンを指でタップしたとき、選んだ印の枠線を出さない（iPhone で黒い枠が出ていた。2026-10-31 宮本さん）。キーボードで選んだときは今までどおり出す */
.hl-drawer summary, .hl-burger { -webkit-tap-highlight-color: transparent; }
.hl-drawer summary:focus:not(:focus-visible), .hl-burger:focus:not(:focus-visible) { outline: none; }
@media (hover: none) {
  .hl-drawer summary:focus, .hl-drawer summary:focus-visible, .hl-burger:focus, .hl-burger:focus-visible { outline: none; }
}

/* スマホのカード（写真とタイトルだけのカード：トップのサービス・コラムなど）：写真を左に小さく、文字を右に並べて縦の長さを約半分に（見本 A。2026-10-31 宮本さん）。説明文のあるカードは今までどおり */
@media (max-width: 640px) {
  .hl-cards:not(:has(.hl-card__text)) { gap: .6rem; }
  .hl-card:not(:has(.hl-card__text)) { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: center; }
  .hl-card:not(:has(.hl-card__text)) .hl-card__media { aspect-ratio: 4 / 3; }
  .hl-card:not(:has(.hl-card__text)) .hl-card__body { padding: .7rem .9rem; gap: .3rem; justify-content: center; }
  .hl-card:not(:has(.hl-card__text)) .hl-card__title { font-size: .875rem; line-height: 1.45; }
  .hl-card:not(:has(.hl-card__text)) .hl-card__meta { font-size: .6875rem; flex-wrap: wrap; gap: .3rem; }
}

/* スマホのオープニング：ロゴは中央で止めず、加速しながら画面の外へ抜けて消える（見本 A。2026-10-31 宮本さん）。
   16 倍で止めると、青い帯が来るまで大きな線が残って止まって見えていた。帯が遅いぶん、動きも長く */
@media (max-width: 960px) {
  .hl-intro--slash .hl-intro__mark { animation: hl-slash-through 1.9s .04s both; }
}
@keyframes hl-slash-through {
  0% { transform: rotate(-360deg) scale(.06); opacity: 1; animation-timing-function: cubic-bezier(.2, .9, .35, 1); }
  45% { transform: rotate(0deg) scale(1); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, .85, .35); }
  85% { opacity: 1; }
  100% { transform: rotate(160deg) scale(46); opacity: 0; }
}
