/* ベース設定 */
:root {
    --primary-color: #9e7a5b; /* 上品な木の色 */
    --dark-color: #14213d; /* 深みのあるネイビー */
    --light-bg: #f8f9fa; /* 清潔感のあるライトグレー */
    --accent-color: #c9a66b; /* リッチなゴールドベージュ */
    --alert-color: #fdf2f2; /* 警告エリアの背景色（薄い赤） */
    --text-color: #333;
    --white: #ffffff;
    --cta-color: #d35400;
}

/* スムーススクロール設定（固定ヘッダー対策込み） */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* 固定ヘッダーの高さ分ずらす */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.9;
    background-color: var(--white);
    padding-bottom: 60px;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 共通レイアウト */
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-padding { padding: 120px 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }
a { text-decoration: none; color: inherit; transition: all 0.4s ease; }
img { max-width: 100%; height: auto; display: block; }
.mt-50 { margin-top: 50px; }

/* ギミック用クラス */
.hover-up { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.hover-up:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.hover-shadow { transition: box-shadow 0.4s ease; }
.hover-shadow:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255,255,255,0.3); transform: rotate(45deg); transition: all 0.6s;
}
.shine-effect:hover::after { left: 120%; transition: all 0.6s ease-in-out; }
.hover-fill {
    background: linear-gradient(to right, var(--dark-color) 50%, transparent 50%);
    background-size: 200% 100%; background-position: right bottom; transition: all 0.4s ease-out;
}
.hover-fill:hover { background-position: left bottom; color: var(--white); }

/* ヘッダー */
.header {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    transition: all 0.4s;
}
.header.scrolled { height: 70px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.header-inner {
    display: flex; justify-content: space-between; align-items: center; height: 90px; transition: all 0.4s;
}
.header.scrolled .header-inner { height: 70px; }
.logo { font-size: 1.8rem; color: var(--dark-color); display: flex; flex-direction: column; line-height: 1; }
.logo-sub { font-size: 0.75rem; color: var(--primary-color); font-family: 'Noto Sans JP', sans-serif; letter-spacing: 0.15em; margin-top: 5px; }
.header-right { display: flex; align-items: center; gap: 40px; }
.header-phone { text-align: right; }
.tel-label { display: block; font-size: 0.75rem; color: #666; margin-bottom: 0; }
.tel-number { font-size: 1.5rem; font-weight: bold; color: var(--dark-color); font-family: 'Lato', sans-serif; letter-spacing: 0.05em; }
.tel-number i { color: var(--primary-color); font-size: 1.1rem; margin-right: 8px; }
.nav-list { display: flex; list-style: none; align-items: center; gap: 20px; }
.nav-list a { color: var(--dark-color); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-list a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--primary-color); transition: width 0.3s;
}
.nav-list a:not(.btn-header-cta):hover::after { width: 100%; }
.btn-header-cta {
    background: var(--cta-color); color: var(--white) !important;
    padding: 12px 25px; border-radius: 50px; font-weight: bold; letter-spacing: 0.05em;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3); white-space: nowrap;
}
.btn-header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(211, 84, 0, 0.4); }

/* ヒーローセクション */
.hero {
    position: relative; height: 100vh; min-height: 700px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}
