@charset "UTF-8";

/*
sp ~767px
pc 768px~
*/

/*====================
色・サイズ
====================*/
:root {
    --bg: #ffffff;
    --peach_soft: #fff3ea;
    --cream_soft: #fffaeb;
    --surface: #ffffff;
    --coral: #e0795b;
    --coral_dark: #b4532f;
    --coral_soft: #fde6dc;
    --mint: #7cc4b4;
    --mint_soft: #e4f3ef;
    --yellow_soft: #fff1cc;
    --text: #4a3f3a;
    --muted: #7a6e68;
    --line: #f0e4d8;
    --radius: 24px;
    --shadow: 0 8px 24px rgba(224, 121, 91, 0.10);
    --header_height: 72px;
    --font_body: 'Zen Maru Gothic', sans-serif;
    --font_head: 'Kiwi Maru', 'Zen Maru Gothic', serif;
}

/*====================
基本
====================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header_height);
}

body {
    margin: 0;
    /* 横幅いっぱいの帯でページが横にはみ出さないようにする */
    overflow-x: clip;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font_body);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img,
svg {
    max-width: 100%;
    vertical-align: bottom;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pc_only {
    display: none;
}

@media screen and (min-width: 768px) {
    .pc_only {
        display: inline;
    }

    .sp_only {
        display: none;
    }
}

/*====================
ヘッダー
====================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: var(--header_height);
    background-color: var(--bg);
    box-shadow: 0 2px 10px rgba(74, 63, 58, 0.05);
}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    /* ロゴは本文の幅（1040px）の左端にそろえ、右側（ナビ）は少し画面の端に寄せる */
    padding-left: max(20px, calc((100% - 1040px) / 2));
    padding-right: max(20px, calc((100% - 1040px) / 2));
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo_mark {
    width: 46px;
    height: 46px;
}

.logo_text {
    font-family: var(--font_head);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
}

.logo_text small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

/* ハンバーガーボタン */
.menu_btn {
    position: relative;
    z-index: 110;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--coral_soft);
    cursor: pointer;
}

.menu_btn span,
.menu_btn::before,
.menu_btn::after {
    content: "";
    position: absolute;
    left: 14px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--coral_dark);
    transition: transform 0.3s, opacity 0.3s;
}

.menu_btn span {
    top: 23px;
}

.menu_btn::before {
    top: 16px;
}

.menu_btn::after {
    top: 30px;
}

.is_nav_open .menu_btn span {
    opacity: 0;
}

.is_nav_open .menu_btn::before {
    transform: translateY(7px) rotate(45deg);
}

.is_nav_open .menu_btn::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ナビ（スマホ） */
.nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background-color: var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.is_nav_open .nav {
    visibility: visible;
    opacity: 1;
}

.nav ul {
    text-align: center;
}

.nav li + li {
    margin-top: 16px;
}

.nav ul a {
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.nav_reserve {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background-color: var(--coral_dark);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.nav_reserve svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media screen and (min-width: 1024px) {
    .menu_btn {
        display: none;
    }

    .nav {
        position: static;
        flex-direction: row;
        gap: 28px;
        background: none;
        visibility: visible;
        opacity: 1;
    }

    .nav ul {
        display: flex;
        gap: 24px;
    }

    .nav li + li {
        margin-top: 0;
    }

    .nav ul a {
        font-size: 1.05rem;
        transition: color 0.3s;
    }

    .nav ul a:hover {
        color: var(--coral_dark);
    }

    .nav_reserve {
        padding: 8px 20px;
        font-size: 1.05rem;
        transition: background-color 0.3s;
    }

    .nav_reserve:hover {
        background-color: #97401f;
    }
}

/*====================
ファーストビュー
====================*/
.hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--header_height);
}

/*--- 写真のスライド ---*/
.hero_visual {
    position: relative;
}

.hero_photo {
    position: relative;
    overflow: hidden;
    height: clamp(220px, 56vw, 400px);
}

.hero_slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
    opacity: 0;
    transition: opacity 1.6s ease;
}

/* 写真ごとに、顔が切れない位置で切り抜く */
.hero_slide_doctor {
    object-position: 50% 35%;
}

/* 表示中の写真は、ゆっくり少しずつ近づく */
.hero_slide.is_active {
    opacity: 1;
    animation: slow_zoom 7s ease-out forwards;
}

