/* --- コンテナの幅をトップページと統一する --- */
.container {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 25px;
    padding-left: 25px;
}

/* --- 下層ページ共通ヘッダー --- */
.page-header {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #fffaf0;
}



.category-tag {
    display: block;
    color: #5B744C;
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #5B744C;
    font-weight: bold;
}

/* --- 導入文の茶色設定 --- */
.detail-subtitle {
    color: #655d55;
    font-weight: bold;
}

.detail-description {
    color: #5A544E;
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- サポート内容のカード --- */
.service-detail-card {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    height: 100%;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 10px;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    border-color: #B2C2A2;
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.service-detail-card h4 {
    color: #5B744C;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-detail-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    text-align: left;
}

/* 訪問・通所のカードを囲むエリアに余白を追加 */
.service-type-box {
    margin-top: 40px;
    /* 上（具体的なサポート内容）との間隔 */
    margin-bottom: 60px;
    /* 下（ご利用について）との間隔 */
}

/* --- 訪問・通所の比較ボックス (NEW) --- */
.type-card {
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
    /* スマホで縦に並んだ時にカード同士がくっつかないように */
    margin-bottom: 20px;
}

.visit-type {
    background: #fff;
    border-color: #B2C2A2;
    box-shadow: 0 10px 30px rgba(178, 194, 162, 0.1);
}

.type-label {
    background: #5B744C;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.type-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #5B744C;
}

.coming-soon {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    opacity: 0.8;
}

.type-label-sub {
    background: #aaa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.coming-soon h4 {
    color: #888 !important;
}

.prep-status {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: center;
    color: #999;
}

/* --- 利用についてのテーブル --- */
.info-box {
    margin-left: auto;
    margin-right: auto;
}

.custom-table {
    margin-bottom: 0;
}

.custom-table th {
    background-color: transparent;
    border-bottom: 1px solid #eee;
    padding: 20px 10px;
    font-weight: bold;
}

.custom-table td {
    border-bottom: 1px solid #eee;
    padding: 20px 10px;
    color: #555;
}

/* ボタンを囲むブロック（少し余白を作る） */
.option-link-wrapper {
    margin: 10px 0 15px;
}

/* ミニボタンのデザイン */
.btn-mini-link {
    display: inline-block;
    background-color: #fff;
    color: #5B744C;
    border: 1px solid #B2C2A2;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ホバーした時の動き */
.btn-mini-link:hover {
    background-color: #f9fbf8;
    border-color: #5B744C;
    transform: translateX(5px);
    /* 少し右に動いて「次へ」感を出す */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- ボタン --- */
.btn-submit {
    display: inline-block;
    background-color: #5B744C;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

/* マウスを乗せたとき（ホバー）の状態 */
.btn-submit:hover {
    background-color: #6d855d;
    /* 少し明るい緑にする */
    box-shadow: 0 8px 25px rgba(91, 116, 76, 0.3);
    /* 影を強くして浮遊感を出す */
    color: #fff !important;
    text-decoration: none;
}

/* クリックした瞬間（アクティブ）の状態 */
.btn-submit:active {
    transform: translateY(-1px);
    /* 押し込んだ感じを出す */
    box-shadow: 0 4px 10px rgba(91, 116, 76, 0.2);
}

/* --- Bootstrap調整 --- */
.py-5 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* --- スマホ調整 --- */
@media (max-width: 768px) {

    /* ヘッダーの高さと文字サイズ調整 */
    .page-header {
        height: 200px;
        /* 少しコンパクトに */
        padding: 0 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
        /* スマホで1行に収まりやすく */
    }

    /* 導入文の調整 */
    .detail-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .detail-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* サポート内容のカード：スマホでは1枚ずつ縦に並ぶ前提の調整 */
    .service-detail-card {
        padding: 25px 20px;
        margin-bottom: 20px;
        /* カード同士の隙間 */
    }

    /* 訪問・通所の比較ボックス */
    .type-card {
        margin-bottom: 15px;
        padding: 20px;
    }

    /* 利用についてのテーブル：ここが一番崩れやすい */
    .custom-table th,
    .custom-table td {
        display: block;
        /* 縦に並べる */
        width: 100%;
        border-bottom: none;
        /* 縦並びなので横線はいったん消す */
        padding: 10px 0;
        text-align: left;
    }

    .custom-table th {
        color: #5B744C;
        padding-bottom: 5px;
        font-size: 0.9rem;
    }

    .custom-table td {
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
        /* 項目ごとに区切り線を入れる */
        font-size: 1rem;
    }

    /* ボタンのサイズ調整 */
    .btn-submit {
        width: 100%;
        /* スマホではボタンを横いっぱいにすると押しやすい */
        text-align: center;
        padding: 15px 20px;
    }

    /* 余白の調整 */
    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .pc-only {
        display: none;
    }

}