/* ==================================================
   就労継続支援B型ページ
================================================== */


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

.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として残す
================================================== */

.learn-number {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 9999px;
    background: #F7B52C;
    color: #4A2E1E;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==================================================
   B型リスト
   現在のHTMLでは未使用だが既存CSSとして残す
================================================== */

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

.btype-list li {
    color: #504534;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}


/* ==================================================
   作業アイコン
   現在のHTMLでは未使用だが既存CSSとして残す
================================================== */

.work-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==================================================
   スケジュール行形式
   現在はテーブル形式だが既存CSSとして残す
================================================== */

.schedule-row {
    padding: 20px 24px;
    border: 1px solid rgba(140, 90, 60, 0.10);
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(140, 90, 60, 0.05);
    display: flex;
    align-items: center;
    gap: 24px;
}

.schedule-time {
    width: 86px;
    flex-shrink: 0;
    color: #8C5A3C;
    font-weight: 700;
}

.schedule-line {
    width: 4px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #F7B52C;
}

@media (max-width: 640px) {
    .schedule-row {
        padding: 18px;
        align-items: flex-start;
        gap: 16px;
    }

    .schedule-time {
        width: 62px;
    }
}


/* ==================================================
   プログラム・仕事内容カード
================================================== */

.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);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.learn-card:hover {
    border-color: rgba(124, 198, 68, 0.45);
    box-shadow: 0 24px 50px rgba(140, 90, 60, 0.12);
    transform: translateY(-4px);
}

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

.learn-card h3 {
    line-height: 1.5;
}

.learn-card p {
    line-height: 1.8;
}

@media (max-width: 767px) {
    .learn-card img {
        height: 200px;
    }
}


/* ==================================================
   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 {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 9999px;
    background: #8C5A3C;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


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

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

.btype-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.42) 68%,
            rgba(255, 248, 238, 0.08) 100%
        );
    z-index: 1;
}

.btype-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;
}

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

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


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

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

    .btype-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%
            );
    }
}