/*
 * additional.css — 株式会社南部 コーポレートサイト
 * 静的モックアップ（nanbu-home.html）のデザインを .hidamari にスコープして移植。
 * 本文（Gutenbergブロック）は最上位を class="hidamari" の core/group で包むこと。
 * SWELL独自ブロックは使用していません。標準ブロック向けのカスタムクラスのみ。
 */

:root {
    --primary: #0B3A5B;
    --primary-ink: #082a44;
    --accent: #2E86C1;
    --accent-ink: #21689b;
    --bg: #FFFFFF;
    --bg-soft: #F4F8FB;
    --bg-blueprint: #EAF2F8;
    --text: #22303B;
    --subtext: #5B6B74;
    --border: #E1E8EC;
    --card-shadow: 0 2px 12px rgba(11, 58, 91, 0.08);
    --font-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho",
      "YuMincho", "MS PMincho", serif;
    --font-sans-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
      "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
      "Roboto Mono", monospace;
    --max-w: 1120px;
    --section-pad: 96px;
    --radius-card: 12px;
    --radius-btn: 8px;
  }
/* このサイトは design.md の「白ベースを基調に清潔感・信頼感を最優先する」という
     方針に沿い、常に白背景のライトテーマで表示します（ダークモード非対応）。 */
.hidamari, .hidamari * { box-sizing: border-box; }
.hidamari {
    font-family: var(--font-jp);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.043 0 0 0 0 0.227 0 0 0 0 0.357 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--text);
    line-height: 1.85;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
  }
/* Double-rule frame: an outer + inner hairline border with a gap between —
     the certificate / warranty-card motif, used sparingly on page-hero
     bands to lend an "official, considered" quality without extra color. */
.hidamari .frame-double {
    border: 1px solid var(--primary);
    padding: 5px;
  }
.hidamari .frame-double-inner {
    border: 1px solid var(--primary);
  }
/* Pull-quote: Japanese corner-bracket quotation, not a Western curly
     quote — used for the CEO's words wherever they appear at length. */
.hidamari .pull-quote {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--accent);
  }
/* Marker highlight: a single pass of a highlighter behind short,
     load-bearing phrases — like an engineer circling the key spec on a
     printed sheet, not a casual doodle. Reuses the brand accent blue
     (no new hue) at low opacity, with a faint hand-drawn wobble so it
     doesn't read as a flat CSS underline. Used sparingly and only on
     the three parallel "differentiator" card sets (home の理由 /
     こだわり / 採用 features) so it functions as one recognizable
     device, not scattered decoration. */
.hidamari .marker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 34' preserveAspectRatio='none'%3E%3Cpath d='M4 21 Q70 9 130 15 T320 16' fill='none' stroke='%232E86C1' stroke-opacity='0.4' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 100%;
    padding: 0 .12em;
  }
.hidamari img, .hidamari svg { max-width: 100%; }
.hidamari .icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
/* Solid-fill icon set (recruit timeline icons, reused from nanbu.net) */
.hidamari .icon--solid { stroke: none; fill: currentColor; }
.hidamari a { color: inherit; }
.hidamari a:focus-visible, .hidamari button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }
.hidamari h1, .hidamari h2, .hidamari h3 {
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
    margin: 0;
  }
.hidamari p { margin: 0; }
.hidamari .mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
  }
/* Typography system: Mincho (serif) carries headings and reading copy —
     the personality of the page. Small UI chrome (nav, buttons, labels,
     badges) stays in Gothic (sans) so it reads clearly at a glance; a
     thin serif at 12px goes soft and hurts scanability, which the brief
     explicitly rules out ("情報が見づらくなるのはNG"). */
.hidamari .sans, .hidamari .btn, .hidamari .icon-link, .hidamari .util-link, .hidamari .site-nav, .hidamari .eyebrow, .hidamari .spec-strip .spec-label, .hidamari .case-area, .hidamari .footer-nav, .hidamari .footer-social, .hidamari .footer-bottom, .hidamari .brand small, .hidamari .voice-meta, .hidamari .fact-row dt {
    font-family: var(--font-sans-jp);
  }
.hidamari .wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
  }
/* Offset anchored jumps so the sticky 2-row header doesn't cover the target */
.hidamari #top, .hidamari #case-study, .hidamari #company, .hidamari #contact, .hidamari #phone { scroll-margin-top: 104px; }
@media (prefers-reduced-motion: no-preference) {

}
/* ---------- Multi-page router ---------- */
/* This prototype ships every page (spec.md's site map) in one file;
     the router below shows exactly one .page-view at a time so it can
     be clicked through like a real multi-page site. */
.hidamari [data-nav-route].is-current { color: var(--accent); }
.hidamari [data-nav-route].is-current::after { width: 100%; }
.hidamari .page-hero {
    background-color: var(--bg-soft);
    background-image:
      linear-gradient(180deg, var(--bg-soft), var(--bg) 85%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M0 17 17 0 34 17 17 34Z' fill='none' stroke='%232E86C1' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100% 100%, 34px 34px;
    padding: 56px 0 64px;
  }
/* ヒーローに写真があるページ（こだわり・採用情報）は、下端の写真が
     ファーストビューを埋めてくれる。一方で写真の無いページ（会社概要・修理事例など）は
     見出しの下に 64px(ヒーロー下) + 96px(次セクション上) = 160px の空白だけが続き、
     スクロールしても何も出てこないように見える。写真が無いときだけ詰める。
     :has() を使うことで、マークアップにモディファイアを足さずに判定できる。 */
.hidamari .page-hero:not(:has(.page-hero-photo)) {
    padding-bottom: 40px;
  }
.hidamari .page-hero:not(:has(.page-hero-photo)) + .block {
    padding-top: 56px;
  }
.hidamari .page-hero .frame-double-inner {
    padding: 40px 44px;
  }
.hidamari .page-hero h1 {
    font-size: clamp(30px, 4.2vw, 44px);
    margin-top: 14px;
  }
.hidamari .page-hero .lede {
    margin-top: 16px;
    color: var(--subtext);
    font-size: 16px;
    max-width: 58ch;
  }
.hidamari .page-hero-photo {
    margin-top: 32px;
  }
.hidamari .page-hero-photo .photo-frame { aspect-ratio: 16 / 6.5; }
@media (max-width: 700px) {
  .hidamari .page-hero-photo .photo-frame { aspect-ratio: 4 / 3; }
  .hidamari .page-hero .frame-double-inner { padding: 26px 22px; }
}
.hidamari .crumb {
    font-family: var(--font-sans-jp);
    font-size: 12.5px;
    color: var(--subtext);
    margin-bottom: 18px;
  }
.hidamari .crumb a:hover { color: var(--accent); }
.hidamari .crumb .sep { margin: 0 8px; color: var(--border); }
/* ---------- Commitment (こだわり) rows ---------- */
.hidamari .commitment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0;
  }
.hidamari .commitment-row:last-child { padding-bottom: 0; }
.hidamari .commitment-row:first-child { padding-top: 0; }
.hidamari .commitment-row.reverse .commitment-media { order: 2; }
.hidamari .commitment-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
  }
.hidamari .commitment-tag .badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-blueprint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
.hidamari .commitment-tag .badge .icon { width: 22px; height: 22px; }
.hidamari .commitment-tag .eyebrow { margin: 0; }
.hidamari .commitment-row h2 { font-size: 26px; margin-top: 16px; }
.hidamari .commitment-row p { margin-top: 16px; color: var(--subtext); font-size: 15.5px; }
.hidamari .commitment-media .photo-frame { aspect-ratio: 4 / 3; }
@media (max-width: 780px) {
  .hidamari .commitment-row, .hidamari .commitment-row.reverse { grid-template-columns: 1fr; }
  .hidamari .commitment-row.reverse .commitment-media { order: -1; }
}
/* ---------- Contact form ---------- */
.hidamari .form-grid {
    display: grid;
    gap: 24px;
    max-width: 640px;
  }
.hidamari .form-field { display: flex; flex-direction: column; gap: 8px; }
.hidamari .form-field label {
    font-family: var(--font-sans-jp);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
  }
.hidamari .form-field .req {
    font-family: var(--font-sans-jp);
    color: var(--accent);
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
  }
.hidamari .form-field .opt {
    font-family: var(--font-sans-jp);
    color: var(--subtext);
    margin-left: 4px;
    font-size: 11px;
    font-weight: 400;
  }
.hidamari .form-field input, .hidamari .form-field textarea {
    font-family: var(--font-jp);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    width: 100%;
  }
.hidamari .form-field input:focus, .hidamari .form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
  }
.hidamari .form-field textarea { min-height: 140px; resize: vertical; }
/* 応募書式（履歴書・職務経歴書）のダウンロード。
     ファイル添付欄の直下に置き、「入力欄ではなく案内」だと分かるよう
     ソフト背景＋アクセントブルーの左ボーダーで囲う。 */
.hidamari .form-docs {
    margin-top: 4px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-family: var(--font-sans-jp);
  }
.hidamari .form-docs__head {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
  }
.hidamari .form-docs__lead {
    font-size: 12px;
    color: var(--subtext);
    margin: 4px 0 0;
    line-height: 1.7;
  }
.hidamari .form-docs__list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }
.hidamari .form-docs__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 13px;
  }
.hidamari .form-doc__name {
    min-width: 6.5em;
    font-weight: 700;
    color: var(--text);
  }
.hidamari .form-doc__links { display: inline-flex; align-items: baseline; gap: 8px; }
.hidamari .form-doc__links a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
.hidamari .form-doc__links a:hover { color: var(--accent-ink); }
.hidamari .form-doc__sep { color: var(--border); }
.hidamari .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-sans-jp);
    font-size: 13.5px;
    color: var(--subtext);
  }
.hidamari .form-checkbox a { color: var(--accent); text-decoration: underline; }
.hidamari .form-checkbox input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    flex-shrink: 0;
  }
.hidamari .form-actions { margin-top: 4px; }
.hidamari .form-success {
    display: none;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
  }
.hidamari .form-success.is-visible { display: block; }
.hidamari .form-success .icon { width: 32px; height: 32px; color: var(--accent); }
.hidamari .form-success h3 { margin-top: 14px; font-size: 19px; }
.hidamari .form-success p { margin-top: 10px; color: var(--subtext); font-size: 14.5px; }
.hidamari .form-note {
    font-family: var(--font-sans-jp);
    font-size: 12px;
    color: var(--subtext);
    margin-top: 16px;
  }
.hidamari .contact-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
  }
.hidamari .contact-aside {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 28px;
  }
.hidamari .contact-aside h3 {
    font-size: 15.5px;
    font-family: var(--font-sans-jp);
  }
.hidamari .contact-aside .icon-link {
    display: flex;
    margin-top: 12px;
    border-color: var(--border);
  }
.hidamari .contact-aside .tel-number {
    display: block;
    font-size: 21px;
    color: var(--primary);
    margin-top: 6px;
  }
.hidamari .contact-aside .tel-hours {
    font-family: var(--font-sans-jp);
    font-size: 12.5px;
    color: var(--subtext);
    margin-top: 4px;
  }
