/*
 * ===========================================
 * doctor_page.css | 主治医・医師向けページ
 * ===========================================
 */

/* -------------------------------------------
 * 共通ルール/基本設定 (メインページから継承)
 * ------------------------------------------- */

html {
    font-size: 62.5%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #5c4e42;
    background-color: #FFFFFF;
    font-size: 1.8rem; /* 基本サイズ */
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    display: block; /* 画像の垂直揃え調整 */
}

a {
    color: #5c4e42;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* 共通レイアウト */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* セクションタイトル */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.2;
    font-size: 2.5rem; 
    text-align: center;
}

@media screen and (max-width: 800px) {
    /* 共通 */
    .container {
        width: 88%;
        padding: 0;
    }
    .section-title {
        font-size: 2.0rem;
    }
    .sp-only {
        display: inline;
    }
}
/* -------------------------------------------
 * トップビジュアル (top-visual)
 * ------------------------------------------- */

/* PC用 */
.top-visual {
    /* セクション自体はコンテンツ幅の制限を受けない */
    width: 100%;
    line-height: 0; /* 画像下のわずかな余白を削除 */
}
.top-visual img {
    width: 100%; /* ウィンドウ幅いっぱいに */
    height: auto;
}

.top-visual-sp {
    /* PCではスマホ画像を非表示 */
    display: none;
}
.top-visual-pc {
    /* PCではPC画像を表示 */
    display: block;
}


/* スマホ用 */
@media screen and (max-width: 800px) {
    .top-visual-sp {
        /* スマホではスマホ画像を表示 */
        display: block;
    }
    .top-visual-pc {
        /* スマホではPC画像を非表示 */
        display: none;
    }
}



/* -------------------------------------------
 * 3. ご紹介の流れ (Flow)
 * ------------------------------------------- */
.flow-section {
    background-color: #FFFFFF;
    padding: 8.0rem 0;
}

.flow-title {
    margin-bottom: 4.0rem;
	font-size: 3rem;
}

/* --- ステップアイテム（PC） --- */
.step-item {
    display: flex;
    align-items: center;
    gap: 0; /* 番号とコンテンツの間に余分な隙間を入れない */
	margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.step-number {
    /* ★修正: 番号の幅とサブタイトルとの隙間を確保 */
    width: 5.5rem; /* 番号の占有幅を固定 */
    text-align: right;
    margin-right: 2.5rem; /* 数字とサブタイトルの間の隙間 */
    margin-left: -2.5rem; /* コンテナからのインデント */
    flex-shrink: 0;
    font-family: 'Noto Serif JP', serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: #003f73;
    line-height: 1;
}

.step-content {
    flex-grow: 1;
    width: auto;
    padding-left: 0; /* 余分なパディングを削除 */
}

.step-mainbox{
	text-align: left;
	margin: 0 auto 5rem;
	width: 500px;
}


/* ボタンエリア */
.step-button {
    max-width: 500px;
    margin-bottom: 3.0rem;
}
.step-button a {
    display: block;
    line-height: 0;
}
.step-button img {
    width: 100%;
}

/* 連絡先エリア (Step 3: 電話/フォーム) */
.step-contact {
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: 4.0rem; /* 縦の隙間 */
    margin-top: 2.0rem;
}

.contact-block {
    flex: none; 
    min-width: 100%;
    margin-bottom: 0; 
}
.contact-note {
    /* 注釈テキストのスタイル */
    font-size: 1.6rem; /* 修正: 本文より少し小さいサイズ */
    line-height: 1.6;
    margin-top: 1.0rem;
	width: 500px;
}


/* -------------------------------------------
 * レスポンシブ (SP: 800px以下)
 * ------------------------------------------- */

@media screen and (max-width: 800px) {
    
    /* 3. ご紹介の流れ */
    .flow-section {
        padding: 4.0rem 0;
    }
    .flow-title {
        margin-bottom: 0rem;
		font-size: 2.8rem;
    }
    
	.step-item {
    align-items:center;
	margin-top: 0rem;
    margin-bottom: 0.8rem;
}
	
	.step-number {
    /* ★修正: 番号の幅とサブタイトルとの隙間を確保 */
    width: 3.5rem; /* 番号の占有幅を固定 */
    margin-right: 1.5rem; /* 数字とサブタイトルの間の隙間 */
    margin-left: -1.5rem; /* コンテナからのインデント */
    font-size: 3rem;
	text-align: right;
}
	
.step-mainbox{
	text-align: left;
	margin: 0 auto ;
	width: 100%;
}	
	
	

    .step-text {
        font-size: 1.5rem;
        line-height: 1.6;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
		max-width: 100%;
    }
    .step-button {
        max-width: 100%;
    }

    .step-contact {
        flex-direction: column;
        gap: 3.0rem;
        margin-top: 2.0rem;
    }
    .contact-block {
        flex: none;
        min-width: 100%;
    }
    
    .contact-note {
        margin-top: 0.5rem; /* SP注釈マージンを調整 */
        font-size: 1.3rem;
		max-width: 100%;
    }
}



/* -------------------------------------------
 * 4. フッター (Bottom)
 * ------------------------------------------- */

.bottom-section {
    background-color: #e5f6ff;
    padding: 6.0rem 0;
    text-align: center;
}

.bottom-text {
	    font-family: 'Noto Serif JP', serif;
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4.0rem;
}
.sp-only {
    display: none;
}

.bottom-button {
    max-width: 500px;
    margin: 0 auto;
}
.bottom-button a {
    display: block;
    line-height: 0;
}
.bottom-button img {
    width: 100%;
}

.contact-note {
	margin-top: -20px;
    }


@media screen and (max-width: 800px) {


    /* 4. フッター */
    .bottom-section {
        padding: 4.0rem 0;
    }
    .bottom-text {
        font-size: 1.5rem;
        margin-bottom: 3.0rem;
    }

}