@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;
    padding-top: 80px;
}

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: fixed;
    top: 0;
    left: 0;
    width: 100%;
    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.webp') 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;
    }
}


/* タブボタンのスタイル */
.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* コンテンツの表示・非表示 */
.price-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.price-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .price-grid-wrapper { grid-template-columns: 1fr; }
}


/* シミュレーターのスタイル調整 */
.tax_simulation {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.sim_content {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}
.sim_content dt {
    width: 100px;
    font-weight: bold;
}
.sim_content dd {
    flex: 1;
}
.sim_content input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
#btn {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    margin: 30px 0;
}
#gmap {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 10px;
}
.fee_area {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}
.all_fee {
    background: #fdfaf5;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}


/* style.css の修正・確認 */
.nav-menu-mobile {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff; /* 背景色 */
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* クラス名に .active が追加されたら表示 */
.nav-menu-mobile.active {
    display: flex !important;
}


/* 電話ボタン（既存：緑系など） */
.nav-btn-tel {
    background-color: #28a745; /* 緑 */
    color: #fff;
}

/* 見積ボタン（新規：オレンジ系） */
.nav-btn-estimate {
    background-color: #f39c12; /* オレンジ */
    color: #fff;
}

/* メールボタン（既存：青系など） */
.nav-btn-contact {
    background-color: var(--primary-color); /* メインカラーの青 */
    color: #fff;
}

/* ホバー時の明るさ調整 */
.nav-btn-estimate:hover, .nav-btn-contact:hover {
    opacity: 0.9;
    color: #fff;
}


/* 車両紹介のベーススタイル */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCは2列 */
    gap: 30px;
}

/* スマホ用の設定（768px以下） */
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr !important; /* 強制的に1列にする */
    }
    
    .vehicle-card {
        margin-bottom: 20px;
    }
}

/* PCサイズ：2列に固定 */
.vehicle-grid {
    display: grid !important;
    /* 1fr 1fr にすることで、画面をきれいに半分ずつ使います */
    grid-template-columns: 1fr 1fr !important; 
    gap: 30px;
    margin-top: 30px;
}

/* スマホサイズ：1列に切り替え */
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr !important;
    }
}


/* シミュレーション全体のレイアウト */
.sim-flex-container {
    display: flex;
    gap: 40px;
    align-items: start;
}

.sim-form-side { flex: 1; }
.sim-map-side { flex: 1; }

/* 入力項目のスタイル */
.sim_content { display: flex; margin-bottom: 15px; align-items: center; }
.sim_content dt { width: 100px; font-weight: bold; }
.sim_content dd { flex: 1; }
.sim_content input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }

