/* --- レイアウト（コンテナ） --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================================= */
/* アニメーション共通設定 (ふわっと表示) */
/* ================================================= */

.fade-in,
.icon-card-service
/* ... 他のアニメーション対象要素もここに追加 ... */
{
    opacity: 0;
    transform: translateY(20px);
    /* カスタムプロパティ（--animation-delay）を使用 */
    transition: opacity 0.8s ease-out var(--animation-delay, 0s), 
                transform 0.8s ease-out var(--animation-delay, 0s);
}

.fade-in.visible,
.icon-card-service.visible
/* ... 他のアニメーション対象要素もここに追加 ... */
{
    opacity: 1;
    transform: translateY(0);
}

/* --- 共通ボタン（CTA）スタイル --- */
.btn-cta-sky {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.btn-primary-sky {
    background-color: var(--color-secondary); /* オレンジ */
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.btn-primary-sky:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

/* --- レスポンシブ対応の基本調整 --- */
@media (max-width: 992px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .section-padding { padding: 50px 0; }
}

@media (max-width: 576px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    .btn-cta-sky { font-size: 16px; padding: 12px 25px; }
}
/* 汎用スタイル */
.section-padding {
    /* padding: 200px 0; */
    margin-top: 0px;
    margin-bottom: 120px;
}

.bg-light-gray-service {
    background-color: #f7f7f7;
    padding: 80px 0 80px 0;
}

.section-title-service {
    font-size: 28px !important;
    text-align: center;
    margin-bottom: 20px;
    color: #465744;
    padding-top: 0;
}

.section-title-service i {
    color: #fb8200;
    margin-top: 11px;
    margin-right: 10px;
}

/* --- アニメーション設定 (修正なし、前回のディレイ設定を使用) --- */
.fade-in,
.icon-card-service,
.service-content,
.option-card-detail,
.example-card-service {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay, 0s), 
                transform 0.8s ease-out var(--animation-delay, 0s);
}

.fade-in.visible,
.icon-card-service.visible,
.service-content.visible,
.option-card-detail.visible,
.example-card-service.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ヒーローセクション --- */
.hero-service {
    background-color: #004d40; /* 深い緑 */
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
.hero-service h1 {
    font-size: 44px;
    margin-bottom: 20px;
}
.lead-text-service {
    font-size: 18px;
    opacity: 0.9;
}


/* --- サービス目次（アイコングリッド） --- */
.index-section {
    /* padding-top: 50px; */
    padding-bottom: 50px;
}

.service-icon-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.icon-card-service {
    flex: 1 1 200px; /* PCで4～5個並ぶように調整 */
    max-width: 250px;
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    background-color: #fff;
    border: 1px solid #ddd;
}

.icon-card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #e0f2f1; /* ホバー色を緑系に */
}

.icon-card-service i {
    font-size: 40px;
    color: #7bc937; /* メインカラーのオレンジ */
    margin-bottom: 10px;
}
.icon-card-service p {
    font-weight: bold;
    margin: 0;
    font-size: 17px;
}

.option-title {
    text-align: center;
    border-bottom: 1px solid #ddd;
    width: fit-content;
    font-size: 24px;
    color: #555;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 20px;
}

.option-grid {
    max-width: 500px;
    margin: 0 auto;
}

/* --- サービス詳細ブロック --- */
.service-block {
    /* border-bottom: 1px solid #eee; */
    /* padding: 50px; */
}

.service-content {
    display: flex;
    align-items: center;
    gap: 40px;
    /* PCの横並び設定 */
}

.service-content.reverse {
    flex-direction: row-reverse; /* 画像とテキストを交互に配置 */
}

.service-image {
    flex: 1;
    min-width: 40%;
}

.service-image img {
    width: 100%;
    height: auto;
    /* border-radius: 8px; */
    object-fit: cover;
    box-shadow: 7px 6px 6px rgb(0 0 0 / 86%);
}

.service-text {
    flex: 1;
    min-width: 50%;
}

.service-text h2 {
    font-size: 25px;
    font-weight: bold;
    color: #465744;
    margin-top: 0;
    border-bottom: 2px solid #ff8315;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.service-text .area-focus {
    font-weight: bold;
    color: #ff8315;
    margin-top: 0;
}

.service-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.service-text p.area-focus {
    font-size: 18px;
}

.service-text p i {
    color: #2dcc70;
    margin-right: 5px;
}

.btn-service-detail {
    display: inline-block;
    background-color: #e96029;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    border: solid 2px #ff9b00;
    transition: background-color 0.3s;
}

.btn-service-detail:hover {
    background-color: #ffffff;
    color: #e96029;
}

/* --- オプション詳細 --- */
.option-service-block {
    background-color: #fff;
}

.option-grid-detail {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.option-card-detail {
    flex: 1;
    max-width: 450px;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff3e0; /* 薄いオレンジ系 */
    border-left: 5px solid #ff9800;
}

.option-card-detail h3 {
    font-size: 24px !important;
    /* margin-top: 0 !important; */
    /* color: #e16a12; */
    text-align: left !important;
    /* margin-top: 0; */
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* --- 施工事例セクション --- */
.example-grid-service {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.example-card-service {
    flex: 1 1 45%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.example-card-service img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.example-content-service {
    padding: 20px;
}

.example-content-service h3 {
    font-size: 20px;
    color: #465744;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-tag {
    display: inline-block;
    background-color: #def3d0;
    color: #37851e;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
    border-radius: 50px;
}

/* --- 最後のCTA (既存のスカイボックスページのスタイルを流用) --- */
.cta-box-sky {
    /* スタイルは既存のものを利用 */
}


/* ============================ */
/* レスポンシブ対応 (スマホ縦並び) */
/* ============================ */

@media (max-width: 768px) {
    .hero-service h1 {
        font-size: 32px;
    }
    .service-content,
    .service-content.reverse {
        flex-direction: column-reverse; /* スマホでは縦並び */
        text-align: center;
    }
    .service-image,
    .service-text {
        min-width: 100%;
        width: 100%;
    }
    .service-image {
        order: 1; /* 画像を常に上 (order: 1) */
        margin-bottom: 20px;
    }
    .service-text {
        order: 2; /* テキストを常に下 (order: 2) */
    }
    .service-text h2 {
        font-size: 26px;
        text-align: left;
    }
    .service-text p {
        text-align: left; /* テキストは左寄せに戻す */
    }
    .example-grid-service,
    .option-grid-detail {
        flex-direction: column;
    }
    .example-card-service,
    .option-card-detail {
        max-width: 100%;
    }
    .icon-card-service {
        flex: 1 1 45%; /* アイコンを2列表示に */
    }
}

@media (max-width: 480px) {
    .hero-service h1 {
        font-size: 26px;
    }
}

/* --- サービス別事例ブロック (新設) --- */
.service-example-block {
    margin-top: 60px;
    padding: 40px 30px 50px 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fcfcfc; /* 事例ブロックの背景 */
    box-shadow: rgba(0, 0, 0, .24) 0px 0px 7px;
    color:var(--icon-css);
    transform:scale(0.7);
    position:relative;
    margin:-5px -2px -5px -4px;
    user-select:none;
    vertical-align:baseline;
    cursor:pointer;
    /* box-shadow: rgb(0 0 0 / 29%) 3px 4px 5px; */
    margin-top: 30px;
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    hover{color:var(--icon-css-hover)}
}

.service-example-block h3 {
    font-size: 22px !important;
    color: var(--color-primary);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 0px !important;
    text-align: left !important;
}

.service-example-block h3 i {
    color: var(--color-secondary);
    font-size: 30px;
    margin-right: 8px;
}

.example-content-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.example-content-inner img {
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.example-text-inner {
    flex-grow: 1;
}

.example-text-inner p {
    font-size: 16px;
    margin-bottom: 10px;
    /* font-weight: bold; */
}

.example-text-inner p strong {
    color: var(--color-secondary);
}

.service-tag {
    /* 既存のタグスタイルを維持 */
}

/* ============================ */
/* ギャラリー（メイン + サムネスライダー） */
/* ============================ */
.gallery {
    display: grid;
    gap: 16px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    /* border-radius: 10px; */
    overflow: hidden;
    /* box-shadow: 0 6px 18px rgba(0,0,0,0.08); */
    /* box-shadow: rgb(0 0 0 / 71%) 4px 3px 8px; */
    box-shadow: rgb(0 0 0 / 29%) 3px 4px 5px;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbs-wrapper {
    position: relative;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3枚でちょうど幅いっぱい */
    gap: 10px;
    padding: 6px 36px; /* ナビボタン分の余白 */
}

.thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* border-radius: 8px; */
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb.is-center {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 1;
}
.thumb-nav.prev { left: 4px; }
.thumb-nav.next { right: 4px; }

/* thumbs-range は削除 */

@media (max-width: 768px) {
    .thumbs { gap: 8px; }
}

@media (max-width: 480px) {
    .gallery-main {/* aspect-ratio: 4 / 3; */}
}

/* --- レスポンシブ対応 (事例ブロック) --- */
@media (max-width: 768px) {
    .service-example-block {
        margin-top: 40px;
    }
    .example-content-inner {
        flex-direction: column; /* スマホでは縦並び */
        text-align: center;
    }
    .example-content-inner img {
        width: 100%; /* スマホでは全幅に */
        height: 200px;
        margin-bottom: 15px;
    }
    .example-text-inner {
        text-align: left; /* テキストは左寄せに戻す */
    }
}

#service-index {
    margin-top: 160px;
}

.bg-service-gray{
    background-color: #ecf5ee !important;
}

.option-image {
    padding: 20px;
    width: 95%;
    margin: 0 auto;
}

@media (max-width: 599px) {
    #service-index {
        margin-top: 0;
    }

    .section-padding {
        /* padding: 200px 0; */
        margin-top: 0;
        margin-bottom: 0;
    }
}