/* 
 * GSK株式会社 スタイルシート
 * 作成日: 2024年
 */

/* ===== 基本設定 ===== */
:root {
    /* メインカラー（ミントグリーン系） - 70% */
    --primary-color: #4ECDC4;
    /* セカンダリーカラー（グレー系） - 25% */
    --secondary-color: #292F36;
    /* アクセントカラー（ライトグリーン） - 5% */
    --accent-color: #A3F7BF;
    /* 背景色 */
    --bg-color: rgba(255, 255, 255, 0.7);
    /* 薄いグレー */
    --light-gray: rgba(247, 247, 247, 0.7);
    /* テキストカラー */
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-image: url('img/skyline-background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--bg-color);
    visibility: visible !important; /* JavaScriptで隠されないようにする */
    overflow-x: hidden; /* 水平スクロールを防ぐ */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-padding {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.accent {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== ヘッダー ===== */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    transition: all 0.8s ease;
    top: 0;
    left: 0;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

header.fade-in {
    opacity: 1;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    flex-direction: row;
}

.logo {
    display: flex;
    align-items: center;
    flex: none;
    order: 1;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1;
}

.logo img {
    height: 50px;
}

/* デスクトップ版ナビゲーション */
nav {
    display: block;
    order: 2;
    margin-left: auto;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.contact-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 30px;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
}

/* ハンバーガーメニューボタン - デスクトップでは非表示 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ===== ヒーローセクション ===== */
#hero {
    padding-top: 64px;
    min-height: 68vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--light-gray);
    opacity: 0;
    transition: opacity 0.8s ease;
}

#hero.hidden {
    opacity: 0;
}

#hero.fade-in {
    opacity: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
}

.hero-heading {
    margin-bottom: 30px;
}

.hero-title-1, .hero-title-2, .hero-title-3 {
    font-size: 48.4px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-title-2 {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 21.8px;
    line-height: 1.6;
    margin-bottom: 44px;
}

.hero-images {
    flex: 1;
    max-width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    position: relative;
}

.image-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 242px;
    object-fit: cover;
    display: block;
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(41, 47, 54, 0.7);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
}

.card-1 {
    grid-column: 1;
    grid-row: 1;
}

.card-2 {
    grid-column: 2;
    grid-row: 1;
}

