/* ==================================================
   自立訓練（生活訓練）ページ
================================================== */


/* ==================================================
   セクション見出し
================================================== */

.custom-underline {
    position: relative;
    display: inline-block;
}

.custom-underline::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 80px;
    height: 4px;
    border-radius: 9999px;
    background-color: #7CC644;
    transform: translateX(-50%);
}


/* ==================================================
   共通カード
================================================== */

.soft-card {
    border: 1px solid rgba(140, 90, 60, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(140, 90, 60, 0.06);
}


/* ==================================================
   トレーニング一覧
   現在のHTMLでは未使用だが、既存CSSとして残す
================================================== */

.training-list {
    display: grid;
    gap: 12px;
}

.training-list-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: #F8F4D6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.training-list-item.green {
    background: #EEF8EF;
}


/* ==================================================
   プログラムカード
================================================== */

.learn-card {
    overflow: hidden;
    border: 1px solid rgba(140, 90, 60, 0.12);
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(140, 90, 60, 0.06);
}

.learn-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}


/* ==================================================
   1日の流れ
================================================== */

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid rgba(140, 90, 60, 0.12);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table th,
.schedule-table td {
    padding: 22px 16px;
    vertical-align: top;
}

@media (max-width: 767px) {
    .schedule-table th,
    .schedule-table td {
        padding: 18px 12px;
    }
}


/* ==================================================
   フロー番号
   現在のHTMLでは未使用だが、既存CSSとして残す
================================================== */

.flow-number {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 9999px;
    background: #8C5A3C;
    color: #FFFFFF;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==================================================
   HERO
================================================== */

.independence-hero {
    position: relative;
    overflow: hidden;
    background-image: url("/assets/images/independence/main.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.independence-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 248, 238, 0.95) 0%,
            rgba(255, 248, 238, 0.88) 38%,
            rgba(255, 248, 238, 0.38) 68%,
            rgba(255, 248, 238, 0.08) 100%
        );
    z-index: 1;
}

.independence-hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 9999px;
    background: rgba(124, 198, 68, 0.18);
    z-index: 1;
}

.independence-hero-title {
    color: #8C5A3C;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.independence-hero-text {
    color: #4A2E1E;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}


/* ==================================================
   HERO：スマートフォン
================================================== */

@media (max-width: 767px) {
    .independence-hero {
        background-position: center right;
    }

    .independence-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(255, 248, 238, 0.96) 0%,
                rgba(255, 248, 238, 0.90) 62%,
                rgba(255, 248, 238, 0.55) 100%
            );
    }
}