@media (max-width: 860px) {
  .hidamari .contact-grid { grid-template-columns: 1fr; }
}
/* ---------- Company (会社概要) access ---------- */
/* Googleマップ埋め込み。iframe は幅・高さを持つので、外枠側で比率を決めて
     絶対配置で敷き詰める（写真フレームと同じ角丸・罫線で揃える）。 */
.hidamari .map-embed {
    position: relative;
    aspect-ratio: 16 / 7;
    background: var(--bg-blueprint);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
  }
.hidamari .map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
.hidamari .access-address {
    text-align: center;
    margin-top: 18px;
    color: var(--subtext);
    font-family: var(--font-sans-jp);
    font-size: 14px;
  }
.hidamari .access-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }
@media (max-width: 700px) {
  .hidamari .map-embed { aspect-ratio: 4 / 3; }
}
/* ---------- Privacy policy ---------- */
.hidamari .policy-list {
    counter-reset: policy;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 32px;
  }
.hidamari .policy-list li { counter-increment: policy; }
.hidamari .policy-list h3 {
    font-size: 17px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
.hidamari .policy-list h3::before {
    content: "第" counter(policy) "条";
    font-family: var(--font-sans-jp);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 8px;
    flex-shrink: 0;
  }
.hidamari .policy-list p { margin-top: 10px; color: var(--subtext); font-size: 14.5px; }
/* ---------- Recruit (採用情報) ---------- */
/* 特色カード。1枚あたり本文が2〜3行あるので、4列だと1列が狭く読みづらい。
     2列にして文字を大きく取り、読ませる方を優先する。
     ※WordPress側はカードを2枚ずつの行に分けて出力するため、
       ここが4列のままだと各行が左半分に寄ってしまう（実際に発生した）。 */
.hidamari .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
@media (max-width: 720px) {
  .hidamari .features-grid { grid-template-columns: 1fr; }
}
/* 特色カード（.reason-card に重ねて使う）。
     ※このRecruitブロックは .reason-card / .spec-strip の定義より前に書かれているため、
       同じ詳細度だと後勝ちで打ち消される。クラスを2つ重ねて詳細度を上げてある。
     左上に通し番号を置き、仕様書のような佇まいにする（design.md の等幅数字ルール）。 */
.hidamari .reason-card.feature-card {
    position: relative;
    padding: 34px 30px 32px;
  }
.hidamari .feature-card__num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
  }
/* 番号の右に伸びる細い罫線。カード内の視線の起点をつくる */
.hidamari .feature-card__num::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 1px;
    margin-left: 10px;
    background: var(--border);
  }
.hidamari .reason-card.feature-card h3 {
    margin-top: 14px;
    font-size: 19px;
    line-height: 1.55;
  }
.hidamari .reason-card.feature-card p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--subtext);
  }
/* リード文はページ冒頭の導入なので、中央に置いて左右のバランスを取る */
.hidamari .recruit-lede {
    font-size: 16.5px;
    color: var(--text);
    line-height: 1.95;
    max-width: 64ch;
    margin-inline: auto;
    text-align: center;
  }
@media (max-width: 640px) {
  .hidamari .recruit-lede { font-size: 15.5px; text-align: left; }
}
/* リード文・スペック帯と特色カードの間に見出しを挟むので、その上余白を取る */
.hidamari .features-head { margin-top: 72px; }
/* スペック帯は inline-flex で内容なりの幅になるため、そのままだと左端に貼り付く。
     採用ページでは中央に置いてリード文と軸を揃える。 */
.hidamari .spec-strip.spec-strip--center {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }
@media (max-width: 560px) {
  .hidamari .spec-strip.spec-strip--center { width: 100%; }
}
.hidamari .fact-table.recruit-table .fact-row { grid-template-columns: 148px 1fr; }
.hidamari .fact-table.recruit-table dd { line-height: 1.85; }
.hidamari .fact-table.recruit-table dd .sub {
    display: block;
    margin-top: 2px;
    font-family: var(--font-sans-jp);
    font-size: 12.5px;
    color: var(--subtext);
  }
@media (max-width: 560px) {
  .hidamari .fact-table.recruit-table .fact-row { grid-template-columns: 1fr; }
  .hidamari .fact-table.recruit-table dt { border-bottom: none; padding-bottom: 4px; }
}
/* 募集要項ページ「仕事の流れ」— 番号付きの短い手順。
     .policy-list は「第N条」表記なので使えないため専用に用意した。
     grid+gap ではなく段落マージンで間隔を取るのは、WordPress側で
     core/group が .wp-block-group__inner-container を挟むため。 */
.hidamari .job-steps {
    max-width: 720px;
    margin: 0 auto;
    counter-reset: jobstep;
  }
.hidamari .job-steps p {
    counter-increment: jobstep;
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 15px;
    line-height: 1.9;
  }
.hidamari .job-steps p + p { margin-top: 12px; }
.hidamari .job-steps p::before {
    content: counter(jobstep, decimal-leading-zero);
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent);
  }
/* 「※飛び込み営業はありません」のような補足 */
/* 「仕事の流れ」から先輩インタビューの1日の流れへ誘導する一文 */
.hidamari .job-ref-lead {
    margin-top: 36px;
    text-align: center;
    font-family: var(--font-sans-jp);
    font-size: 14px;
    color: var(--subtext);
  }
.hidamari .job-ref-lead + .wp-block-buttons { margin-top: 16px; }
.hidamari .job-note {
    max-width: 720px;
    margin: 28px auto 0;
    font-family: var(--font-sans-jp);
    font-size: 13px;
    color: var(--subtext);
    border-left: 2px solid var(--border);
    padding-left: 12px;
  }
/* 採用までの流れ（書類選考 → 面接 → 内定）を単独で見せるときの器。
     表の中で使う従来の .flow-steps は左寄せなので、こちらは中央に置く。 */
.hidamari .flow-steps-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }
.hidamari .flow-steps-wrap .flow-steps { margin-top: 0; gap: 14px; }
.hidamari .flow-steps-wrap .step { font-size: 15px; }
.hidamari .flow-steps-wrap .arrow { font-size: 17px; }
.hidamari .flow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
  }
.hidamari .flow-steps .step {
    font-family: var(--font-sans-jp);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-blueprint);
    border-radius: 8px;
    padding: 9px 16px;
  }
.hidamari .flow-steps .arrow { color: var(--accent); font-size: 15px; }
/* Interview blocks */
.hidamari .interview-block {
    padding: 64px 0 75px;
  }
.hidamari .interview-block:last-child { padding-bottom: 0; }
.hidamari .interview-head {
    display: flex;
    align-items: center;
    gap: 20px;
  }
.hidamari .avatar-mono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
  }
.hidamari .interview-head h2 {
    font-size: 24px;
    line-height: 1.55;
  }
.hidamari .interview-meta {
    margin-top: 6px;
    font-family: var(--font-sans-jp);
    font-size: 13px;
    color: var(--subtext);
  }
.hidamari .interview-body {
    margin-top: 40px;
    display: grid;
    gap: 32px;
    max-width: 74ch;
  }
.hidamari .interview-body h3 {
    font-size: 16.5px;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
  }
.hidamari .interview-body p {
    margin-top: 10px;
    color: var(--subtext);
    font-size: 15px;
  }
/* 先輩インタビューの本文（写真と交互に並ぶ段）と、写真なしの締めセクション。
     もとは h3 / p / ラッパー div にインライン指定で書かれていたため、
     WordPressのブロックには何も引き継がれず、区切り線も余白も落ちていた。
     ※ .commitment-row p より後ろに置くこと（同じ詳細度なので後勝ちで上書きする）。 */
.hidamari .interview-text h3, .hidamari .interview-closing h3 {
    font-size: 19px;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
  }
.hidamari .interview-text p, .hidamari .interview-closing p {
    margin-top: 14px;
    color: var(--subtext);
    font-size: 15px;
    line-height: 1.9;
  }
/* 締めは写真が無く1カラムなので、上に余白を取って本文と分ける。
     ⚠️ border-top は付けないこと。直前の .commitment-row の下端に
     デザイン上の「配管ジョイント」罫線（background-image）が入っており、
     単純な1px罫線を足すと線が二重に見える。 */
.hidamari .interview-closing {
    max-width: 74ch;
    margin-top: 56px;
  }
/* Timeline (1日の流れ) — 実際の時系列なので、2列グリッドではなく
     1本の軸に沿わせる。左に時刻、右にカード、軸上の節点で順序を示す。
     以前は gap:1px + 灰色背景でヘアライン区切りを作っていたが、
     行ごとに分かれると隙間が灰色の帯として出てしまうため、軸方式に変更した。 */
.hidamari .timeline-section { background: var(--bg-soft); padding: var(--section-pad) 0; }
.hidamari .timeline-flow {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
  }
/* 縦の軸。上から下へ薄くなるグラデーションで「1日が進む」感じを出す */
.hidamari .timeline-flow::before {
    content: "";
    position: absolute;
    left: 91px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(46, 134, 193, 0.22));
  }
.hidamari .timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 32px;
    padding-bottom: 18px;
  }
.hidamari .timeline-step:last-child { padding-bottom: 0; }
.hidamari .timeline-time {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: var(--primary);
    text-align: right;
    padding-top: 15px;
  }
/* 軸上の節点。配管の継手を思わせる二重丸（design.md の区切り線モチーフ） */
.hidamari .timeline-time::after {
    content: "";
    position: absolute;
    left: 85px;
    top: 19px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px var(--bg-soft);
  }
.hidamari .timeline-desc {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 14px 20px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text);
  }
@media (max-width: 640px) {
  .hidamari .timeline-flow { max-width: none; margin-top: 32px; }
  .hidamari .timeline-flow::before { left: 7px; }
  .hidamari .timeline-step {
      grid-template-columns: 1fr;
      padding-left: 32px;
      padding-bottom: 16px;
    }
  .hidamari .timeline-time {
      text-align: left;
      padding-top: 0;
      margin-bottom: 8px;
      font-size: 15px;
    }
  .hidamari .timeline-time::after { left: 0; top: 3px; }
}
/* Interview hero — full-bleed photo with a diagonal gradient panel,
     matching the client's live recruit pages (nanbu.net). */
.hidamari .interview-hero {
    position: relative;
    aspect-ratio: 1400 / 680;
    overflow: hidden;
    background: var(--bg-blueprint);
  }
.hidamari .interview-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hidamari .interview-hero__watermark {
    position: absolute;
    right: 4%;
    bottom: 24%;
    font-family: var(--font-sans-jp);
    font-weight: 700;
    font-size: clamp(28px, 7vw, 64px);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    pointer-events: none;
  }
.hidamari .interview-hero__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 18%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(120deg, rgba(11, 58, 91, 0.82), rgba(46, 134, 193, 0.94));
    color: #fff;
    padding: 30px 5% 30px 12%;
  }
.hidamari .interview-hero__panel h1 {
    color: #fff;
    font-size: clamp(17px, 2.4vw, 24px);
    line-height: 1.6;
  }
.hidamari .interview-hero__panel .interview-meta {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.85);
  }
