/* ========================================
   リセットと基本スタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --primary-dark: #1a3009;
    --primary-light: #4a7c2c;
    --secondary-color: #8b6f47;
    --accent-color: #d4a574;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f8f6f3;
    --bg-white: #ffffff;
    --border-color: #e0ddd8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー / ナビゲーション
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    margin-left: 2.3rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(46, 125, 50, 0.02));
    padding: 0.4rem 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, 
        #6ba86f 0%,
        #4a9d52 25%,
        #3d8e44 50%,
        #2e7d32 75%,
        #26692e 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(ellipse at 75% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 30%),
        radial-gradient(ellipse at 35% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 40%, rgba(139, 195, 74, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 25% 80%, rgba(76, 175, 80, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 65% 85%, rgba(129, 199, 132, 0.15) 0%, transparent 25%);
    animation: sunlightShimmer 25s ease-in-out infinite;
}

@keyframes sunlightShimmer {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.75; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%23ffffff" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 50%, rgba(165, 214, 167, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(129, 199, 132, 0.1) 0%, transparent 35%),
        linear-gradient(to bottom, 
            rgba(255, 255, 255, 0.15) 0%, 
            transparent 40%, 
            rgba(0, 0, 0, 0.05) 100%
        );
    animation: overlayBreeze 20s ease-in-out infinite;
}

@keyframes overlayBreeze {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(46, 125, 50, 0.25),
        0 0 35px rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 25px rgba(165, 214, 167, 0.2));
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.98;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    color: var(--primary-color);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(255, 255, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(165, 214, 167, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.97);
    color: var(--primary-color);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 45px rgba(255, 255, 255, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: white;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); }
}

/* アニメーション */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.philosophy-box {
    position: relative;
    margin-top: 3rem;
    padding: 3rem 3.5rem;
    background: linear-gradient(to bottom, 
        #6ba86f 0%,
        #4a9d52 25%,
        #3d8e44 50%,
        #2e7d32 75%,
        #26692e 100%
    );
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(45, 80, 22, 0.3);
    overflow: hidden;
}

.philosophy-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(ellipse at 75% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 30%),
        radial-gradient(ellipse at 35% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 40%, rgba(139, 195, 74, 0.25) 0%, transparent 45%);
    animation: sunlightShimmer 25s ease-in-out infinite;
    pointer-events: none;
}

.philosophy-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 50%, rgba(165, 214, 167, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 40%, 
            rgba(0, 0, 0, 0.05) 100%
        );
    animation: overlayBreeze 20s ease-in-out infinite;
    pointer-events: none;
}

.philosophy-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.philosophy-box h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(46, 125, 50, 0.25),
        0 0 35px rgba(255, 255, 255, 0.15);
}

.philosophy-main {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.98;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.philosophy-detail {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    text-align: left;
}

.philosophy-detail p {
    font-size: 1rem;
    line-height: 1.9;
    opacity: 0.95;
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.philosophy-detail p:last-child {
    margin-bottom: 0;
}

/* ========================================
   私たちの強みセクション
   ======================================== */
.about {
    padding: 8rem 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: white;
}

.about-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.about-card:hover .about-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 地域密着型工務店カード - 特別デザイン */
.about-card-featured {
    position: relative;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(74, 124, 44, 0.05));
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(45, 80, 22, 0.15);
}

.about-card-featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--accent-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.about-card-featured:hover::before {
    opacity: 0.15;
}

.about-card-featured:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 50px rgba(45, 80, 22, 0.25);
}

.about-card-badge-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-card-badge-top i {
    font-size: 1rem;
    margin-right: 0.3rem;
}

.about-card-featured .about-card-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.2);
}

.about-card-featured:hover .about-card-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.3);
}

.about-card-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.feature-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.feature-tag i {
    font-size: 0.9rem;
}

/* 地域密着型工務店カードの特別デザイン */
.about-card-featured {
    position: relative;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border: 3px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.2);
}

.about-card-featured:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.3);
    border-color: var(--accent-color);
}

.about-card-badge-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #e6b87a);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
    z-index: 10;
}

.about-card-featured .about-card-icon {
    background: linear-gradient(135deg, var(--accent-color), #e6b87a);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    width: 90px;
    height: 90px;
    font-size: 2.3rem;
}

.about-card-featured h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.about-card-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.feature-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.feature-tag i {
    font-size: 0.9rem;
}

/* 子供たちの未来カード */
.about-card-future {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    border: 2px solid #3498db;
}

.about-card-future:hover {
    border-color: #2980b9;
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.2);
}

.badge-future {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.badge-future::before {
    content: '👶';
}

.badge-future i,
.badge-achievement i,
.badge-innovation i,
.badge-environment i,
.badge-team i {
    font-size: 1rem;
    margin-right: 0.3rem;
}

.about-card-future .about-card-icon {
    background: linear-gradient(135deg, #3498db, #5dade2);
}

/* 豊富な実績カード */
.about-card-achievement {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.05), rgba(243, 156, 18, 0.05));
    border: 2px solid #f39c12;
}

