/*
Theme Name: Yamabe Koumuten (山辺工務店・デモ)
Author: 株式会社西村商店（HP制作事業）
Description: hp-production-kit でビルドした山辺工務店サイト。Generated by build.py.
Version: 1.0
*/
/* === BASE CORE ============================================== */
/* ===== Modern CSS Reset ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* WordPressコアの管理バー対応 */
body.admin-bar { padding-top: 0; }
@media (min-width: 783px) {
    body.admin-bar #site-header { top: 32px; }
}

/* ===== Utility containers ========================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Visually-hidden（アクセシビリティ） ============================ */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== お問い合わせフォーム（汎用、業種側でも上書き可） ============== */
.contact-form-wrap { padding: 24px; background: #fafafa; border-radius: 8px; }
.contact-form-wrap h3 { margin-bottom: 24px; font-size: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-group .required { color: #c0392b; font-size: 12px; margin-left: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { text-align: center; margin-top: 24px; }
.btn-submit {
    padding: 14px 48px;
    background: var(--primary, #1e40af);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
}

/* ===== モバイル下部バー（汎用骨格、配色は業種側で） ================= */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    font-size: 11px;
    color: #333;
}
.mobile-bottom-bar .mbb-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 64px; }
}

/* ===== お知らせ・ステータスメッセージ（汎用） ========================= */
.notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.notice.success { background: #d4edda; color: #155724; }
.notice.error   { background: #f8d7da; color: #721c24; }
.notice.warning { background: #fff3cd; color: #856404; }

/* ===== Breadcrumb（パンくず）================================= */
.breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}
.breadcrumb a { color: inherit; border-bottom: 1px dashed transparent; }
.breadcrumb a:hover { border-bottom-color: currentColor; }
.breadcrumb span { margin: 0 6px; }


/* === INDUSTRY: construction ==================================== */
/* ==========================================================================
   INDUSTRY: construction（工務店・建設・リフォーム）
   鉄黒チャコール×深緑(forest)×温白＋骨太ゴシック＋施工写真グリッド。直線的・硬派。
   地方同業が「OSフォント＋WP既定パレット」で没個性な空白地帯を、これで際立たせる。
   ※既存A(暗色×赤×極太)・B(生成り×明朝)・親会社(紺)と被らない人格。
   ========================================================================== */

:root {
    --cn-iron:   var(--primary, #1f2420);   /* 鉄黒チャコール */
    --cn-forest: var(--secondary, #2f5e4e); /* 深緑（唯一のアクセント） */
    --cn-gray:   var(--accent, #8a857b);    /* ウォームグレー（補助） */
    --cn-paper:  var(--bg, #f4f2ed);        /* 温白 */
    --cn-ink:    var(--text, #2a2a26);
    --cn-line:   #ddd8cd;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--cn-ink);
    background: var(--cn-paper);
    line-height: 1.85;
}
h1, h2, h3 { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; line-height: 1.32; letter-spacing: 0.01em; }
.cn-inner { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* 共通ラベル（英字＝Oswald コンデンス） */
.cn-eyebrow { display: inline-block; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.28em; font-weight: 600; color: var(--cn-forest); text-transform: uppercase; margin-bottom: 10px; }
.cn-eyebrow--light { color: #8fc7b2; }
.cn-section-head { font-size: clamp(24px, 3.6vw, 38px); color: var(--cn-iron); margin-bottom: 28px; }
.cn-section-head--light { color: #fff; }

/* ─── ヘッダー ─────────────────────────────────────────────── */
.cn-header { background: var(--cn-paper); border-bottom: 1px solid var(--cn-line); position: sticky; top: 0; z-index: 100; }
.cn-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 22px; }
.cn-logo img { height: 48px; width: auto; }
.cn-logo-text { font-weight: 900; font-size: 22px; color: var(--cn-iron); letter-spacing: 0.04em; }
.cn-nav { margin-left: auto; }
.cn-nav ul { display: flex; gap: 4px; }
.cn-nav a { display: block; padding: 8px 13px; font-size: 14px; font-weight: 700; color: var(--cn-ink); border-bottom: 2px solid transparent; }
.cn-nav a:hover { color: var(--cn-forest); border-bottom-color: var(--cn-forest); }
.cn-header-cta { background: var(--cn-forest); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 2px; flex-shrink: 0; }
.cn-header-cta:hover { background: #25493c; }
.cn-hamburger { display: none; }
.cn-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }
.cn-nav-overlay.open { display: block; }

@media (max-width: 900px) {
    .cn-header-cta { display: none; }
    .cn-nav { position: fixed; top: 0; right: -100%; width: 270px; height: 100vh; background: var(--cn-iron); padding: 78px 22px 22px; transition: right .3s ease; z-index: 200; margin: 0; }
    .cn-nav.open { right: 0; }
    .cn-nav ul { flex-direction: column; gap: 0; }
    .cn-nav a { color: #ece9e1; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .cn-hamburger { display: flex; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; z-index: 300; }
    .cn-hamburger span { display: block; width: 24px; height: 2px; background: var(--cn-iron); transition: .3s; }
    .cn-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: #fff; }
    .cn-hamburger.open span:nth-child(2) { opacity: 0; }
    .cn-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: #fff; }
}

/* ─── HERO（全幅施工写真＋宣言コピー・左寄せ） ───────────────── */
.cn-hero { position: relative; min-height: 80vh; display: flex; align-items: center; background: var(--cn-iron); overflow: hidden; }
.cn-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.cn-hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,23,20,0.86) 0%, rgba(20,23,20,0.66) 50%, rgba(20,23,20,0.30) 100%); }
.cn-hero-inner { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; padding: 60px 22px; width: 100%; color: #fff; }
.cn-hero-eyebrow { font-family: 'Oswald', sans-serif; letter-spacing: 0.3em; font-size: 14px; color: #8fc7b2; display: inline-block; margin-bottom: 16px; }
.cn-hero-title { font-size: clamp(34px, 6vw, 64px); color: #fff; line-height: 1.25; margin-bottom: 18px; text-shadow: 0 3px 16px rgba(0,0,0,0.4); }
.cn-hero-sub { font-size: 16px; line-height: 1.95; color: #e6e3da; max-width: 540px; margin-bottom: 30px; }
.cn-hero-cta { display: inline-block; background: var(--cn-forest); color: #fff; font-weight: 700; padding: 15px 34px; border-radius: 2px; }
.cn-hero-cta:hover { background: #25493c; }

/* ─── 信頼バッジ帯 ───────────────────────────────────────────── */
.cn-trust { background: var(--cn-iron); border-top: 3px solid var(--cn-forest); }
.cn-trust-inner { max-width: 1140px; margin: 0 auto; padding: 36px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cn-trust-item { text-align: center; color: #fff; }
.cn-trust-num { font-family: 'Oswald', sans-serif; font-size: 42px; font-weight: 600; color: #fff; line-height: 1; }
.cn-trust-unit { font-size: 16px; font-weight: 700; color: #8fc7b2; margin-left: 3px; }
.cn-trust-label { display: block; font-size: 12px; color: #b7b2a6; margin-top: 8px; }

@media (max-width: 720px) { .cn-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ─── 選ばれる理由 ───────────────────────────────────────────── */
.cn-reasons { padding: 84px 0; background: var(--cn-paper); }
.cn-reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cn-reason { background: #fff; border: 1px solid var(--cn-line); border-top: 4px solid var(--cn-forest); border-radius: 2px; padding: 28px 24px; }
.cn-reason-no { font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--cn-forest); }
.cn-reason h3 { font-size: 19px; color: var(--cn-iron); margin: 6px 0 8px; }
.cn-reason p { font-size: 14px; color: #5b574e; line-height: 1.9; }
@media (max-width: 820px) { .cn-reasons-grid { grid-template-columns: 1fr; } }

/* ─── 対応業務 ───────────────────────────────────────────────── */
.cn-services { padding: 84px 0; background: #fff; }
.cn-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cn-service { background: var(--cn-paper); border-left: 4px solid var(--cn-forest); border-radius: 2px; padding: 22px 20px; }
.cn-service h3 { font-size: 18px; color: var(--cn-iron); margin-bottom: 8px; }
.cn-service p { font-size: 13px; color: #5b574e; line-height: 1.85; }
@media (max-width: 860px) { .cn-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cn-services-grid { grid-template-columns: 1fr; } }

/* ─── 施工事例グリッド（主役） ───────────────────────────────── */
.cn-works { padding: 84px 0; background: var(--cn-paper); }
.cn-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cn-work { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #d8d3c6; }
.cn-work-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.cn-work:hover .cn-work-photo { transform: scale(1.06); }
.cn-work-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 14px; background: linear-gradient(0deg, rgba(20,23,20,0.82), rgba(20,23,20,0)); color: #fff; }
.cn-work-tag { font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 0.15em; color: #8fc7b2; display: block; }
.cn-work-title { font-size: 15px; font-weight: 700; }
@media (max-width: 860px) { .cn-works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cn-works-grid { grid-template-columns: 1fr; } }

/* ─── お客様の声 ─────────────────────────────────────────────── */
.cn-voices { padding: 84px 0; background: #fff; }
.cn-voices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cn-voice { background: var(--cn-paper); border-radius: 2px; padding: 28px 26px; position: relative; }
.cn-voice p { font-size: 15px; color: #43403a; line-height: 2; margin-bottom: 12px; }
.cn-voice-name { font-size: 13px; color: var(--cn-forest); font-weight: 700; }
@media (max-width: 760px) { .cn-voices-grid { grid-template-columns: 1fr; } }

/* ─── 会社案内（簡易） ───────────────────────────────────────── */
.cn-about { padding: 84px 0; background: var(--cn-paper); }
.cn-about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.cn-about-list { border-top: 2px solid var(--cn-iron); }
.cn-about-list > div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 4px; border-bottom: 1px solid var(--cn-line); }
.cn-about-list dt { font-size: 13px; color: var(--cn-iron); font-weight: 700; }
.cn-about-list dd { font-size: 14px; }
.cn-about-map { aspect-ratio: 4/3; background: #e2ddd0; border-radius: 2px; overflow: hidden; }
.cn-about-map iframe { width: 100%; height: 100%; border: 0; }
.cn-map-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #9a917a; text-align: center; font-size: 13px; background: repeating-linear-gradient(45deg, #ece7da, #ece7da 10px, #e2ddd0 10px, #e2ddd0 20px); }
@media (max-width: 820px) { .cn-about-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ─── CTA／お問い合わせ ───────────────────────────────────────── */
.cn-contact { padding: 84px 0; background: var(--cn-iron); }
.cn-contact-inner { max-width: 720px; margin: 0 auto; padding: 0 22px; text-align: center; }
.cn-contact-lead { color: #d6d2c8; font-size: 15px; margin-bottom: 24px; }
.cn-form { text-align: left; }
.cn-form-row { margin-bottom: 16px; }
.cn-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cn-form label { display: block; font-size: 13px; font-weight: 700; color: #ece9e1; }
.cn-form input, .cn-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.22); border-radius: 2px; background: #fff; }
.cn-form-submit { text-align: center; margin-top: 8px; }
.cn-form-btn { background: var(--cn-forest); color: #fff; font-weight: 700; padding: 14px 48px; border-radius: 2px; }
.cn-form-note { font-size: 12px; color: #a7b6ad; text-align: center; margin-top: 14px; }
@media (max-width: 560px) { .cn-form-2 { grid-template-columns: 1fr; } }

/* ─── フッター ───────────────────────────────────────────────── */
.cn-footer { background: #161a16; color: #c2c6bd; }
.cn-footer-inner { max-width: 1200px; margin: 0 auto; padding: 54px 22px 34px; display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 40px; }
.cn-footer-name { font-weight: 900; font-size: 20px; color: #fff; }
.cn-footer-tagline { font-size: 13px; color: #9aa096; margin-top: 8px; line-height: 1.9; }
.cn-footer-info p { font-size: 13px; line-height: 1.9; }
.cn-footer-info a { color: #8fc7b2; }
.cn-footer-nav { display: flex; flex-direction: column; gap: 8px; }
.cn-footer-nav a { font-size: 13px; color: #c2c6bd; }
.cn-footer-nav a:hover { color: #fff; }
.cn-footer-bottom { background: #0f120f; padding: 14px 22px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #6f7a6e; }
.cn-footer-demo { color: #8a948a; }
@media (max-width: 820px) { .cn-footer-inner { grid-template-columns: 1fr; gap: 24px; } }