@media (max-width: 780px) {
  .hidamari .interview-hero { aspect-ratio: 3 / 4; }
  .hidamari .interview-hero__panel { left: 0; clip-path: none; background: linear-gradient(180deg, transparent, rgba(11,58,91,0.92) 40%); padding: 40px 20px 24px; }
  .hidamari .interview-hero__watermark { display: none; }
}
/* File upload field */
.hidamari .file-field {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
.hidamari .file-field input[type="file"] { display: none; }
.hidamari .file-field .file-btn {
    font-family: var(--font-sans-jp);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
  }
.hidamari .file-field .file-btn:hover { border-color: var(--accent); background: var(--bg-blueprint); }
.hidamari .file-field .file-name {
    font-family: var(--font-sans-jp);
    font-size: 13px;
    color: var(--subtext);
  }
/* Recruit hub: nav cards linking to the 4 split-out pages */
.hidamari .recruit-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
.hidamari .recruit-nav-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 32px 28px;
    text-decoration: none;
  }
.hidamari .recruit-nav-card__num {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.05em;
  }
.hidamari .recruit-nav-card h3 { font-size: 18px; margin-top: 14px; }
/* カード全体をクリックできるようにする。
     タイトルのリンクを ::after でカード一杯に広げる「stretched link」の手法。
     リンクのテキスト（＝ページ名）がそのまま読み上げ名になるので、
     カードを <a> で包むより素直で、標準ブロックのままでも実現できる。
     ※ .recruit-nav-card は position:relative を既に持っている。 */
.hidamari .recruit-nav-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }
/* クリックできることが分かるように、カーソルと色で示す */
.hidamari .recruit-nav-card { cursor: pointer; }
.hidamari .recruit-nav-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 220ms ease;
  }
.hidamari .recruit-nav-card:hover h3 a, .hidamari .recruit-nav-card:focus-within h3 a { color: var(--accent); }
/* キーボード操作時に、カード全体が選択されていることを示す */
.hidamari .recruit-nav-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
.hidamari .recruit-nav-card h3 a:focus { outline: none; }
.hidamari .recruit-nav-card p { margin-top: 10px; color: var(--subtext); font-size: 14.5px; }
@media (max-width: 700px) {
  .hidamari .recruit-nav-grid { grid-template-columns: 1fr; }
}
/* Sub-navigation shown at the top of each of the 4 split recruit pages */
.hidamari .recruit-subnav {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
.hidamari .recruit-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans-jp);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    transition: border-color 150ms ease, color 150ms ease;
  }
.hidamari .recruit-subnav a:hover { border-color: var(--accent); color: var(--accent); }
.hidamari .recruit-subnav a.is-current { border-color: var(--accent); color: var(--accent); background: var(--bg-blueprint); }
.hidamari .recruit-subnav .num { font-family: var(--font-mono); color: var(--accent); }
/* ---------- Header dropdown (採用情報) ---------- */
.hidamari .nav-item {
    position: relative;
    /* extend the hoverable hit-area down to bridge the gap to the
       dropdown, without affecting layout (negative margin cancels it) */
    padding-bottom: 16px;
    margin-bottom: -16px;
  }
.hidamari .nav-item > a::after { content: "▾"; font-size: 9px; margin-left: 5px; opacity: 0.6; }
.hidamari .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 16px;
    transform: translateX(-50%) translateY(-6px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    z-index: 60;
  }
.hidamari .nav-item:hover .nav-dropdown, .hidamari .nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
.hidamari .nav-dropdown a {
    display: block;
    font-family: var(--font-sans-jp);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
  }
.hidamari .nav-dropdown a::after { content: none; }
.hidamari .nav-dropdown a:hover { background: var(--bg-soft); color: var(--accent); }
/* Footer sub-links under 採用情報 */
.hidamari .footer-nav .sub-links { padding-left: 14px; display: grid; gap: 8px; margin-top: 8px; }
.hidamari .footer-nav .sub-links a { font-size: 12.5px; color: var(--subtext); }
.hidamari .footer-nav .sub-links a:hover { color: var(--accent); }
/* Other support channels (TOTO's own departments) on the contact page */
.hidamari .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
.hidamari .contact-info-grid.contact-info-grid--single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
@media (max-width: 700px) {
  .hidamari .contact-info-grid { grid-template-columns: 1fr; }
}
.hidamari .info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 28px;
    text-align: center;
  }
.hidamari .info-card .info-dept {
    font-family: var(--font-sans-jp);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
  }
.hidamari .info-card h3 { font-size: 16px; margin-top: 10px; }
/* Unified blue label variant (no separate black h3 title) */
.hidamari .info-card .info-dept--wide {
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.6;
  }
/* 見出しの高さを 3.2em 分そろえて下揃えにする。
     2行の見出しと1行の見出しを横に並べたときに、その下の電話番号の高さを
     合わせるための指定（お電話欄の「TOTOメンテナンス（株）修理受付センター」↔
     「株式会社南部」）。
     ⚠️ 既定で付けないこと。揃える相手がいないカードに付けると、
     予約した高さがそのまま見出しの上の空白になる。必要な箇所にだけ付ける。 */
.hidamari .info-card .info-dept--align {
    min-height: 3.2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
.hidamari .info-card .info-tel {
    display: block;
    margin-top: 16px;
    font-size: 25px;
    font-weight: 700;
    color: var(--primary);
  }
.hidamari .info-card .info-tel .tag {
    font-family: var(--font-sans-jp);
    font-size: 11.5px;
    font-weight: 400;
    color: var(--subtext);
    margin-left: 8px;
  }
.hidamari .info-card .info-hours {
    margin-top: 10px;
    font-family: var(--font-sans-jp);
    font-size: 12.5px;
    color: var(--subtext);
    line-height: 1.7;
  }
.hidamari .info-card .info-hours strong {
    font-weight: 700;
    color: var(--primary);
    font-size: 13.5px;
  }
/* "ご依頼の前に" preparation checklist */
.hidamari .prep-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
  }
.hidamari .prep-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 14px 22px;
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
  }
.hidamari .prep-item .icon { color: var(--accent); width: 19px; height: 19px; flex-shrink: 0; }
.hidamari .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
  }
.hidamari .eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--accent);
    display: inline-block;
  }
/* Two-line eyebrow (hero): keep the dash beside the first line only,
     with the second line indented under the text rather than the
     dash — align-items:center would otherwise center the dash in the
     gap between both lines. */
.hidamari .eyebrow--stacked {
    align-items: flex-start;
    line-height: 1.7;
  }
.hidamari .eyebrow--stacked::before {
    margin-top: 8px;
  }
.hidamari .section-head {
    max-width: 640px;
    margin: 0 0 48px;
  }
.hidamari .section-head h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-top: 12px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
  }
.hidamari .section-head p {
    margin-top: 16px;
    color: var(--subtext);
  }
.hidamari .section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
.hidamari .section-head.center h2 {
    border-left: none;
    padding-left: 0;
  }
.hidamari .section-head.center .eyebrow { justify-content: center; width: 100%; }
/* ---------- Header ---------- */
.hidamari .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
.hidamari .header-utility {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
  }
.hidamari .header-utility-row {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
  }
.hidamari .util-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--subtext);
    border-radius: 6px;
    transition: color 150ms ease, background 150ms ease;
  }
.hidamari .util-link:hover { color: var(--accent); background: var(--bg); }
.hidamari .util-link .icon { width: 14px; height: 14px; color: var(--accent); }
.hidamari .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
  }
.hidamari .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--primary);
  }
.hidamari .brand-logo {
    display: block;
    height: 34px;
    width: auto;
  }
.hidamari .brand small {
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent);
  }
.hidamari .site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    justify-content: center;
  }
.hidamari .site-nav a {
    position: relative;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
    white-space: nowrap;
  }
.hidamari .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--accent);
    width: 0;
    transition: width 150ms ease;
  }
.hidamari .site-nav a:hover { color: var(--accent); }
.hidamari .site-nav a:hover::after { width: 100%; }
.hidamari .icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: var(--radius-btn);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    transition: background 150ms ease, border-color 150ms ease;
  }
.hidamari .icon-link:hover { background: var(--bg-soft); border-color: var(--accent); }
.hidamari .icon-link .icon { width: 16px; height: 16px; color: var(--accent); }
.hidamari .icon-link.text-hide-mobile span { display: inline; }
.hidamari .btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 15px;
    background: var(--accent);
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: color 280ms ease, border-color 280ms ease, transform 150ms ease;
    text-decoration: none;
  }
/* Slide-fill hover: a darker/filled panel wipes in from the left,
     rather than a flat color swap — the one bit of button "performance"
     on the page, kept quick and quiet everywhere else. */
.hidamari .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-ink);
    transform: translateX(-102%);
    transition: transform 320ms cubic-bezier(0.65, 0, 0.35, 1);
    z-index: -1;
  }
.hidamari .btn:hover::before { transform: translateX(0); }
.hidamari .btn:active { transform: translateY(1px); }
.hidamari .btn.btn-sm { padding: 10px 18px; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; }
.hidamari .btn.btn-outline-navy {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
  }
.hidamari .btn.btn-outline-navy::before { background: var(--primary); }
.hidamari .btn.btn-outline-navy:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hidamari .btn::before { transition: none; }
}
/* ---------- Hero ---------- */
.hidamari .hero {
    background-color: var(--bg-soft);
    background-image:
      linear-gradient(180deg, var(--bg-soft), var(--bg) 85%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M0 17 17 0 34 17 17 34Z' fill='none' stroke='%232E86C1' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100% 100%, 34px 34px;
    padding: 64px 0 var(--section-pad);
  }
.hidamari .hero h1 {
    font-size: clamp(34px, 5.6vw, 60px);
    letter-spacing: -0.02em;
    margin-top: 18px;
  }
.hidamari .hero .lede {
    margin-top: 22px;
    font-size: 16.5px;
    color: var(--subtext);
    max-width: 46ch;
  }
/* Full-bleed photo hero: the photo runs the full section width and
     the text sits directly on top of it (rather than in its own
     column) — a white wash fading out left-to-right keeps the text
     readable while still letting the photo show through on the right. */
.hidamari .hero--photo {
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
  }
.hidamari .hero--photo .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
.hidamari .hero--photo .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
.hidamari .hero--photo .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 30%,
      rgba(255, 255, 255, 0.64) 50%,
      rgba(255, 255, 255, 0.14) 68%,
      rgba(255, 255, 255, 0) 80%
    );
  }
.hidamari .hero--photo .wrap {
    position: relative;
    z-index: 2;
  }
.hidamari .hero--photo .hero__content {
    max-width: 560px;
    padding: 72px 0;
  }
@media (max-width: 860px) {
  .hidamari .hero--photo { min-height: 0; flex-direction: column; align-items: stretch; }
  .hidamari .hero--photo .hero__bg {
      position: relative;
      inset: auto;
      aspect-ratio: 16 / 9;
      min-height: 0;
    }
  .hidamari .hero--photo .hero__bg::after {
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.9) 78%,
        rgba(255, 255, 255, 0.98) 100%
      );
    }
  .hidamari .hero--photo .hero__content { max-width: none; padding: 4px 0 40px; }
}
.hidamari .hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
/* Spec strip: ticket-stub style facts row, mono numerals for a
     "engineer's spec sheet" feel that fits a TOTO maintenance contractor */