.card-3 {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.card-3 img {
    height: 302px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 13px 27px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17.6px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(41, 47, 54, 0.3);
}

.cta-btn i {
    margin-left: 10px;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        padding: 32px 20px;
    }
    
    .hero-text, .hero-images {
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-text {
        margin-bottom: 44px;
        text-align: center;
    }
    
    .hero-title-1, .hero-title-2, .hero-title-3 {
        font-size: 38.7px;
    }

    /* サービス内容のタブレット対応 */
    .service-row {
        gap: 40px;
        margin-bottom: 60px;
    }

    .service-image {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .service-image img {
        height: 280px;
    }

    .service-content h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .service-description p {
        font-size: 15px;
        line-height: 1.7;
    }

    .representative-support {
        padding: 15px;
    }

    .representative-support span {
        font-size: 14px;
    }
    
    /* 品質と信頼 - 大きめタブレット対応 */
    .quality-content {
        gap: 40px;
    }
    
    .quality-text {
        min-width: 280px;
        padding-right: 15px;
    }
    
    .quality-text h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .quality-text h3:first-child {
        margin-top: 0;
    }
    
    .quality-text p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .quality-image {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        font-size: 14px;
    }
    
    .flow-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .flow-item {
        padding: 15px;
        min-width: auto;
        height: 230px;
    }
    
    .flow-line {
        top: 45px;
    }
    
    .flow-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .flow-content h3 {
        font-size: 16px;
    }
    
    .flow-content p {
        font-size: 13px;
    }
    
    header .container {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .hero-title-1, .hero-title-2, .hero-title-3 {
        font-size: 33.9px;
    }
    
    .hero-subtitle {
        font-size: 19.4px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* サービス内容のスマートフォン対応 */
    .service-intro {
        margin-bottom: 40px;
    }

    .service-intro-text {
        font-size: 16px;
        padding: 0 10px;
    }

    .service-row,
    .service-row-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
        transform: translateY(50px);
    }

    .service-row.visible,
    .service-row-reverse.visible {
        transform: translateY(0);
    }

    .service-image {
        flex: none;
        max-width: 100%;
        order: 1;
    }

    .service-image img {
        height: 250px;
    }

    .service-content {
        padding: 0;
        order: 2;
    }

    .service-content h3 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 20px;
    }

    .service-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-description p {
        font-size: 14px;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 15px;
    }

    .representative-support {
        padding: 15px;
        margin-top: 20px;
    }

    .representative-support i {
        font-size: 16px;
        margin-right: 10px;
    }

    .representative-support span {
        font-size: 13px;
        width: calc(100% - 26px);
    }
    
    .testimonial-item {
        width: 100%;
    }
    
    /* スワイパーナビゲーションのモバイル対応 */
    .works-swiper {
        padding: 20px 0 50px;
        overflow: visible;
    }
    
    .works-swiper .swiper-wrapper {
        padding: 0 80px; /* モバイルでは余白を小さく */
    }
    
    .works-swiper .swiper-button-next {
        right: 10px !important;
        left: auto !important;
    }
    
    .works-swiper .swiper-button-prev {
        left: 10px !important;
        right: auto !important;
    }
    
    .works-swiper .swiper-button-next:after,
    .works-swiper .swiper-button-prev:after {
        font-size: 22px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    
    .works-swiper .swiper-button-next:hover,
    .works-swiper .swiper-button-prev:hover {
        transform: translateY(-50%) scale(1.1) !important;
    }
    
    .swiper-pagination {
        margin-top: 30px;
    }
    
    .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        margin: 0 4px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .flow-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-item {
        min-width: auto;
        max-width: none;
        margin-bottom: 15px;
        height: auto;
        min-height: 200px;
    }
    
    .flow-content h3 {
        font-size: 18px;
    }
    
    .flow-content p {
        font-size: 14px;
    }
    
    .flow-number {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    /* サービス内容の極小画面対応 */
    .service-row {
        margin-bottom: 40px;
        gap: 25px;
    }

    .service-image img {
        height: 200px;
        border-radius: 10px;
    }

    .service-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .service-description p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .representative-support {
        padding: 12px;
        border-radius: 8px;
    }

    .representative-support i {
        font-size: 14px;
        margin-right: 8px;
    }

    .representative-support span {
        font-size: 12px;
    }
    
    /* スワイパーナビゲーションの極小画面対応 */
    .works-swiper {
        padding: 20px 0 50px;
        overflow: visible;
    }
    
    .works-swiper .swiper-wrapper {
        padding: 0 70px; /* 極小画面では更に余白を小さく */
    }
    
    .works-swiper .swiper-button-next {
        right: 5px !important;
        left: auto !important;
    }
    
    .works-swiper .swiper-button-prev {
        left: 5px !important;
        right: auto !important;
    }
    
    .works-swiper .swiper-button-next,
    .works-swiper .swiper-button-prev {
        width: 45px !important;
        height: 45px !important;
    }
    
    .works-swiper .swiper-button-next:after,
    .works-swiper .swiper-button-prev:after {
        font-size: 18px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    
    .works-swiper .swiper-button-next:hover,
    .works-swiper .swiper-button-prev:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }
    
    .swiper-pagination {
        margin-top: 25px;
    }
    
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 3px;
    }
}

/* ===== 会社概要セクション ===== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    text-align: center;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== サービスセクション ===== */
#services {
    width: 100%;
    overflow-x: hidden;
}

#services .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.service-intro {
    text-align: center;
    margin-bottom: 60px;
}

.service-intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* サービス行のレイアウト */
.service-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.service-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 右側配置（画像右・テキスト左） */
.service-row-reverse {
    flex-direction: row-reverse;
    transform: translateY(30px);
}

.service-row-reverse.visible {
    transform: translateY(0);
}

/* サービス画像 */
.service-image {
    flex: 0 0 45%;
    max-width: 45%;
    width: 45%;
    box-sizing: border-box;
}

.service-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* サービスコンテンツ */
.service-content {
    flex: 1;
    padding: 0 20px;
    width: 55%;
    max-width: 55%;
    box-sizing: border-box;
}

.service-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.service-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* サービス説明文 */
.service-description {
    margin-bottom: 25px;
}

.service-description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
}

