@charset "UTF-8";

/* =========================================================
   下層ページ メインビジュアル (Sub Hero)
========================================================= */
.p-sub-hero {
    position: relative;
    width: 100%;
    height: 395px;
    padding-top: 75px;
    background-color: var(--color-main);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.p-sub-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    100% { transform: translateY(0); opacity: 1; }
}

.p-sub-hero__title {
    font-family: var(--font-english);
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.p-sub-hero__en {
    display: block;
    font-family: var(--font-english);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .p-sub-hero { 
        height: 280px;
        padding-top: 60px;
    }
    .p-sub-hero__title { font-size: 1.8rem; }
    .p-sub-hero__en { font-size: 0.9rem; }
}

/* =========================================================
   初診の流れ ページ固有スタイル
========================================================= */
.p-flow-section {
    padding: 80px 0;
}

/* リード文（背景なし・中央寄せ） */
.p-flow-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    text-align: center;
    background: transparent;
    padding: 0;
}

/* 各STEPのブロック（全体を薄いグレーの枠線で囲む） */
.p-flow-block {
    position: relative;
    margin-bottom: 65px;
    border: 1px solid #eaeaea;
    background-color: #fff;
    padding: 40px;
    border-radius: 6px;
}
.p-flow-block:last-child {
    margin-bottom: 0;
}

/* STEP間を繋ぐシンプルな下向き矢印 */
.p-flow-block:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 10px 0 10px;
    border-color: #ccc transparent transparent transparent;
}

.p-flow-block__head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 15px;
}

.p-flow-block__num {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    font-family: var(--font-english);
    font-size: 1.1rem;
    padding: 6px 15px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.p-flow-block__title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-main);
}

.p-flow-block__body {
    font-size: 0.95rem;
    line-height: 1.8;
}

.p-flow-block__body p {
    margin-bottom: 15px;
}
.p-flow-block__body p:last-child {
    margin-bottom: 0;
}

/* STEP.1などの 2カラム構造 */
.p-flow-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 25px 0;
}
.p-flow-grid__col {
    width: 48%;
}
.p-flow-grid__col h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-main);
}

/* 枠線無しの薄いグレー背景ボックス */
.p-flow-box {
    background-color: var(--color-bg);
    padding: 20px 25px;
    border-radius: 4px;
    border: none;
}
.p-flow-box + .p-flow-box {
    margin-top: 15px;
}

/* ★Webでのご予約エリアのボタン群の隙間を調整 */
.p-flow-box .c-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px; /* ボタン同士の間にしっかりと隙間を確保 */
}

/* 「Web予約方法を見る」用の下線付きテキストリンクデザイン */
.p-flow-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--color-main);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-main); /* 下線を表示 */
    transition: opacity 0.3s ease;
    width: fit-content;
}

.p-flow-text-link::after {
    content: '\003e'; /* 文字化けを防ぐためUnicodeで「>」を指定 */
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 8px;
    line-height: 1;
}

.p-flow-text-link:hover {
    opacity: 0.7;
}

/* 詳細解説テキスト（Web予約・Web問診について） */
.p-flow-sub {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}
.p-flow-sub h3 {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--color-main);
}

/* STEP.4内などの2カラム画像エリア */
.p-flow-images {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}
.p-flow-images img {
    width: 48%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .p-flow-section { padding: 40px 0; }
    .p-flow-intro { text-align: left; margin-bottom: 40px; }
    .p-flow-block { padding: 20px 15px; margin-bottom: 50px; }
    .p-flow-block:not(:last-child)::after { bottom: -30px; border-width: 10px 8px 0 8px; }
    .p-flow-block__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .p-flow-grid { flex-direction: column; gap: 20px; }
    .p-flow-grid__col { width: 100%; }
    .p-flow-images { flex-direction: column; gap: 20px; }
    .p-flow-images img { width: 100%; }
}