.about-card-achievement:hover {
    border-color: #e67e22;
    box-shadow: 0 12px 40px rgba(243, 156, 18, 0.2);
}

.badge-achievement {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.badge-achievement::before {
    content: '🏆';
}

.about-card-achievement .about-card-icon {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

/* 革新的技術カード */
.about-card-innovation {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05), rgba(142, 68, 173, 0.05));
    border: 2px solid #9b59b6;
}

.about-card-innovation:hover {
    border-color: #8e44ad;
    box-shadow: 0 12px 40px rgba(155, 89, 182, 0.2);
}

.badge-innovation {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.badge-innovation::before {
    content: '💡';
}

.about-card-innovation .about-card-icon {
    background: linear-gradient(135deg, #9b59b6, #bb8fce);
}

/* 環境配慮カード */
.about-card-environment {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(46, 204, 113, 0.05));
    border: 2px solid #27ae60;
}

.about-card-environment:hover {
    border-color: #229954;
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.2);
}

.badge-environment {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.badge-environment::before {
    content: '🌱';
}

.about-card-environment .about-card-icon {
    background: linear-gradient(135deg, #27ae60, #58d68d);
}

/* 専門チームカード */
.about-card-team {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.05));
    border: 2px solid #e74c3c;
}

.about-card-team:hover {
    border-color: #c0392b;
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.2);
}

.badge-team {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge-team::before {
    content: '👥';
}

.about-card-team .about-card-icon {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
}

/* 全カード共通のホバーエフェクト強化 */
.about-card-future:hover,
.about-card-achievement:hover,
.about-card-innovation:hover,
.about-card-environment:hover,
.about-card-team:hover {
    transform: translateY(-12px) scale(1.01);
    background: white;
}

.about-card-future:hover .about-card-icon,
.about-card-achievement:hover .about-card-icon,
.about-card-innovation:hover .about-card-icon,
.about-card-environment:hover .about-card-icon,
.about-card-team:hover .about-card-icon {
    transform: scale(1.12) rotate(8deg);
}

/* ========================================
   横長カードデザイン（地域密着・次世代・創業38年・革新技術・SDGs・プロ集団）
   ======================================== */
.about-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.about-card-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 140px;
}

.about-card-badge-horizontal {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: var(--transition);
}