/* 結果エリア */
.result-display-area { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.result-box { background: #fdfaf5; padding: 15px; border-radius: 10px; text-align: center; }
.all_fee { background: var(--bg-light); padding: 25px; border-radius: 15px; margin-top: 15px; text-align: center; border: 2px solid var(--primary-color); }
.total-value { font-size: 2rem; font-weight: bold; color: var(--primary-color); }

/* 地図 */
#gmap { width: 100%; height: 500px; border-radius: 15px; border: 1px solid #ddd; }

/* ボタン */
.calc-btn { background: var(--primary-color); color: #fff; text-align: center; padding: 18px; border-radius: 50px; cursor: pointer; font-weight: bold; margin: 20px 0; }

/* ★レスポンシブ：スマホの時は縦に並べる */
@media (max-width: 768px) {
    .sim-flex-container {
        flex-direction: column; /* 上下に並べる */
    }
    
    .sim-form-side, .sim-map-side {
        width: 100%;
    }

    .sim_content {
        flex-direction: column;
        align-items: flex-start;
    }

    .sim_content dt {
        width: 100%;
        margin-bottom: 5px;
    }

    #gmap {
        height: 350px; /* スマホでは地図を少し小さく */
    }
}


/* 全体のコンテナ幅を広くする（例：1100px → 1300px） */
.container {
    max-width: 1300px !important; /* お好みの広さに調整してください */
    margin: 0 auto;
    padding: 0 20px; /* 左右の余白を確保 */
}

/* シミュレーターなど、特定のセクションをもっと広くしたい場合 */
.sim-wrapper {
    max-width: 100% !important; 
}

/* 地図の横幅を画面いっぱいに近づける */
.sim-flex-container {
    gap: 50px; /* 左右のパーツの隙間を少し広げるとバランスが良いです */
}

/* PCでのレイアウト：左右に並べる */
@media (min-width: 769px) {
    .sim-flex-container {
        display: flex !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }

    .sim-form-side {
        flex: 1 !important;
        min-width: 0;
    }

    .sim-map-side {
        flex: 1 !important;
        min-width: 0;
    }
}

/* スマホでのレイアウト：縦に並べる */
@media (max-width: 768px) {
    .sim-flex-container {
        display: block !important;
    }
    
    .sim-form-side, .sim-map-side {
        width: 100% !important;
    }

    .sim_content {
        flex-direction: column;
        align-items: flex-start;
    }

    .sim_content dt {
        width: 100% !important;
        margin-bottom: 5px;
    }
    
    #gmap {
        margin-top: 30px;
        height: 350px !important;
    }
}

/* --- 料金例セクション全体 --- */
.price-example-section {
    margin-top: 80px;
    padding: 0 15px;
}

.example-main-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.price-example-card {
    background: #fff;
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* --- ヘッダー部分 --- */
.example-header {
    background: #fffaf0;
    padding: 30px;
    text-align: center;
    border-bottom: 2px dashed #eee;
}

.car-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.example-scenario {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- レシート（計算）部分 --- */
.example-receipt {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
    background: #fff;
}

.receipt-item {
    text-align: center;
    flex: 1;
}

.receipt-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.receipt-label i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.receipt-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.receipt-operator {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 300;
    padding: 0 10px;
}

/* --- 合計部分 --- */
.receipt-total {
    background: #fff;
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
}

.total-label {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.total-amount {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
}

.total-amount .approx { font-size: 1rem; margin-right: 5px; }
.total-amount .yen { font-size: 1rem; margin-left: 3px; }

.example-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    padding-bottom: 25px;
}

/* --- スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .example-receipt {
        flex-direction: column;
        padding: 20px;
    }

    .receipt-operator {
        padding: 10px 0;
        transform: rotate(0deg);
    }

    .receipt-total {
        margin-top: 20px;
        width: 100%;
    }
}

.profile-card-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 40px;
}

/* 左側ビジュアル */
.profile-visual {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.profile-img-frame {
    width: 200px;
    height: 200px;
    background: #f8f9fa;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid var(--primary-color);
    font-size: 6rem;
    color: #ddd;
}

.name-badge .title { font-size: 0.9rem; color: #777; }
.name-badge .name { font-size: 1.6rem; color: var(--primary-color); margin: 5px 0; }
.name-badge .ruby { font-size: 0.8rem; color: #999; font-weight: normal; }

.license-list {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.license-tag {
    background: #fdf2f2;
    color: #e74c3c;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* 右側ストーリー */
.profile-story { flex: 2; }
.story-box { margin-bottom: 30px; }
.story-headline {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.story-headline i { color: var(--primary-color); }
.story-box p { line-height: 1.8; color: #555; }

.message-quote {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    margin-top: 20px;
}
.message-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.2;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .profile-card-layout { flex-direction: column; align-items: stretch; }
}



/* --- PC・タブレット（広い画面）の設定 --- */
.info-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 30px;
}

/* --- スマホ（狭い画面：768px以下）の設定 --- */
@media (max-width: 768px) {
    .info-grid-container {
        /* ここで強制的に「1列」に上書きします */
        grid-template-columns: 1fr !important; 
        display: flex;
        flex-direction: column;
    }

    /* 各カードの横幅を100%に */
    .info-left-card, 
    .info-right-card, 
    .info-map-area, 
    .calendar-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color); /* 阿武さんのサイトのメインカラー */
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* 最初は隠す */
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
}

#back-to-top:hover {
    transform: scale(1.1); /* ホバーで少し大きく */
    background-color: var(--secondary-color);
}

/* サイト全体が横に揺れるのを防ぐ */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* すべての要素が幅を超えないように計算をリセット */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 画像や動画がはみ出すのを防ぐ */
img, iframe, table {
    max-width: 100%;
    max-height: 100%;
}

/* --- 料金案内セクション全体のブラッシュアップ --- */
#price {
    background-color: #f8fbfc; /* ほんのり青みがかった清潔感のある背景 */
}

/* タブボタンの高級感アップ */
.price-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 15px 45px;
    font-size: 1.1rem;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 25px rgba(111, 181, 194, 0.3);
    transform: translateY(-2px);
}

/* --- カードデザイン（PCで横に広がるレイアウト） --- */
.price-detail-card {
    background: #fff;
    border-radius: 30px;
    padding: 50px 60px; /* 余白をたっぷりとる */
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.price-card-title {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.price-card-title i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* PCで運賃表と介助料を横に並べる */
.price-grid-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 運賃表を少し広めに */
    gap: 60px;
    align-items: start;
}

.price-sub-section h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    border-left: 6px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* --- テーブルの「今どき」デザイン --- */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* 行間に隙間を作る */
}

.info-table th {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px 0 0 12px;
    color: var(--primary-color);
    font-weight: bold;
    width: 40%;
}

.info-table td {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
}

.info-table td strong {
    color: #e67e22; /* 初乗り料金を強調 */
    font-size: 1.4rem;
    margin-right: 4px;
}

/* リスト（介助料）のデザイン */
.price-list-detailed {
    list-style: none;
    padding: 0;
}

.price-list-detailed li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1.05rem;
}

.price-list-detailed li span {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* --- 下部の「割増・割引」ボックス --- */
.common-price-box-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.common-price-item {
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-top: 6px solid var(--secondary-color); /* 上部にラインを入れる */
}

/* レスポンシブ：スマホでは縦に戻す */
@media (max-width: 992px) {
    .price-grid-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .price-detail-card {
        padding: 30px 20px;
    }
    .common-price-box-wrapper {
        grid-template-columns: 1fr;
    }
}



/* --- 料金例セクション全体の幅合わせ --- */
.price-example-section {
    margin-top: 100px;
    padding: 0 20px;
}

.price-example-card {
    background: #fff;
    border-radius: 30px;
    /* メインの料金カードと同じ幅に設定 */
    max-width: 1100px; 
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

/* ヘッダー部分も高級感に合わせて調整 */
.example-header {
    background: #fffaf5;
    padding: 40px;
    text-align: center;
    border-bottom: 2px dashed #eee;
}

.example-scenario {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 15px;
}

/* --- レシート部分のレイアウト（幅広対応） --- */
.example-receipt {
    display: flex;
    justify-content: space-between; /* 両端に広げる */
    align-items: center;
    padding: 60px 80px; /* 横の余白をたっぷり取る */
    background: #fff;
}

.receipt-item {
    text-align: center;
    flex: 1;
}

.receipt-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.receipt-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.receipt-operator {
    font-size: 1.8rem;
    color: #ddd;
    font-weight: 300;
    padding: 0 20px;
}

/* --- 合計金額ボックス（右側に配置） --- */
.receipt-total {
    background: #fffaf0;
    padding: 25px 50px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    text-align: center;
    margin-left: 40px; /* 前の要素との間隔 */
}

.total-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.total-amount {
    color: var(--primary-color);
    font-size: 2.4rem;
    font-weight: 900;
}

/* --- レスポンシブ対応（スマホでは縦に） --- */
@media (max-width: 992px) {
    .example-receipt {
        flex-direction: column;
        padding: 40px 20px;
    }

    .receipt-operator {
        padding: 15px 0;
    }

    .receipt-total {
        margin-left: 0;
        margin-top: 30px;
        width: 100%;
    }
}


/* カレンダーのセル(td)自体の高さを少し広げる */
#calendar-body td {
    height: 80px;         /* チップが入るためのスペース */
    vertical-align: top;  /* 数字を上に寄せる */
    padding-top: 8px !important;
}

/* チップの共通デザイン */
.calendar-chip {
    font-size: 0.65rem;   /* 小さな文字 */
    color: #fff;
    padding: 2px 4px;
    margin: 4px auto 0;   /* 数字との間に隙間を作り、中央寄せ */
    border-radius: 4px;
    line-height: 1.2;
    text-align: center;
    width: 90%;           /* マスからはみ出さない幅 */
    white-space: nowrap;  /* 1行で表示 */
    overflow: hidden;
    text-overflow: ellipsis; /* 長い文字は「...」にする */
    display: block;
}

/* 休日・祝日用（赤） */
.calendar-chip.is-holiday {
    background-color: #e74c3c;
}

/* その他イベント用（サイトカラー） */
.calendar-chip.is-info {
    background-color: var(--primary-color);
}


/* スマホ（画面幅768px以下）の時の見せ方 */
@media (max-width: 768px) {
    #calendar-body td {
        height: 60px !important; /* マスの高さをスマホ用に少し縮める */
        padding-top: 5px !important;
    }

    .calendar-chip {
        font-size: 0.5rem;    /* 文字をさらに小さく */
        padding: 1px 2px;     /* 余白をギリギリまで削る */
        margin-top: 2px;      /* 数字との隙間を詰める */
        border-radius: 2px;   /* 角丸も控えめに */
    }
}

/* カレンダーテーブルの幅を固定 */
#calendar-table {
    table-layout: fixed !important;
    width: 100%;
    border-collapse: collapse;
}

/* マスの基本スタイル */
#calendar-body td {
    height: 60px;
    vertical-align: middle;
    text-align: center;
    padding: 5px 0 !important;
    position: relative;
    border: 1px solid #f0f0f0; /* 薄く線を引くと綺麗です */
    background: #fff;
}

/* 休み・日曜日のセルの背景 */
.is-holiday-cell {
    background: #ffebee !important;
    color: #e74c3c;
    font-weight: bold;
}

/* ドットのデザイン */
.calendar-dot {
    width: 8px;           /* 6pxから少し大きくしました */
    height: 8px;
    border-radius: 50%;
    margin: 4px auto 0;   /* 数字の下に配置 */
    display: block;
}

.calendar-dot.is-holiday {
    background-color: #e74c3c;
}

.calendar-dot.is-info {
    background-color: var(--primary-color);
}

/* 今日の日付 */
.is-today {
    border: 2px solid #f39c12 !important;
    color: #f39c12 !important;
    font-weight: bold;
}


/* ツールチップのスタイル（タップ時に出現） */
.calendar-tooltip {
    position: absolute;
    bottom: 110%; /* セルの少し上に表示 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(51, 51, 51, 0.95); /* 濃いグレー */
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none; /* ツールチップ自体はクリックの邪魔をしない */
}

/* ツールチップの三角形（吹き出し風） */
.calendar-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.95) transparent transparent transparent;
}

