/* ==========================================================================
   K'works設備 - トップページスタイル
   ========================================================================== */

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

:root {
    /* カラー */
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --secondary-color: #7FC8F8;
    --accent-color: #5DADE2;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --text-light: #95A5A6;
    --bg-white: #FFFFFF;
    --bg-light: #F8FCFF;
    --bg-blue-light: #E8F4FD;
    --border-color: #E1E8ED;

    /* タイポグラフィ */
    --font-main: 'Hiragino Sans', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    --font-en: 'Helvetica Neue', Arial, sans-serif;

    /* スペーシング */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;

    /* トランジション */
    --transition-default: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

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

/* セクションタイトル
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-en {
    display: block;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title-ja {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ボタン
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    transition: var(--transition-default);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

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

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

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

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

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-default);
}

.logo img:hover {
    opacity: 0.8;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-default);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition-default);
}

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

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

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

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition-default);
    border-radius: 3px;
}

/* ヒーローセクション
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.hero-slide.active {
    opacity: 1;
}

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

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title-sub {
    display: block;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--bg-white);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--bg-white);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: bounce 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--bg-white), transparent);
}

/* 強みセクション
   ========================================================================== */
.strengths {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

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

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

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    border-color: var(--secondary-color);
}

.strength-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: var(--bg-white);
}

.strength-icon svg {
    width: 35px;
    height: 35px;
}

.strength-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.strength-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* サービス紹介セクション
   ========================================================================== */
.services-preview {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-default);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 施工事例プレビューセクション
   ========================================================================== */
.works-preview {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.works-preview-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.works-preview-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.works-preview-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.works-preview-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.works-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works-preview-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    z-index: 2;
}

.works-preview-label.before {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--bg-white);
}

.works-preview-label.after {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
}

.works-preview-arrow {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.works-preview-text {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.works-preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.works-preview-description {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-gray);
}

/* お客様の声セクション
   ========================================================================== */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

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

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-default);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* CTAセクション
   ========================================================================== */
.cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.cta-phone,
.cta-line {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition-default);
    text-decoration: none;
    color: var(--bg-white);
}

.cta-phone:hover,
.cta-line:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.cta-icon {
    width: 50px;
    height: 50px;
    color: var(--bg-white);
    flex-shrink: 0;
}

.cta-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.cta-phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
    display: block;
}

.cta-phone-number:hover {
    opacity: 0.9;
}

.cta-line-button {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-white);
}

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

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

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-default);
    font-size: 0.95rem;
}

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

.footer-phone a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: var(--transition-default);
}

.footer-phone a:hover {
    color: var(--secondary-color);
}

.footer-hours {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* レスポンシブデザイン
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title-main {
        font-size: 2.5rem;
    }

    .hero-title-sub {
        font-size: 1.8rem;
    }

    .section-title-ja {
        font-size: 1.7rem;
    }
}

@media (max-width: 992px) {
    .works-preview-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .works-preview-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 82px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: var(--transition-default);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1.2rem 0;
        font-size: 1rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title-main {
        font-size: 2rem;
    }

    .hero-title-sub {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .strengths-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-contact {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title-main {
        font-size: 1.7rem;
    }

    .hero-title-sub {
        font-size: 1.3rem;
    }

    .section-title-ja {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .strength-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}