.hidamari .spec-strip {
    margin-top: 40px;
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    overflow: hidden;
  }
.hidamari .spec-strip .spec-item {
    padding: 12px 22px;
    border-right: 1px solid var(--border);
  }
.hidamari .spec-strip .spec-item:last-child { border-right: none; }
.hidamari .spec-strip .spec-label {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--subtext);
    text-transform: uppercase;
  }
.hidamari .spec-strip .spec-value {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
  }
.hidamari .spec-strip .spec-value .unit {
    font-family: var(--font-jp);
    font-weight: 400;
    font-size: 12px;
    color: var(--subtext);
    margin-left: 2px;
  }
.hidamari .photo-frame {
    position: relative;
    border-radius: var(--radius-card);
    background: var(--bg-blueprint);
    border: 1px solid var(--border);
    overflow: hidden;
  }
.hidamari .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
.hidamari .photo-frame--office { aspect-ratio: 16 / 10; }
/* Anniversary badge: "創業28年" as a stamped medallion sitting over
     the hero photo's bottom-right corner — a maker's-seal echo of the
     double-rule frame motif (concentric rings, not a solid fill) so it
     reads as an official mark rather than a sale-tag callout. */
.hidamari .anniversary-badge {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--primary);
    box-shadow: 0 12px 28px rgba(11, 58, 91, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }
.hidamari .anniversary-badge::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
  }
.hidamari .anniversary-badge__label {
    font-family: var(--font-sans-jp);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
  }
.hidamari .anniversary-badge__num {
    font-family: var(--font-mono);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    margin-top: 3px;
  }
.hidamari .anniversary-badge__unit {
    font-family: var(--font-sans-jp);
    font-size: 11px;
    color: var(--subtext);
    margin-top: 3px;
  }
@media (max-width: 480px) {
  .hidamari .anniversary-badge {
      width: 84px;
      height: 84px;
      right: 10px;
      bottom: 10px;
    }
  .hidamari .anniversary-badge__num { font-size: 27px; }
  .hidamari .anniversary-badge__label, .hidamari .anniversary-badge__unit { font-size: 9px; }
}
.hidamari .photo-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(8, 32, 50, 0.72);
    color: #fff;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    padding: 6px 11px;
    border-radius: 6px;
  }
/* Wide format for the CEO's own photo (代表挨拶) — a landscape shot
     used as a full-width band above the heading, rather than the
     small portrait thumbnail used elsewhere on the site. */
.hidamari .photo-frame--ceo-wide { aspect-ratio: 1000 / 462; }
/* Mat divider: a quilted diamond-stitch band, lifted from the protective
     floor mat technicians actually lay down on a job — one of the site's
     two material signatures (see also .pipe-rule-band below), used
     sparingly between sections. */
.hidamari .mat-divider {
    height: 30px;
    background-color: var(--bg-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M0 13 13 0 26 13 13 26Z' fill='none' stroke='%232E86C1' stroke-opacity='0.28' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 26px 26px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
/* Pipe-rule: the site's second material signature, for the plainer
     hairlines that separate content blocks (こだわり rows, interview
     blocks, the repeating CTA band). Reads as a schematic pipe run —
     a thin line broken by a coupling joint at intervals — rather than
     a generic 1px divider, and ties the "水回り" trade into the page's
     structure instead of its color. Kept thin and low-opacity so it
     stays a hairline, not a graphic. */
.hidamari .commitment-row:not(:last-child), .hidamari .interview-block:not(:last-child) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='11'%3E%3Cline x1='0' y1='5.5' x2='64' y2='5.5' stroke='%232E86C1' stroke-opacity='0.4' stroke-width='1'/%3E%3Ccircle cx='32' cy='5.5' r='3' fill='none' stroke='%230B3A5B' stroke-opacity='0.55' stroke-width='1.2'/%3E%3Cline x1='26' y1='1.5' x2='26' y2='9.5' stroke='%230B3A5B' stroke-opacity='0.32' stroke-width='1'/%3E%3Cline x1='38' y1='1.5' x2='38' y2='9.5' stroke='%230B3A5B' stroke-opacity='0.32' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 64px 11px;
  }
.hidamari .pipe-rule-band {
    position: relative;
  }
.hidamari .pipe-rule-band::before, .hidamari .pipe-rule-band::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='11'%3E%3Cline x1='0' y1='5.5' x2='64' y2='5.5' stroke='%232E86C1' stroke-opacity='0.4' stroke-width='1'/%3E%3Ccircle cx='32' cy='5.5' r='3' fill='none' stroke='%230B3A5B' stroke-opacity='0.55' stroke-width='1.2'/%3E%3Cline x1='26' y1='1.5' x2='26' y2='9.5' stroke='%230B3A5B' stroke-opacity='0.32' stroke-width='1'/%3E%3Cline x1='38' y1='1.5' x2='38' y2='9.5' stroke='%230B3A5B' stroke-opacity='0.32' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
  }
.hidamari .pipe-rule-band::before { top: 0; background-position: top; }
.hidamari .pipe-rule-band::after { bottom: 0; background-position: bottom; }
/* ---------- Keyword ticker ---------- */
/* A slow, continuous strip of the phrases someone searching for a
     Yokohama TOTO repair contractor would want to see confirmed —
     sits right under the hero as a second, quieter line of proof. */
.hidamari .keyword-ticker {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 15px 0;
  }
.hidamari .keyword-ticker__track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: ticker-scroll 38s linear infinite;
  }
.hidamari .keyword-ticker:hover .keyword-ticker__track { animation-play-state: paused; }
.hidamari .keyword-ticker__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    font-family: var(--font-sans-jp);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--primary);
    white-space: nowrap;
  }
.hidamari .keyword-ticker__item::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
@media (prefers-reduced-motion: reduce) {
  .hidamari .keyword-ticker__track { animation: none; flex-wrap: wrap; }
}
/* Case-study ticker: TOPページの修理事例, all 6 cases auto-scrolling
     horizontally — same duplicated-track technique as the keyword
     ticker above, sized for full case cards instead of text pills.
     Pauses on hover/focus so a visitor can actually read one. */
.hidamari .case-ticker { overflow: hidden; }
.hidamari .case-ticker__track {
    display: flex;
    width: max-content;
    gap: 24px;
    animation: case-ticker-scroll 48s linear infinite;
  }
.hidamari .case-ticker:hover .case-ticker__track, .hidamari .case-ticker:focus-within .case-ticker__track { animation-play-state: paused; }
.hidamari .case-ticker-card {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    overflow: hidden;
  }
.hidamari .case-ticker-photo {
    aspect-ratio: 16 / 11;
    background-color: var(--bg-blueprint);
    background-size: cover;
    background-position: center;
  }
.hidamari .case-ticker-body { padding: 20px 22px 24px; }
.hidamari .case-ticker-body h3 { font-size: 16px; margin-top: 8px; }
.hidamari .case-ticker-body p { margin-top: 8px; color: var(--subtext); font-size: 13.5px; line-height: 1.7; }
@keyframes case-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
@media (prefers-reduced-motion: reduce) {
  .hidamari .case-ticker { overflow-x: auto; }
  .hidamari .case-ticker__track { animation: none; }
  .hidamari .case-ticker-card[aria-hidden="true"] { display: none; }
}
/* ---------- Sections ---------- */
.hidamari .block { padding: var(--section-pad) 0; }
.hidamari .block.soft { background: var(--bg-soft); }
/* Reasons */
.hidamari .reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
/* Spec-plate card system: a shared identity for every card on the
     site (reasons, info, recruit nav, testimonials) — a short accent
     tab top-left, like the index tab on a parts/spec binder, plus a
     quiet lift on hover. Case-study cards are exempt: their photo +
     CASE tag already carry that identity. */
.hidamari .reason-card, .hidamari .info-card, .hidamari .recruit-nav-card, .hidamari .voice-card {
    position: relative;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }
.hidamari .reason-card::before, .hidamari .info-card::before, .hidamari .recruit-nav-card::before, .hidamari .voice-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 28px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
    z-index: 3;
  }
.hidamari .reason-card:hover, .hidamari .info-card:hover, .hidamari .recruit-nav-card:hover, .hidamari .voice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(11, 58, 91, 0.12);
    border-color: var(--accent);
  }
.hidamari .case-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
.hidamari .case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(11, 58, 91, 0.12);
  }
@media (prefers-reduced-motion: reduce) {
  .hidamari .reason-card, .hidamari .info-card, .hidamari .recruit-nav-card, .hidamari .voice-card, .hidamari .case-card { transition: none; }
}
.hidamari .reason-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 32px 28px;
  }
.hidamari .reason-card .badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-blueprint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }
.hidamari .reason-card .badge .icon { width: 24px; height: 24px; }
.hidamari .reason-card h3 { font-size: 18px; margin-top: 20px; }
.hidamari .reason-card p { margin-top: 10px; color: var(--subtext); font-size: 14.5px; }
/* Photo card: the home page's 3 差別化 reasons carry proof photos
     (the license plate, a technician at work, the office) as a
     full-bleed background rather than a small icon or medallion. The
     photo sits at ~50% opacity over the card's white base — real
     photography as the card's texture, not just a decoration — with
     the heading/body set in solid navy plus a soft white text-shadow
     so legibility never depends on what the photo happens to show
     behind it. */
.hidamari .reason-card--photo {
    padding: 0;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
  }
.hidamari .reason-card--photo .reason-card__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
  }
.hidamari .reason-card--photo .reason-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
  }
/* Scrim: a soft white wash rising from the bottom of the card, behind
     the text block only — belt-and-braces legibility on top of the
     opacity drop, since a photo's own contrast varies panel to panel. */
.hidamari .reason-card--photo .reason-card__body::before {
    content: "";
    position: absolute;
    inset: -20px -28px -28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.94) 100%);
    z-index: -1;
  }
.hidamari .reason-card--photo .reason-card__body {
    position: relative;
    z-index: 2;
    padding: 24px 28px 28px;
  }
.hidamari .reason-card--photo h3, .hidamari .reason-card--photo p {
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.85);
  }
.hidamari .reason-card--photo p { color: var(--primary-ink); font-weight: 600; }
/* Case studies */
.hidamari .case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
.hidamari .case-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    overflow: hidden;
  }
.hidamari .case-diagram {
    aspect-ratio: 16 / 11;
    position: relative;
    background: var(--bg-blueprint);
  }
.hidamari .case-diagram img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hidamari .case-body { padding: 22px 24px 26px; }
.hidamari .case-area {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
  }
.hidamari .case-body h3 { font-size: 17px; margin-top: 8px; }
.hidamari .case-body p { margin-top: 8px; color: var(--subtext); font-size: 14px; }
.hidamari .case-note {
    margin-top: 32px;
    font-size: 12.5px;
    color: var(--subtext);
    border-left: 2px solid var(--border);
    padding-left: 12px;
  }
/* Process */
/* ご依頼の流れ — 縦のタイムライン。
     左ブロック(.process-side)に「STEP番号 → イラスト」、
     右ブロック(.process-body)に「見出し → 本文」を入れた2カラム。
     グリッドの明示配置（grid-row/grid-column）は行の高さ計算が絡んで壊れやすいので、
     左右それぞれを1つの箱にまとめて素直な2カラムにしている。 */