/* --- 料金案内セクション全体のブラッシュアップ --- */
#price {
    background-color: #f8fbfc; /* ほんのり青みがかった清潔感のある背景 */
}

/* タブボタンの高級感アップ */
.price-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 15px 45px;
    font-size: 1.1rem;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 25px rgba(111, 181, 194, 0.3);
    transform: translateY(-2px);
}

/* --- カードデザイン（PCで横に広がるレイアウト） --- */
.price-detail-card {
    background: #fff;
    border-radius: 30px;
    padding: 50px 60px; /* 余白をたっぷりとる */
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.price-card-title {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.price-card-title i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* PCで運賃表と介助料を横に並べる */
.price-grid-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 運賃表を少し広めに */
    gap: 60px;
    align-items: start;
}

.price-sub-section h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    border-left: 6px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* --- テーブルの「今どき」デザイン --- */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* 行間に隙間を作る */
}

.info-table th {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px 0 0 12px;
    color: var(--primary-color);
    font-weight: bold;
    width: 40%;
}

.info-table td {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
}

.info-table td strong {
    color: #e67e22; /* 初乗り料金を強調 */
    font-size: 1.4rem;
    margin-right: 4px;
}

/* リスト（介助料）のデザイン */
.price-list-detailed {
    list-style: none;
    padding: 0;
}

.price-list-detailed li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1.05rem;
}

.price-list-detailed li span {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* --- 下部の「割増・割引」ボックス --- */
.common-price-box-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.common-price-item {
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-top: 6px solid var(--secondary-color); /* 上部にラインを入れる */
}

/* レスポンシブ：スマホでは縦に戻す */
@media (max-width: 992px) {
    .price-grid-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .price-detail-card {
        padding: 30px 20px;
    }
    .common-price-box-wrapper {
        grid-template-columns: 1fr;
    }
}