:root {
    --primary: #2c5aa0;
    --secondary: #4a7dc7;
    --dark: #1a1a1a;
    --light: #f5f7fa;
    --accent: #ff6b35;
    --warning: #ffa500;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    z-index: 101;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.05em;
}

/* ナビゲーション */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
                linear-gradient(135deg, #1a3a52, #2c5aa0);
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
    opacity: 0.2;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* セクション共通 */
.section {
    padding: 5rem 1rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

/* 特徴セクション */
.features {
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-item p {
    margin-top: auto;
}

/* 仕様セクション */
.specs {
    background-color: var(--light);
}

.spec-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.spec-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.spec-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.spec-table table,
.product-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.spec-table th,
.spec-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.spec-table th {
    background: var(--light);
    font-weight: 600;
    width: 40%;
}

.product-table th,
.product-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.product-table thead {
    background: var(--primary);
    color: white;
}

.product-table .product-code {
    font-weight: bold;
    color: var(--primary);
}

.product-table .new-standard {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* 性能証明書セクション */
.certifications {
    background-color: white;
}

.cert-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cert-group {
    width: 100%;
}

.cert-group h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.cert-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent);
}

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

.cert-item {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cert-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.cert-item h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: #666;
    font-weight: 500;
}

.cert-info {
    text-align: center;
    padding: 2rem;
    background: #e8f0fe;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.cert-info p {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

/* 営業所選択セクション */
.branch-selector {
    background-color: white;
    padding: 5rem 1rem;
}

.branch-section {
    background-color: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 0 auto;
    max-width: 800px;
}

.region-select {
    margin: 0 auto 2rem;
    text-align: center;
}

.region-select label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.region-select select {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.region-branches {
    animation: fadeIn 0.3s ease;
}

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

.branch-list {
    max-width: 600px;
    margin: 0 auto;
}

.branch-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.branch-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.branch-info {
    flex: 1;
}

.branch-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.branch-phone {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
}

.call-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.call-button:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

/* CTA セクション */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* フッター */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    text-decoration: none;
    font-size: 1.5rem;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
    .spec-wrapper {
        grid-template-columns: 1fr;
    }
    
    .spec-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .branch-info {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .call-button {
        width: 100%;
        justify-content: center;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .spec-table th,
    .spec-table td,
    .product-table th,
    .product-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .product-table {
        font-size: 0.85rem;
    }
}

/* PCの場合は電話ボタンを非表示 */
@media (min-width: 769px) {
    .call-button {
        display: none;
    }
}

/* モバイル用営業所ボタン */
.mobile-branch-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-branch-button:hover {
    background-color: var(--warning);
    transform: scale(1.05);
}