@charset "UTF-8";

/* =========================================================
   初めての方 (Guide Top)
========================================================= */

/* リード文 */
.p-guide-lead {
    text-align: center;
    margin-bottom: 60px;
}
.p-guide-lead p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.p-guide-lead p:last-child {
    margin-bottom: 0;
}

/* 3カラムカードレイアウト */
.p-guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px; /* 上下40px 左右30px */
}

/* 各カードのスタイル */
.p-guide-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.p-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.p-guide-card__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.p-guide-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1; /* コンテンツ量が違っても高さを揃える */
}

/* カード内タイトル（縦棒装飾つき） */
.p-guide-card__title {
    font-family: var(--font-gothic);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.p-guide-card__title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--color-main);
    border-radius: 1px;
    flex-shrink: 0;
}

/* カード内テキスト */
.p-guide-card__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1; /* 余白を吸収し、ボタンを最下部に押しやる */
}

/* カード内ボタン */
.p-guide-card__btn {
    margin-top: auto;
    text-align: center;
}
.p-guide-card__btn .c-btn-circle-arrow {
    width: 100%; /* ボタンをカードの横幅いっぱいに広げる */
    padding: 12px 15px;
    font-size: 0.95rem;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 768px) {
    .p-guide-lead {
        text-align: left;
        margin-bottom: 40px;
    }
    .p-guide-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .p-guide-card__body {
        padding: 20px;
    }
}



/* =========================================================
   初診の流れ (Flow)
========================================================= */

/* 上部メイン画像 */
.p-guide-flow-img {
    margin-bottom: 50px;
    text-align: center;
}
.p-guide-flow-img img {
    width: 100%;
    /* ★修正：max-widthの制限を解除し、コンテナ幅いっぱいにする */
    max-width: 100%;
    aspect-ratio: 21 / 9; /* 横幅が広がるため、比率を少し細長に変更 */
    object-fit: cover;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* フロー全体ラッパー */
.p-guide-flow-wrap {
    /* ★修正：800pxの制限を解除し、全体幅に */
    width: 100%;
    margin: 0 auto;
}

/* 各ステップのカード */
.p-guide-flow__item {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid #e5e5e5; 
    position: relative;
}

/* ステップ間の下矢印 */
.p-guide-flow__item:not(:last-child)::after {
    content: '↓';
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-main);
    font-size: 24px;
    font-weight: bold;
}

/* ステップのヘッダー部分 */
.p-guide-flow__head {
    display: flex;
    align-items: center; 
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 12px;
}

/* STEP数字 */
.p-guide-flow__step {
    font-family: var(--font-english);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--color-main);
    padding: 4px 14px;
    border-radius: 4px;
    line-height: 1.2;
}

.p-guide-flow__head h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* ステップの本文 */
.p-guide-flow__body > p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.p-guide-flow__body > p:last-child {
    margin-bottom: 0;
}

/* ステップ内の小項目 (h3エリア) */
.p-guide-flow__sub {
    background-color: #f6f3ef;
    padding: 25px;
    border-radius: 6px;
    margin-top: 25px;
    margin-bottom: 25px;
}
.p-guide-flow__sub:last-child {
    margin-bottom: 0;
}
.p-guide-flow__sub h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.p-guide-flow__sub h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--color-main);
    border-radius: 1px;
}
.p-guide-flow__sub p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.p-guide-flow__sub p:last-child {
    margin-bottom: 0;
}

/* キャッシュレス決済画像など */
.p-guide-flow__img {
    margin-top: 20px;
    text-align: center;
}
.p-guide-flow__img img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: inline-block;
}

/* ページ下部のボタングループ */
.p-guide-flow-bottom-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 60px auto 0;
}
.p-guide-flow-bottom-btns .c-btn-circle-arrow {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 768px) {
    .p-guide-flow-img {
        margin-bottom: 30px;
    }
    .p-guide-flow__item {
        padding: 25px 20px;
        margin-bottom: 45px; 
    }
    .p-guide-flow__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .p-guide-flow__step {
        font-size: 1.1rem;
        padding: 4px 12px;
    }
    .p-guide-flow__head h2 {
        font-size: 1.25rem;
    }
    .p-guide-flow__sub {
        padding: 20px 15px;
    }
    .p-guide-flow__item:not(:last-child)::after {
        bottom: -35px; 
        font-size: 20px;
    }
}


/* =========================================================
   料金について (Fee)
========================================================= */

/* リード文 */
.p-fee-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1rem;
    line-height: 1.8;
}
.p-fee-lead a {
    color: var(--color-main);
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.3s;
}
.p-fee-lead a:hover {
    opacity: 0.7;
}