.hidamari .process-list {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 40px;
    max-width: 860px;
    margin: 0 auto;
  }
.hidamari .process-item {
    position: relative;
    padding: 0;
    display: grid;
    grid-template-columns: 116px 1fr;
    column-gap: 32px;
    align-items: start;
  }
/* ステップをつなぐ縦線。左列の中心を上から下まで引いておき、
     不透明な .process-side が上半分を隠すことで「アイコンの下から線が出る」ように見せる。
     （高さを計算で決めなくて済むので、文章量が変わっても崩れない） */
.hidamari .process-item::after {
    content: "";
    position: absolute;
    left: 57px;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: var(--border);
    z-index: 0;
  }
.hidamari .process-item:last-child::after { display: none; }
.hidamari .process-side {
    position: relative;
    z-index: 1;
    background: var(--bg);
    text-align: center;
  }
.hidamari .process-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--accent);
  }
/* 横並びだった頃の区切り罫線。縦タイムラインでは使わない */
.hidamari .process-num .rule { display: none; }
.hidamari .process-icon {
    width: 116px;
    margin: 10px 0 0;
  }
.hidamari .process-icon img {
    width: 100%;
    height: auto;
    display: block;
  }
.hidamari .process-body h3 {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.4;
  }
/* ⚠️ .process-item p と書かないこと。
     STEP番号(.process-num)も <p> なので、詳細度(0,2,1)で .process-num(0,2,0) に勝ってしまい、
     番号が本文用の位置・色・サイズになる（実際にレイアウトが崩れた）。 */
.hidamari .process-body p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--subtext);
  }
/* スマホは1列に積む（STEP番号 → イラスト → 見出し → 本文）。
     幅が狭く縦線を引くと窮屈なので線は消し、左揃えにする。 */
@media (max-width: 640px) {
  .hidamari .process-list { row-gap: 36px; }
  .hidamari .process-item {
      grid-template-columns: 1fr;
      column-gap: 0;
      row-gap: 14px;
    }
  .hidamari .process-item::after { display: none; }
  .hidamari .process-side { text-align: left; background: none; }
  .hidamari .process-icon { width: 84px; }
  .hidamari .process-body h3 { font-size: 18px; }
}
/* Sequential reveal: each step lifts in after the previous one, so
     the eye tracks 01→02→03→04 in order rather than all four
     appearing at once. */
.hidamari .process-list .reveal:nth-child(1) { transition-delay: 0ms; }
.hidamari .process-list .reveal:nth-child(2) { transition-delay: 140ms; }
.hidamari .process-list .reveal:nth-child(3) { transition-delay: 280ms; }
.hidamari .process-list .reveal:nth-child(4) { transition-delay: 420ms; }
/* Voice */
.hidamari .voice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
.hidamari .voice-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 32px;
  }
.hidamari .voice-card .icon { width: 26px; height: 26px; color: var(--border); }
.hidamari .voice-card blockquote {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.9;
  }
.hidamari .voice-meta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--subtext);
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
/* Company */
/* 会社概要「事業の特色」— 本文だけのリード段落。
     元資料では黄色い蛍光ペンで強調されていたが、design.md が
     「黄色蛍光ペンのようなカジュアルな印象は避ける」「マーカーは差別化リストの
     3見出しに限定」としているため、要点は <strong>（ネイビー太字）で示す。 */
.hidamari .business-lede {
    max-width: 720px;
    margin: 0 auto;
  }
/* grid + gap にしないのは、WordPress側で core/group が
     .wp-block-group__inner-container を挟み、グリッドの子が1個になってしまうため。
     段落マージンなら構造が変わっても同じ間隔になる。 */
.hidamari .business-lede p {
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--text);
  }
.hidamari .business-lede p + p { margin-top: 26px; }
/* 「事業の特色」と代表挨拶は同じセクション内に置いているので、
     間隔はここで取る（別セクションにすると白背景どうしが192px空いてしまう） */
.hidamari .business-lede + .company-grid { margin-top: 72px; }
.hidamari .business-lede strong {
    font-weight: 700;
    color: var(--primary);
  }
@media (max-width: 640px) {
  .hidamari .business-lede p { font-size: 15.5px; }
  .hidamari .business-lede p + p { margin-top: 22px; }
}
.hidamari .company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
/* Used only on the home page's 会社紹介 block, so the photo lands on
     the opposite side from the hero image above it — the page reads
     left/right/left/right on the way down instead of pinning every
     photo to the right rail. The dedicated /company page uses the
     stacked variant below instead. */
.hidamari .company-grid--flip > .reveal:first-child { order: 2; }
.hidamari .company-grid--flip > .reveal:last-child { order: 1; }
@media (max-width: 780px) {
  .hidamari .company-grid--flip > .reveal:first-child, .hidamari .company-grid--flip > .reveal:last-child { order: initial; }
}
/* The /company page reads top-to-bottom on desktop too — 代表挨拶
     first, then the fact table — rather than the side-by-side layout
     used for the shorter home page teaser. */
.hidamari .company-grid--stacked {
    grid-template-columns: 1fr;
    gap: 48px;
  }
/* Home page's 会社紹介 block once the 代表挨拶 column is gone — just
     the office photo + fact table, kept to a readable column width
     instead of stretching the full 1120px content width. */
.hidamari .company-solo {
    max-width: 640px;
    margin: 0 auto;
  }
.hidamari .company-quote {
    font-size: 15.5px;
    color: var(--text);
    line-height: 1.95;
  }
/* .hidamari p { margin: 0 } が効いているため、余白は各所で明示する必要がある。
     ・写真 → 本文    : 写真の直後に本文が始まると窮屈なので32px
     ・本文 → 本文    : WordPress側は段落が3ブロックに分かれているので24px
     もとは <p style="margin-top:20px"> のインライン指定だったが、
     ブロックには引き継がれず余白が消えていた（会社情報表と同じ経緯）。 */
.hidamari .photo-frame--ceo-wide + .company-quote { margin-top: 32px; }
.hidamari .company-quote + .company-quote { margin-top: 24px; }
.hidamari .company-quote .signoff {
    display: block;
    margin-top: 20px;
    font-weight: 700;
    color: var(--subtext);
    font-size: 13.5px;
  }
/* CEO signature graphic — sits to the right, under the message, like a
     real letter's signature block. WordPress側は core/image（<img>）で同じ
     sign.svg を出すため、svg / img の両方に高さを指定する。 */
.hidamari .ceo-signature {
    display: flex;
    justify-content: flex-end;
    /* 本文の最終段落から署名までは、他のブロック間（24px）より広めに取る。
       手紙の署名らしく「間」を置くため。 */
    margin-top: 40px;
  }
.hidamari .ceo-signature svg, .hidamari .ceo-signature img { height: 30px; width: auto; }
/* 会社概要: 写真の直後に来る会社情報表には余白を入れる。
     もとは <dl style="margin-top:20px"> のインライン指定だったが、
     WordPressのブロックには引き継がれず余白が消えていた。
     隣接セレクタなので、写真の無い採用ページの表には影響しない。 */
.hidamari .photo-frame--office + .fact-table { margin-top: 24px; }
.hidamari .fact-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg);
  }
.hidamari .fact-row {
    display: grid;
    grid-template-columns: 108px 1fr;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
  }
.hidamari .fact-row:last-child { border-bottom: none; }
.hidamari .fact-row dt {
    padding: 13px 16px;
    background: var(--bg-soft);
    color: var(--subtext);
    font-weight: 700;
  }
.hidamari .fact-row dd { margin: 0; padding: 13px 16px; }
/* CTA band */
.hidamari .cta-band {
    background: var(--bg-soft);
    color: var(--text);
    /* 他のセクション（.block）と同じ余白に揃える。
       以前は72pxで、前後のセクションより詰まって見えていた。 */
    padding: var(--section-pad) 0;
    text-align: center;
  }
.hidamari .cta-band h2 {
    font-size: clamp(24px, 3.4vw, 32px);
    margin-top: 14px;
    color: var(--primary);
  }
.hidamari .cta-band p { margin-top: 12px; color: var(--subtext); }
.hidamari .cta-band .hero-actions { justify-content: center; margin-top: 32px; }
.hidamari .cta-band .tel-line {
    margin-top: 20px;
    font-size: 13px;
    color: var(--subtext);
  }
/* Footer */
.hidamari .site-footer {
    background: var(--bg);
    color: var(--subtext);
    padding: 56px 0 28px;
    font-size: 13.5px;
    border-top: 1px solid var(--border);
  }
.hidamari .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
  }
.hidamari .footer-brand { font-weight: 700; font-size: 16px; color: var(--primary); }
.hidamari .footer-brand + p { margin-top: 12px; line-height: 1.9; }
.hidamari .footer-nav h4, .hidamari .footer-social h4 {
    color: var(--primary);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 14px;
  }
.hidamari .footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hidamari .footer-nav a:hover { color: var(--accent); }
.hidamari .footer-social .icon-link { margin-bottom: 10px; }
.hidamari .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtext);
    font-size: 12px;
  }
/* Reveal animation */
.hidamari .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
.hidamari .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hidamari .reveal { opacity: 1; transform: none; transition: none; }
}
/* 選ばれる3つの理由: a more pronounced lift than the site's usual
     quiet reveal, plus a slight per-card stagger so the three cards
     visibly rise in left-to-right sequence rather than all at once. */
.hidamari .reasons-grid .reveal {
    transform: translateY(40px);
    transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  }
.hidamari .reasons-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.hidamari .reasons-grid .reveal:nth-child(3) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .hidamari .reasons-grid .reveal { transform: none; transition: none; }
}
/* Hero load-in: a single staggered sequence for the page's thesis
     moment, rather than waiting on scroll like the rest of the page.
     Order: photo floats up first (d0), then the h1 floats up slowly
     on its own (d2, a longer duration than the rest), then the
     supporting copy follows. A gentle ease-out-cubic curve (rather
     than the snappier expo curve) keeps the motion soft throughout —
     no fast "pop" at the start of the float. */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
.hidamari .load-in {
    opacity: 0;
    animation: heroRise 900ms cubic-bezier(0.33, 1, 0.68, 1) forwards;
  }
.hidamari .load-in.d0 { animation-delay: 0ms; }
.hidamari .load-in.d1 { animation-delay: 550ms; }
.hidamari .load-in.d2 { animation-delay: 700ms; animation-duration: 1400ms; }
.hidamari .load-in.d3 { animation-delay: 1650ms; }
.hidamari .load-in.d4 { animation-delay: 1780ms; }
.hidamari .load-in.d5 { animation-delay: 1900ms; }
@media (prefers-reduced-motion: reduce) {
  .hidamari .load-in { opacity: 1; animation: none; }
}
/* Responsive */
@media (max-width: 860px) {
  :root { --section-pad: 56px; }
  .hidamari .spec-strip { max-width: 100%; overflow-x: auto; }
  .hidamari .reasons-grid, .hidamari .case-grid, .hidamari .voice-grid, .hidamari .company-grid { grid-template-columns: 1fr; }
  .hidamari .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hidamari .header-utility { display: none; }
  .hidamari .site-nav { display: none; }
  .hidamari .header-row { padding: 12px 18px; }
  .hidamari .brand { font-size: 17px; }
  .hidamari .brand small { display: none; }
  .hidamari .site-footer { padding-bottom: 84px; }
}
@media (max-width: 560px) {
  .hidamari .wrap { padding: 0 18px; }
}
/* ---------- Floating quick-contact bar (mobile, appears on scroll) ---------- */
.hidamari .float-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -96px;
    z-index: 50;
    display: none;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(11, 58, 91, 0.1);
    transition: bottom 220ms ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
