@charset "UTF-8";

/* 全ページ共通: 基本の文字組み、ヘッダー・フッター、ボタン、見出し帯、事業の帯、お問い合わせ帯 */

:root {
    --home-red: #ca181b;
    --home-ink: #151515;
    --home-charcoal: #252525;
    --home-muted: #646464;
    --home-rule: #c8c8c8;
    --home-font: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    --home-latin: "Manrope", sans-serif;
    --home-header-height: clamp(64px, 6.25vw, 90px);
    --home-header-compact: clamp(56px, 4.45vw, 64px);
}

/* 固定ヘッダーの高さ分、本文を下げる */
body { padding-top: var(--home-header-height); }

/* 基本の文字組み（body.home-page） */
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
body.home-page { margin: 0; color: var(--home-ink); background: #fff; font-family: var(--home-font); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin: 0; }
.home-page a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.home-page img { display: block; max-width: 100%; }
.home-page a:focus-visible { outline: 3px solid var(--home-red); outline-offset: 6px; }
.home-page ol, .home-page dl, .home-page dd { margin: 0; padding: 0; }
.home-eyebrow { color: var(--home-red); font-family: var(--home-latin); font-size: clamp(11px, 1.12vw, 16px); font-weight: 700; line-height: 1.6; letter-spacing: .25em; }
.home-period { color: var(--home-red); }
.home-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 7px; border-bottom: 1px solid var(--home-red); font-size: clamp(13px, 1.18vw, 17px); font-weight: 700; line-height: 1.6; }
.home-text-link .home-arrow { color: var(--home-red); }
.home-text-link:hover .home-arrow { transform: translateX(4px); }

/* 新デザインの下層ページの見出し帯 */
.home-page-header { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(300px, 27vw, 390px); background: #f8f7f6; }
/* 各ページの見出し画像（page-heroes）は左側が空いた構図なので、全幅に敷いて右側の被写体を見せる */
.home-page-header-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* 文字の背後だけ背景色に寄せ、画像に文字が重なっても読めるようにする */
.home-page-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(248, 247, 246, .92) 0%, rgba(248, 247, 246, .7) 32%, rgba(248, 247, 246, 0) 58%); }
.home-page-header-content { padding-block: clamp(36px, 4vw, 56px); }
/* 記事タイトルなど長い現在地は1行に収め、はみ出す分を「…」にする */
.home-breadcrumb ol { display: flex; gap: 10px; list-style: none; font-size: 12px; line-height: 1.6; color: var(--home-muted); }
.home-breadcrumb li { flex: 0 0 auto; white-space: nowrap; }
.home-breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #aaa; }
.home-breadcrumb a:hover { color: var(--home-red); }
.home-page-header .home-eyebrow { margin-top: clamp(26px, 3vw, 42px); }
.home-page-header h1 { margin-top: 10px; font-size: clamp(40px, 4.6vw, 66px); font-weight: 700; line-height: 1.3; }
.home-page-lead { margin-top: clamp(16px, 1.6vw, 22px); font-size: clamp(14px, 1.25vw, 18px); line-height: 1.9; }

