@charset "UTF-8";

/* =========================================================
   下層ページ共通ヘッダー (Sub Hero)
========================================================= */
.p-sub-hero-bg {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.p-sub-hero-title {
    padding: 60px 0 20px;
    text-align: center;
    margin-bottom: 40px;
}
@media screen and (max-width: 768px) {
    .p-sub-hero-bg {
        height: 100px;
    }
    .p-sub-hero-title {
        padding: 40px 0 10px;
        margin-bottom: 30px;
    }
}

/* =========================================================
   初めての方 (GUIDE)
========================================================= */
/* 導入テキストエリア */
.p-guide-intro {
    text-align: center;
    margin-bottom: 60px;
}
.p-guide-intro__lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
}
.p-guide-intro__text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

/* 導線グリッド (3カラム) */
.p-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
    margin-bottom: 80px;
}
.p-guide-card {
    display: flex;
    flex-direction: column;
}
.p-guide-card__img {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}
.p-guide-card__img img {
    width: 100%;
    aspect-ratio: 7 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.p-guide-card:hover .p-guide-card__img img {
    transform: scale(1.05);
}
.p-guide-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    border-left: 4px solid var(--color-main);
    padding-left: 10px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.p-guide-card__text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1; /* 下部のボタン位置を揃える */
}
.p-guide-card .c-btn-circle-arrow {
    align-self: flex-start;
}

/* スマホ版レスポンシブ */
@media screen and (max-width: 768px) {
    .p-guide-intro {
        text-align: left;
        margin-bottom: 40px;
    }
    .p-guide-intro__lead {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .p-guide-intro__text {
        font-size: 0.9rem;
    }
    .p-guide-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    .p-guide-card__img img {
        aspect-ratio: 7 / 3;
    }
}

/* =========================================================
   初診の流れ (FLOW)
========================================================= */
.p-flow {
    margin-bottom: 40px;
}
.p-flow-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eaeaea;
}
.p-flow-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.p-flow-item__info {
    width: 50%;
}
.p-flow-item__img {
    width: 45%;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0; /* ダミー画像用のグレー背景 */
}
.p-flow-item__img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.p-flow-step {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}
.p-flow-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.3;
}
.p-flow-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* 流れの中のリンクボタン */
.c-btn-step {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--color-text);
    background-color: transparent;
    color: var(--color-text);
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.c-btn-step:hover {
    background-color: var(--color-text);
    color: #fff;
}

/* スマホ版レスポンシブ */
@media screen and (max-width: 768px) {
    .p-flow-item {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    .p-flow-item__info,
    .p-flow-item__img {
        width: 100%;
    }
    .p-flow-title {
        font-size: 1.3rem;
    }
    .c-btn-step {
        max-width: 100%;
    }
}

/* =========================================================
   注意事項 (NOTES)
========================================================= */
.p-section--notes {
    background-color: var(--color-bg);
}
.p-notes-list dt {
    position: relative;
    padding-left: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 10px;
}
.p-notes-list dt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1em;
    background-color: var(--color-main);
    border-radius: 2px;
}
.p-notes-list dd {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    padding-left: 15px;
}
.p-notes-list dd:last-child {
    margin-bottom: 0;
}
@media screen and (max-width: 768px) {
    .p-notes-list dt {
        font-size: 1rem;
    }
    .p-notes-list dd {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
}


/* =========================================================
   料金について (PRICE)
========================================================= */
.p-price-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.p-price-section {
    margin-bottom: 60px;
}
.p-price-section:last-child {
    margin-bottom: 0;
}

/* ガイド共通 見出し (料金・各種制度で併用) */
.p-guide-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    border-left: 5px solid var(--color-main);
    padding-left: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.p-guide-heading span {
    font-size: 0.85rem;
    font-weight: normal;
    color: #666;
}
@media screen and (max-width: 768px) {
    .p-guide-heading {
        flex-direction: column;
        gap: 5px;
    }
}

/* テーブルデザイン */
.p-price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.p-price-table th,
.p-price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 0.95rem;
    background-color: #fff;
}
.p-price-table tr:first-child th,
.p-price-table tr:first-child td {
    border-top: 1px solid #ddd;
}
.p-price-table th {
    width: 50%;
    font-weight: 700;
    color: var(--color-text);
}
.p-price-table td {
    width: 50%;
    text-align: right; /* 金額は右寄せに */
}

