@charset "UTF-8";

/* ベース設定 */
body {
    font-family: sans-serif;
    color: #333333;
}

img {
    max-width: 100%;
    height: auto;
}

h2 {
    color: #8f6446;
}

h2,
h3,
.nav-list a,
.reserve a {
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
}

section {
    margin-top: 50px;
}

p {
    line-height: 1.5;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
    padding-top: 1em;
}

/* ヘッダー */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ */
.logo {
    width: 15%;
}

/* ナビゲーション */
.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list li a {
    display: inline-block;
    padding: 10px 25px;
    background: #f7931e;
    border-radius: 30px;
    color: white;
}

/* 診療予約ボタン */
.reserve {
    background: #a37553;
    color: white;
    padding: 10px 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    border: 2px dotted white;
    white-space: nowrap;
    width: 60px;
}

.reserve a {
    display: block;
    color: white;
}

/* ハンバーガー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background-color: #f7931e;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    display: block;
    border-radius: 2px;
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    background: #f7931e;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid white;
    color: white;
}


/* 見出しのうさぎアイコン */
h2 {
    text-align: center;
}

.guidance_title::before,
.about_title::before,
.time_title::before,
.all-news_title::before,
.contact_title::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background-image: url('../img/usagi.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.guidance_title span,
.about_title span,
.time_title span {
    display: block;
    position: relative;
    margin-bottom: 16px;
    color: #DE7C2D;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.05em;
    z-index: 2;
}



.main-img {
    width: 100%;
    position: relative;
    background-image: url(../img/mv-usagi.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    aspect-ratio: 16 / 5.7;
    /* max-height: 100vh; */
    /* ビューポートを超えすぎないように*/
}



.wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10%;
    padding-right: 10%;
}

/* ---------------------
 index.html
---------------------- */


/* お知らせ */
#news {
    scroll-margin-top: 100px;
    /* ← ヘッダーの高さ分だけ余裕を持たせる */
}


.news_container {
    padding: 2em;
    border-radius: 30px;
    background-color: #FFF8F0;
}

.news_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.news_list {
    margin: 20px 0;
    border-top: 1px dashed #f7931e;
}

.news_list li {
    padding: 15px 5px;
    border-bottom: 1px dashed #f7931e;
    /* text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap; */
}

.date {
    font-size: 16px;
    margin-right: 10px;
}

.news_text a {
    color: #333;
}

.news_text a:hover {
    color: #f7931e;
}

.news_btn {
    text-align: center;
    margin-top: 50px;
}

.news_btn a {
    color: #f7931e;
}

.btn {
    color: #f7931e;
    padding: 10px 50px;
    background: #fff;
    border: 2px solid #f7931e;
    border-radius: 50px;
    transition: all 0.5s;
}

.btn:hover {
    color: #fff;
    background: #f7931e;
}

.btn:after {
    content: "▶︎";
    font-weight: 900;
    padding-left: 10px;
}

/* 診療案内 */
.guidance_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}


.guidance_innner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
}

.guidance_box {
    margin: 1em;
    flex: 1;
    text-align: center;
}

.guidance_text {
    padding-top: 1em;
    color: #8f6446;
}

.guidance_img img {
    width: 70%;
}

/* 河北クリニックについて */
.about_container {
    background-color: #FFF8F0;
    border-radius: 30px;
    padding: 1em 1em 2em 1em;
}

.about_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.about_img img {
    border-radius: 5%;
}

.about_box {
    margin-top: 2em;
    display: flex;
    gap: 20px;
}

.about_text p {
    padding-top: 1em;
}



/* 診療時間 */
.time_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em auto;
    background-color: #FFF8F0;
}


.time-table td {
    border: 1px solid #fff;
    padding: 0.5em;
    text-align: center;
    vertical-align: middle;
    color: #8f6446;
}

.time-table th {
    border: 1px solid #fff;
    padding: 0.5em;
    text-align: center;
    vertical-align: middle;
    background-color: #8f6446;
    color: #fff;
}





/* フッター */
/* コンタクト・アクセス */
.footer_logo img {
    width: 70%;
}

.contact_container {
    background-color: #FFF8F0;
    margin-top: 50px;
}


.contact_box {
    display: flex;
    justify-content: space-between;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info {
    padding: 10%;
}

.info p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5em;
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 50px;
}

.info p:nth-of-type(2) {
    margin-bottom: 50px;
    padding-top: 0;
}



.info .btn {
    width: 100%S;
    margin-left: auto;
    margin-right: auto;
}


.btn svg {
    flex-shrink: 0;
    width: 1.8em;
    height: 1.8em;
}