/* 事業の帯（トップの3事業、事業案内のページ内リンク） */
.home-services { color: #fff; background: var(--home-charcoal); }
.home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: clamp(36px, 3.9vw, 56px); }
.home-service { display: block; padding: 0 clamp(20px, 2.8vw, 40px); border-right: 1px solid #888; }
.home-service:first-child { padding-left: 28px; }
.home-service:last-child { border: 0; }
.home-service-number { font-family: var(--home-latin); font-size: clamp(12px, 1.25vw, 18px); font-weight: 500; letter-spacing: .14em; color: #ddd; }
/* 事業名は <wbr> の位置でだけ折り返す（収まらないときは任意の位置で折り返す） */
.home-service .home-service-name { display: block; margin-top: 3px; word-break: keep-all; overflow-wrap: anywhere; font-size: clamp(19px, 2.08vw, 30px); font-weight: 700; line-height: 1.4; letter-spacing: -.035em; }
.home-service p { margin-top: 9px; font-size: clamp(12px, 1.25vw, 18px); color: #eee; line-height: 1.7; }
.home-service .home-service-text { margin-top: clamp(14px, 1.4vw, 20px); padding-top: clamp(14px, 1.4vw, 20px); border-top: 1px solid #4a4a4a; font-size: clamp(12px, 1.04vw, 15px); line-height: 1.95; color: #c4c4c4; }
.home-service:hover .home-service-name { text-decoration: underline; text-underline-offset: 6px; }

/* お問い合わせ帯（parts/home-contact.php） */
.home-contact { padding-block: clamp(42px, 4.4vw, 64px); background: #f7f7f6; }
.home-contact-grid { display: grid; grid-template-columns: .9fr 1.45fr .95fr; align-items: center; gap: 30px; }
.home-contact h2 { font-weight: 900; font-size: clamp(29px, 3.35vw, 48px); line-height: 1.35; letter-spacing: -.055em; }
.home-contact p { padding-left: 37px; border-left: 1px solid var(--home-rule); font-size: clamp(12px, 1.13vw, 16px); line-height: 1.85; }
.home-contact .home-button { min-height: 88px; padding-inline: 32px; }

.home-header, .home-header *, .home-footer, .home-footer * { box-sizing: border-box; }
.home-header, .home-footer { font-family: var(--home-font); font-weight: 500; line-height: 1.8; -webkit-font-smoothing: antialiased; }
.home-header a, .home-footer a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.home-header img, .home-footer img { display: block; max-width: 100%; }
.home-header a:focus-visible, .home-header summary:focus-visible, .home-footer a:focus-visible { outline: 3px solid var(--home-red); outline-offset: 6px; }
.home-container { width: 89.4%; max-width: 1288px; margin-inline: auto; }
.home-arrow { display: inline-block; flex: 0 0 auto; width: 23px; height: 23px; background: currentColor; mask: url("../img/home/icons/arrow-right-light.svg") center / contain no-repeat; -webkit-mask: url("../img/home/icons/arrow-right-light.svg") center / contain no-repeat; transition: transform .2s ease; }
.home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; padding: 15px 28px; background: var(--home-red); color: #fff !important; font-weight: 700; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.5; transition: background .2s ease; }
.home-button:hover { background: #a61014; }
.home-button:hover .home-arrow { transform: translateX(4px); }
.home-skip-link { position: fixed; z-index: 300; top: 8px; left: 8px; padding: 10px 20px; background: #fff; color: var(--home-ink) !important; font-family: var(--home-font); text-decoration: none; transform: translateY(-150%); }
.home-skip-link:focus { transform: translateY(0); }

.home-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; width: 100%; height: var(--home-header-height); background: #fff; color: var(--home-ink); transition: height .3s ease, box-shadow .3s ease; }
.home-header.is-scrolled { height: var(--home-header-compact); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05); }
.home-header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.home-logo { display: block; width: clamp(110px, 11vw, 160px); flex: 0 0 auto; transition: width .3s ease; }
.home-logo img { width: 100%; height: auto; }
.home-header.is-scrolled .home-logo { width: clamp(96px, 8.4vw, 121px); }
.home-desktop-nav { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 49px); font-size: clamp(12px, 1.1vw, 16px); font-weight: 700; }
.home-desktop-nav > a:not(.home-button):hover, .home-footer nav a:hover { color: var(--home-red); }
.home-header-contact { min-height: clamp(38px, 3.9vw, 56px); padding: 10px 24px; font-size: inherit; transition: background .2s ease, min-height .3s ease; }
.home-header.is-scrolled .home-header-contact { min-height: clamp(36px, 3.1vw, 44px); }
.home-mobile-menu { display: none; }

.home-footer { color: #fff; background: var(--home-charcoal); }
.home-footer-inner { display: flex; min-height: clamp(76px, 7.25vw, 105px); align-items: center; justify-content: space-between; gap: 24px; }
.home-footer-brand { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.home-footer-brand img { width: clamp(108px, 10.6vw, 153px); height: auto; }
.home-footer-brand span { font-size: clamp(9px, .84vw, 12px); letter-spacing: .03em; }
.home-footer nav { display: flex; align-items: center; gap: 23px; margin-left: auto; font-size: clamp(9px, .78vw, 12px); }
.home-footer small { font-family: var(--home-latin); font-size: clamp(9px, .78vw, 12px); white-space: nowrap; color: #ddd; }

@media (max-width: 1100px) and (min-width: 901px) {
    .home-button { min-height: 49px; padding-inline: 20px; }
    .home-header-contact { min-height: 38px; }
    .home-footer-inner { gap: 17px; }
    .home-footer-brand { gap: 12px; }
    .home-footer nav { gap: 14px; }
    .home-contact-grid { gap: 22px; }
    .home-contact p { padding-left: 24px; }
    .home-contact .home-button { min-height: 64px; padding-inline: 22px; }
}

@media (max-width: 900px) {
    :root { --home-header-height: 72px; --home-header-compact: 60px; }
    .home-container { width: calc(100% - 40px); }
    .home-logo { width: 112px; }
    .home-header.is-scrolled .home-logo { width: 96px; }
    .home-desktop-nav { display: none; }
    .home-mobile-menu { display: block; }
    .home-mobile-menu summary { display: flex; min-height: 44px; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
    .home-mobile-menu summary::-webkit-details-marker { display: none; }
    .home-menu-icon { width: 25px; height: 25px; background: var(--home-ink); mask: url("../img/home/icons/list-light.svg") center / contain no-repeat; -webkit-mask: url("../img/home/icons/list-light.svg") center / contain no-repeat; }
    .home-menu-close { display: none; }
    .home-mobile-menu[open] .home-menu-open { display: none; }
    .home-mobile-menu[open] .home-menu-close { display: inline; }
    .home-mobile-menu[open] .home-menu-icon { mask-image: url("../img/home/icons/x-light.svg"); -webkit-mask-image: url("../img/home/icons/x-light.svg"); }
    .home-mobile-menu nav { position: absolute; top: 100%; left: 0; width: 100%; padding: 12px 20px 28px; border-block: 1px solid #eee; background: #fff; }
    .home-mobile-menu nav a { display: flex; min-height: 54px; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; padding-block: 12px; font-size: 16px; }
    .home-mobile-menu nav .home-button { margin-top: 18px; padding-inline: 20px; border: 0; }
    .home-button { min-height: 52px; padding: 15px 20px; font-size: 14px; gap: 16px; }
    .home-footer-inner { display: grid; min-height: 0; gap: 24px; padding-block: 29px; }
    .home-footer-brand { gap: 15px; }
    .home-footer-brand img { width: 106px; }
    .home-footer-brand span { font-size: 9px; }
    .home-footer nav { gap: 14px 22px; flex-wrap: wrap; margin: 0; font-size: 11px; }
    .home-footer small { font-size: 10px; }
    .home-text-link { font-size: 13px; gap: 14px; }
    .home-eyebrow { font-size: 11px; }
    .home-desktop-break { display: none; }
    .home-contact { padding-block: 40px; }
    .home-contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .home-contact h2 { font-size: 37px; }
    .home-contact p { padding-left: 0; border: 0; font-size: 13px; line-height: 1.95; }
    .home-contact .home-button { width: 100%; min-height: 58px; padding-inline: 24px; }
    .home-service-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 12px; }
    .home-service, .home-service:first-child { position: relative; padding: 23px 0 25px 40px; border-right: 0; border-bottom: 1px solid #606060; }
    .home-service:last-child { border: 0; }
    .home-service-number { position: absolute; top: 29px; left: 0; font-size: 12px; }
    .home-service .home-service-name { margin: 0; font-size: clamp(20px, 5.2vw, 27px); }
    .home-service p { font-size: 13px; margin-top: 6px; }
    .home-service .home-service-text { margin-top: 12px; padding-top: 0; border: 0; font-size: 13px; line-height: 1.9; }
    .home-page-header { min-height: 0; }
    .home-page-header-content { padding-block: 28px 36px; }
    .home-page-header-image { object-position: 78% center; opacity: .3; }
    .home-page-header h1 { font-size: clamp(34px, 9.5vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-header, .home-header *, .home-footer *, .home-page *, .home-page *::before, .home-page *::after { transition: none !important; }
}

/* スクロールで下からフェードイン。home.js が画面より下にある要素にだけ .reveal を付けるため、
   JavaScript が動かない場合や読み込み時に見えている要素は最初から表示される */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease var(--reveal-delay, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
.reveal.is-revealed { opacity: 1; transform: none; }
@media print {
    .reveal { opacity: 1; transform: none; }
}
