/* ==========================================================================
   10. Subpage Hero & Sticky Sidebar (下層ページ上部 ＆ 追従サイドバー)
   ========================================================================== */
/* テーマ別カラー変数定義 */
.subpage-services-container.theme-care {
    --theme-primary: #e06d64;
    --theme-color-main: linear-gradient(135deg, rgba(245, 155, 145, 0.75) 0%, rgba(224, 109, 100, 0.45) 100%);
    --theme-color-light: linear-gradient(135deg, rgba(255, 230, 225, 0.65) 0%, rgba(250, 195, 190, 0.25) 100%);
    --theme-line-color: rgba(224, 109, 100, 0.85);
    --theme-glow-color: radial-gradient(circle, rgba(255, 195, 188, 0.75) 0%, rgba(245, 155, 145, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
    --theme-sidebar-bg: #faece7;
}

.subpage-services-container.theme-disability {
    --theme-primary: #e08b2b;
    --theme-color-main: linear-gradient(135deg, rgba(250, 185, 95, 0.75) 0%, rgba(224, 139, 43, 0.45) 100%);
    --theme-color-light: linear-gradient(135deg, rgba(255, 240, 205, 0.65) 0%, rgba(250, 205, 145, 0.25) 100%);
    --theme-line-color: rgba(224, 139, 43, 0.85);
    --theme-glow-color: radial-gradient(circle, rgba(255, 215, 160, 0.75) 0%, rgba(247, 185, 107, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
    --theme-sidebar-bg: #f9ede0;
}

.subpage-services-container.theme-child {
    --theme-primary: #4a9e48;
    --theme-color-main: linear-gradient(135deg, rgba(140, 210, 135, 0.75) 0%, rgba(74, 158, 72, 0.45) 100%);
    --theme-color-light: linear-gradient(135deg, rgba(225, 250, 220, 0.65) 0%, rgba(175, 230, 170, 0.25) 100%);
    --theme-line-color: rgba(74, 158, 72, 0.85);
    --theme-glow-color: radial-gradient(circle, rgba(195, 240, 190, 0.75) 0%, rgba(162, 217, 161, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
    --theme-sidebar-bg: #e8f4e6;
}

.subpage-services-container {
    width: 100%;
    position: relative;
    background-color: #ffffff;
    padding-top: 0;
}

.subpage-layout-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ① 左側：スクロール追従サイドバー */
.subpage-sidebar {
    width: 200px;
    flex-shrink: 0;
    background-color: var(--theme-sidebar-bg);
}

.subpage-sticky-nav {
    position: sticky;
    top: 130px;
    padding: 240px 16px 40px;
}

.subpage-sticky-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subpage-sticky-nav a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b5a50;
    display: block;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.subpage-sticky-nav a:hover,
.subpage-sticky-nav a.is-active {
    color: var(--theme-primary);
}

/* ② 右側：メインコンテンツエリア */
.subpage-main-content {
    flex-grow: 1;
    min-width: 0;
    padding: 0 clamp(20px, 3.5vw, 60px) 100px;
    position: relative;
}

/* ★ パンくずリスト：ヘッダー（100px）の少し下（118px）に配置 */
.subpage-breadcrumb {
    position: absolute;
    top: 118px;
    left: 150px;
    z-index: 10;
    margin: 0;
}

.subpage-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    display: flex;
    align-items: center;
}

.subpage-breadcrumb .breadcrumb-item a {
    color: #736b65;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.subpage-breadcrumb .breadcrumb-item a:hover {
    color: var(--theme-primary);
}

.subpage-breadcrumb .breadcrumb-item.active {
    color: var(--theme-primary);
    letter-spacing: 0.05em;
}

.subpage-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: '>';
    color: #9e938b;
    padding: 0 8px;
    font-size: 0.72rem;
}

/* ヒーローセクション */
.subpage-hero-section {
    position: relative;
    min-height: clamp(480px, 46vw, 580px);
    margin-bottom: 50px;
}

/* ★ ページのタイトルの位置：ご指定通り元の位置（padding-top: 200px）を完全に維持 */
.subpage-hero-text {
    padding-top: 200px;
    max-width: 54%;
    position: relative;
    z-index: 10;
}

.subpage-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 700;
    color: #3b2e27;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    line-height: 1.25;
}

.subpage-title .title-sub {
    font-size: 0.6em;
    font-weight: 500;
    margin-left: 6px;
}

.subpage-lead {
    font-size: 0.95rem;
    color: #554a44;
    line-height: 2;
    letter-spacing: 0.04em;
}

/* ③ 右上の写真 ＆ 多重円 ＆ ふわっと広がる光彩背景 */
.subpage-hero-visual {
    position: absolute;
    top: -30px;
    right: -40px;
    width: clamp(460px, 46vw, 660px);
    height: clamp(460px, 46vw, 660px);
    aspect-ratio: 1 / 1;
    z-index: 2;
    pointer-events: none;
}

/* 最背面：ふわっと広がる光彩背景 */
.subpage-hero-visual::before {
    content: '';
    position: absolute;
    top: -18%;
    right: -15%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: var(--theme-glow-color);
    filter: blur(48px);
    -webkit-filter: blur(48px);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
}

/* 1. 最背面円：薄いグラデーション円 */
.visual-circle-bg-light {
    position: absolute;
    top: -10%;
    right: -3%;
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: var(--theme-color-light);
    z-index: 1;
}

/* 2. 中間：テーマ色のグラデーション円 */
.visual-circle-bg-main {
    position: absolute;
    top: -5%;
    right: -3%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--theme-color-main);
    z-index: 2;
}

/* 3. 線：テーマ色の細線（1本） */
.visual-line-theme {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    border: 1.5px solid var(--theme-line-color);
    z-index: 10;
}

/* 4. 線：白の細線（1本） */
.visual-line-white {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    z-index: 10;
}

/* 5. 円形写真本体 */
.visual-photo-wrap {
    position: absolute;
    top: 3%;
    right: 3%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    z-index: 5;
}

.visual-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-text-circle {
    position: absolute;
    top: 7%;
    right: 6%;
    width: 86%;
    height: 86%;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
}

/* タイトル「お知らせ」 */
.visual-circle-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: #1f1b18;
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0.05em;
}

/* 英語サブタイトル「—— Information」 */
.visual-circle-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.visual-circle-sub .sub-line {
    width: 36px;
    height: 1.5px;
    background-color: #8c7365;
    display: inline-block;
}

.visual-circle-sub .sub-en {
    font-size: 0.95rem;
    color: #55443b;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ★ 下層ヒーロー＆サイドバー スマホ表示最適化 */
@media (max-width: 991px) {
    .subpage-services-container {
        padding-top: 70px;
    }

    .subpage-layout-wrapper {
        flex-direction: column;
    }

    .subpage-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .subpage-sticky-nav {
        position: static;
        padding: 12px 16px;
    }

    .subpage-sticky-nav ul {
        flex-direction: row;
        gap: 20px;
    }

    .subpage-sticky-nav a {
        font-size: 0.88rem;
    }

    .subpage-main-content {
        padding: 16px 16px 60px;
        overflow-x: clip;
    }

    /* スマホ時：パンくずは上部に自然に流す */
    .subpage-breadcrumb {
        position: static;
        margin-bottom: 10px;
    }

    .subpage-hero-section {
        position: relative;
        min-height: 250px;
        display: block;
        margin-bottom: 24px;
    }

    .subpage-hero-text {
        padding-top: 0;
        max-width: 100%;
    }

    .subpage-title {
        max-width: 55%;
        font-size: clamp(1.25rem, 4.8vw, 1.65rem);
        margin-bottom: 14px;
        line-height: 1.3;
    }

    .subpage-lead {
        font-size: 0.82rem;
        line-height: 1.75;
        margin-top: 14px;
        position: relative;
        z-index: 10;
    }

    .subpage-hero-visual {
        position: absolute;
        top: -10px;
        right: -15px;
        width: clamp(160px, 44vw, 210px);
        height: clamp(160px, 44vw, 210px);
    }

    .subpage-hero-visual::before {
        top: -10%;
        right: -10%;
        width: 125%;
        height: 125%;
        filter: blur(28px);
        -webkit-filter: blur(28px);
    }

    .visual-line-theme,
    .visual-line-white {
        border-width: 1px;
    }

    .visual-photo-wrap {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .visual-text-circle {
        border-width: 2.5px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .visual-circle-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }

    .visual-circle-sub {
        margin-top: 8px;
        gap: 8px;
    }

    .visual-circle-sub .sub-line {
        width: 20px;
    }

    .visual-circle-sub .sub-en {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   11. Lower Header (下層ヘッダー専用スタイル)
   ========================================================================== */
#lowerHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(255 255 255 / 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#lowerHeader .header-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding-right: 240px;
    position: relative;
}

/* 左上：扇形ロゴボックス */
#lowerHeader .headerLogoContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 250px;
    border-radius: 0 0 100% 0;
    background-color: #ffffff;
    box-shadow: -4px 4px 20px rgba(230, 122, 83, 0.25);
    z-index: 1050;
    cursor: pointer;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#lowerHeader .logo-catch {
    font-size: 0.85rem;
    color: #665b55;
    line-height: 1.4;
    letter-spacing: 0.05em;
    font-weight: 500;
}

#lowerHeaderNav {
    display: flex;
    align-items: center;
    gap: 28px;
}

#lowerHeaderNav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#lowerHeaderNav ul li a {
    font-size: 15px;
    font-weight: 700;
    color: #4a3b32;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

#lowerHeaderNav ul li a:hover,
#lowerHeaderNav ul li a.is-active {
    color: var(--primary-color);
}

#lowerHeaderNav ul li a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#lowerHeader .recruit-corner-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    border-radius: 0 0 0 100%;
    background: linear-gradient(135deg, #ffa87d 0%, #F16E36 45%, #E55420 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: -4px 4px 20px rgba(230, 122, 83, 0.25);
    z-index: 1050;
    cursor: pointer;
    pointer-events: auto;
}

#lowerHeader .recruit-corner-btn .corner-pc-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 25px;
    padding-bottom: 15px;
    color: #ffffff;
    width: 100%;
    height: 100%;
}