.btn .label {
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-size: 1.8em;
}



.footer_small {
    background-color: #f7931e;
    color: #fff;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}


.contact_inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}





/* 地図調整中 */
/* 親の flex 子が縮むときにオーバーフローしないように */
.contact_box>.info,
.contact_box>.map {
    flex: 1;
    min-width: 0;
    /* テキストや iframe がはみ出さないために必須 */
}

/* レスポンシブ地図 */
.map {
    position: relative;
    width: 100%;
    /* 必要なら最大幅を制限 */
    max-width: 600px;
    padding-bottom: 56.25%;
    /* 16:9 比率。必要に応じて 75% (4:3) などに調整 */
    overflow: hidden;
    background: #e8e8e8;
    /* 読み込み時の背景（任意） */
}

.map iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}


/* ---------------------
 about.html
---------------------- */

.greeting_box {
    border-radius: 30px;
    margin-top: 30px;
    padding: 5%;
    background-color: #FFF8F0;
}

.kijyjn_box {
    border-radius: 30px;

    background-color: #FFF8F0;
    margin-top: 30px;
    padding: 5%;
}

.guidances_container h3 {
    font-size: 1.2em;
    padding: 0.5em;
    line-height: 1.3;
    background: #FFF8F0;
    vertical-align: middle;
    border-radius: 25px;
    margin-top: 30px;
}

.guidances_container h3:before {
    content: '●';
    color: #f7931e;
    margin-right: 8px;
}


dt,
dd {
    line-height: 1.8;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

dt {
    margin-top: 1em;
}

.kijyjn_box ul li {
    list-style-type: disc;
    list-style-position: inside;
}

.glid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.clinic-photo_box {
    margin-top: 30px;
}

figcaption {
    text-align: center;
    padding-top: 0.3em;
}


/* ---------------------
 news.html
---------------------- */
.all-news_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.all-news_container .date,
.all-news_container .news_text {
    font-weight: bold;
}

.news_p {
    margin-top: 1.5em;
}

/* ---------------------
 contact.html
---------------------- */
.contact_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.contact-form__form {
    margin-top: 2em;
}

.contact-form__card {
    background: #f8f9fb;
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 20px
}

.contact-form__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px
}

.contact-form__desc {
    margin: 0 0 20px;
    color: #666
}


.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px
}


.contact-form__label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.contact-form__required {
    display: inline-grid;
    place-items: center;
    min-width: 2.2em;
    height: 1.8em;
    padding: 0 .5em;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .75rem
}


.contact-form__control {
    display: grid;
    gap: 8px
}


.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #fff;
    color: inherit;
    font-size: 16px;
    transition: box-shadow .15s, border-color .15s
}

.contact-form__textarea {
    min-height: 140px;
    resize: vertical
}

.contact-form__input:focus-visible,
.contact-form__textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #FFF8F0;
    border-color: #f7931e
}


.contact-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 8px
}

.contact-form__submit {
    padding: 12px 18px;
    /* border: none; */
    /* border-radius: 999px; */
    background: #8f6446;
    color: #fff;
    font-weight: 700;
    margin-top: 1.5em;
}

.contact-form__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 123, 224, .35)
}

.contact-form__submit[disabled] {
    opacity: .6;
    cursor: not-allowed
}








/* レスポンシブ対応 768px以下の時 */
@media screen and (max-width: 768px) {
    .logo {
        width: 40%;
    }

    .nav {
        display: none;
    }

    .mobile-nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .hamburger {
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-img {
        background-image: url(../img/sp_main-img.jpg);
    }

    .flex {
        display: flex;
    }

    #news {
        scroll-margin-top: 300px;
        /* ← ヘッダーの高さ分だけ余裕を持たせる */
    }

    /* 
    .news_list li {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    } */


    .news_text a {
        display: block;
        margin-top: 10px;
        text-overflow: ellipsis;
        overflow: hidden;
    }


    .guidance_innner {
        width: 80%;
        display: block;
    }

    .gidance_img {
        width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .about_inner {
        width: 100%;
    }

    .about_box {
        display: block;
    }



    .contact_box {
        display: block
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .buttons .btn {
        width: 90%;
        /* 画面に対して自然な余白 */
        max-width: 400px;
        /* 大きすぎる端末への対応 */
        font-size: 16px;
        padding: 12px 20px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        /* アイコンと文字の隙間 */
    }

    .btn svg {
        width: 1.2em;
        height: 1.2em;
    }

    .btn .label {
        font-size: 1em;
        white-space: nowrap;
    }

    .map {
        max-width: 100%;
    }

    .glid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}