@keyframes slow_zoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

/* 写真を選ぶ丸いボタン */
.hero_dots {
    position: absolute;
    bottom: 52px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero_dots[hidden] {
    display: none;
}

.hero_dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.hero_dot.is_active {
    background-color: var(--coral);
    transform: scale(1.2);
}

/* 写真の下の端の波（下の白い帯とつなげる） */
.hero_wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    fill: var(--surface);
}

/*--- 写真の下の、横幅いっぱいの白い帯 ---*/
.hero_text {
    padding: 8px 20px 32px;
    background:
        /* 帯の中に、大きさと色の違う丸を散らす */
        radial-gradient(circle at 2% 100%, var(--yellow_soft) 0 56px, transparent 57px),
        radial-gradient(circle at 99% 100%, var(--coral_soft) 0 72px, transparent 73px),
        radial-gradient(circle at 98% 14%, var(--mint_soft) 0 16px, transparent 17px),
        radial-gradient(circle at 40% 100%, var(--mint_soft) 0 20px, transparent 21px),
        var(--surface);
    box-shadow: 0 12px 24px rgba(224, 121, 91, 0.06);
}

.hero_en {
    margin-bottom: 4px;
    color: var(--coral);
    font-family: var(--font_head);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

.hero_title {
    margin-bottom: 14px;
    font-family: var(--font_head);
    font-size: clamp(1.3rem, 6.2vw, 2.6rem);
    font-weight: 500;
    line-height: 1.55;
}

.hero_lead {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 2;
    /* 行の最後に1〜2文字だけ残らないように折り返す */
    text-wrap: pretty;
}

.hero_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero_tags li {
    padding: 2px 14px;
    border-radius: 999px;
    background-color: var(--mint_soft);
    color: #2f6f62;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ボタン */
.hero_btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* スマホでは2つのボタンを横に並べて幅を分け合う（入らない小さい画面では縦に並ぶ） */
.hero_btns .btn {
    flex: 1 1 auto;
    padding: 0 16px;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

/* 小さいスマホでは、文章の途中で折り返さないように少し小さくする */
@media screen and (max-width: 374px) {
    .hero_lead {
        font-size: 0.95rem;
    }
}

/* WEB予約ボタン（カレンダーのアイコンつき） */
.btn_reserve {
    gap: 10px;
    min-width: 220px;
}

.btn_reserve svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn_primary {
    background-color: var(--coral_dark);
    color: #fff;
}

.btn_ghost {
    border: 2px solid var(--coral);
    background-color: var(--surface);
    color: var(--coral_dark);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
    }

    .btn_primary:hover {
        background-color: #97401f;
    }

    .btn_ghost:hover {
        background-color: var(--coral_soft);
    }
}

@media screen and (min-width: 768px) {
    /* 開いたときに、写真と文字の帯がちょうど画面に収まるようにする */
    /* 画面が低くて中身が入りきらないときは、写真と重ならないよう下に伸ばす */
    .hero {
        display: flex;
        flex-direction: column;
        min-height: max(100vh, 620px);
        min-height: max(100svh, 620px);
    }

    .hero_visual {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .hero_photo {
        flex: 1 1 auto;
        min-height: 280px;
    }

    .hero_wave {
        height: 80px;
    }

    .hero_dots {
        bottom: 92px;
    }

    /* PC では左にキャッチコピー、右に説明とボタンを並べる。
       帯は横幅いっぱいのまま、中身は本文と同じ 1040px の幅にそろえる */
    .hero_text {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
        gap: 48px;
        padding: 12px max(20px, calc((100% - 1040px) / 2)) 40px;
    }

    .hero_title {
        margin-bottom: 0;
        font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    }

    /* 左右の区切り線 */
    .hero_text_sub {
        padding-left: 48px;
        border-left: 2px dashed var(--line);
    }

    .hero_lead {
        font-size: 1.2rem;
    }

    .hero_btns {
        gap: 12px;
    }

    .hero_btns .btn {
        flex: none;
        padding: 0 28px;
    }
}

/*====================
下層ページ：タイトルとパンくず
====================*/
.page_head {
    padding: calc(var(--header_height) + 48px) 20px 48px;
    text-align: center;
    background:
        radial-gradient(circle at 8% 30%, var(--yellow_soft) 0 60px, transparent 61px),
        radial-gradient(circle at 94% 80%, var(--coral_soft) 0 80px, transparent 81px),
        radial-gradient(circle at 80% 20%, var(--mint_soft) 0 22px, transparent 23px),
        var(--mint_soft);
    border-radius: 0 0 48px 48px;
}

.page_head_en {
    color: var(--coral);
    font-family: var(--font_head);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
}

.page_head_jp {
    font-family: var(--font_head);
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    font-weight: 500;
}

.breadcrumb {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 20px 0;
    font-size: 0.85rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--coral_dark);
}

/* 下層ページの本文は、タイトルのすぐ下から始める */
.section_page {
    padding-top: 40px;
}

/* セクションの中の小見出し（院長挨拶・診療時間） */
.sub_head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    font-family: var(--font_head);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--coral_dark);
}