/* 各セクション共通 */
.p-fee-section {
    /* ★修正：800pxの制限を解除し、全体幅に */
    width: 100%;
    margin: 0 auto 60px;
}
.p-fee-section:last-child {
    margin-bottom: 0;
}
.p-fee-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* 注釈テキスト */
.p-fee-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.p-fee-note--bottom {
    margin-top: 15px;
    margin-bottom: 0;
}

/* 料金表リスト */
.p-fee-list {
    width: 100%;
    border-top: 1px solid #eaeaea;
}
.p-fee-list dl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px dashed #ccc;
    transition: background-color 0.3s ease;
}
.p-fee-list dl:hover {
    background-color: #fafafa;
}
.p-fee-list dt {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
}
.p-fee-list dd {
    font-weight: 500;
    color: var(--color-main);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 20px;
}

/* お支払い方法 */
.p-fee-payment__text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}
.p-fee-payment__img {
    text-align: center;
}
.p-fee-payment__img img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: inline-block;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 768px) {
    .p-fee-lead {
        text-align: left;
        margin-bottom: 40px;
    }
    .p-fee-section {
        margin-bottom: 50px;
    }
    .p-fee-section h2 {
        font-size: 1.3rem;
    }
    .p-fee-list dl {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 10px;
    }
    .p-fee-list dt {
        font-size: 0.95rem;
    }
    .p-fee-list dd {
        align-self: flex-end; /* 金額は右寄せに */
        margin-left: 0;
    }
}


/* =========================================================
   各種制度 (Support)
========================================================= */

/* リード文 */
.p-support-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1rem;
    line-height: 1.8;
}

/* セクション共通 */
.p-support-section {
    /* ★修正：800pxの制限を解除し、全体幅に */
    width: 100%;
    margin: 0 auto 60px;
}
.p-support-section:last-child {
    margin-bottom: 0;
}

/* h2 見出し */
.p-support-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.p-support-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--color-main);
    border-radius: 1px;
    flex-shrink: 0;
}

/* 本文 */
.p-support-section > p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* h3 小項目 */
.p-support-sub {
    margin-top: 30px;
}
.p-support-sub h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 15px;
    padding-left: 14px;
    position: relative;
}
.p-support-sub h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-main);
}
.p-support-sub p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* リスト（箇条書き） */
.p-support-list {
    margin-bottom: 15px;
}
.p-support-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.p-support-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-main);
    font-weight: bold;
}
/* ネストされたリスト（第2階層） */
.p-support-list ul {
    margin-top: 5px;
    margin-bottom: 5px;
}
.p-support-list ul li {
    font-size: 0.9rem;
}
.p-support-list ul li::before {
    content: '-';
    color: #888;
}

/* 注釈 */
.p-support-note {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 768px) {
    .p-support-lead {
        text-align: left;
        margin-bottom: 40px;
    }
    .p-support-section {
        margin-bottom: 50px;
    }
    .p-support-section h2 {
        font-size: 1.3rem;
    }
    .p-support-sub h3 {
        font-size: 1.05rem;
    }
}


/* =========================================================
   当院の書式・資料 (Format)
========================================================= */

/* リード文 */
.p-format-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1rem;
    line-height: 1.8;
}

/* セクション共通 */
.p-format-section {
    width: 100%;
    margin: 0 auto 60px;
}
.p-format-section:last-child {
    margin-bottom: 0;
}

/* h2 見出し */
.p-format-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.p-format-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--color-main);
    border-radius: 1px;
    flex-shrink: 0;
}

/* PDFダウンロードリンク（ボタン風） */
.p-format-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.p-format-list li {
    list-style: none;
}
.p-format-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px 25px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.p-format-link:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 右端のPDFアイコン（矢印なし・ゴシック体の四角バッジ） */
.p-format-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d32f2f;
    color: #fff;
    font-size: 0.85rem;
    font-family: var(--font-gothic); /* ★修正：ゴシック体に変更 */
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px; 
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

/* 親のリンクをホバーした時のアイコンの色 */
.p-format-link:hover .p-format-icon {
    background-color: #b71c1c; 
    color: #fff;
}

/* レスポンシブ (SP) */
@media screen and (max-width: 768px) {
    .p-format-lead {
        text-align: left;
        margin-bottom: 40px;
    }
    .p-format-section {
        margin-bottom: 50px;
    }
    .p-format-section h2 {
        font-size: 1.3rem;
    }
    .p-format-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .p-format-icon {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}