/* 児童発達支援ページ専用CSS：TOP・ABOUT・common.css は変更しない */
.cd-page-hero {
    overflow: hidden;
    background: radial-gradient(circle at 55% 8%, #ffedf6 0 11%, transparent 11.5%), radial-gradient(circle at 87% 19%, #e6f7ff 0 10%, transparent 10.5%), linear-gradient(110deg, #f4fbff, #fff 55%, #f5fff9);
}
.cd-page-hero__inner {
    position: relative;
    padding-top: 28px;
    padding-bottom: 53px;
    min-height: 265px;
}
.cd-breadcrumbs {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px;
    color: #5b7590;
}
.cd-breadcrumbs a:hover {
    color: var(--color-pink);
}
.cd-kicker {
    margin: 28px 0 4px;
    color: var(--color-pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}
.cd-page-hero h1 {
    margin: 0 0 12px;
    color: #123d6b;
    font-size: clamp(32px, 3.7vw, 50px);
    line-height: 1.4;
}
.cd-page-hero__subtitle {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 700;
    line-height: 1.9;
}
.cd-landscape {
    position: absolute;
    right: 7%;
    bottom: 0;
    color: #f4a5bf;
    font-size: 122px;
    opacity: .4;
    line-height: 1;
}
.cd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 84px);
    align-items: center;
}
.cd-overview {
    padding-top: 76px;
    padding-bottom: 76px;
}
.cd-overview h2 {
    margin: 0 0 24px;
    color: #174a7a;
    font-size: clamp(25px, 2.4vw, 34px);
}
.cd-overview h2::before {
    content: '';
    display: inline-block;
    width: 27px;
    height: 5px;
    margin-right: 15px;
    border-radius: 7px;
    background: var(--color-pink);
    vertical-align: middle;
}
.cd-overview p {
    margin: 0 0 16px;
    line-height: 2;
}
.cd-overview__photo {
    margin: 0;
}
.cd-overview__photo img {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
    border-radius: 22px;
}
.cd-band {
    background: #fff5f9;
}
.cd-support {
    padding: 62px 0 72px;
}
.cd-section-heading {
    margin-bottom: 30px;
    text-align: center;
}
.cd-section-heading h2 {
    margin: 0;
    color: #153f70;
    font-size: clamp(26px, 3vw, 36px);
}
.cd-section-heading h2 small {
    font-size: .6em;
}
.cd-section-heading h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto;
    border-radius: 8px;
    background: var(--color-pink);
}
.cd-section-heading p {
    margin: 0;
}
.cd-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.cd-service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    background: #fff;
}
.cd-service-card__content {
    flex: 1;
    text-align: center;
}
.cd-service-card h3 {
    margin: 0 0 10px;
    color: #ef5086;
    font-size: 23px;
}
.cd-service-card--individual h3 {
    color: #25a676;
}
.cd-service-card--exercise h3 {
    color: #238ed1;
}
.cd-service-card p {
    margin: 0 0 18px;
    line-height: 1.85;
}
.cd-service-card img {
    width: 100%;
    aspect-ratio: 1.55;
    border-radius: 13px;
    object-fit: cover;
}
.cd-flow {
    padding-top: 70px;
    padding-bottom: 66px;
}
.cd-timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cd-timeline__item {
    overflow: hidden;
    border: 1px solid #ffe0ea;
    border-radius: 19px;
    padding: 14px 10px 12px;
    background: #fff9fb;
    text-align: center;
}
.cd-timeline__item:nth-child(2n) {
    border-color: #e4f3fc;
    background: #f6fbff;
}
.cd-timeline__time {
    display: block;
    margin-bottom: 12px;
    border-radius: 20px;
    background: #f46d9a;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.cd-timeline__item:nth-child(2n) .cd-timeline__time {
    background: #44aee0;
}
.cd-timeline h3 {
    margin: 0 0 9px;
    color: #154b7b;
    font-size: 16px;
    line-height: 1.45;
}
.cd-timeline p {
    min-height: 104px;
    margin: 0 0 15px;
    font-size: 12px;
    line-height: 1.65;
}
.cd-timeline img {
    width: 100%;
    aspect-ratio: 1.3;
    object-fit: cover;
    border-radius: 10px;
}
.cd-note,
.cd-photo-note {
    margin-top: 17px;
    color: #687f93;
    font-size: 12px;
}
.cd-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 28px;
}
.cd-info-panel {
    padding: 28px;
    border-radius: 20px;
}
.cd-info-panel--target {
    background: #eef9f3;
}
.cd-info-panel--hours {
    background: #fff7df;
}
.cd-info-panel h2 {
    margin: 0 0 15px;
    font-size: 25px;
}
.cd-info-panel p {
    margin: 10px 0;
}
.cd-info-panel__caution {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.8);
    font-size: 13px;
}
.cd-time-grid {
    display: grid;
    gap: 8px;
}
.cd-time-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
}
.cd-photo-note {
    margin-bottom: 15px;
}
.cd-cta {
    padding: 24px 0 55px;
}
.cd-cta__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 25px 34px;
    border-radius: 22px;
    background: #fff1f7;
}
.cd-cta__inner > img {
    width: 130px;
    height: auto;
}
.cd-cta__inner > div {
    flex: 1;
}
.cd-cta__inner h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
}
.cd-cta__inner p {
    margin: 5px 0 0;
    font-size: 13px;
}
@media (max-width: 1000px) {
    .cd-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .cd-timeline p {
        min-height: 80px;
    }
}
@media (max-width: 767px) {
    .cd-page-hero__inner {
        min-height: 240px;
        padding-top: 21px;
        padding-bottom: 40px;
    }
    .cd-page-hero h1 {
        font-size: 31px;
    }
    .cd-page-hero__subtitle {
        font-size: 14px;
    }
    .cd-landscape {
        right: 0;
        font-size: 72px;
    }
    .cd-overview,
    .cd-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
    }
    .cd-overview {
        padding-top: 44px;
        padding-bottom: 48px;
    }
    .cd-overview p,
    .cd-service-card p {
        font-size: 15px;
        line-height: 1.9;
    }
    .cd-overview__photo img {
        aspect-ratio: 4 / 3;
    }
    .cd-services {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .cd-support {
        padding: 45px 0;
    }
    .cd-flow {
        padding-top: 50px;
        padding-bottom: 43px;
    }
    .cd-timeline {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cd-timeline__item {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        text-align: left;
        padding: 14px;
    }
    .cd-timeline__time {
        font-size: 16px;
        text-align: center;
    }
    .cd-timeline__body {
        min-width: 0;
    }
    .cd-timeline p {
        min-height: 0;
        font-size: 14px;
    }
    .cd-timeline img {
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }
    .cd-details {
        grid-template-columns: 1fr;
    }
    .cd-info-panel {
        padding: 20px;
    }
    .cd-time-grid > div {
        flex-direction: column;
        gap: 3px;
    }
    .cd-cta__inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 22px 18px;
    }
    .cd-cta__inner > img {
        width: 80px;
    }
    .cd-cta__inner .button {
        width: 100%;
    }
}


