/* --- CSS Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 日本語フォント設定 */
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #F8F8F8; /* ベースカラー */
    font-size: 16px; /* 基本フォントサイズ */
}

a {
    text-decoration: none;
    color: inherit;
}

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

section {
    padding: 80px 0;
}

/* --- カラーパレット & 部品 --- */
:root {
    --main-color: #3498DB; /* 明るいブルー */
    --accent-color: #2ECC71; /* フレッシュグリーン */
    --base-bg: #F8F8F8; /* 明るいグレー */
    --warm-bg: #fdf6f4; /* ソフトなベージュ風 */
    --text-color: #333;
}

h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 2em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}
.icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* ボタン共通 */
.btn-contact, .btn-more {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--main-color);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 20px;
}
.btn-contact:hover, .btn-more:hover {
    background-color: #2980b9;
}

/* --- ヘッダー --- */
#header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo a {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--main-color);
}
#gnav ul {
    list-style: none;
    display: flex;
}
#gnav li a {
    padding: 10px 15px;
    font-weight: 500;
}

/* --- 1. ファーストビュー --- */
#hero {
    display: flex;
    align-items: center;
    min-height: 500px;
    background-color: var(--warm-bg); /* 温かい背景色 */
    padding: 40px 0;
}
.hero-content {
    width: 50%;
    padding-right: 40px;
}
.hero-image {
    width: 50%;
    min-height: 400px;
    background-color: #ccc; /* 仮の画像プレースホルダー */
    border-radius: 10px;
}
.main-copy {
    font-size: 3em;
    color: var(--main-color);
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 900;
}
.sub-copy {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- 2. 強み・選ばれる理由 --- */
#strength {
    background-color: white;
}
.strength-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.strength-item {
    width: 30%;
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--base-bg);
    transition: transform 0.3s;
}
.strength-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* --- 3. 事業内容 --- */
.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-item {
    display: block;
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.service-item:hover {
    background-color: var(--warm-bg);
}
.service-item h3 {
    margin-top: 10px;
    color: var(--text-color);
    font-size: 1.1em;
}

/* --- 4. スタッフ紹介 --- */
#staff {
    background-color: var(--warm-bg);
    text-align: center;
}
.staff-preview {
    margin: 30px auto;
    max-width: 400px;
    padding: 20px;
    border: 1px dashed var(--main-color);
    border-radius: 8px;
}
.staff-photo {
    width: 150px;
    height: 150px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 auto 15px;
    line-height: 150px;
    text-align: center;
    overflow: hidden;
}
.staff-name {
    font-weight: bold;
    font-size: 1.1em;
}
.staff-message {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* --- 5. アクセスと問い合わせ --- */
#contact {
    text-align: center;
}
.phone-number {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--accent-color);
    margin: 20px 0;
}

/* --- フッター --- */
#footer {
    padding: 20px 0;
    background-color: #333;
    color: white;
    text-align: center;
    font-size: 0.8em;
}

/* ================================================= */
/* --- 【レスポンシブデザイン / モバイル対応】 --- */
/* ================================================= */
@media (max-width: 900px) {
    /* PCレイアウトの解除 */
    #hero {
        flex-direction: column;
        min-height: auto;
    }
    .hero-content, .hero-image {
        width: 100%;
        padding: 0 0 20px 0;
        text-align: center;
    }
    .main-copy {
        font-size: 2.2em;
    }

    #strength .container {
        padding: 0 20px;
    }
    .strength-list {
        flex-direction: column;
        align-items: center;
    }
    .strength-item {
        width: 90%;
        margin-bottom: 20px;
    }
    
    .service-list {
        grid-template-columns: repeat(2, 1fr); /* 2列レイアウトに変更 */
    }
}

@media (max-width: 768px) {
    /* --- ハンバーガーメニュー制御 --- */
    #gnav {
        /* 初期状態は非表示 */
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 90;
        transform: translateX(100%); /* 画面外に隠す */
        transition: transform 0.4s ease-in-out;
    }
    #gnav.active {
        transform: translateX(0); /* メニューが開いたとき */
    }
    #gnav ul {
        list-style: none;
        padding-top: 100px;
        text-align: center;
        flex-direction: column;
    }
    #gnav li a {
        display: block;
        padding: 18px;
        font-size: 1.1em;
        border-bottom: 1px solid #eee;
        color: var(--main-color);
        font-weight: bold;
    }
    #gnav li:last-child a {
        border-bottom: none;
    }

    #menu-btn {
        display: block; /* モバイルで表示 */
        position: absolute;
        right: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }
    #menu-btn span {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--main-color);
        left: 0;
        transition: transform 0.3s, opacity 0.3s;
    }
    #menu-btn span:nth-child(1) { top: 0; }
    #menu-btn span:nth-child(2) { top: 13px; }
    #menu-btn span:nth-child(3) { top: 26px; }
    #menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 13px; }
    #menu-btn.active span:nth-child(2) { opacity: 0; }
    #menu-btn.active span:nth-child(3) { transform: rotate(-45deg); top: 13px; }

    /* PCでは非表示 */
    #gnav { display: none; }
    #gnav.active { display: block; }
}

@media (max-width: 500px) {
    .service-list {
        grid-template-columns: 1fr; /* 1列レイアウトに変更 */
    }
}