.sub_head::before,
.sub_head::after {
    content: "";
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--coral_soft);
}

/* アクセスのあとに続く「診療時間」は、上に余白をとる */
.access_box + .sub_head {
    margin-top: 64px;
}

/* トップページの「詳しく見る」リンク */
.section_more {
    margin-top: 32px;
    text-align: center;
}

.more_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--coral);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--coral_dark);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.more_link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

@media (hover: hover) {
    .more_link:hover {
        background-color: var(--coral_soft);
    }
}

/* ヘッダーのメニュー：いま見ているページ */
.nav ul a.is_current {
    color: var(--coral_dark);
}

@media screen and (min-width: 1024px) {
    .nav ul a.is_current {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 8px;
    }
}

/*====================
セクション共通
====================*/
/* 中身の幅は 1040px（左右の余白 20px ずつを含めて 1080px） */
.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 20px;
}

.section_head {
    margin-bottom: 40px;
    text-align: center;
}

.section_head_en {
    color: var(--coral);
    font-family: var(--font_head);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
}

.section_head_jp {
    font-family: var(--font_head);
    font-size: 1.9rem;
    font-weight: 500;
}

/* 見出しの下の3つの丸 */
.section_head_jp::after {
    content: "";
    display: block;
    width: 48px;
    height: 8px;
    margin: 12px auto 0;
    background:
        radial-gradient(circle, var(--coral) 3.5px, transparent 4px) 0 0 / 16px 8px repeat-x;
}

@media screen and (min-width: 768px) {
    .section {
        padding: 96px 20px;
    }
}

/*====================
お知らせ
====================*/
.news_list {
    max-width: 1040px;
    margin: 0 auto;
    padding: 8px 24px;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.news_list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 16px 0;
}

.news_list li + li {
    border-top: 1px dashed var(--line);
}

.news_list time {
    color: var(--muted);
    font-size: 0.9rem;
}

.news_tag {
    padding: 0 10px;
    border-radius: 999px;
    background-color: var(--mint_soft);
    color: #2f6f62;
    font-size: 0.75rem;
    font-weight: 700;
}

.news_tag_vaccine {
    background-color: var(--coral_soft);
    color: var(--coral_dark);
}

.news_list p {
    width: 100%;
}

@media screen and (min-width: 768px) {
    .news_list {
        padding: 8px 40px;
    }

    .news_list li {
        flex-wrap: nowrap;
    }

    .news_list p {
        width: auto;
    }
}

/*====================
当院の特徴
====================*/
.feature_list {
    display: grid;
    gap: 24px;
}

.feature_item {
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

/* カード上部の写真（イラスト） */
.feature_photo {
    aspect-ratio: 16 / 10;
    background-color: var(--coral_soft);
}

.feature_photo img,
.feature_photo svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature_body {
    padding: 0 28px 36px;
}

/* アイコンを写真の下の端に少し重ねる */
.feature_icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-top: -44px;
    margin-bottom: 12px;
    border: 6px solid var(--surface);
    border-radius: 50%;
}

.feature_icon svg {
    width: 44px;
    height: 44px;
}

.feature_icon_1 {
    background-color: var(--coral_soft);
    color: var(--coral_dark);
}

.feature_icon_2 {
    background-color: var(--mint_soft);
    color: #2f6f62;
}

.feature_icon_3 {
    background-color: var(--yellow_soft);
    color: #9a6b12;
}

