/* =========================================
   基本設定 (Base)
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    overflow-x: hidden; /* 横スクロール防止 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 画像が親要素を超えないようにする設定 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================
   共通クラス (Utility)
   ========================================= */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: #f9f9f9;
}

/* 見出しデザイン */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .en-title {
    display: block;
    font-size: 1.2rem;
    color: #2e7d32;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.section-header .jp-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: normal;
}

/* =========================================
   ヘッダー (Header)
   ========================================= */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32;
}

.pc-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.pc-nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-btn {
    background-color: #2e7d32;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* =========================================
   メインビジュアル (Hero)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/after1.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 10px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0,0,0,0.6);
    padding: 5px 15px;
    display: inline-block;
}

/* =========================================
   コンセプト (About)
   ========================================= */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   施工事例 (Works) - ここの設定が重要です
   ========================================= */
/* ビフォーアフターの枠組み */
.gallery-highlight {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* スマホで折り返す */
}

/* 各アイテムの箱 */
.gallery-highlight .gallery-item {
    width: 48%; /* パソコンでは2列 */
    max-width: 500px;
}

/* その他の写真（グリッド） */
.gallery {
    display: grid;
    /* 画面幅に合わせて自動調整。最小幅を280pxに設定 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

/* 画像を囲む枠（サイズを固定して切り抜く） */
.img-wrap {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

/* 画像本体 */
.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいにトリミングして表示 */
    transition: transform 0.3s;
}

/* Before/After ラベル */
.label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
}
.label.before { background-color: #666; }
.label.after { background-color: #e6683c; }

.caption {
    padding: 15px;
    margin: 0;
    font-weight: bold;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

/* =========================================
   Instagram
   ========================================= */
.instagram-area {
    text-align: center;
    background-color: #fff;
    padding: 40px 20px;
    border: 1px solid #eee;
}

.insta-icon {
    font-size: 3rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.btn-insta {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    max-width: 100%;
}

/* =========================================
   アクセス (Access)
   ========================================= */
.access-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.access-info {
    flex: 1;
    min-width: 280px;
}

.access-info h4 {
    font-size: 1.4rem;
    margin-top: 0;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
    display: inline-block;
}

.access-info .tel {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32;
}

.access-map {
    flex: 1;
    min-width: 280px;
}

/* =========================================
   フッター (Footer)
   ========================================= */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
}

.footer-cta {
    background-color: #e8f5e9;
    color: #333;
    padding: 60px 20px;
}

.btn-contact {
    display: inline-block;
    background-color: #2e7d32;
    color: #fff;
    font-size: 1.3rem;
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: bold;
    max-width: 100%;
}

.footer-bottom {
    padding: 20px;
    font-size: 0.8rem;
    background-color: #222;
}

/* =========================================
   【重要】スマホ用レスポンシブ設定
   ========================================= */
@media screen and (max-width: 768px) {
    /* ヘッダー：縦並びにして見やすく */
    .header-inner {
        flex-direction: column;
        padding: 15px;
    }
    
    .pc-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px; /* 行間と文字間 */
        margin-top: 15px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* ヒーロー：高さを少し抑える */
    .hero { height: 400px; }
    .hero-title { font-size: 1.8rem; }

    /* Works：ビフォーアフターを縦1列に */
    .gallery-highlight .gallery-item {
        width: 100%;
        max-width: 100%;
    }

    /* アクセス：縦並びに */
    .access-box {
        flex-direction: column;
    }
    
    /* 余白の調整 */
    .section { padding: 50px 0; }
    .container { padding: 0 15px; }
}