@charset "UTF-8";

/* =========================================================
   診療案内一覧 (Medical List)
========================================================= */
.p-medical-list {
    display: flex;
    flex-direction: column;
    gap: 80px; /* 各コンテンツの縦の間隔 */
}

/* 2カラムの行設定 */
.p-medical-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
/* 偶数番目の行は左右を反転させる（互い違いのレイアウト） */
.p-medical-row:nth-child(even) {
    flex-direction: row-reverse;
}

.p-medical-row__img {
    width: 50%;
}
.p-medical-row__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.p-medical-row__content {
    width: 50%;
}
.p-medical-row__title {
    font-family: var(--font-gothic);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* タイトル左側の縦ライン（common.cssの踏襲） */
.p-medical-row__title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--color-main);
    border-radius: 1px;
    flex-shrink: 0;
}

.p-medical-row__desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

@media screen and (max-width: 768px) {
    .p-medical-list {
        gap: 60px;
    }
    /* スマホ版では互い違いを解除して全て「写真→テキスト」の縦並びにする */
    .p-medical-row, 
    .p-medical-row:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }
    .p-medical-row__img, 
    .p-medical-row__content {
        width: 100%;
    }
    .p-medical-row__title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .p-medical-row__desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .c-btn-wrap {
        margin-top: 15px;
        margin-bottom: 0;
    }
}


/* =========================================================
   精神科外来ページ (Outpatient)
========================================================= */
/* コンテンツ① リード文 */
.p-outpatient-lead {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    font-weight: 500;
}

/* コンテンツ② お悩みエリア */
.p-worries {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}
.p-worries__img {
    width: 50%;
}
.p-worries__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.p-worries__content {
    width: 50%;
}
.p-worries__list li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.p-worries__list li::before {
    content: '';
    position: absolute;
    top: 0.3em;
    left: 0;
    width: 1.1em;
    height: 1.1em;
    background: url('/demo/assets/img/common/icon_check.png') center/contain no-repeat;
}

/* 病名枠BOX */
.p-diseases-box {
    border: 2px solid var(--color-main);
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}
.p-diseases-box__list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    justify-content: center;
}
.p-diseases-box__list li {
    font-weight: bold;
    color: var(--color-main);
}

/* コンテンツ③ 特徴3カラム */
.p-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.p-feature-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.p-feature-card__img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}
.p-feature-card__body {
    padding: 25px;
}
.p-feature-card__title {
    font-family: var(--font-gothic);
    font-size: 1.25rem;
    color: var(--color-main);
    margin-bottom: 15px;
    font-weight: 700;
}
.p-feature-card__desc {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .p-outpatient-lead {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 40px;
    }
    .p-worries {
        flex-direction: column;
        gap: 30px;
    }
    .p-worries__img, .p-worries__content {
        width: 100%;
    }
    .p-diseases-box {
        padding: 20px;
        margin-top: 30px;
    }
    .p-diseases-box__list {
        gap: 10px 15px;
        justify-content: flex-start;
    }
    .p-feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* =========================================================
   精神分析的精神療法ページ (Psychotherapy)
========================================================= */
/* リード文 */
.p-psychotherapy-lead {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    font-weight: 500;
}

/* ★追加：PC版の縦長画像用の指定 */
.p-medical-row--vertical-img .p-medical-row__img img {
    aspect-ratio: 750 / 1334;
}

/* 1カラムテキストブロック */
.p-psycho-block {
    margin-bottom: 80px;
}
.p-psycho-block__inner {
    max-width: 900px;
    margin: 0 auto;
}
.p-psycho-block__inner p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 2カラム分割テキストブロック */
.p-psycho-cols {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}
.p-psycho-cols__item {
    width: 50%;
}
.p-psycho-cols__item h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-psycho-cols__item h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--color-main);
    border-radius: 1px;
    flex-shrink: 0;
}

.p-psycho-cols__item p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 治療の流れ (FLOW) */
.p-flow {
    max-width: 800px;
    margin: 0 auto;
}
.p-flow__item {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}
/* フローの矢印（最後の要素以外につける） */
.p-flow__item:not(:last-child)::after {
    content: '↓'; /* ▼からシンプルな↓に変更 */
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-main);
    font-size: 24px;
}

/* 数字部分の調整 */
.p-flow__num {
    flex-shrink: 0;
    width: 28px; /* 丸のサイズを小さく */
    height: 28px;
    background: var(--color-main); /* 初診枠のご案内と同じ色(#013432) */
    color: #fff;
    font-family: var(--font-gothic); /* Noto Sans JPに統一 */
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-top: 2px; /* タイトルとの高さを微調整 */
}
.p-flow__content {
    flex: 1;
}
.p-flow__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 10px;
    line-height: 1.4;
}
.p-flow__content p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    /* SP版は画像を通常の比率に戻す */
    .p-medical-row--vertical-img .p-medical-row__img img {
        aspect-ratio: 16 / 10;
    }
    .p-psychotherapy-lead {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 40px;
    }
    .p-psycho-block {
        margin-bottom: 50px;
    }
    .p-psycho-cols {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 50px;
    }
    .p-psycho-cols__item {
        width: 100%;
    }
    .p-flow__item {
        flex-direction: column;
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    .p-flow__item:not(:last-child)::after {
        bottom: -22px;
    }
    .p-flow__num {
        margin-bottom: 10px;
    }
}