/* ==========================================================
   V2: 1日の流れ／各時刻の色・見出しアイコン・工程間の矢印
   このファイルのみ適用。共通CSS・他ページは変更しない。
   ========================================================== */
.cd-flow .cd-section-heading--flow {
    text-align: left;
}
.cd-section-heading--flow h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-section-heading--flow h2::after {
    display: none;
}
.cd-icon-clock {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    color: #f84a86;
}
.cd-section-heading--flow p {
    margin-top: 8px;
    color: #55708e;
}
.cd-timeline {
    gap: 15px;
}
.cd-timeline .cd-timeline__item {
    --cd-step-color: #f66e9a;
    --cd-step-bg: #fff8fb;
    --cd-step-border: #ffe0eb;
    position: relative;
    overflow: visible;
    background: var(--cd-step-bg);
    border-color: var(--cd-step-border);
}
.cd-timeline__item:nth-child(2) {
    --cd-step-color: #fb9361;
    --cd-step-bg: #fff9f5;
    --cd-step-border: #ffe6d9;
}
.cd-timeline__item:nth-child(3) {
    --cd-step-color: #f7bd27;
    --cd-step-bg: #fffcf3;
    --cd-step-border: #fceec6;
}
.cd-timeline__item:nth-child(4) {
    --cd-step-color: #49c88f;
    --cd-step-bg: #f5fcf8;
    --cd-step-border: #dbf3e8;
}
.cd-timeline__item:nth-child(5) {
    --cd-step-color: #45b5f1;
    --cd-step-bg: #f3fbff;
    --cd-step-border: #d8f0fe;
}
.cd-timeline__item:nth-child(6) {
    --cd-step-color: #a477e8;
    --cd-step-bg: #fbf7ff;
    --cd-step-border: #eadffa;
}
.cd-timeline__item:nth-child(7) {
    --cd-step-color: #f46b9b;
    --cd-step-bg: #fff7fa;
    --cd-step-border: #ffdeeb;
}
.cd-timeline .cd-timeline__item .cd-timeline__time {
    background: var(--cd-step-color);
    color: #fff;
}
.cd-timeline__icon {
    display: block;
    width: 29px;
    height: 29px;
    margin: 2px auto 9px;
    color: var(--cd-step-color);
}
.cd-timeline__item h3 {
    color: var(--cd-step-color);
    font-weight: 800;
}
.cd-timeline__item:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 46%;
    right: -13px;
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--cd-step-color);
    border-right: 3px solid var(--cd-step-color);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* 対象となるお子さま：装飾はすべて透過WebP */