.service-description p:last-child {
    margin-bottom: 0;
}

/* 代表立ち会いスタイル（新デザイン） */
.representative-support {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(163, 247, 191, 0.1));
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    position: relative;
    margin-top: 25px;
}

.representative-support::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    z-index: -1;
    opacity: 0.1;
}

.representative-support i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 12px;
    vertical-align: top;
    margin-top: 2px;
}

.representative-support span {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.6;
    display: inline-block;
    width: calc(100% - 30px);
}

/* ===== 施工の流れ（横並びデザイン） ===== */
.flow-horizontal {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 60px;
    overflow: visible;
}

.flow-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    position: relative;
    padding-bottom: 20px;
}

.flow-item {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    height: 250px;
    min-width: auto;
    max-width: none;
}

.flow-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.flow-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
}

/* 矢印を削除 */
.flow-number::after {
    display: none;
}

.flow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flow-content h3 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
}

.flow-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    flex: 1;
}

.flow-line {
    display: none;
}

/* ===== 施工実績（新デザイン：BeforeとAfter切り替え） ===== */
#works {
    overflow: hidden;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.work-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.work-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.work-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.work-image.active {
    opacity: 1;
}

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

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

.image-label {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.image-label.before {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.image-label.after {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.work-info {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
}

.work-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 8px;
}

.work-info h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.work-info p {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.5;
}

.work-info p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 15px;
    }
    
    .work-image-container {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 15px;
    }
    
    .work-image-container {
        height: 250px;
    }
    
    .work-info {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }
    
    .work-image-container {
        height: 200px;
    }
    
    .work-info {
        padding: 15px;
    }
    
    .work-info h3 {
        font-size: 16px;
    }
    
    .work-info p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 5px;
    }
    
    .work-card {
        border-radius: 12px;
    }
    
    .work-image-container {
        height: 200px;
    }
    
    .image-label {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .work-info {
        padding: 15px;
    }
    
    .work-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .work-info p {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* ===== 品質と信頼 ===== */
#quality {
    width: 100%;
    overflow-x: hidden;
}

.quality-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.quality-text {
    flex: 1;
    min-width: 240px;
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
    padding-right: 20px;
    padding-left: 60px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.quality-text h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
    word-wrap: break-word;
    line-height: 1.3;
}

.quality-text h3:first-child {
    margin-top: 0;
}

.quality-text p {
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
}

.quality-image {
    flex: 1;
    min-width: 240px;
    width: 50%;
    max-width: 50%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.quality-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* ===== お客様の声 ===== */
.testimonial-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.testimonial-rating {
    margin-bottom: 20px;
    color: #FFD700;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===== 採用情報 ===== */
.recruit-content {
    max-width: 900px;
    margin: 0 auto;
}

.recruit-message {
    text-align: center;
    margin-bottom: 50px;
}

.recruit-message h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.recruit-positions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.position-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.position-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.recruit-btn-container {
    text-align: center;
}

.recruit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recruit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.recruit-btn i {
    margin-left: 8px;
}

/* ===== お問い合わせ ===== */
#contact {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 80px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-method {
    margin-bottom: 40px;
    padding-left: 60px;
    position: relative;
}

.contact-method i {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 40px;
    color: var(--primary-color);
}

.contact-method h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.line-btn {
    background-color: #06C755;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.line-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.line-btn i {
    margin-left: 5px;
}

.contact-form {
    flex: 1;
    min-width: 350px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #FF4757;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.submit-btn i {
    margin-left: 8px;
}

/* ===== アクセス・会社情報 ===== */
.access-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.access-map {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-info {
    flex: 1;
    min-width: 300px;
}

.company-info table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.company-info table th,
.company-info table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.company-info table th {
    width: 140px;
    text-align: left;
    color: var(--secondary-color);
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== フッター ===== */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-menu {
    flex: 1;
    min-width: 200px;
}

.footer-menu h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-menu ul li {
    margin-bottom: 10px;
}

.footer-menu ul li a {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-menu ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-contact-btn {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background-color: white;
    color: var(--secondary-color);
}

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

/* ===== アニメーション ===== */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-from-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-pulsate {
    animation: none;
}

.animate-pulsate.visible {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

/* ===== レスポンシブ対応 ===== */
/* 992px以下と768px以下、576px以下のメディアクエリは上記で定義済み */

/* ===== フォームのエラースタイル ===== */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #FF4757;
    background-color: rgba(255, 71, 87, 0.05);
}

.form-group.has-error::after {
    content: "必須項目です";
    color: #FF4757;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group.has-error input[type="email"] + .form-group.has-error::after {
    content: "有効なメールアドレスを入力してください";
}

.form-group.has-error input[type="tel"] + .form-group.has-error::after {
    content: "有効な電話番号を入力してください";
}

/* 非表示クラスを追加 */
.visibility-hidden {
    visibility: hidden;
}

/* セクションのフェードイン効果 */
section:not(#hero) {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* アニメーション表示タイミングを調整 */
.animate-fade-in, .animate-fade-up, .animate-from-left, .animate-from-right {
    transition-delay: 0s !important;
}

.works-swiper .swiper-button-next:after,
.works-swiper .swiper-button-prev:after {
    font-size: 28px !important;
    font-weight: bold !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* 完全に中央配置 */
    margin: 0 !important; /* デフォルトのマージンをリセット */
    line-height: 1 !important; /* 行の高さを調整 */
}

.works-swiper .swiper-button-next:hover,
.works-swiper .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.swiper-slide {
    height: auto;
    transition: all 0.5s ease;
    opacity: 0.85;
}

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

.swiper-pagination {
    position: relative;
    margin-top: 40px;
}

.swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.3);
} 

/* ===== レスポンシブデザイン ===== */

/* 縦向きタブレット専用 (834px以下) */
@media (max-width: 834px) {
    /* 施工の流れ - 縦向きタブレット対応 */
    .flow-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
    }
    
    .flow-item {
        height: auto;
        min-height: 200px;
        padding: 20px 15px;
        margin-bottom: 10px;
    }
    
    .flow-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .flow-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .flow-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* 品質と信頼セクション */
    .quality-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .quality-text,
    .quality-image {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        flex: none;
        box-sizing: border-box;
    }
    
    .quality-text {
        padding: 0 5px;
        order: 1;
    }
    
    .quality-text h3 {
        font-size: 18px;
        margin-top: 18px;
        margin-bottom: 10px;
        line-height: 1.4;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .quality-text h3:first-child {
        margin-top: 0;
    }
    
    .quality-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
        text-align: left;
        padding: 0 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        word-break: break-word;
    }
    
    .quality-image {
        order: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 5px;
    }
    
    .quality-image img {
        width: 100%;
        height: auto;
        max-height: 280px;
        border-radius: 8px;
        display: block;
        object-fit: cover;
    }
}

/* タブレット (768px以下) */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        max-width: 100vw;
        overflow-x: hidden;
        background-attachment: scroll;
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    /* ===== タブレット版ヘッダー ===== */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        height: 60px;
        flex-direction: row;
    }
    
    .logo {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex: none;
        order: 1;
    }
    
    .logo-text {
        font-size: 20px;
        line-height: 1;
        margin: 0;
        white-space: nowrap;
    }
    
    /* タブレットでもハンバーガーメニューを表示 */
    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    /* ナビゲーションメニューを非表示 */
    nav {
        position: absolute;
        top: calc(100% + 5px);
        right: 15px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        min-width: 250px;
        max-width: 300px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.95);
        transition: all 0.3s ease;
        z-index: 9999;
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        list-style: none;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 20px;
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 0;
        position: relative;
    }
    
    nav ul li a:hover {
        background-color: rgba(78, 205, 196, 0.1);
        padding-left: 25px;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    .contact-btn {
        background-color: var(--primary-color) !important;
        color: white !important;
        margin: 8px 20px;
        border-radius: 8px;
        text-align: center;
    }
    
    .contact-btn:hover {
        background-color: var(--secondary-color) !important;
        padding-left: 20px !important;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    nav ul li {
        margin-left: 20px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .contact-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* ヒーローセクション */
    #hero {
        padding-top: 70px;
        min-height: 50vh;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 40px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-title-1,
    .hero-title-2,
    .hero-title-3 {
        font-size: 33.9px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 19.4px;
        margin-bottom: 30px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .hero-images {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 100%;
    }
    
    .image-card {
        width: 280px;
        height: 180px;
        max-width: calc(100vw - 30px);
    }
    
    /* サービスセクション */
    .service-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
        transform: translateY(20px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-row-reverse {
        flex-direction: column;
        transform: translateY(20px);
    }
    
    .service-row.visible,
    .service-row-reverse.visible {
        transform: translateY(0);
    }
    
    .service-image,
    .service-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-image img {
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        height: 280px;
        object-fit: cover;
    }
    
    .service-content {
        padding: 0;
    }
    
    .service-content h3 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .service-description p {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 15px;
    }
    
    /* 施工の流れ */
    .flow-horizontal {
        overflow-x: auto;
        padding-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .flow-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .flow-item {
        min-width: auto;
        padding: 15px;
        height: auto;
        min-height: 220px;
        margin-bottom: 15px;
    }
    
    .flow-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .flow-content h3 {
        font-size: 16px;
    }
    
    .flow-content p {
        font-size: 13px;
    }
    
    /* 施工実績 */
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .work-image-container {
        height: 200px;
    }
    
    /* 品質と信頼 */
    .quality-content {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    .quality-text,
    .quality-image {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        box-sizing: border-box;
    }
    
    .quality-text {
        padding: 0 5px;
    }
    
    .quality-text h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .quality-text h3:first-child {
        margin-top: 0;
    }
    
    .quality-text p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .quality-image {
        margin: 0 auto;
        border-radius: 8px;
        width: 100%;
        max-width: 380px;
    }
    
    .quality-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 260px;
        display: block;
        object-fit: cover;
    }
    
    /* お客様の声 */
    .testimonial-items {
        flex-direction: column;
        gap: 30px;
        justify-content: center;
    }
    
    /* 採用情報 */
    .recruit-positions {
        flex-direction: column;
        gap: 20px;
    }
    
    /* お問い合わせ */
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
    
    /* アクセス */
    .access-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .access-map iframe {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    /* 全ての画像の最大幅制限 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* フォーム要素の幅調整 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* テーブルの幅調整 */
    table {
        width: 100%;
        max-width: 100%;
    }
}

/* スマートフォン (480px以下) */
@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }
    
    html {
        width: 100%;
        overflow-x: hidden;
    }
    
    body {
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* アニメーション調整 */
    .animate-from-left {
        transform: translateY(20px);
    }
    
    .animate-from-left.visible {
        transform: translateY(0);
    }
    
    .animate-from-right {
        transform: translateY(20px);
    }
    
    .animate-from-right.visible {
        transform: translateY(0);
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    /* ===== スマートフォン版ヘッダー ===== */
    header {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 15px;
        box-sizing: border-box;
        position: relative;
        height: 64px;
        flex-direction: row;
    }
    
    .logo {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex: none;
        order: 1;
    }
    
    .logo-text {
        font-size: 18px;
        margin: 0;
        white-space: nowrap;
        color: var(--secondary-color);
        font-weight: 700;
        line-height: 1;
    }
    
    /* ハンバーガーメニューボタン表示 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        width: 48px;
        height: 48px;
        z-index: 1001;
        position: relative;
        flex-shrink: 0;
        order: 2;
        margin-left: auto;
    }
    
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--secondary-color);
        margin: 2.5px 0;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ドロップダウンナビゲーション */
    nav {
        position: absolute;
        top: calc(100% + 5px);
        right: 15px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        min-width: 250px;
        max-width: 300px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.95);
        transition: all 0.3s ease;
        z-index: 9999;
        display: block;
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        list-style: none;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 20px;
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 0;
        position: relative;
    }
    
    nav ul li a:hover {
        background-color: rgba(78, 205, 196, 0.1);
        padding-left: 25px;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    .contact-btn {
        background-color: var(--primary-color) !important;
        color: white !important;
        margin: 8px 20px;
        border-radius: 8px;
        text-align: center;
    }
    
    .contact-btn:hover {
        background-color: var(--secondary-color) !important;
        padding-left: 20px !important;
    }
    
    /* ヒーローセクション */
    #hero {
        padding-top: 80px;
        min-height: 70vh;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title-1,
    .hero-title-2,
    .hero-title-3 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .cta-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .hero-images {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .image-card {
        width: 90%;
        max-width: 320px;
        height: 200px;
    }
    
    .image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-label {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* サービスセクション */
    .service-intro {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .service-intro-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .service-row,
    .service-row-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
        transform: translateY(20px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-row.visible,
    .service-row-reverse.visible {
        transform: translateY(0);
    }
    
    .service-image {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-image img {
        width: 100%;
        max-width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
        box-sizing: border-box;
    }
    
    .service-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .service-content h3 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .service-description p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 15px;
        text-align: left;
    }
    
    /* 施工の流れ */
    .flow-horizontal {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    .flow-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        min-width: auto;
        width: 100%;
    }
    
    .flow-item {
        width: 100%;
        min-width: auto;
        height: auto;
        min-height: 220px;
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .flow-number {
        width: 45px;
        height: 45px;
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .flow-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .flow-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* 施工実績 */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .work-card {
        width: 100%;
        max-width: 100%;
    }
    
    .work-image-container {
        height: 220px;
    }
    
    .work-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 品質と信頼 */
    .quality-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .quality-text,
    .quality-image {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        box-sizing: border-box;
    }
    
    .quality-text {
        padding: 0 3px;
    }
    
    .quality-text h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        word-break: break-word;
        text-align: center;
    }
    
    .quality-text h3:first-child {
        margin-top: 0;
    }
    
    .quality-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
        padding: 0 2px;
        hyphens: auto;
        word-break: break-word;
    }
    
    .quality-image {
        margin: 0 auto;
        border-radius: 8px;
        padding: 0 10px;
        max-width: 320px;
    }
    
    .quality-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 220px;
        display: block;
        border-radius: 8px;
        object-fit: cover;
    }
    
    /* お客様の声 */
    .testimonial-items {
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
        justify-content: center;
    }
    
    .testimonial-item {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* 採用情報 */
    .recruit-content {
        padding: 0 10px;
    }
    
    .recruit-positions {
        flex-direction: column;
        gap: 20px;
    }
    
    .position-item {
        width: 100%;
        min-width: auto;
        padding: 20px;
    }
    
    /* お問い合わせ */
    .contact-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        min-width: auto;
    }
    
    .contact-form {
        width: 100%;
        min-width: auto;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .submit-btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
    }
    
    /* アクセス */
    .access-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }
    
    .access-map {
        width: 100%;
        min-width: auto;
    }
    
    .access-map iframe {
        height: 280px;
        width: 100%;
        max-width: 100%;
    }
    
    .company-info {
        width: 100%;
        min-width: auto;
    }
    
    .company-info table {
        width: 100%;
        font-size: 14px;
    }
    
    .company-info th {
        width: 35%;
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .company-info td {
        padding: 12px 8px;
        font-size: 14px;
        word-break: break-word;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 0 10px;
    }
    
    .footer-logo {
        width: 100%;
        min-width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }
    
    .footer-menu,
    .footer-contact {
        width: 100%;
        min-width: auto;
    }
    
    /* 全体的な余白とはみ出し防止 */
    * {
        box-sizing: border-box;
        max-width: 100%;
    }
    
    img {
        max-width: 100% !important;
        height: auto;
        display: block;
    }
    
    /* テキストの折り返し */
    p, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}