#lowerHeader .recruit-corner-btn .btn-main-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

#lowerHeader .recruit-corner-btn .btn-sub-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-top: 6px;
    opacity: 0.95;
    text-align: right;
}

#lowerHeader .recruit-arrow-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background-color: #ffffff;
    color: #E55420;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ★ 下層ヘッダー スマホ表示最適化 */
@media (max-width: 991px) {
    #lowerHeader {
        height: 70px;
        padding: 0;
        background-color: #ffffff;
    }

    #lowerHeader .header-container {
        padding-right: 0;
        height: 70px;
    }

    #lowerHeader .headerLogoContainer {
        width: auto;
        height: 70px;
        border-radius: 0;
        box-shadow: none;
        background-color: transparent;
        position: absolute;
        left: 12px;
        top: 0;
        display: flex;
        align-items: center;
    }

    #lowerHeader .headerLogoContainer h1 {
        margin-left: 0 !important;
        justify-content: center;
    }

    #lowerHeader .headerLogoContainer img {
        width: 44px !important;
        height: auto;
    }

    #lowerHeader .logo-sub {
        font-size: 0.65rem;
    }

    #lowerHeader .logo-title {
        font-size: 1.25rem;
    }

    #lowerHeader .logo-catch {
        display: none;
    }

    #lowerHeader .recruit-corner-btn {
        width: 85px;
        height: 85px;
        z-index: 1060;
    }

    #lowerHeader .corner-hamburger-icon {
        margin-left: 12px;
        margin-bottom: 8px;
    }
}