.cd-info-panel--target {
    position: relative;
    overflow: hidden;
    min-height: 275px;
    padding-bottom: 125px;
}
.cd-info-panel--target > h2,
.cd-info-panel--target > p {
    position: relative;
    z-index: 1;
}
.cd-info-panel--target h2 {
    display: flex;
    align-items: center;
    gap: 9px;
}
.cd-target-leaf {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
.cd-target-flower {
    position: absolute;
    top: 71px;
    right: 20px;
    width: 47px;
    height: 47px;
    object-fit: contain;
    opacity: .9;
    pointer-events: none;
}
.cd-target-children {
    position: absolute;
    bottom: 8px;
    right: 17px;
    width: min(39%, 170px);
    height: auto;
    pointer-events: none;
}
.cd-info-panel--hours h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-hours-clock {
    width: 37px;
    height: 37px;
    color: #f5a900;
    flex: 0 0 37px;
}

@media (min-width: 768px) and (max-width: 1000px) {
    .cd-timeline__item:nth-child(4)::after {
        display: none;
    }
}
@media (max-width: 767px) {
    .cd-section-heading--flow h2 {
        gap: 9px;
        flex-wrap: wrap;
    }
    .cd-icon-clock {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }
    .cd-timeline {
        gap: 21px;
    }
    .cd-timeline__icon {
        grid-column: 1;
        margin: 0 auto;
        width: 28px;
        height: 28px;
    }
    .cd-timeline__item:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -14px;
        transform: translateX(50%) rotate(135deg);
    }
    .cd-timeline__item {
        grid-template-columns: 78px minmax(0, 1fr);
    }
    .cd-timeline__item > .cd-timeline__icon {
        grid-row: 2;
    }
    .cd-timeline__body {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .cd-info-panel--target {
        padding-bottom: 105px;
    }
    .cd-target-children {
        width: min(44%, 145px);
    }
    .cd-target-flower {
        right: 10px;
        width: 38px;
        height: 38px;
    }
}


/* ============================================================
   V3: 集団療育・午後の個別療育・オーダーメイド療育
   既存のTOP、ABOUT、common.cssには影響させない
   ============================================================ */
.cd-program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.cd-program { border-radius: 22px; padding: 28px; background: #fff; border: 1px solid #f6cedc; min-width: 0; }
.cd-program--individual { border-color: #bce4f8; }
.cd-program__tag { display: inline-block; padding: 7px 17px; border-radius: 999px; background: #f96a9c; color: white; font-weight: 800; margin-bottom: 15px; }
.cd-program--individual .cd-program__tag { background: #40aee8; }
.cd-program h3 { color: #163d66; font-size: clamp(20px,2vw,26px); margin: 0 0 15px; }
.cd-program p { line-height: 1.85; margin: 0 0 13px; }
.cd-program__schedule { display: flex; align-items: flex-start; gap: 8px; flex-direction: column; padding: 14px; background: #fff0f5; border-radius: 12px; }
.cd-program--individual .cd-program__schedule { background: #eff8ff; }
.cd-program__schedule strong { font-size: 17px; color: #d73570; }
.cd-program--individual .cd-program__schedule strong { color: #217bad; }
.cd-program__schedule span { font-size: 13px; }
.cd-program__photo { margin: 19px 0 10px; }
.cd-program__photo img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 15px; }
.cd-program__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.cd-program__gallery img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; }
.cd-program .cd-program__note { font-size: 12px; color: #49637c; margin: 14px 0 0; }
.cd-custom { margin-top: 45px; background: linear-gradient(145deg,#f0fbf5,#fef8fa 70%); padding-top: 64px; padding-bottom: 64px; }
.cd-custom__eyebrow { color: #299565; font-size: 13px; font-weight: 800; }
.cd-custom__intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; margin-top: 32px; }
.cd-custom__intro > div p { line-height: 1.85; margin: 0 0 13px; }
.cd-custom__intro > img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 20px; }
.cd-custom__lead { color: #145a42; font-weight: 800; font-size: 18px; }
.cd-custom__note { background: white; border-radius: 12px; padding: 15px; color: #1c7556; font-weight: 750; }
.cd-custom__subheading { text-align: center; margin: 52px 0 24px; color: #163d66; font-size: clamp(21px, 2.3vw, 29px); }
.cd-custom__features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.cd-custom__features article { background: white; border-radius: 17px; padding: 24px; }
.cd-custom__features h4 { color: #163d66; font-size: 17px; margin: 9px 0 14px; }
.cd-custom__features p { font-size: 14px; line-height: 1.85; }
.cd-custom__number { color: #2c9b72; font-weight: 900; font-size: 22px; }
.cd-custom__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.cd-custom__steps article { border-radius: 15px; background: white; padding: 24px; }
.cd-custom__steps strong { color: #27966d; }
.cd-custom__steps h4 { margin: 12px 0; color: #163d66; }
.cd-custom__steps p { line-height: 1.85; font-size: 14px; }
.cd-custom__steps img { margin-top: 12px; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; }
.cd-custom__fineprint { font-size: 12px; line-height: 1.7; margin-top: 20px; color: #526c80; }
.cd-hours-v3 { display: grid; gap: 10px; margin: 18px 0; }
.cd-hours-v3 > div { display: grid; gap: 5px; background: #fff; border-radius: 13px; padding: 12px 16px; }
.cd-hours-v3 strong { color: #1870a2; }
.cd-hours-v3 b { color: #173e68; font-size: 18px; }
.cd-hours-v3 small { font-size: 12px; color: #596f83; }
.cd-closing { max-width: 880px; padding-top: 50px; padding-bottom: 35px; text-align: center; }
.cd-closing h2 { color: #173e68; margin-bottom: 20px; font-size: clamp(21px,2.5vw,28px); }
.cd-closing p { line-height: 1.9; margin: 0 auto 12px; }
@media (max-width: 767px) {
  .cd-program-grid, .cd-custom__intro, .cd-custom__features, .cd-custom__steps { grid-template-columns: 1fr; }
  .cd-program { padding: 20px; }
  .cd-program__photo img, .cd-custom__intro > img { aspect-ratio: 8 / 5; }
  .cd-custom { padding-top: 42px; padding-bottom: 42px; margin-top: 30px; }
  .cd-custom__intro { gap: 17px; }
  .cd-custom__features article, .cd-custom__steps article { padding: 20px; }
  .cd-custom__subheading { margin-top: 34px; }
  .cd-closing { padding-top: 34px; padding-bottom: 25px; text-align: left; }
}


/* ========================================================
   2026-10-26: 1日の流れを午前4枚＋お昼から5枚に変更
   児童発達支援ページのタイムラインにのみ適用
   ======================================================== */
.cd-flow__subheading {
    margin: 24px 0 18px;
    color: #154b7b;
    font-size: 21px;
    line-height: 1.5;
}
.cd-flow__subheading--afternoon {
    margin-top: 38px;
}
.cd-flow .cd-timeline--morning {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cd-flow .cd-timeline--afternoon {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.cd-flow .cd-timeline__item {
    min-width: 0;
}
.cd-flow .cd-timeline__time {
    padding: 5px 6px;
    font-size: clamp(12px, 1.18vw, 16px);
    line-height: 1.5;
    white-space: nowrap;
}
.cd-flow .cd-timeline__body {
    min-width: 0;
}
.cd-flow .cd-timeline__body p {
    min-height: 0;
    margin-bottom: 12px;
}
.cd-flow .cd-timeline--afternoon .cd-timeline__item:nth-child(2) {
    --cd-step-color: #a477e8;
    --cd-step-bg: #fbf7ff;
    --cd-step-border: #eadffa;
}
.cd-flow .cd-timeline--afternoon .cd-timeline__item:nth-child(3) {
    --cd-step-color: #49c88f;
    --cd-step-bg: #f5fcf8;
    --cd-step-border: #dbf3e8;
}
.cd-flow .cd-timeline--afternoon .cd-timeline__item:nth-child(4) {
    --cd-step-color: #f7bd27;
    --cd-step-bg: #fffcf3;
    --cd-step-border: #fceec6;
}
.cd-flow .cd-timeline--afternoon .cd-timeline__item:nth-child(5) {
    --cd-step-color: #45b5f1;
    --cd-step-bg: #f3fbff;
    --cd-step-border: #d8f0fe;
}
.cd-flow .cd-timeline--morning .cd-timeline__item:last-child::after,
.cd-flow .cd-timeline--afternoon .cd-timeline__item:last-child::after {
    display: none;
}
@media (max-width: 1000px) {
    .cd-flow .cd-timeline--morning,
    .cd-flow .cd-timeline--afternoon {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cd-flow .cd-timeline__item::after {
        display: none;
    }
}
@media (max-width: 767px) {
    .cd-flow .cd-timeline--morning,
    .cd-flow .cd-timeline--afternoon {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .cd-flow .cd-timeline__item {
        display: block;
        padding: 16px;
    }
    .cd-flow .cd-timeline__time {
        display: inline-block;
        min-width: 165px;
        margin-bottom: 12px;
        font-size: 15px;
    }
    .cd-flow .cd-timeline__body {
        display: block;
    }
    .cd-flow .cd-timeline__body img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
    }
    .cd-flow__subheading {
        margin-top: 22px;
    }
}


/* 2026-10-26: 対象となるお子さま・ご利用時間の上部余白のみ調整 */
.cd-details {
    padding-top: 52px;
}

@media (max-width: 767px) {
    .cd-details {
        padding-top: 36px;
    }
}
