@charset "UTF-8";

/* --- 1. 変数・全体設定 --- */
:root {
    --primary-color: #6fb5c2;
    --secondary-color: #a2d2bb;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f7f9f9;
    --bg-white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --font-main: 'Kiwi Maru', serif;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

h1, h2, h3, .nav-link { letter-spacing: 0.05em; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section { position: relative; padding: 100px 0; background-color: var(--bg-white); }
section:nth-child(even) { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* --- 2. ヘッダー & ナビゲーション --- */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); margin: 0; }
.logo .subtitle { font-size: 1rem; color: var(--text-light); }

.nav-menu { display: flex; list-style: none; gap: 30px; padding: 0; margin: 0; }
.nav-link { font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--text-dark); transition: 0.3s; }
.nav-link:hover { color: var(--primary-color); }

/* PCでは隠す */
.nav-contact-btn, .nav-toggle { display: none; }

/* --- 3. ヒーロー & 波 --- */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../image/top.jpg') center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-content { width: 100%; z-index: 10; }
.hero-title { font-size: 3.1rem; line-height: 1.4; margin-bottom: 30px; }

.wave-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}
.wave-container svg { width: 100%; height: 80px; }
.wave-container svg path { fill: var(--bg-light); }

/* --- 4. 事業所とは (カードデザイン) --- */
.about-card-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px;
    margin-top: 80px;
}