.hidamari .float-bar.is-visible { bottom: 0; }
.hidamari .float-bar-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    border-right: 1px solid var(--border);
  }
.hidamari .float-bar-link:last-child { border-right: none; }
.hidamari .float-bar-link .icon { width: 19px; height: 19px; color: var(--accent); }
.hidamari .float-bar-link.primary { background: var(--accent); color: #fff; }
.hidamari .float-bar-link.primary .icon { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hidamari .float-bar { transition: none; }
}
@media (max-width: 860px) {
  .hidamari .float-bar { display: flex; }
}


/* ==========================================================================
 * WordPressブロック構造への対応
 * --------------------------------------------------------------------------
 * additional.css の大部分は静的サイト（nanbu-home.html）のDOM構造を前提に
 * 書かれているが、WordPressのブロックは以下の点で構造が異なる。
 * このファイルはその差分を吸収する。scope_css.py が生成物の末尾に連結する。
 *
 *   1. 静的サイトの <div class="wrap"> に相当する要素が無い
 *   2. core/group が <div class="wp-block-group__inner-container"> を挟むため、
 *      grid / flex の「直下の子」が内側ラッパー1個だけになりレイアウトが効かない
 *   3. core/image が <figure> を挟むため、画像の高さ・トリミング指定が効かない
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * 0) デザイントークンを .hidamari 自身にも定義する
 *
 * ブロックエディタ用スタイル（add_editor_style）では、WordPress が
 * セレクタを .editor-styles-wrapper 配下に書き換える際に :root が
 * そのまま残らず、CSS変数が解決できなくなることがある。
 * .hidamari にも同じ変数を持たせておけば、フロント・エディタどちらでも
 * 確実に色・フォント・余白が適用される。
 * -------------------------------------------------------------------------- */
.hidamari {
  --primary: #0B3A5B;
  --primary-ink: #082a44;
  --accent: #2E86C1;
  --accent-ink: #21689b;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FB;
  --bg-blueprint: #EAF2F8;
  --text: #22303B;
  --subtext: #5B6B74;
  --border: #E1E8EC;
  --card-shadow: 0 2px 12px rgba(11, 58, 91, 0.08);
  --font-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --font-sans-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --max-w: 1120px;
  --section-pad: 96px;
  --radius-card: 12px;
  --radius-btn: 8px;
}

/* --------------------------------------------------------------------------
 * 1) セクション直下の内側ラッパーを、静的サイトの .wrap 相当にする
 *
 * セクション自体は align:full（.alignfull）でブラウザ幅いっぱいに広げ、
 * その内側でコンテンツを 1120px に収めて中央寄せする。
 * これにより「背景は全幅・中身は中央」という静的サイトの構造を再現する。
 * -------------------------------------------------------------------------- */
.hidamari .block > .wp-block-group__inner-container,
.hidamari .page-hero > .wp-block-group__inner-container,
.hidamari .cta-band > .wp-block-group__inner-container,
.hidamari .timeline-section > .wp-block-group__inner-container,
.hidamari .hero--photo > .wp-block-group__inner-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}

/* 静的サイトの `.hero--photo .wrap { position:relative; z-index:2 }` 相当。
   これが無いと、position:absolute の .hero__bg（と白いグラデーションの ::after）が
   静的配置のテキストより後に描画され、キャッチフレーズが隠れてしまう。

   重要: 内側ラッパーではなく .hero__content 側に指定すること。
   内側ラッパー（max-width:1120px）を position:relative にすると、
   絶対配置の .hero__bg / .anniversary-badge の基準がそこになり、
   背景写真が全幅にならず1120pxに縮んでしまう。 */
.hidamari .hero--photo .hero__content,
.hidamari .interview-hero .interview-hero__watermark {
  position: relative;
  z-index: 2;
}

/* ヒーローは .hero--photo 自身が flex（align-items:center）。
   内側ラッパーが唯一のフレックスアイテムとして中央に来ればよいので、
   ここでは display:contents にしない（上の .wrap 指定をそのまま活かす）。
   hero__bg / anniversary-badge は position:absolute なので
   .hero--photo（position:relative）を基準に全幅のまま配置される。 */


/* --------------------------------------------------------------------------
 * 2) grid / flex コンテナの内側ラッパーを透過させる
 *
 * display:contents により内側ラッパーがボックスツリーから外れ、
 * その子要素がそのままグリッドアイテム／フレックスアイテムになる。
 * 対象クラスは「CSSで display:flex|grid を持ち、かつ core/group に付与されている」
 * ものを実データから抽出して列挙している（core/columns は内側ラッパーを
 * 挟まないため対象外）。
 * -------------------------------------------------------------------------- */
.hidamari .anniversary-badge > .wp-block-group__inner-container,
.hidamari .case-ticker__track > .wp-block-group__inner-container,
.hidamari .company-grid > .wp-block-group__inner-container,
.hidamari .form-field > .wp-block-group__inner-container,
.hidamari .form-grid > .wp-block-group__inner-container,
.hidamari .keyword-ticker__track > .wp-block-group__inner-container,
.hidamari .policy-list > .wp-block-group__inner-container,
.hidamari .prep-list > .wp-block-group__inner-container,
.hidamari .reason-card--photo > .wp-block-group__inner-container,
.hidamari .reasons-grid > .wp-block-group__inner-container,
.hidamari .recruit-subnav > .wp-block-group__inner-container,
.hidamari .timeline-step > .wp-block-group__inner-container {
  display: contents;
}

/* スペック帯（TOTOメンテナンス指定代行店 / 設立 / 対応エリア）は
   display:contents 経由だと align-items:stretch が効かず、
   各項目の高さが揃わない（79/79/95px になる）。
   内側ラッパー自体をフレックス行にして高さを揃える。 */
.hidamari .spec-strip > .wp-block-group__inner-container {
  /* flex + align-items:stretch では高さが揃わなかったため grid を使う。
     grid は行の高さに合わせて各セルが伸びるので確実に揃う。
     grid-auto-columns:auto で幅は内容なり（静的サイトと同じ見た目）。 */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  align-items: stretch;
}
.hidamari .spec-strip > .wp-block-group__inner-container > .spec-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* stretch 任せにせず高さを明示（環境によって stretch が効かないため） */
  height: 100%;
  align-self: stretch;
}


/* --------------------------------------------------------------------------
 * 3) core/image の <figure> を、静的サイトの画像ラッパー相当として扱う
 * -------------------------------------------------------------------------- */

/* WordPress既定の figure マージンを打ち消す */
.hidamari .wp-block-image,
.hidamari figure.wp-block-image {
  margin: 0;
}

/* 背景として敷く画像（ヒーロー・理由カード）:
   figure の height:100% は親の高さ解決に依存して不安定なため、
   figure / img とも絶対配置で親いっぱいに広げる。
   これをしないとヒーロー写真がセクション下端まで届かず、
   創業バッジが写真の外にはみ出す。 */
.hidamari .hero__bg .wp-block-image,
.hidamari .reason-card__bg .wp-block-image,
.hidamari .hero__bg .wp-block-image img,
.hidamari .reason-card__bg .wp-block-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}
.hidamari .hero__bg .wp-block-image img,
.hidamari .reason-card__bg .wp-block-image img {
  object-fit: cover;
}

/* inset:0 だけだと高さが親いっぱいに解決されず、写真がセクション下端まで
   届かない（33pxほど足りず、下に背景色の帯が出る）。高さを明示する。
   ※モバイル（860px以下）は position:relative + aspect-ratio に切り替わるため除外 */
@media (min-width: 861px) {
  .hidamari .hero--photo .hero__bg {
    height: 100%;
  }
}

/* 静的サイトの .photo-frame 相当（角丸＋トリミング）を figure に適用する。
   ブロック側では figure に photo-frame--* クラスが直接付いている。 */
.hidamari figure.photo-frame--office,
.hidamari figure.photo-frame--ceo-wide,
.hidamari figure.case-ticker-photo,
.hidamari .commitment-media .wp-block-image,
.hidamari .page-hero-photo .wp-block-image,
.hidamari .interview-hero .wp-block-image {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--bg-blueprint);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hidamari figure.photo-frame--office img,
.hidamari figure.photo-frame--ceo-wide img,
.hidamari figure.case-ticker-photo img,
.hidamari .commitment-media .wp-block-image img,
.hidamari .page-hero-photo .wp-block-image img,
.hidamari .interview-hero .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* アスペクト比（静的サイトでは .photo-frame--* / .case-ticker-photo に指定） */
.hidamari .commitment-media .wp-block-image { aspect-ratio: 4 / 3; }
.hidamari .page-hero-photo .wp-block-image { aspect-ratio: 16 / 6.5; }
.hidamari .interview-hero .wp-block-image { aspect-ratio: 1400 / 680; border-radius: 0; border: none; }

/* interview-hero は figure 自体が枠になるため、外側グループの高さ指定は不要 */
.hidamari .interview-hero { aspect-ratio: auto; }

@media (max-width: 700px) {
  .hidamari .page-hero-photo .wp-block-image { aspect-ratio: 4 / 3; }
}


/* --------------------------------------------------------------------------
 * 4) SWELL既定スタイルの打ち消し
 *
 * SWELL は .post_content 内の見出しに独自の装飾（濃紺の背景＋白文字）を当てる。
 * additional.css は SWELL のインラインCSSより後に読み込まれるため、
 * 同じ詳細度(0,1,1)で上書きできる。
 * 一方、デザイン側の個別指定（.section-head h2 など＝詳細度(0,2,1)）は
 * この打ち消しより強いので、意図した装飾はそのまま残る。
 * -------------------------------------------------------------------------- */
.hidamari h1,
.hidamari h2,
.hidamari h3,
.hidamari h4,
.hidamari h5 {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
}
/* SWELLが疑似要素で付ける見出し装飾も消す */
.hidamari h2::before, .hidamari h2::after,
.hidamari h3::before, .hidamari h3::after {
  content: none;
}
/* ただしデザイン側で使っている marker（蛍光ペン）は残す */
.hidamari .marker {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 34' preserveAspectRatio='none'%3E%3Cpath d='M4 21 Q70 9 130 15 T320 16' fill='none' stroke='%232E86C1' stroke-opacity='0.4' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 100%;
}

/* --------------------------------------------------------------------------
 * 5) core/button を、静的サイトの .btn デザインに合わせる
 *
 * core/button は .wp-block-button__link を出力するため、
 * デザイン側の .btn の指定が当たらない（SWELL既定の丸いダークボタンになる）。
 * ここで .btn 相当のスタイルを移植する。
 * -------------------------------------------------------------------------- */