.slide.active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 6s linear; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(20, 33, 61, 0.4), rgba(20, 33, 61, 0.7)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 30px; margin-top: 60px; }
.hero-tagline { font-size: 1.2rem; letter-spacing: 0.3em; margin-bottom: 25px; display: inline-block; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; font-weight: bold; }
.hero-title { font-size: 4rem; line-height: 1.25; margin-bottom: 35px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.hero-text { font-size: 1.2rem; margin-bottom: 45px; opacity: 0.95; font-weight: 500; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-block; background: var(--cta-color); color: var(--white); padding: 20px 50px; border-radius: 50px;
    font-size: 1.2rem; font-weight: bold; letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.btn-primary:hover { transform: translateY(-3px); background: #e67e22; box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.btn-secondary-hero {
    display: inline-block; background: rgba(255,255,255,0.15); border: 2px solid #fff; color: #fff;
    padding: 18px 40px; border-radius: 50px; font-weight: bold; backdrop-filter: blur(5px);
}
.scrolldown {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff;
}
.scrolldown span {
    position: relative; overflow: hidden; display: inline-block; padding-bottom: 20px; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scrolldown span::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 2px; height: 20px; background: #fff;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 実績カウンター */
.stats-bar { background: var(--dark-color); color: var(--white); padding: 60px 0; position: relative; z-index: 10; margin-top: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item { border-right: 1px solid rgba(255,255,255,0.15); padding: 10px 0; }
.stat-item:last-child { border-right: none; }
.stat-label { display: block; font-size: 1rem; opacity: 0.8; margin-bottom: 10px; letter-spacing: 0.1em; }
.stat-number { font-size: 3.5rem; font-weight: bold; font-family: 'Lato', sans-serif; color: var(--accent-color); line-height: 1; }
.stat-number .unit, .stat-number .plus { font-size: 1.5rem; margin-left: 5px; color: #fff; }
.stat-text { font-size: 1.5rem; font-weight: bold; line-height: 1.5; display: block; padding-top: 15px; }

/* 見出し共通 */
.section-header { margin-bottom: 80px; }
.en-title {
    display: block; color: var(--primary-color); font-size: 1rem; letter-spacing: 0.3em;
    text-transform: uppercase; margin-bottom: 15px; font-weight: bold; font-family: 'Lato', sans-serif;
}
.section-header h2 { font-size: 2.8rem; color: var(--dark-color); line-height: 1.4; margin-bottom: 20px; }
.section-header p { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; }

/* 悩みセクション */
.section-heading-sm { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 20px; font-weight: bold; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.problem-card {
    background: var(--white); padding: 50px 40px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); text-align: center; border-top: 4px solid var(--primary-color);
}
.problem-card i { font-size: 4rem; color: #e0d5c9; margin-bottom: 25px; transition: 0.4s; }
.problem-card:hover i { color: var(--primary-color); transform: scale(1.1); }
.problem-card h4 { font-size: 1.5rem; margin-bottom: 20px; color: var(--dark-color); }
.problem-card p { font-size: 1.05rem; color: #666; }

/* 【新】リスク啓蒙セクション */
.bg-alert { background-color: var(--alert-color); }
.alert-color { color: #c0392b !important; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.risk-item {
    background: #fff; padding: 40px 30px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center;
}
.risk-icon { font-size: 3rem; color: #e74c3c; margin-bottom: 20px; }
.risk-item h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--dark-color); }
.risk-item p { font-size: 0.95rem; color: #555; line-height: 1.7; }
.risk-cta { margin-top: 50px; }
.risk-message { font-size: 1.2rem; font-weight: bold; margin-bottom: 30px; color: var(--dark-color); }

/* LBウッドセクション */
.lb-wood { position: relative; overflow: hidden; }
.lb-wood::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 70%;
    background: var(--light-bg); z-index: -1; transform: skewY(-3deg); transform-origin: top left;
}
.lb-wood-wrapper { display: flex; align-items: center; gap: 80px; }
.lb-wood-content { flex: 1; }
.lb-wood-image { flex: 1; position: relative; perspective: 1000px; }
.lb-wood-image img {
    width: 100%; border-radius: 15px; box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transform: rotateY(-5deg); transition: transform 0.5s;
}
.lb-wood-image:hover img { transform: rotateY(0deg); }
.tag {
    background: var(--dark-color); color: var(--white); padding: 8px 18px; font-size: 0.85rem;
    font-weight: bold; border-radius: 4px; display: inline-block; margin-bottom: 25px; letter-spacing: 0.1em;
}
.lb-wood-content h2 { font-size: 2.8rem; margin-bottom: 30px; line-height: 1.3; color: var(--dark-color); }
.lb-features { list-style: none; margin: 40px 0; }
.lb-features li { margin-bottom: 20px; font-size: 1.15rem; display: flex; align-items: center; font-weight: 500; }
.lb-features i { color: var(--primary-color); margin-right: 20px; font-size: 1.3rem; }
.btn-secondary {
    display: inline-block; border: 2px solid var(--dark-color); color: var(--dark-color);
    padding: 18px 40px; border-radius: 50px; font-weight: bold; transition: 0.4s; letter-spacing: 0.05em;
}
.floating-badge {
    position: absolute; top: -30px; right: -30px; background: linear-gradient(135deg, var(--accent-color), #e0c392);
    color: var(--white); width: 110px; height: 110px; border-radius: 50%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; font-weight: bold; box-shadow: 0 10px 25px rgba(197, 164, 126, 0.5);
    text-align: center; line-height: 1.2; font-size: 1.1rem; z-index: 2;
}
.flicker { animation: flickerAnimation 3s infinite; }
@keyframes flickerAnimation { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.05); box-shadow: 0 15px 35px rgba(197, 164, 126, 0.7); } }

/* 施工事例 */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.work-item {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hover-zoom .work-imgbox { overflow: hidden; height: 280px; }
.hover-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hover-zoom:hover img { transform: scale(1.1); }
.work-info { padding: 30px; }
.category { font-size: 0.85rem; color: var(--primary-color); display: block; margin-bottom: 10px; font-weight: bold; }
.work-info h4 { font-size: 1.4rem; color: var(--dark-color); }
.note-text { color: #999; font-size: 0.9rem; }

/* スタッフ紹介 */
.team-lead { font-size: 1.2rem; font-weight: bold; color: var(--dark-color); margin-bottom: 60px; }
.team-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; row-gap: 60px;
}
.team-member { text-align: center; }
.member-imgbox {
    width: 180px; height: 180px; margin: 0 auto 25px; border-radius: 50%; overflow: hidden;
    border: 5px solid var(--white); box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: all 0.4s ease;
}
.team-member:hover .member-imgbox { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); border-color: var(--primary-color); }
.member-imgbox img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.team-member:hover img { transform: scale(1.1); }
.member-info .role {
    display: block; font-size: 0.9rem; color: var(--primary-color); font-weight: bold; margin-bottom: 5px; letter-spacing: 0.1em;
}
.member-info h4 { font-size: 1.3rem; color: var(--dark-color); }

/* お客様の声 */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.review-card {
    background: var(--white); padding: 40px; border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.review-stars { color: var(--accent-color); margin-bottom: 20px; letter-spacing: 3px; font-size: 1.1rem; }
.review-title { font-size: 1.3rem; margin-bottom: 20px; border-bottom: 2px dotted #eee; padding-bottom: 20px; color: var(--dark-color); }
.review-text { font-size: 1.05rem; color: #555; margin-bottom: 25px; line-height: 1.8; }
.review-meta { display: flex; align-items: center; }
.reviewer-icon, .reviewer-icon-placeholder { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 15px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.reviewer-icon-placeholder { background: #ddd; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.reviewer-info .name { font-weight: bold; font-size: 0.95rem; color: var(--dark-color); }


/* コンタクトフォーム（スマホ対応強化） */
.contact { background: linear-gradient(to bottom, var(--white), var(--light-bg)); }
.contact-box {
    background: var(--white); padding: 80px 60px; border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); max-width: 900px; margin: 0 auto;
}
.contact-phone-area {
    background: #fffaf0; border: 2px dashed var(--accent-color); padding: 40px; border-radius: 12px; margin-bottom: 50px;
}
.phone-guide { font-weight: bold; margin-bottom: 15px; color: var(--dark-color); font-size: 1.1rem; }
.phone-big {
    font-size: 3.5rem; font-weight: bold; color: var(--dark-color); display: block;
    margin-bottom: 10px; font-family: 'Lato', sans-serif; transition: color 0.3s;
    line-height: 1.2;
}
.phone-big:hover { color: var(--cta-color); }
.phone-big i { color: var(--cta-color); font-size: 2.5rem; vertical-align: middle; margin-right: 15px; }
.phone-note { font-size: 1rem; color: #666; }

.form-row { display: flex; gap: 30px; }
.form-group { margin-bottom: 30px; flex: 1; }
.form-group label { display: block; margin-bottom: 10px; font-weight: bold; font-size: 1rem; color: var(--dark-color); }
.badge-required { background: var(--cta-color); color: #fff; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
input, textarea {
    width: 100%; padding: 18px; border: 2px solid #eee; border-radius: 8px; font-size: 1.05rem; background: #fdfdfd; transition: all 0.3s;
}
input:focus, textarea:focus { border-color: var(--primary-color); background: var(--white); outline: none; box-shadow: 0 5px 15px rgba(158, 122, 91, 0.1); }
.captcha-area { background: #f8f9fa; padding: 25px; border-radius: 8px; margin-bottom: 40px; border: 1px solid #eee; }
.captcha-flex { display: flex; align-items: center; gap: 20px; margin-top: 15px; }
.captcha-code {
    font-size: 1.8rem; font-weight: bold; letter-spacing: 8px; background: #fff;
    padding: 10px 30px; border: 2px solid #ddd; user-select: none; color: var(--dark-color);
    font-family: 'Shippori Mincho', serif; white-space: nowrap; /* 縦書き防止 */
}
.captcha-field { width: 200px !important; text-align: center; }
.btn-submit {
    width: 100%; max-width: 450px; display: block; margin: 0 auto; background: var(--dark-color); color: var(--white);
    padding: 20px; border: none; border-radius: 50px; font-size: 1.3rem; font-weight: bold; cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); letter-spacing: 0.1em;
}
.btn-submit:hover { background: var(--cta-color); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(211, 84, 0, 0.3); }
.alert { padding: 20px; margin-bottom: 30px; border-radius: 8px; text-align: center; font-weight: bold; }
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* Footer */
.footer { background: var(--dark-color); color: #aaa; padding: 80px 0 100px; }
.footer-content {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; margin-bottom: 30px;
}
.footer-logo h3 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.footer-tel { font-size: 1.8rem; color: var(--white); font-weight: bold; margin-top: 15px; font-family: 'Lato', sans-serif; }
.footer-links { display: flex; gap: 40px; }
.footer-links a { color: #aaa; font-weight: 500; position: relative; }
.footer-links a::after {
    content: ''; position: absolute; width: 0; height: 1px; bottom: -5px; left: 0; background: var(--white); transition: width 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::after { width: 100%; }
.copyright { text-align: center; font-size: 0.9rem; opacity: 0.7; }


/* スマホ用追従フッター */
.sticky-footer {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
    display: flex; height: 70px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.sticky-btn {
    flex: 1; display: flex; justify-content: center; align-items: center;
    color: #fff; font-weight: bold; font-size: 1.1rem; transition: background 0.3s;
}
.tel-btn { background: #2ecc71; } .tel-btn:hover { background: #27ae60; }
.mail-btn { background: var(--cta-color); } .mail-btn:hover { background: #e67e22; }
.sticky-btn i { margin-right: 8px; font-size: 1.3rem; }

/* アニメーション用クラス */
.fade-in-up, .fade-in-left, .fade-in-right { opacity: 0; transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-in-up { transform: translateY(50px); }
.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }
.visible { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; } .delay-3 { transition-delay: 0.6s; } .delay-4 { transition-delay: 0.8s; }


/* レスポンシブ対応（スマホレイアウト修正） */
.sp-only { display: none; }
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; } .stat-number { font-size: 3rem; }
    .stats-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .lb-wood-wrapper { gap: 40px; } .lb-wood-content h2 { font-size: 2.5rem; }
    .works-grid, .reviews-grid, .problem-grid, .risk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pc-only { display: none; } .sp-only { display: flex; }
    .header-inner { height: 70px; justify-content: center; } .logo { font-size: 1.5rem; align-items: center; }
    .hero { min-height: 600px; } .hero-title { font-size: 2rem; } .hero-text { font-size: 1rem; }
    .btn-primary { padding: 15px 30px; font-size: 1rem; width: 80%; text-align: center; } .hero-btns { flex-direction: column; align-items: center; }
    .section-padding { padding: 80px 0; } .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 1rem; color: #666; max-width: 700px; margin: 0 auto; }
    .risk-item p { font-size: 0.85rem; color: #555; line-height: 1.7; }
    .risk-message { font-size: 1rem; font-weight: bold; margin-bottom: 30px; color: var(--dark-color); }
    .stats-grid, .team-grid, .works-grid, .reviews-grid, .problem-grid, .risk-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 30px; }
    .lb-wood-wrapper { flex-direction: column; } .lb-wood-image { order: -1; margin-bottom: 30px; }
    
    /* フォーム周りのスマホ修正（重要） */
    .contact-box { padding: 40px 20px; } 
    .form-row { flex-direction: column; gap: 0; }
    /* キャプチャ修正 */
    .captcha-flex { flex-wrap: wrap; justify-content: center; gap: 15px; } 
    .captcha-code { font-size: 1.5rem; letter-spacing: 5px; width: 100%; box-sizing: border-box; }
    .captcha-field { width: 100% !important; max-width: 100%; }
    /* 電話番号ボックス修正 */
    .phone-big { font-size: 1.8rem; word-break: break-all; } .phone-big i { font-size: 1.8rem; }
    .contact-phone-area { padding: 25px 15px; }

    .footer-content { flex-direction: column; text-align: center; gap: 40px; } .footer-links { flex-direction: column; gap: 20px; align-items: center; }
}