:root {
    --primary: #333333;
    --secondary: #555555;
    --accent: #ffcc00;
    --danger: #ff3333;
    --success: #00cc66;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #888888;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

.logo {
    z-index: 101;
}

.logo img {
    height: 40px;
    width: auto;
}

.hero-logo {
  display: block;
  margin: 0 auto 20px;  /* 中央寄せ＆下に余白 */
  width: 600px;         /* お好きな横幅に調整 */
  height: auto;         /* アスペクト比を維持 */
  max-width: 90%;       /* モバイル対応に幅制限を追加する場合 */
}

/* ナビゲーション */
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 {
    min-height: 100vh;
    background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 6rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-feature {
    margin-bottom: 3rem;
}

.spec-large {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.voltage-table {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.voltage-table table {
    width: 100%;
    border-collapse: collapse;
}

.voltage-table th,
.voltage-table td {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.voltage-table th:last-child,
.voltage-table td:last-child {
    border-right: none;
}

.voltage-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
}

.voltage-table tr:first-child th:first-child {
    background: rgba(0, 0, 0, 0.5);
}

.voltage-table td {
    font-size: 1.1rem;
}

.voltage-table .highlight {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.3rem;
}

/* セクション共通 */
.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, 3rem);
    font-weight: 700;
    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: var(--light);
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

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

.feature-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* 製品セクション */
.products {
    background-color: white;
}

/* PDFダウンロードボタン */
.pdf-download {
    text-align: center;
    margin-bottom: 3rem;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--accent), #ffdd44);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.pdf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
    background: linear-gradient(135deg, #ffdd44, var(--accent));
}

.pdf-icon {
    font-size: 1.5rem;
}

.product-category {
    margin-bottom: 3rem;
}

.product-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}

/* 空調服（ベスト・半袖・長袖）のグリッドレイアウト */
.products-clothing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

/* バッテリー・ファンユニットのグリッドレイアウト */
.products-units {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.product-grid {
    display: flex;
    flex-direction: column;
}

.product-item {
    background: var(--light);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.product-item.new .product-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(255, 51, 51, 0.3);
}

.product-item h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-image img {
    max-width: 200px;
    height: auto;
}

.product-features {
    margin: 1rem 0;
    padding: 0;
}

.product-features p {
    line-height: 1.8;
    color: var(--gray);
    font-size: 0.95rem;
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-features-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.product-features-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    top: 0;
}

.product-features-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

.product-specs {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-colors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.color-item {
    text-align: center;
}

.color-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.color-item span {
    font-size: 0.85rem;
    color: var(--gray);
}

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

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

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

.spec-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.spec-table th {
    background: var(--primary);
    color: white;
    width: 35%;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* 営業所選択セクション */
.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(--accent);
}

.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(--accent);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.call-button:hover {
    background-color: #ffdd44;
    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(--accent);
    color: var(--dark);
    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: #ffdd44;
    transform: scale(1.1);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;     /* 500px → 90% に変更 */
    max-height: 90vh;   /* 70vh → 90vh に変更 */
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent);
    text-decoration: none;
}

#modalCaption {
    margin: 20px auto 0;
    display: block;
    width: 90%;       /* 80% → 90% */
    max-width: 90%;   /* 500px → 90% */
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
}

/* アニメーション */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
    .spec-tables {
        grid-template-columns: 1fr;
    }
    
    /* タブレット対応 */
    .products-clothing {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-units {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-colors {
        grid-template-columns: repeat(4, 1fr);
    }
}

@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(--dark);
        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.3);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .voltage-table {
        font-size: 0.85rem;
    }
    
    .voltage-table th,
    .voltage-table td {
        padding: 0.5rem;
    }
    
    .product-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;
    }
    
    .product-colors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-table {
        font-size: 0.9rem;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 0.7rem;
    }
    
    .product-category h3 {
        font-size: 1.5rem;
    }
    
    .product-item h4 {
        font-size: 1.5rem;
    }
    
    /* PDFボタンのモバイル対応 */
    .pdf-button {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
        width: 90%;
        max-width: 300px;
    }
    
    .pdf-icon {
        font-size: 1.2rem;
    }
}

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

/* モバイル用営業所ボタン */
.mobile-branch-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    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: #ffdd44;
    transform: scale(1.05);
}