.hidamari .wp-block-button__link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 280ms ease, border-color 280ms ease, transform 150ms ease;
  text-decoration: none;
}
/* hoverで左からスライドして塗りつぶす演出 */
.hidamari .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-ink);
  transform: translateX(-102%);
  transition: transform 320ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.hidamari .wp-block-button__link:hover::before { transform: translateX(0); }
.hidamari .wp-block-button__link:hover { color: #fff; }
.hidamari .wp-block-button__link:active { transform: translateY(1px); }

/* アウトライン（副）ボタン: is-style-outline を .btn-outline-navy 相当に */
.hidamari .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.hidamari .wp-block-button.is-style-outline .wp-block-button__link::before {
  background: var(--primary);
}
.hidamari .wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hidamari .wp-block-button__link::before { transition: none; }
}

/* ボタンの中央寄せ。
   core/buttons は既定で左寄せなので、中央に置きたい箇所を明示する。
   ・info-card（お問い合わせページのカード内）
   ・is-centered を付けたもの（修理事例／会社概要のセクション下ボタン） */
.hidamari .info-card .wp-block-buttons,
.hidamari .wp-block-buttons.is-centered {
  justify-content: center;
}

/* カード内のボタンは、直前の見出し・本文から離す。
   core/buttons 自体に余白が無いため、「インターネット」カードのように
   見出しの直後にボタンが来るケースで文字とボタンがくっついて見える
   （LINEカードは間に補足文があるため気づきにくい）。 */
.hidamari .info-card .wp-block-buttons {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
 * 6) Contact Form 7（採用応募フォーム）の見た目をデザインに合わせる
 *
 * CF7は各行を <p> で包み <br> を挟むため、そのままだと余白が二重になる。
 * 入力欄そのものの装飾は既存の `.form-field input / textarea` が効く。
 * -------------------------------------------------------------------------- */
.hidamari .wpcf7 p { margin: 0; }
.hidamari .wpcf7 br { display: none; }
.hidamari .wpcf7 .form-field > p {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hidamari .wpcf7-form-control-wrap { display: block; }

/* ファイル選択 */
.hidamari .form-field input[type="file"] {
  font-family: var(--font-sans-jp);
  font-size: 13.5px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-soft);
  width: 100%;
  cursor: pointer;
}
.hidamari .form-hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans-jp);
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.7;
}

/* プライバシーポリシー同意 */
.hidamari .form-consent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-sans-jp);
  font-size: 13.5px;
  color: var(--subtext);
}
.hidamari .form-consent a { color: var(--accent); text-decoration: underline; }
.hidamari .form-consent input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--accent); margin-right: 4px;
}
.hidamari .form-consent .wpcf7-list-item { margin: 0; }

/* 送信ボタン（[submit] は input 要素なので ::before のスライドは使えない） */
.hidamari .wpcf7-submit {
  min-width: 220px;
  cursor: pointer;
}
.hidamari .wpcf7-submit:hover { background: var(--accent-ink); }

/* エラー表示・送信結果 */
.hidamari .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-family: var(--font-sans-jp);
  font-size: 12.5px;
  color: #c0392b;
}
.hidamari .form-field input.wpcf7-not-valid,
.hidamari .form-field textarea.wpcf7-not-valid {
  border-color: #c0392b;
}
.hidamari .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans-jp);
  font-size: 14px;
  line-height: 1.8;
}
.hidamari form.sent .wpcf7-response-output {
  border: 1px solid var(--accent);
  background: var(--bg-blueprint);
  color: var(--primary);
}
.hidamari form.invalid .wpcf7-response-output,
.hidamari form.failed .wpcf7-response-output {
  border: 1px solid #c0392b;
  background: #fdf3f2;
  color: #c0392b;
}
/* 送信中スピナー */
.hidamari .wpcf7-spinner { margin-left: 12px; }

/* --------------------------------------------------------------------------
 * 7) その他の微調整
 * -------------------------------------------------------------------------- */

/* 注意: ここで .hidamari に overflow-x: clip を掛けてはいけない。
   .alignfull の全幅セクション（width:100vw / left:calc(50% - 50vw)）が
   .hidamari のボックス幅にクリップされ、左右が切れて表示される。
   横スクロール対策は SWELL 側が --swl-scrollbar_width で吸収しているため不要。 */

/* core/columns はモバイルで縦積みになるが、SWELL/WP既定の余白と
   静的サイトのgapが二重にかからないよう揃える */
.hidamari .wp-block-columns { margin-bottom: 0; }

/* TOPページの会社概要ブロック。
   静的サイト(640px)は狭く、全幅(1072px)は間延びするため、
   読みやすさ重視の中間幅にする。 */
.hidamari .company-solo {
  max-width: 880px;
  margin-inline: auto;
}

/* 創業28年バッジ。写真の下端からはみ出さないよう、少し上げて重ねる。 */
.hidamari .hero--photo .anniversary-badge {
  bottom: 56px;
}
@media (max-width: 480px) {
  .hidamari .hero--photo .anniversary-badge {
    bottom: 16px;
  }
}

/* 見出し・段落に付く WordPress 既定クラスの上下マージンを、
   静的サイト側の指定（margin-top など）が上書きできるようにする */
.hidamari .wp-block-heading { margin-block: 0; }

/* SWELL が出力するページタイトルを非表示にする。
   これらのページは本文側に独自のページ見出し（.hero / .page-hero）を
   持っているため、そのままだと見出しが二重になる（h1 も2つになる）。
   クラスは swell_child/functions.php の body_class フィルタで付与するが、
   SWELL は body_class() を <body> ではなく <div id="body_wrap"> に出力するため、
   要素を限定せずクラスだけで指定する。 */
.has-hidamari-design .c-pageTitle {
  display: none;
}

/* タイトルを消したぶん、本文が上端に詰まらないよう余白を調整。
   .post_content の既定マージン（4em）は各セクションが自前で
   padding を持っているため不要。 */
.has-hidamari-design .l-mainContent__inner > .post_content {
  margin-top: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
 * ヘッダーメニューの「修理依頼・お問い合わせ」を塗りボタンにする
 *
 * 静的サイトではナビとは別に .btn.btn-sm のボタンを置いていたが、
 * WordPressではメニュー項目の1つなので、gnav-cta クラス（deploy.php で付与）を
 * 目印にボタン装飾を当てる。
 * ヘッダーは .hidamari の外側にあるため、body_wrap に付く
 * .has-hidamari-design を起点にスコープする。
 * -------------------------------------------------------------------------- */
/* SWELLはナビのリンクを height:72px（ヘッダー全高）にしているため、
   そのままだと塗りが天地いっぱいに広がってボタンに見えない。
   li を縦中央揃えにし、a の高さを内容なりに戻す。 */
.has-hidamari-design .c-gnav > li.gnav-cta {
  display: flex;
  align-items: center;
}
.has-hidamari-design .c-gnav > li.gnav-cta > a {
  height: auto;
  align-items: center;
  line-height: 1.5;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 11px 20px;
  margin-left: 10px;
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 240ms ease;
}
.has-hidamari-design .c-gnav > li.gnav-cta > a:hover {
  background: var(--accent-ink);
  color: #fff;
}
/* SWELL既定の下線アニメーションはボタンには不要 */
.has-hidamari-design .c-gnav > li.gnav-cta > a::after {
  display: none;
}
/* 現在ページ表示時も塗りを維持する */
.has-hidamari-design .c-gnav > li.gnav-cta.current-menu-item > a {
  background: var(--accent);
  color: #fff;
}

/* トップページ：ヒーロー写真をヘッダー直下から始める。
   既定では下記の合計120pxが空いてしまう。
     ・SWELLの投稿スライダー（.p-postSlider）… 56px
     ・.l-content の上余白 … 64px
   下層ページは元から余白0＋パンくず直下なので、トップだけに適用する。
   ※投稿スライダーを使いたくなったら、この display:none を外すか
     「外観 → カスタマイズ → トップページ」で設定を切り替える。 */
.has-hidamari-design.home .l-content {
  padding-top: 0;
}
.has-hidamari-design.home .p-postSlider {
  display: none;
}

/* --------------------------------------------------------------------------
 * 15) 代表挨拶の署名（sign.svg）が表示されない
 *
 * SWELLは本文中の <img> を lazysizes で遅延読み込みする。その際 1x1 の
 * プレースホルダーGIFに差し替え、aspectratioプラグインが読み込み前の高さを
 * インラインstyleで書き込む。署名画像は flex アイテムで幅がCSS任せ
 * （width:auto）のため、プレースホルダー時点の幅が数pxとなり
 *   style="height:0.478px"
 * が入って潰れ、可視領域に入らないまま本画像が読み込まれない。
 * インラインstyleに勝つ必要があるため、ここだけ !important を使う。
 * -------------------------------------------------------------------------- */
.hidamari .ceo-signature img {
  height: 30px !important;
  width: auto !important;
  /* プレースホルダーGIFは1x1なので、指定しないと読み込み前だけ 30x30 の正方形に
     なり、本画像に入れ替わった瞬間に横幅が飛ぶ。sign.svg の viewBox 比を
     明示して、読み込み前から正しい幅（約255px）を確保しておく。 */
  aspect-ratio: 141.94 / 16.69;
}

/* --------------------------------------------------------------------------
 * 16) フッターナビの区切り線がずれる／デザインに合っていない
 *
 * SWELLはフッターナビの区切りを「各 <a> の border-right」で描いており、
 * 先頭だけ `li:first-child a { border-left }` を足している。
 * ところが「採用情報」には子メニュー（<ul class="sub-menu">）がぶら下がっており、
 *   ・サブメニューの <a> にも border-right が付く
 *   ・`li:first-child a` がサブメニュー先頭の <a> にもマッチして border-left が付く
 *   ・サブメニューは <li> の中で下段に折り返される
 * ため、「採用情報」の左の罫線とその下の段の罫線が揃わない。
 *
 * 対応: <li> と .sub-menu を display:contents で透過させて全リンクを1つの
 * フレックス行に流し込み、罫線は border ではなく ::before の縦罫で描き直す。
 * 色はサイトのアクセントブルー（--accent）に合わせる。
 * -------------------------------------------------------------------------- */

/* フッターの始まりを1本の細い罫線で示す（design.md の「フッターは上端に1px罫線」） */
.has-hidamari-design .l-footer {
  border-top: 1px solid var(--border);
}

.has-hidamari-design .l-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 4px;
  padding: 1em 0;
}

/* <li> とサブメニューの <ul> をボックスツリーから外し、
   すべての <a> を .l-footer__nav 直下のフレックスアイテムにする */
.has-hidamari-design .l-footer__nav li,
.has-hidamari-design .l-footer__nav .sub-menu {
  display: contents;
}

/* SWELLの border-right / border-left を打ち消す。
   `.l-footer__nav li:first-child a`(0,2,2) に勝つため、こちらも同じ形で並べる。 */