.about-card {
    background: #fff;
    padding: 70px 25px 40px !important;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.about-card-icon {
    width: 80px !important; height: 80px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important; font-size: 2rem !important;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
}

.card-list { text-align: left; list-style: none; padding: 0; margin-top: 20px; }
.card-list li { position: relative; padding-left: 1.2em; margin-bottom: 10px; font-size: 0.95rem; }
.card-list li::before { content: "・"; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }

/* --- 5. ご利用の流れ (ラインデザイン) --- */
.flow-container { max-width: 800px; margin: 50px auto 0; position: relative; }
.flow-line {
    position: absolute; left: 40px; top: 0; bottom: 50px;
    width: 2px; background: var(--primary-color); opacity: 0.2; z-index: 1;
}

.flow-card {
    display: flex; background: #fff; border-radius: 20px;
    margin-bottom: 30px; box-shadow: var(--shadow); position: relative; z-index: 2; overflow: hidden;
}

.flow-card-side {
    background: #f9fbfb; width: 80px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border-right: 1px solid #eee;
}

.flow-card-body { flex: 1; padding: 25px 30px; }

/* --- 6. FAQ (アコーディオン用) --- */
.faq-container { max-width: 800px; margin: 40px auto 0; }
.faq-item { margin-bottom: 15px; border-radius: 12px; overflow: hidden; border: 1px solid #eee; background: #fff; }
.faq-question {
    width: 100%; display: flex; align-items: center; padding: 20px 25px;
    background: #fff; border: none; cursor: pointer; text-align: left; font-size: 1.05rem; font-weight: 700;
}
.faq-q { color: var(--primary-color); font-size: 1.4rem; margin-right: 15px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 10px 25px 25px 60px; margin: 0; color: var(--text-light); }
.faq-item.active .faq-answer { max-height: 1000px; } /* JS連動用 */

/* --- 7. 管理者紹介 --- */
.admin-card {
    max-width: 900px; margin: 40px auto 0;
    display: flex; align-items: center; gap: 40px;
    background: #fff; padding: 40px; border-radius: 30px; box-shadow: var(--shadow);
}
.admin-image i { font-size: 150px; color: var(--secondary-color); opacity: 0.5; }

/* --- 8. 事業所概要 & お問い合わせ (比率維持) --- */
.info-flex-container { display: flex; gap: 30px; align-items: stretch; margin-bottom: 40px; }
.info-left-card { flex: 1.2; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: flex; }
.info-right-card { flex: 0.8; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th { background: #f9fbfb; color: var(--primary-color); width: 30%; text-align: left; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
.info-table td { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }

.actual-form { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; }
.actual-form input, .actual-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; background: #fcfcfc; }
.actual-form textarea { flex-grow: 1; resize: none; }
.btn-submit { background: var(--primary-color); color: #fff; border: none; padding: 15px; border-radius: 50px; font-weight: bold; cursor: pointer; }

/* --- 9. フッター --- */
.footer { background: var(--primary-color); color: #fff; padding: 40px 0; text-align: center; }

/* --- 10. レスポンシブ (最優先上書き) --- */
@media (max-width: 992px) {
    .info-flex-container, .admin-card { flex-direction: column; }
    .about-card-wrapper { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .header-content { display: flex !important; justify-content: space-between !important; padding: 10px 15px !important; }
    .logo h1 { font-size: 1.1rem !important; white-space: nowrap; }
    .nav { display: flex !important; align-items: center; gap: 12px; }
    .nav-toggle { display: block !important; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); }
    .nav-contact-btn {
        display: block !important; background: var(--primary-color) !important; color: #fff !important;
        padding: 6px 14px !important; border-radius: 50px; font-size: 0.85rem; font-weight: bold;
    }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active { display: flex !important; }
    .flow-line { display: none; }
    .flow-card { flex-direction: column; }
    .flow-card-side { width: 100%; flex-direction: row; gap: 15px; padding: 10px; }
}

/* --- ご利用の流れ（ブラッシュアップ） --- */
.flow-container { max-width: 850px; margin: 60px auto 0; position: relative; }

.flow-line {
    position: absolute; left: 40px; top: 0; bottom: 40px;
    width: 3px; background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.3; z-index: 1;
}

.flow-card {
    display: flex; background: #fff; border-radius: 20px;
    margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative; z-index: 2; overflow: hidden;
    transition: transform 0.3s;
}

.flow-card:hover { transform: translateY(-5px); }

.flow-card-side {
    background: linear-gradient(135deg, #f9fbfb, #eff6f7);
    width: 100px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border-right: 1px solid #eee;
}

.flow-number {
    font-size: 1.4rem; font-weight: 800; color: var(--primary-color);
    font-family: 'Arial', sans-serif;
}

.flow-card-body { flex: 1; padding: 30px 40px; }
.flow-header h3 { font-size: 1.25rem; color: var(--primary-color); margin-bottom: 10px; }

/* --- お問い合わせエリア（おしゃれ版） --- */
.contact-card {
    background: #fff; padding: 40px; border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); height: 100%;
    position: relative;
}

/* メールアイコンの装飾 */
.contact-card h3 {
    color: var(--primary-color); font-size: 1.5rem;
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}

.contact-card h3 i {
    background: var(--bg-light); width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--primary-color);
    transition: 0.3s;
}

.contact-card:hover h3 i {
    background: var(--primary-color); color: #fff; transform: rotate(-10deg);
}

/* 送信ボタンのカスタマイズ */
.btn-submit-container {
    text-align: center; margin-top: 10px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; border: none; padding: 16px 45px; border-radius: 50px;
    font-weight: bold; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 8px 20px rgba(111, 181, 194, 0.4);
    transition: 0.3s;
}

.btn-submit:hover {
    transform: scale(1.05); box-shadow: 0 10px 25px rgba(111, 181, 194, 0.6);
}

/* スマホ表示の微調整 */
@media (max-width: 768px) {
    .flow-card-side { width: 100%; flex-direction: row; height: 50px; border-right: none; border-bottom: 1px solid #eee; }
    .btn-submit { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    /* 全体：横幅いっぱい */
    .header-content-mobile {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "logo toggle"
            "btns btns";
        padding: 10px 0; /* 左右の余白はボタン内部で調整 */
        background: #fff;
        width: 100%;
        box-sizing: border-box;
    }

    /* サブタイトルを消してロゴをスッキリさせる */
    .logo { 
        grid-area: logo; 
        padding-left: 15px; 
    }
    .logo .subtitle { display: none; } /* サブタイトル非表示 */
    .logo h1 { font-size: 1.1rem !important; margin: 0; white-space: nowrap; }

    /* ハンバーガーボタン：クリックエリアを確保 */
    .nav-toggle {
        grid-area: toggle;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--primary-color);
        padding: 0 15px;
        cursor: pointer;
        z-index: 10;
        position: relative;
    }

    /* 3行目：アクションボタン（全幅） */
    .nav-actions-mobile {
        grid-area: btns;
        display: flex;
        width: 100%;
        margin-top: 10px;
    }

    .nav-actions-mobile a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 50px; /* 押しやすい高さ */
        text-decoration: none;
        font-weight: bold;
        color: #fff;
        font-size: 0.95rem;
    }

    /* ボタンの角を丸めず、画面端まで敷き詰めるなら border-radius: 0; */
    .nav-btn-tel { background-color: #f39c12; }
    .nav-btn-contact { background-color: var(--primary-color); }

    /* メニューリスト（クリック時に展開） */
    .nav-menu-mobile {
        display: none;
        grid-column: 1 / 3;
        background: #fff;
        border-top: 1px solid #eee;
    }
    .nav-menu-mobile.active { display: block; }
    .nav-menu-mobile ul { list-style: none; padding: 0; }
    .nav-menu-mobile li a {
        display: block; padding: 15px; border-bottom: 1px solid #f5f5f5;
        color: var(--text-dark); text-decoration: none;
    }
}

/* PC用表示の整合性 */
@media (min-width: 769px) {
    .header-content-mobile { display: none; }
    /* 既存のPC用 .header-content などのスタイルを維持 */
}


/* --- ヒーローエリア専用ボタン（馴染ませ版） --- */
.hero-btn {
    display: inline-block;
    background-color: var(--primary-color); /* サイト共通の青緑 */
    color: #fff;
    padding: 16px 40px;
    font-size: 1.15rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(111, 181, 194, 0.2); /* 影を薄く柔らかく */
    transition: all 0.3s ease;
    border: none;
    margin-top: 10px;
}

.hero-btn:hover {
    background-color: var(--secondary-color); /* ホバーで優しい緑に */
    transform: translateY(-2px); /* 浮き上がりも最小限に */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* スマホ表示 */
@media (max-width: 768px) {
    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin-top: 20px;
    }
}


/* --- PC表示の設定 --- */
.header-pc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-mobile {
    display: none; /* PCではスマホ用を隠す */
}

/* --- スマホ表示の設定（768px以下） --- */
@media (max-width: 768px) {
    .header-pc {
        display: none; /* スマホではPC用を隠す */
    }

    .header-mobile {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "logo toggle"
            "btns btns";
        width: 100%;
        padding: 10px 0;
    }

    /* スマホ版のロゴ設定 */
    .header-mobile .logo h1 {
        grid-area: logo;
        font-size: 1.1rem;
        margin: 0;
        padding-left: 15px;
    }

    .nav-toggle {
        grid-area: toggle;
        padding-right: 15px;
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    .nav-actions-mobile {
        grid-area: btns;
        display: flex;
        width: 100%;
        margin-top: 10px;
    }
    
    /* ボタンの共通設定 */
    .nav-actions-mobile a {
        flex: 1;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: bold;
        color: #fff;
    }

    .nav-btn-tel { background-color: #f39c12; }
    .nav-btn-contact { background-color: var(--primary-color); }

    /* トグルメニューの挙動 */
    .nav-menu-mobile {
        display: none;
        grid-column: 1 / 3;
        background: #fff;
        border-top: 1px solid #eee;
    }
    .nav-menu-mobile.active {
        display: block;
    }
}

/* お問い合わせカード内のアイコン装飾 */
.contact-card h3 i {
    background: var(--bg-light);
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}


/* 送信ボタン（右寄せ・スマホ全幅） */
.btn-submit-container {
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .btn-submit-container {
        text-align: center;
    }
    .btn-submit {
        width: 100%;
        padding: 18px;
    }
}

/* --- 費用案内ボックス（破線デザイン） --- */
.price-info-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.price-box-dashed {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background-color: #fffbf5; /* 参考サイトのような温かい背景色 */
    border: 2px dashed var(--secondary-color); /* サイト共通のグリーンで破線 */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.price-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.price-text h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.price-text h4 strong {
    color: #e67e22; /* 0円を強調するオレンジ */
    font-size: 1.6rem;
    margin: 0 5px;
}

.price-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .price-box-dashed {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .price-icon {
        font-size: 2.5rem;
    }
    .price-text h4 {
        font-size: 1.15rem;
    }
}


.nav-menu-mobile.active {
    display: flex;
    position: fixed; /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 画面いっぱいの高さ */
    z-index: 1000; /* ヘッダーより前面、トグルボタンより背面 */
    /* 以下、中央寄せなどのデザインはお好みで */
}

@media (max-width: 768px) {
    /* メニューを全画面固定にする */
    .nav-menu-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000; /* 背景より上 */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-menu-mobile.active {
        display: flex;
    }

    /* 三本線・×ボタン：メニューよりさらに上の階層に置く */
    .nav-toggle {
        z-index: 1100; 
        position: relative;
    }
}