/* テーブル下の注釈 */
.p-price-note {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* お支払い方法 */
.p-payment-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.p-payment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.p-payment-item {
    text-align: center;
}
.p-payment-item dt {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}
.p-payment-item dd {
    background-color: #eee;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 1.2rem;
    color: #999;
}
.p-payment-item dd img {
    max-width: 100%;
    height: auto;
}

/* スマホ版レスポンシブ */
@media screen and (max-width: 768px) {
    .p-price-table th,
    .p-price-table td {
        display: block; /* スマホでは縦並びに */
        width: 100%;
        text-align: left;
        padding: 12px 15px;
    }
    .p-price-table th {
        border-bottom: none;
        padding-bottom: 5px;
        background-color: #fafafa;
    }
    .p-price-table td {
        padding-top: 5px;
        margin-bottom: 5px;
    }
    .p-payment-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .p-payment-item dd {
        height: auto;
        min-height: 80px;
    }
}

/* =========================================================
   各種制度 (SUPPORT)
========================================================= */
.p-support-section {
    margin-bottom: 60px;
}
.p-support-section:last-child {
    margin-bottom: 0;
}
.p-support-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 25px;
}
.p-support-block {
    margin-bottom: 20px;
}
.p-support-block-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}
.p-support-block-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}
.p-support-list {
    margin-bottom: 20px;
    padding-left: 20px;
}
.p-support-list li {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 5px;
    color: #444;
}
.p-support-list li::before {
    content: "・";
    position: absolute;
    left: -1em;
}

/* 医療費控除用の少し控えめな見出し */
.p-support-heading-sub {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .p-support-section {
        margin-bottom: 50px;
    }
}


/* =========================================================
   当院の書式 (DOC)
========================================================= */
.p-doc-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.p-doc-list {
    max-width: 800px;
    margin: 0 auto 60px;
}

/* ★追加：カテゴリ見出し（縦棒飾り） */
.p-doc-category {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    border-left: 5px solid var(--color-main);
    padding-left: 12px;
    margin: 40px 0 20px; /* 上40px、下20pxの余白 */
    display: flex;
    align-items: center;
}
/* 一番最初の見出しは上の余白を詰める */
.p-doc-list > .p-doc-category:first-child {
    margin-top: 0;
}

.p-doc-item {
    margin-bottom: 15px; /* 少し間隔を詰めました */
}
.p-doc-item:last-child {
    margin-bottom: 0;
}

/* ★修正：リンクボタンのデザイン */
.p-doc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background-color: #fff;
    /* border-left: 5px solid var(--color-main); ←左のオレンジラインを削除 */
    border: 1px solid #ddd; /* 薄い枠線に変更 */
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text); /* 通常時は黒文字 */
    transition: all 0.3s ease;
}
/* オンマウス時の動き（背景と文字色の反転） */
.p-doc-link:hover {
    background-color: var(--color-main); /* 背景をオレンジに */
    color: #fff; /* 文字を白に */
    border-color: var(--color-main);
}

.p-doc-link__title {
    font-size: 1.1rem;
    font-weight: 700;
}
.p-doc-link__icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: bold;
}
.p-doc-link__icon img {
    width: 24px;
    height: auto;
    transition: filter 0.3s ease;
}

/* ★追加：オンマウス時にPDFアイコンの色を白っぽくする（任意） */
.p-doc-link:hover .p-doc-link__icon img {
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 768px) {
    .p-doc-intro {
        text-align: left;
    }
    .p-doc-category {
        font-size: 1.05rem;
        margin: 30px 0 15px;
    }
    .p-doc-link {
        padding: 15px 20px;
    }
    .p-doc-link__title {
        font-size: 1rem;
    }
}