.has-hidamari-design .l-footer__nav a,
.has-hidamari-design .l-footer__nav li:first-child a {
  position: relative;
  display: block;
  border: 0;
  padding: 2px 18px;
  font-family: var(--font-sans-jp);
  font-size: 13px;
  line-height: 1.7;
  color: var(--primary);
  text-decoration: none;
}
.has-hidamari-design .l-footer__nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* 区切り線: アクセントブルーの細い縦罫を各リンクの左に置き、先頭だけ消す */
.has-hidamari-design .l-footer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 13px;
  margin-top: -6.5px;
  background: var(--accent);
  opacity: 0.4;
}
.has-hidamari-design .l-footer__nav > li:first-child > a::before {
  display: none;
}

.has-hidamari-design .l-footer .copyright {
  font-family: var(--font-sans-jp);
  color: var(--subtext);
  padding-top: 4px;
}

/* スマホは1行に収まらないので区切りを縦罫ではなく行間で見せる */
@media (max-width: 599px) {
  .has-hidamari-design .l-footer__nav a {
    padding: 2px 12px;
    font-size: 12.5px;
  }
}

/* --------------------------------------------------------------------------
 * 17) 書式ダウンロード一覧が縦積みになる（Contact Form 7 の autop）
 *
 * CF7 はフォーム出力に autop をかけるため、<li> の中身が <p> で包まれる。
 * 静的サイト側の `.form-docs__list li { display:flex }` は直下の子が <p> 1個に
 * なってしまい、ファイル名とリンクが横に並ばない。<p> 側にも同じ指定を当てる。
 * -------------------------------------------------------------------------- */
.hidamari .form-docs__list li > p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
 * 18) スマホ・タブレット用の固定フッターメニュー
 *     （Instagram / LINEで相談 / 修理依頼）
 *
 * 実体はSWELLの「固定フッター（SP）」= #fix_bottom_menu。
 * スクロールで下からせり上がる挙動はSWELL標準のものをそのまま使う。
 *     #fix_bottom_menu           { position:fixed; bottom:-60px; transition:bottom .4s }
 *     [data-scrolled=true] ...   { bottom:0 }
 * ここで上書きするのは「表示するブレークポイント」と「見た目」の2点だけ。
 * -------------------------------------------------------------------------- */

/* ⚠️ せり上がる仕組み（position:fixed / bottom / transition / data-scrolled）は
   SWELL側にもあるが、それらは「切り分けCSS」の parts/fix_bottom_menu モジュールに
   入っており、SWELLが30日間トランジェントにキャッシュする対象になっている。
   CLIからメニュー位置を割り当てただけではキャッシュが更新されず、
   モジュールが欠けたまま main.css の `display:none` だけが効いて
   **バーが完全に出なくなる**（実際に発生した）。
   キャッシュ状態に依存しないよう、必要な指定はここで自前に持つ。 */
.has-hidamari-design #fix_bottom_menu {
  position: fixed;
  left: 0;
  bottom: -80px;               /* 画面外に待機 */
  width: 100%;
  z-index: 100;
  transition: bottom 0.4s;
  display: none;               /* 既定は非表示。下のメディアクエリで出す */
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(11, 58, 91, 0.10);
}

/* スクロールするとせり上がる。data-scrolled は SWELL が <html> に付け外しする
   （ページ最上部のセンチネルを IntersectionObserver で監視している）。
   .has-hidamari-design は #body_wrap に付くので、html → body_wrap の順で書く。 */
[data-scrolled="true"] .has-hidamari-design #fix_bottom_menu {
  bottom: 0;
}

/* SWELLは 960px 未満でしか出さないが、iPadの横向き（1180〜1194px）でも
   出したいので、①1024px以下 ②タッチ端末なら1400pxまで の2条件に広げる。
   pointer:coarse を併用することで、デスクトップの小さいウィンドウには出さない。 */
@media (max-width: 1024px), (max-width: 1400px) and (pointer: coarse) {
  .has-hidamari-design #fix_bottom_menu {
    display: block;
    padding-bottom: calc(env(safe-area-inset-bottom) * 0.5);
  }
}
/* SWELLが :before で敷く色付きレイヤーは使わない（白地で統一するため） */
.has-hidamari-design #fix_bottom_menu::before {
  display: none;
}

.has-hidamari-design #fix_bottom_menu .menu_list {
  height: 58px;
  padding: 0;
  gap: 0;
}

.has-hidamari-design #fix_bottom_menu .menu-item {
  flex: 1 1 0;
  border-left: 1px solid var(--border);
}
.has-hidamari-design #fix_bottom_menu .menu-item:first-child {
  border-left: 0;
}

.has-hidamari-design #fix_bottom_menu .menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 4px;
  color: var(--primary);
  font-family: var(--font-sans-jp);
}
.has-hidamari-design #fix_bottom_menu .menu-item i {
  font-size: 21px;
  height: 21px;
  line-height: 21px;
  color: var(--accent);
}
.has-hidamari-design #fix_bottom_menu .menu-item span {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* LINEはブランドカラー（LINEグリーン）をそのまま使う。
   公式ロゴの色なので、サイトのアクセントブルーには寄せない。 */
.has-hidamari-design #fix_bottom_menu .fbm-line i {
  color: #06C755;
}

/* 主CTA（修理依頼）はアクセントブルーの塗りにして目立たせる */
.has-hidamari-design #fix_bottom_menu .fbm-contact {
  border-left: 0;
}
.has-hidamari-design #fix_bottom_menu .fbm-contact a {
  background: var(--accent);
  color: #fff;
}
.has-hidamari-design #fix_bottom_menu .fbm-contact i {
  color: #fff;
}
.has-hidamari-design #fix_bottom_menu .fbm-contact a:active {
  background: var(--accent-ink);
}

/* 固定バーの高さぶん、フッター下端に余白を足して重ならないようにする */
@media (max-width: 1024px), (max-width: 1400px) and (pointer: coarse) {
  .has-hidamari-design .l-footer {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
 * 20) ページ内アンカーの飛び先が追従ヘッダーに隠れる
 *
 * 固定フッターの「修理依頼」は /contact/#flow でセクションへ直接飛ぶ。
 * ジャンプするとSWELLの追従ヘッダー（.l-fixHeader）が出てくるため、
 * そのままだと見出しがヘッダーの下に潜る。scroll-margin-top で逃がす。
 * -------------------------------------------------------------------------- */
.hidamari #flow,
.hidamari #day {
  scroll-margin-top: 88px;
}
@media (max-width: 959px) {
  .hidamari #flow,
  .hidamari #day {
    scroll-margin-top: 68px;
  }
}

/* --------------------------------------------------------------------------
 * 21) フッターの「生成AI画像」注記
 *
 * swell_child/functions.php の swell_after_copyright フックで出力している
 * .site-ai-note の見た目。フッターは .hidamari の外なので .has-hidamari-design 起点。
 * コピーライトより控えめにし、読みたい人には読める程度のコントラストを保つ。
 * -------------------------------------------------------------------------- */
.has-hidamari-design .l-footer .site-ai-note {
  margin: 6px auto 0;
  max-width: 640px;
  padding: 0 16px;
  font-family: var(--font-sans-jp);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--subtext);
  text-align: center;
}

/* --------------------------------------------------------------------------
 * 22) スマホヘッダーのレイアウト（ロゴ左・メニュー右）
 *
 * 配置は set_header_btn.php（SWELLの header_layout_sp = 'left_right'）で設定している。
 * 右上のボタンは出さない方針だが、SWELLは条件に合わなくても
 * 空の <div class="l-header__customBtn sp_"> を必ず出力する。
 * この箱は幅・高さとも var(--logo_size_sp)（=48px）を持つため、
 * そのままだとメニューボタンの左に48pxの余白ができてしまう。畳んでおく。
 * -------------------------------------------------------------------------- */
/* ⚠️ `:empty` は使えない。SWELLの出力は
     <div class="l-header__customBtn sp_">\n</div>
   のように改行（空白テキストノード）を含むため、`:empty` は一致しない。
   中に実際のボタン（a / button）が無いときだけ畳む。 */
.has-hidamari-design .l-header__customBtn:not(:has(a, button)) {
  display: none;
}

/* --------------------------------------------------------------------------
 * 23) 会社情報表（.fact-table）のデザインが当たっていない
 *
 * 静的サイトは <dl class="fact-table"><div class="fact-row"><dt>/<dd> という
 * 定義リスト構造で、CSSも .fact-row / dt / dd に対して書かれている。
 * 一方 core/table が出すのは <figure><table><tr><td> なので、
 * それらの指定が**1つも当たっていなかった**。
 * その結果、WordPress既定（.wp-block-table td { border:1px; padding:.5em } と
 * has-fixed-layout による等幅2列）のまま表示されていた。
 *
 * ここで <table> 構造に同じデザインを移植する。
 *   dt  → td:first-child（ソフト背景・グレー太字・幅固定）
 *   dd  → td:last-child
 *   .fact-row の下罫線 → tr の border-bottom
 * -------------------------------------------------------------------------- */
.hidamari .fact-table table {
  width: 100%;
  border-collapse: collapse;
  /* 項目名の列は内容量に関係なく一定幅にしたいので固定レイアウトにする */
  table-layout: fixed;
  font-size: 13.5px;
}
.hidamari .fact-table tr {
  border-bottom: 1px solid var(--border);
}
.hidamari .fact-table tr:last-child {
  border-bottom: none;
}
.hidamari .fact-table td {
  /* WordPress既定のセル罫線（全セル1px）を消す。区切りは tr の下罫線だけにする */
  border: none;
  padding: 13px 16px;
  vertical-align: top;
}
/* 項目名の列幅。静的サイトと同じ 108px（採用ページは項目名が長いので 148px）。
 *
 * ⚠️ `td:first-child { width: … }` では効かない。SWELLが blocks.css で
 *      .wp-block-table>table tr>:first-child:not(.-no1){
 *        min-width: var(--swl-cell1-width, …) !important;
 *        width:     var(--swl-cell1-width, auto);
 *      }
 *    を当てており、min-width が !important、width も詳細度(0,3,2)で
 *    こちらの(0,3,1)より強いため、列幅が等分のままになる。
 *    SWELLが用意している変数 --swl-cell1-width に値を入れるのが正解。 */
.hidamari .fact-table > table {
  --swl-cell1-width: 108px;
}
.hidamari .fact-table.recruit-table > table {
  --swl-cell1-width: 148px;
}
.hidamari .fact-table td:first-child {
  background: var(--bg-soft);
  color: var(--subtext);
  font-weight: 700;
}
.hidamari .fact-table.recruit-table td:last-child {
  line-height: 1.85;
}
/* 「※能力・経験を考慮して決定します。」のような補足 */
.hidamari .fact-table.recruit-table .sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans-jp);
  font-size: 12.5px;
  color: var(--subtext);
}

/* 狭い画面では2列に収まらないので、項目名を上・内容を下に積む */
@media (max-width: 560px) {
  .hidamari .fact-table > table,
  .hidamari .fact-table.recruit-table > table {
    --swl-cell1-width: auto;
    table-layout: auto;
  }
  .hidamari .fact-table td {
    display: block;
    width: auto;
  }
  .hidamari .fact-table td:first-child {
    width: auto;
    padding: 10px 16px 4px;
    background: none;
    color: var(--primary);
  }
  .hidamari .fact-table td:last-child {
    padding: 0 16px 13px;
  }
}
