/* ============================
   リセット & ベーススタイル
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --accent-orange: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --border-light: #e0e0e0;
    --white: #ffffff;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* スマホ専用改行 */
.mobile-br {
    display: none;
}

/* ============================
   ヘッダー
============================ */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* ロゴ画像 */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 65px !important;
    width: auto !important;
    max-height: 65px;
    display: block;
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* モバイルメニューボタン */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ============================
   メインビジュアル（スライドショー）
============================ */
.hero-slideshow {
    position: relative;
    height: 800px;
    overflow: hidden;
}

/* スライドショーコンテナ */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* オーバーレイ（暗くして文字を読みやすく） */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.3) 0%, rgba(0, 82, 163, 0.3) 100%);
    z-index: 1;
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* スライドインジケーター */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-weight: 300;
}

.scroll-indicator i {
    font-size: 14px;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* 他のページのヒーロー（会社概要、業務内容など） */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23ffffff" opacity="0.05" width="1200" height="600"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   ボタン
============================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e55500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* ============================
   セクション共通
============================ */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--bg-light);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.8;
}

/* ============================
   会社紹介セクション
============================ */
.company-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 2;
    font-size: 16px;
    color: var(--text-dark);
}

/* ============================
   業務内容カード
============================ */

/* メインカード（空調設備工事） */
.business-main-card {
    display: flex;
    gap: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 102, 204, 0.3);
    margin-bottom: 50px;
    min-height: 350px;
}

.business-main-image {
    flex: 0 0 45%;
    overflow: hidden;
}

.business-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.business-main-content {
    flex: 1;
    padding: 50px 0 50px 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.business-main-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--white);
}

.business-main-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    letter-spacing: 4px;
    text-align: center;
}

.business-main-description {
    font-size: 18px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

/* サブグリッド（その他3つの業務） */
.business-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.business-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.business-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.business-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ============================
   選ばれる理由
============================ */
.reasons-container {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.reasons-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.reasons-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 82, 163, 0.1) 100%);
}

.reasons-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.reasons-image:hover img {
    transform: scale(1.05);
}

.reasons-content {
    flex: 1;
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reason-item {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
    color: var(--white);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reason-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
}

.reason-item i {
    font-size: 28px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.reason-item span {
    flex: 1;
}

/* ============================
   フッター
============================ */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 50px 20px 30px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
}

.footer-section p,
.footer-section address {
    font-size: 14px;
    line-height: 1.8;
    font-style: normal;
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================
   ページトップへ戻るボタン
============================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #e55500;
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* ============================
   レスポンシブ対応
============================ */
@media (max-width: 1024px) {
    /* 業務内容メインカードをタブレットで縦並び */
    .business-main-card {
        flex-direction: column;
        min-height: auto;
    }

    .business-main-image {
        flex: 0 0 300px;
        order: -1;
    }

    .business-main-content {
        padding: 40px;
    }

    .business-main-title {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .business-main-description {
        font-size: 17px;
        line-height: 2;
    }

    /* サブグリッドを2列に */
    .business-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 選ばれる理由（タブレット） */
    .reasons-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reasons-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    /* スマホ専用改行を表示 */
    .mobile-br {
        display: inline;
    }

    /* ヘッダー調整 */
    .header-container {
        padding: 8px 15px;
        position: relative;
    }

    .logo-link {
        flex: 1;
    }

    .logo-image {
        height: 50px !important;
        max-height: 50px;
    }

    /* モバイルメニュー表示 */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
    }

    /* ヒーローセクション（スライドショー） */
    .hero-slideshow {
        height: 600px;
    }

    /* ヒーローセクション（他のページ） */
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 1.5px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* スクロールインジケーター（スマホ） */
    .scroll-indicator {
        bottom: 20px;
        font-size: 10px;
    }

    .scroll-indicator i {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* セクション */
    .section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 28px;
    }

    /* 業務内容メインカード */
    .business-main-card {
        flex-direction: column;
        min-height: auto;
    }

    .business-main-image {
        flex: 0 0 250px;
        order: -1;
    }

    .business-main-content {
        padding: 30px 20px;
    }

    .business-main-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .business-main-title {
        font-size: 28px;
        margin-bottom: 15px;
        letter-spacing: 2px;
    }

    .business-main-description {
        font-size: 16px;
        line-height: 2;
    }

    /* サブグリッド */
    .business-sub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 選ばれる理由（スマホ） */
    .reasons-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reasons-image {
        max-height: 300px;
    }

    .reason-item {
        font-size: 17px;
        padding: 20px 25px;
        gap: 12px;
    }

    .reason-item i {
        font-size: 24px;
    }

    /* フッター */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo-en {
        font-size: 18px;
    }

    .logo-ja {
        font-size: 10px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }
}