.about-card-horizontal:hover .about-card-badge-horizontal {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.about-card-icon-horizontal {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.about-card-horizontal:hover .about-card-icon-horizontal {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.about-card-right {
    flex: 1;
}

.about-card-right h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.about-card-right p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 地域密着型工務店カード - 横長特別デザイン */
.about-card-horizontal.about-card-featured {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(245, 124, 0, 0.05));
    border: 3px solid var(--accent-color);
}

.about-card-horizontal.about-card-featured .about-card-badge-horizontal {
    background: linear-gradient(135deg, var(--accent-color), #e6b87a);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.about-card-horizontal.about-card-featured .about-card-icon-horizontal {
    background: linear-gradient(135deg, var(--accent-color), #e6b87a);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

/* 次世代カード - 横長デザイン */
.about-card-horizontal.about-card-future {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    border: 2px solid #3498db;
}

.about-card-horizontal.about-card-future .about-card-badge-horizontal {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.about-card-horizontal.about-card-future .about-card-icon-horizontal {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* 創業38年カード - 横長デザイン */
.about-card-horizontal.about-card-achievement {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 160, 0, 0.05));
    border: 2px solid #ffc107;
}

.about-card-horizontal.about-card-achievement .about-card-badge-horizontal {
    background: linear-gradient(135deg, #ffc107, #ffa000);
}

.about-card-horizontal.about-card-achievement .about-card-icon-horizontal {
    background: linear-gradient(135deg, #ffc107, #ffa000);
}

/* 革新技術カード - 横長デザイン */
.about-card-horizontal.about-card-innovation {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(123, 31, 162, 0.05));
    border: 2px solid #9c27b0;
}

.about-card-horizontal.about-card-innovation .about-card-badge-horizontal {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.about-card-horizontal.about-card-innovation .about-card-icon-horizontal {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

/* SDGsカード - 横長デザイン */
.about-card-horizontal.about-card-environment {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(27, 94, 32, 0.05));
    border: 2px solid #2e7d32;
}

.about-card-horizontal.about-card-environment .about-card-badge-horizontal {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.about-card-horizontal.about-card-environment .about-card-icon-horizontal {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

/* プロ集団カード - 横長デザイン */
.about-card-horizontal.about-card-team {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05), rgba(211, 47, 47, 0.05));
    border: 2px solid #f44336;
}

.about-card-horizontal.about-card-team .about-card-badge-horizontal {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.about-card-horizontal.about-card-team .about-card-icon-horizontal {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* ========================================
   技術力セクション
   ======================================== */
.technology {
    padding: 8rem 0;
    background: var(--bg-light);
}

.technology-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.technology-image {
    position: relative;
}

.technology-image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
    opacity: 0.9;
    box-shadow: var(--shadow);
}

.technology-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    object-fit: cover;
    display: none;
}

.technology-photo.active {
    display: block;
}

.technology-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.technology-gallery {
    position: relative;
}

.tech-gallery-main {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.tech-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.tech-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.tech-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-thumb:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tech-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.tech-gallery-hidden {
    display: none;
}

.technology-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-feature {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.tech-feature-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.tech-feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.tech-feature-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   環境配慮セクション
   ======================================== */
.environment {
    padding: 8rem 0;
    background: white;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.environment-card {
    background: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.environment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: white;
    border-color: var(--primary-light);
}

.environment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.environment-card:hover .environment-icon {
    transform: scale(1.1) rotate(10deg);
}

.environment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.environment-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.environment-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1.6rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* ========================================
   実績セクション
   ======================================== */
.projects {
    padding: 8rem 0;
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    opacity: 0.9;
}

.project-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.project-card:hover .project-photo {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-caption {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.08), rgba(46, 139, 87, 0.08));
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    display: inline-block;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.project-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.project-gallery-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.08), rgba(46, 139, 87, 0.08));
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(34, 139, 34, 0.2);
    transition: var(--transition);
}

.gallery-badge:hover {
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.12), rgba(46, 139, 87, 0.12));
    border-color: rgba(34, 139, 34, 0.3);
}

.gallery-badge i {
    font-size: 1rem;
}

/* ========================================
   コスト比較セクション
   ======================================== */
.cost-comparison {
    padding: 8rem 0;
    background: white;
}

.cost-comparison-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.cost-comparison-intro h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cost-comparison-intro p {
    color: var(--text-light);
    line-height: 1.8;
}

.cost-comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.cost-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
}

.cost-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cost-card-steel {
    border-color: #95a5a6;
}

.cost-card-steel .cost-card-header {
    color: #95a5a6;
}

.cost-card-wood {
    border-color: var(--primary-color);
    position: relative;
}

.cost-card-wood .cost-card-header {
    color: var(--primary-color);
}

.cost-card-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.cost-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cost-card-header i {
    font-size: 2.5rem;
}

.cost-card-header h3 {
    font-size: 1.8rem;
    margin: 0;
}

.cost-card-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cost-amount {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.cost-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cost-unit {
    font-size: 1.2rem;
    color: var(--text-light);
}

.cost-saving {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 10px;
    color: white;
}

.saving-badge {
    font-weight: 600;
    font-size: 1.1rem;
}

.saving-amount {
    font-size: 2rem;
    font-weight: 700;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cost-breakdown li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.cost-card-steel .cost-breakdown i {
    color: #95a5a6;
    font-size: 0.6rem;
}

.cost-card-wood .cost-breakdown i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cost-benefits {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
}

.cost-benefits h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 税制メリットセクション */
.tax-benefits-section {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 20px;
    border: 2px solid #3498db;
}

.tax-benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tax-benefits-header i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.tax-benefits-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tax-benefits-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.tax-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tax-comparison-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.tax-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tax-card-header i {
    font-size: 2rem;
    color: #3498db;
}

.tax-card-header h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
}

.tax-comparison-table {
    margin-bottom: 1.5rem;
}

.tax-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tax-row-header {
    background: var(--bg-light);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.tax-row-rc {
    background: rgba(231, 76, 60, 0.05);
}

.tax-row-steel {
    background: rgba(149, 165, 166, 0.05);
}

.tax-row-wood {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.tax-cell {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tax-amount {
    font-size: 1.2rem;
    font-weight: 600;
}

.tax-highlight {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.depreciation-comparison {
    margin-bottom: 1.5rem;
}

.depreciation-item {
    margin-bottom: 1.5rem;
}

.depreciation-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.depreciation-years {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.depreciation-highlight {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.depreciation-bar {
    height: 40px;
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.depreciation-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.depreciation-bar-highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.depreciation-rc .depreciation-bar {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.depreciation-steel .depreciation-bar {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
}

.tax-note {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.tax-note p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.tax-note p:last-child {
    margin-bottom: 0;
}

.tax-note i {
    color: #3498db;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.tax-benefits-summary {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tax-benefits-summary h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: white;
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.summary-item h5 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.summary-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 補助金セクション */
.subsidy-section {
    margin-top: 5rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.subsidy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subsidy-header i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.subsidy-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subsidy-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.subsidy-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.subsidy-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.subsidy-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.subsidy-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.subsidy-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.subsidy-table tbody tr:last-child td {
    border-bottom: none;
}

.subsidy-table tbody tr:hover {
    background: var(--bg-light);
    transition: var(--transition);
}

.subsidy-name {
    font-weight: 600;
    color: var(--primary-color);
}

.subsidy-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.subsidy-name a:hover {
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

.subsidy-name a:visited {
    color: var(--primary-color);
}

.subsidy-note {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.subsidy-note p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.subsidy-note p:last-child {
    margin-bottom: 0;
}

.subsidy-note i {
    color: var(--accent-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ========================================
   ATAハイブリッドトラス工法（施工実績セクション内）
   ======================================== */
.project-card-featured {
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.02), rgba(255, 255, 255, 1));
}

.project-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.method-badge {
    background: linear-gradient(135deg, var(--accent-color), #e6b87a);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
    letter-spacing: 0.05em;
}

.truss-method-details {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.truss-method-details h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.truss-method-details h4 i {
    color: var(--primary-color);
}

.truss-types-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.truss-type-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.truss-type-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.truss-icon-small {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.truss-info {
    flex: 1;
}

.truss-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.truss-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.truss-variants-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.truss-variants-small span {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.method-reference-images {
    margin-top: 1.5rem;
    text-align: center;
}

.reference-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.reference-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.reference-btn i {
    font-size: 1.2rem;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
    margin: 0;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
}

.modal-content h2 i {
    font-size: 2rem;
}

.modal-close {
    color: white;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.truss-reference-section {
    margin-bottom: 3rem;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.modal-image-small {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 1rem 0 1.5rem;
}

.modal-note {
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.modal-note i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.truss-diagrams-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.truss-diagrams-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-color);
}

.truss-diagrams-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.truss-example-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--bg-light);
}

.truss-example-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.truss-example-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ========================================
   ブログセクション
   ======================================== */
.blog {
    padding: 8rem 0;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-photo {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 0.8rem;
    color: var(--accent-color);
}

.blog-more {
    text-align: center;
    margin-top: 4rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    padding: 8rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 3rem 2.5rem;
    border-radius: 20px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 0.3rem;
}

.website-link:hover {
    color: var(--accent-color);
    gap: 0.8rem;
}

.website-link i {
    font-size: 0.9rem;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-link:hover {
    opacity: 0.8;
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-section li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section i {
    color: var(--accent-color);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 1024px) {
    .technology-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cost-comparison-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tax-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .about-card-horizontal {
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }
    
    .about-card-left {
        min-width: 120px;
    }
    
    .about-card-icon-horizontal {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 1.1rem;
        margin-left: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card-horizontal {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .about-card-left {
        min-width: auto;
    }
    
    .about-card-badge-horizontal {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .about-card-icon-horizontal {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .about-card-right h3 {
        font-size: 1.3rem;
    }
    
    .technology-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .cost-comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .philosophy-box {
        padding: 2rem 1.5rem;
    }
    
    .philosophy-box h3 {
        font-size: 1.4rem;
    }
    
    .philosophy-main {
        font-size: 1rem;
    }
    
    .philosophy-detail p {
        font-size: 0.9rem;
    }
    
    .about,
    .technology,
    .environment,
    .cost-comparison,
    .projects,
    .blog,
    .contact {
        padding: 4rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cost-benefits {
        padding: 2rem;
    }
    
    .cost-card {
        padding: 2rem 1.5rem;
    }
    
    .subsidy-section {
        padding: 2rem 1.5rem;
    }
    
    .subsidy-table {
        font-size: 0.85rem;
    }
    
    .subsidy-table th,
    .subsidy-table td {
        padding: 0.8rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
    }
    
    .tech-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .environment-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-value {
        font-size: 1.8rem;
    }
    
    .cost-comparison-intro {
        padding: 1.5rem;
    }
    
    .subsidy-header h3 {
        font-size: 1.5rem;
    }
    
    .subsidy-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .subsidy-table {
        min-width: 600px;
    }
    
    .about-card-badge-top {
        font-size: 0.8rem;
        padding: 0.4rem 1.5rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .about-card-featured .about-card-icon {
        width: 85px;
        height: 85px;
        font-size: 2rem;
    }
    
    .tax-benefits-section {
        padding: 2rem 1.5rem;
    }
    
    .tax-comparison-card {
        padding: 1.5rem;
    }
    
    .tax-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tax-cell {
        justify-content: flex-start;
        padding: 0.3rem 0;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .depreciation-years {
        font-size: 1.5rem;
    }
    
    .depreciation-highlight {
        font-size: 1.8rem;
    }
    
    .truss-type-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    
    .truss-icon-small {
        margin: 0 auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .reference-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   スクロールアニメーション用
   ======================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}