.feature_item h3 {
    margin-bottom: 8px;
    font-family: var(--font_head);
    font-size: 1.25rem;
    font-weight: 500;
}

/* 順番予約のカードの WEB予約ボタン（ヘッダーのボタンと同じ見た目） */
.feature_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 28px;
    border-radius: 999px;
    background-color: var(--coral_dark);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.feature_btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .feature_btn:hover {
        background-color: #97401f;
    }
}

.feature_item p {
    color: var(--muted);
    text-align: left;
}

@media screen and (min-width: 768px) {
    /* 3枚のカードを横に並べ、間を広めにとる */
    .feature_list {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/*====================
診療内容
====================*/
.medical_list {
    display: grid;
    gap: 16px;
}

.medical_list li {
    position: relative;
    padding: 24px 24px 24px 64px;
    border-radius: 20px;
    background-color: var(--mint_soft);
}

/* 左の丸いマーク */
.medical_list li::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 26px;
    width: 20px;
    height: 20px;
    border: 5px solid var(--mint);
    border-radius: 50%;
    background-color: var(--surface);
}

.medical_list h3 {
    margin-bottom: 4px;
    font-family: var(--font_head);
    font-size: 1.15rem;
    font-weight: 500;
}

.medical_list p {
    color: var(--muted);
}

/* 小さいスマホでは、カードの内側の余白を少し詰める */
@media screen and (max-width: 374px) {
    .medical_list li {
        padding: 20px 16px 20px 50px;
    }

    .medical_list li::before {
        top: 26px;
        left: 18px;
    }

    .medical_list p {
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 768px) {
    .medical_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/*====================
診療時間
====================*/
.hours_table_wrap {
    max-width: 1040px;
    margin: 0 auto 20px;
    overflow-x: auto;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.hours_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
}

.hours_table th,
.hours_table td {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
}

@media screen and (min-width: 768px) {
    .hours_table {
        font-size: 1rem;
    }

    .hours_table th,
    .hours_table td {
        padding: 14px 6px;
    }
}

.hours_table thead th {
    background-color: var(--coral_soft);
    font-weight: 700;
}

.hours_table tbody tr:last-child th,
.hours_table tbody tr:last-child td {
    border-bottom: none;
}

.hours_table tbody th {
    font-weight: 700;
    white-space: nowrap;
}

.mark_open {
    color: var(--coral);
}

.mark_sat {
    color: #d4a02a;
}

.mark_close {
    color: #c9bdb4;
}

/* 今日の曜日の列 */
.hours_table .is_today {
    background-color: var(--yellow_soft);
}

.hours_table thead .is_today {
    background-color: var(--coral);
    color: #fff;
}

.hours_note {
    max-width: 1040px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.9rem;
}

/*====================
診療案内ページ
====================*/
.guide_lead {
    margin-bottom: 48px;
    text-align: center;
}

.guide_list {
    display: grid;
    gap: 24px;
    margin-bottom: 72px;
}

.guide_item {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

/* 右上の大きな番号 */
.guide_no {
    position: absolute;
    top: 16px;
    right: 24px;
    color: var(--mint_soft);
    font-family: var(--font_head);
    font-size: 3rem;
    line-height: 1;
}

.guide_title {
    position: relative;
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 5px solid var(--coral);
    font-family: var(--font_head);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
}

.guide_text {
    margin-bottom: 20px;
}

.guide_sub {
    margin-bottom: 8px;
    color: var(--coral_dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.guide_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide_tags li {
    padding: 4px 14px;
    border-radius: 999px;
    background-color: var(--mint_soft);
    color: #2f6f62;
    font-size: 0.85rem;
    font-weight: 700;
}

.guide_note {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: var(--yellow_soft);
    font-size: 0.9rem;
}

@media screen and (min-width: 768px) {
    .guide_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .guide_item {
        padding: 40px;
    }
}

/* 項目ごとの色（ホームの「診療内容」のカードと同じ4色にそろえる） */
.guide_item {
    --item_color: var(--coral);
    --item_soft: var(--coral_soft);
    --item_text: var(--coral_dark);
    border-top: 5px solid var(--item_color);
}

.guide_item:nth-child(2) {
    --item_color: var(--mint);
    --item_soft: var(--mint_soft);
    --item_text: #2f6f62;
}

.guide_item:nth-child(3) {
    --item_color: #e8b54a;
    --item_soft: var(--yellow_soft);
    --item_text: #8a6212;
}

.guide_item:nth-child(4) {
    --item_color: #f0a58c;
    --item_soft: var(--peach_soft);
    --item_text: #a4502f;
}

/* 番号は、どの色でも同じくらいの薄さで見えるようにする */
.guide_item .guide_no {
    color: var(--item_color);
    opacity: 0.3;
}

.guide_item .guide_title {
    border-left-color: var(--item_color);
}

.guide_item .guide_sub {
    color: var(--item_text);
}

.guide_item .guide_tags li {
    background-color: var(--item_soft);
    color: var(--item_text);
}

/*====================
診療案内：受診のご案内（初診・再診）
====================*/
.visit_list {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

/* 枠は付けず、スマホでは上下を線で区切る */
.visit_box + .visit_box {
    padding-top: 24px;
    border-top: 1px dashed var(--line);
}

.visit_title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font_head);
    font-size: 1.3rem;
    font-weight: 500;
}

.visit_label {
    padding: 2px 16px;
    border-radius: 999px;
    background-color: var(--mint);
    color: #fff;
    font-family: var(--font_body);
    font-size: 0.9rem;
    font-weight: 700;
}

.visit_label_first {
    background-color: var(--coral);
}

/* 案内の文（点つきのリスト） */
.visit_info {
    margin-bottom: 20px;
}

.visit_info li {
    position: relative;
    padding-left: 1.2em;
    font-size: 0.95rem;
    line-height: 1.8;
}

.visit_info li + li {
    margin-top: 4px;
}

.visit_info li::before {
    content: "";
    position: absolute;
    top: 0.8em;
    left: 0.2em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--coral);
}

.visit_sub {
    margin-bottom: 8px;
    color: var(--coral_dark);
    font-size: 0.9rem;
    font-weight: 700;
}

/* 持ちもの（チェックつきのリスト） */
.visit_items {
    margin: 0;
}

.visit_items li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visit_items li + li {
    margin-top: 6px;
}

.visit_items svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--mint);
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visit_note {
    margin-bottom: 72px;
    color: var(--muted);
    font-size: 0.85rem;
}

@media screen and (min-width: 768px) {
    .visit_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    /* PC では左右の間に細い線を1本だけ引く */
    .visit_box {
        padding: 0 40px;
    }

    .visit_box:first-child {
        padding-left: 0;
    }

    .visit_box + .visit_box {
        padding-top: 0;
        padding-right: 0;
        border-top: none;
        border-left: 1px dashed var(--line);
    }
}

/*====================
クリニック紹介：院内のご紹介
====================*/
.doctor_box + .sub_head {
    margin-top: 80px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery_item figure {
    margin: 0;
}

.gallery_item img,
.gallery_placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    object-fit: cover;
}

/* 写真がまだないところ */
.gallery_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed var(--line);
    background-color: var(--surface);
    color: var(--muted);
    font-size: 0.85rem;
}

.gallery_placeholder svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.gallery_item figcaption {
    margin-top: 8px;
    font-weight: 700;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/*====================
医師紹介
====================*/
.doctor_box {
    display: grid;
    gap: 28px;
    justify-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 24px;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.doctor_photo {
    width: 180px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 6px solid var(--coral_soft);
    border-radius: 50%;
}

/* 胸まで写っている写真なので、顔と肩が真ん中に来るよう少し拡大する */
.doctor_photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.45);
    transform-origin: 50% 28%;
}

.doctor_role {
    color: var(--coral_dark);
    font-weight: 700;
}

.doctor_name {
    margin-bottom: 16px;
    font-family: var(--font_head);
    font-size: 1.5rem;
}

.doctor_name span {
    margin-left: 12px;
    color: var(--muted);
    font-family: var(--font_body);
    font-size: 0.85rem;
}

.doctor_message {
    margin-bottom: 20px;
}

.doctor_message p + p {
    margin-top: 1em;
}

.doctor_profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 0.9rem;
}

.doctor_profile dt {
    color: var(--coral_dark);
    font-weight: 700;
}

/* 経歴（年と内容を並べる） */
.doctor_history li {
    display: flex;
    gap: 12px;
}

.doctor_history li + li {
    margin-top: 4px;
}

.doctor_history span {
    flex-shrink: 0;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.doctor_note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

@media screen and (min-width: 768px) {
    .doctor_box {
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 48px;
        padding: 56px;
    }

    .doctor_photo {
        width: 260px;
    }
}

/*====================
アクセス
====================*/
.access_box {
    display: grid;
    gap: 32px;
}

.access_map {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.access_map svg {
    display: block;
    width: 100%;
    height: auto;
}

.access_info {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    gap: 12px 20px;
}

.access_info dt {
    padding: 2px 12px;
    border-radius: 999px;
    background-color: var(--coral_soft);
    color: var(--coral_dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    align-self: start;
}

.access_info a {
    color: var(--coral_dark);
    font-weight: 700;
}

@media screen and (min-width: 768px) {
    .access_box {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

/*====================
フッター
====================*/
.footer {
    margin-top: 40px;
    padding: 48px 20px 28px;
    background-color: #f3f8f6; /* ごくうすいミント */
    color: var(--text);
    text-align: center;
}

.footer_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font_head);
    font-size: 1.2rem;
}

/* ヘッダーと同じ雲のマーク。背景のミント色に埋もれないよう白いふちを付ける */
.footer_logo_mark {
    width: 44px;
    height: 44px;
    border: 3px solid #fff;
    border-radius: 50%;
}

.footer_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-style: normal;
}

.footer_info a {
    color: var(--coral_dark);
    font-weight: 700;
}

@media screen and (min-width: 768px) {
    /* PC では住所と電話番号を横に並べる */
    .footer_info {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

/* フッターのサイトマップ（ページと項目の一覧） */
.footer_nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    max-width: 880px;
    margin: 0 auto 28px;
    padding: 24px 0;
    border-top: 1px dashed #d5e6e0;
    border-bottom: 1px dashed #d5e6e0;
    text-align: left;
}

.footer_nav_title {
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 4px solid var(--coral);
    font-weight: 700;
    line-height: 1.4;
}

.footer_nav a {
    color: var(--text);
    text-decoration: none;
}

.footer_nav li {
    padding-left: 14px;
    font-size: 0.88rem;
    line-height: 2;
}

.footer_nav li a {
    color: var(--muted);
}

@media (hover: hover) {
    .footer_nav a:hover {
        color: var(--coral_dark);
        text-decoration: underline;
    }
}

@media screen and (min-width: 768px) {
    .footer_nav {
        grid-template-columns: repeat(5, auto);
        justify-content: space-between;
        gap: 24px;
        max-width: 1000px;
    }
}

.footer_note {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

/*====================
スクロールでふわっと表示
====================*/
.js_fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s, transform 0.8s;
}

.js_fade.is_show {
    opacity: 1;
    transform: none;
}

/* 動きを減らす設定の人には、アニメーションをしない */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero_slide.is_active {
        animation: none;
    }

    .js_fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/*====================
ホームページ：セクションごとのメリハリ
====================*/
/* お知らせ：背景は白のまま、一覧の枠を外してすっきり見せる */
.home .news_list {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: none;
}

/* 診療内容：カードごとに色を変える */
.home .medical_list li {
    --item_color: var(--coral);
    --item_soft: var(--coral_soft);
    border-top: 5px solid var(--item_color);
    background-color: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.home .medical_list li:nth-child(2) {
    --item_color: var(--mint);
    --item_soft: var(--mint_soft);
}

.home .medical_list li:nth-child(3) {
    --item_color: #e8b54a;
    --item_soft: var(--yellow_soft);
}

.home .medical_list li:nth-child(4) {
    --item_color: #f0a58c;
    --item_soft: var(--peach_soft);
}

.home .medical_list li::before {
    border-color: var(--item_color);
    background-color: var(--item_soft);
}

@media (hover: hover) {
    .home .medical_list li:hover {
        transform: translateY(-3px);
    }
}

/* アクセス：項目の間に点線を入れる */
.home .access_info {
    gap: 0 20px;
}

.home .access_info dt {
    margin: 12px 0;
}

.home .access_info dd {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

@media screen and (min-width: 768px) {
    /* 見出しを少し大きく */
    .home .section_head_jp {
        font-size: 2.3rem;
    }

    /* お知らせ：左に見出し、右に一覧 */
    .home .section.news {
        display: grid;
        grid-template-columns: 240px 1fr;
        align-items: start;
        gap: 48px;
    }

    .home .news .section_head {
        margin-bottom: 0;
        text-align: left;
    }

    .home .news .section_head_jp::after {
        margin-left: 0;
    }

    .home .news_list li:first-child {
        padding-top: 0;
    }
}

/*====================
トップ：電話番号と受付時間（写真のそばの小さなカード）
====================*/
.hero_info {
    position: relative;
    z-index: 2;
    margin: -24px 16px 0;
    padding: 12px 16px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(74, 63, 58, 0.12);
    font-size: 0.82rem;
    line-height: 1.6;
}

.hero_info_tel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--line);
    color: var(--text);
    font-family: var(--font_head);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.hero_info_tel svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 50%;
    background-color: var(--mint_soft);
    fill: #2f6f62;
}

.hero_info_hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
}

.hero_info_hours dt {
    align-self: start;
    padding: 0 8px;
    border-radius: 999px;
    background-color: var(--mint_soft);
    color: #2f6f62;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.8;
}

/* 時間のまとまりの途中では折り返さない */
.hero_info_hours dd span {
    display: inline-block;
    white-space: nowrap;
}

@media screen and (min-width: 768px) {
    /* PC・タブレットでは、写真の右下に丸いカードで重ねる */
    .hero_info {
        position: absolute;
        right: max(8px, calc((100% - 1040px) / 2 - 40px));
        bottom: 36px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 280px;
        height: 280px;
        margin: 0;
        padding: 24px;
        border: 6px solid var(--mint_soft);
        border-radius: 50%;
        text-align: center;
    }

    .hero_info_tel {
        justify-content: center;
        margin-bottom: 8px;
        padding-bottom: 8px;
        font-size: 1.3rem;
    }

    .hero_info_hours {
        justify-content: center;
        text-align: left;
    }
}

/*====================
予防接種・乳幼児健診のページ
====================*/
/* 予約の案内 */
.reserve_box {
    max-width: 760px;
    margin: 0 auto 72px;
    padding: 24px;
    border: 2px dashed var(--coral);
    border-radius: var(--radius);
    text-align: center;
}

.reserve_box_title {
    margin-bottom: 4px;
    color: var(--coral_dark);
    font-family: var(--font_head);
    font-size: 1.2rem;
}

.reserve_box strong {
    font-size: 1.15rem;
}

.reserve_box_note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.reserve_box a {
    color: var(--coral_dark);
    font-weight: 700;
}

.vac_text {
    max-width: 880px;
    margin: 0 auto 40px;
}

/* 小さな見出し */
.vac_head {
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 5px solid var(--mint);
    font-family: var(--font_head);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

/* スケジュールの表 */
.vac_table_wrap {
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.vac_table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface);
}

.vac_table th,
.vac_table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.vac_table thead th {
    background-color: var(--mint_soft);
    color: #2f6f62;
}

.vac_table tbody th {
    width: 34%;
    background-color: #f7fbf9;
    font-weight: 700;
}

.vac_table tbody tr:last-child th,
.vac_table tbody tr:last-child td {
    border-bottom: none;
}

.vac_items li + li {
    margin-top: 4px;
}

/* 定期・任意のしるし */
.vac_tag {
    display: inline-block;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background-color: var(--mint_soft);
    color: #2f6f62;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.7;
    vertical-align: 1px;
}

.vac_tag_free {
    background-color: var(--yellow_soft);
    color: #8a6212;
}

.vac_note {
    margin-bottom: 48px;
    color: var(--muted);
    font-size: 0.88rem;
}

.vac_note li + li {
    margin-top: 4px;
}

/* 持ちもの・お願い */
.vac_cols {
    display: grid;
    gap: 40px;
    margin-bottom: 88px;
}

.vac_disclaimer {
    color: var(--muted);
    font-size: 0.82rem;
}

/* 診療案内のカードから、このページへのリンク */
.guide_more {
    margin-top: 16px;
}

.guide_more a {
    color: var(--item_text);
    font-weight: 700;
    text-underline-offset: 4px;
}

.guide_more a::after {
    content: " ›";
}

@media screen and (min-width: 768px) {
    .vac_table tbody th {
        width: 26%;
    }

    .vac_table th,
    .vac_table td {
        padding: 16px 28px;
    }

    .vac_cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 56px;
    }
}