/* ==========================================================================
   下層ページ：サービス分類ブロック ＆ 施設カードスタイル
   ========================================================================== */
.service-category-group {
    position: relative;
}

.category-header-wrap {
    margin-bottom: 8px;
}

.target-user-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9c8e87;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.category-title-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    position: relative;
}

.category-main-badge {
    background-color: var(--theme-primary, #e08b2b);
    color: #ffffff;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 20px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
}

.category-sub-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3b2e27;
    white-space: nowrap;
    margin-bottom: 2px;
}

.category-line-wrap {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 48px;
}

.category-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background-color: #8c684d;
    opacity: 0.65;
}

.category-icon-on-line {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: 44px;
    height: 40px;
    color: #4a3b32;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.category-icon-on-line svg {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
}

/* 施設カード */
.service-block-card {
    background-color: var(--theme-card-bg, #fdf4ea);
    border-radius: 4px;
    padding: 24px 30px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card-spec-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-primary, #e08b2b);
    border-bottom: 2.5px solid var(--theme-primary, #e08b2b);
    padding-bottom: 2px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.facility-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.facility-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.facility-item-link:hover {
    transform: translateX(4px);
}

.facility-item-link .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4a3b32;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.facility-item-link:hover .name {
    color: var(--theme-primary, #e08b2b);
}

/* ★ 右端丸型矢印ボタン：通常時はすべて統一のダークトーン */
.facility-item-link .arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #553b2b;
    color: #ffffff;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ★ ホバー時：マウスが乗った行の矢印だけがテーマカラーに変色 */
.facility-item-link:hover .arrow-circle {
    background-color: var(--theme-primary, #d97736);
    transform: translateX(3px);
}

/* スマホ表示最適化 (@media (max-width: 991px)) */
@media (max-width: 991px) {
    .category-title-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-line-wrap {
        width: 100%;
        height: 36px;
    }

    .category-icon-on-line {
        right: 12px;
        width: 34px;
        height: 32px;
    }

    .service-block-card {
        padding: 18px 16px 14px;
    }

    .facility-item-link .name {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}
