/* ==========================================
   基本設定
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #263b32;
    background: #fff;

    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;

    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================
   ヘッダー
========================================== */

.header {
    background: #fff;
    border-bottom: 1px solid #e5ebe7;
}

.header-inner {
    max-width: 1400px;
    min-height: 88px;

    margin: 0 auto;
    padding: 10px 30px;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* ロゴ */

.logo {
    width: 255px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
}


/* ナビ */

.navigation {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 22px;

    white-space: nowrap;
}

.navigation a {
    font-size: 14px;

    transition: color .2s;
}

.navigation a:hover {
    color: #3f9650;
}


/* 電話 */

.header-contact {
    display: grid;

    grid-template-columns: auto auto;

    align-items: center;

    column-gap: 12px;

    flex-shrink: 0;
}

.contact-title {
    grid-column: 1 / -1;

    text-align: center;

    color: #3f8d4d;

    font-size: 11px;
}

.phone-icon-link,
.navigation-phone {
    display: none;
}

.phone {
    color: #3f9650;

    font-size: 20px;

    font-weight: 700;
}


/* LINE */

.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
}

/* PCではLINE予約リンクをナビゲーションから隠し、スマホのメニューには残す */
@media (min-width: 769px) {
    .navigation .desktop-line-nav {
        display: none;
    }
}

.line-icon {
    display: block;
    width: 42px;
    height: 42px;
}


/* ==========================================
   メインビジュアル
========================================== */

.hero {
    height: 360px;

    position: relative;

    overflow: hidden;
}

.hero > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* 白いグラデーション */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.92),
            rgba(255,255,255,.25) 60%,
            rgba(255,255,255,0)
        );
}


/* 左テキスト */

.hero-text {
    position: absolute;

    z-index: 2;

    left: max(7vw, 60px);
    top: 48px;
}

.hero-text h1 {
    margin: 0 0 10px;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    font-size: 34px;

    line-height: 1.55;

    font-weight: 500;

    letter-spacing: .08em;
}

.hero-text p {
    margin: 0;

    font-size: 16px;
}


/* 右側メッセージ */

.hero-message {
    position: absolute;

    z-index: 2;

    right: 9%;
    top: 75px;

    color: #fff;

    font-size: 19px;

    font-weight: 700;

    text-align: center;

    transform: rotate(-7deg);
}


/* ==========================================
   院紹介・お知らせ
========================================== */

.top-information {
    max-width: 1200px;

    margin: 0 auto;

    padding: 25px 0 18px;

    display: grid;

    grid-template-columns:
        1.75fr
        .95fr
        .95fr;

    gap: 18px;
}


/* 共通 */

.clinic-introduction,
.news-box,
.first-visit {

    min-height: 190px;

    padding: 18px;

    border-radius: 9px;

    border: 1px solid #e3ebe5;

    background: #fff;
}


/* 院紹介 */

.clinic-introduction {

    display: grid;

    grid-template-columns: 175px 1fr;

    gap: 18px;
}

.clinic-introduction > img {

    width: 175px;
    height: 155px;

    object-fit: cover;

    border-radius: 5px;
}

.clinic-introduction h2,
.news-box h2,
.first-visit h2 {

    margin: 0 0 8px;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    font-size: 20px;

    font-weight: 500;
}

.clinic-introduction p,
.first-visit p {

    margin: 0 0 10px;

    font-size: 13px;
}


/* 詳細ボタン */

.more-button {

    display: inline-block;

    padding: 5px 28px;

    border: 1px solid #4a9a55;

    border-radius: 22px;

    color: #4a9a55;

    font-size: 13px;

    font-weight: 700;
}


/* お知らせ */

.news-box {

    background:
        linear-gradient(
            #fff9f7,
            #fff
        );
}

.news-box h2 {
    color: #634c42;
}

.news-box ul {

    margin: 5px 0;

    padding: 0;

    list-style: none;
}

.news-box li {

    display: flex;

    gap: 10px;

    padding: 4px 0;

    font-size: 12px;
}

.news-box time {

    min-width: 66px;

    color: #3d8c4a;
}

.news-more {

    display: block;

    margin-top: 8px;

    text-align: right;

    font-size: 12px;
}


/* 初めて */

.first-visit {

    background:
        linear-gradient(
            #f6fbf2,
            #fff
        );
}

.first-visit h2 {
    color: #385f3c;
}


/* ==========================================
   特徴
========================================== */

.features {

    padding: 30px 0 25px;

    background: #f3f9f0;
}


.section-title {

    margin: 0 0 24px;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    font-size: 27px;

    font-weight: 500;

    text-align: center;

    letter-spacing: .08em;
}


.section-title.left {

    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    text-align: left;
}


.feature-list {

    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);
}


.feature-item {

    padding: 0 22px;

    text-align: center;

    border-right: 1px solid #d4e1d0;
}

.feature-item:last-child {
    border-right: none;
}


/* 特徴イラスト */

.feature-item img {

    width: 78px;
    height: 78px;

    margin: 0 auto 7px;

    object-fit: contain;
}


.feature-item h3 {

    margin: 0 0 4px;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    font-size: 16px;

    font-weight: 500;
}

.feature-item p {

    margin: 0;

    font-size: 12px;
}


/* ==========================================
   症状
========================================== */

.symptoms {

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px 0 28px;
}


.symptom-list {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 10px;
}


.symptom-item {

    min-height: 58px;

    padding: 5px 10px;

    display: flex;

    align-items: center;

    gap: 8px;

    border:
        1px solid #dce9db;

    border-radius: 8px;

    background: #f8fcf7;

    font-size: 13px;

    transition:
        background .2s,
        transform .2s;
}


.symptom-item:hover {

    background: #eef7eb;

    transform: translateY(-1px);
}


/* 症状イラスト */

.symptom-item img {

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    object-fit: contain;
}


/* その他 */

.symptom-more {

    justify-content: center;

    font-size: 13px;
}


/* ==========================================
   鍼について
========================================== */

.needle-section {

    max-width: 1200px;

    margin: 0 auto 25px;

    padding: 14px;

    display: grid;

    grid-template-columns:
        220px
        1fr
        330px;

    gap: 22px;

    align-items: center;

    border: 1px solid #e0e9ed;

    border-radius: 7px;

    background: #fbfdfe;
}


/* 鍼画像 */

.needle-image img {

    width: 100%;
    height: 135px;

    object-fit: contain;
}

.needle-image small {

    display: block;

    margin-top: 5px;

    text-align: center;

    font-size: 10px;
}


/* 説明 */

.needle-text h2 {

    margin: 0 0 6px;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    font-weight: 500;
}

.needle-text p,
.needle-text li {

    font-size: 13px;
}

.needle-text ul {

    margin: 5px 0;

    padding-left: 20px;
}


/* おすすめ */

.recommend {

    padding: 12px 20px;

    border-radius: 7px;

    background: #f2f8ed;
}

.recommend h3 {

    margin: 0 0 7px;

    color: #39804a;

    font-size: 15px;
}

.recommend p {

    margin: 3px 0;

    font-size: 12px;
}


/* ==========================================
   ギャラリー
========================================== */

.gallery {

    max-width: 1200px;

    margin: 0 auto;

    padding-bottom: 28px;
}


.gallery-list {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.gallery-list a,
.gallery-list .gallery-item {

    overflow: hidden;

    border:
        1px solid #dde5e0;

    border-radius: 6px;

    background: #fff;
}


.gallery-list img {

    width: 100%;
    height: 105px;

    object-fit: cover;
}


.gallery-list span {

    display: block;

    padding: 5px;

    text-align: center;

    font-size: 12px;
}


/* ==========================================
   アクセス
========================================== */

.access {

    max-width: 1200px;

    margin: 0 auto;

    padding-bottom: 25px;

    display: grid;

    grid-template-columns:
        1fr
        1.15fr
        1.6fr;

    gap: 22px;

    align-items: center;
}


.access-map iframe {

    width: 100%;
    height: 145px;

    border: 0;
}


.access-information h2 {

    margin: 0;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    font-weight: 500;
}

.access-information p {

    margin: 3px 0;

    font-size: 12px;
}


.access-image img {

    width: 100%;
    height: 145px;

    object-fit: cover;

    border-radius: 3px;
}


/* ==========================================
   予約
========================================== */

.reservation {

    padding: 13px 20px;

    background: #71bd45;

    color: #fff;

    text-align: center;
}


.reservation p {

    margin: 0 0 3px;

    font-size: 12px;

    font-weight: 700;
}


.reservation-buttons {

    display: flex;

    justify-content: center;

    gap: 25px;
}


.reservation-buttons a {

    min-width: 280px;

    padding: 7px 24px;

    border:
        1px solid rgba(255,255,255,.7);

    border-radius: 30px;

    background: #268b48;

    font-weight: 700;
}


/* ==========================================
   フッター
========================================== */

.footer {

    padding: 20px 25px 10px;

    background: #fff;
}


.footer-inner {

    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        230px
        1fr
        auto;

    align-items: center;

    gap: 20px;
}


.footer-inner > img {

    width: 200px;
}


.footer-inner nav {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;

    font-size: 12px;
}


.footer-inner > a {

    font-size: 12px;
}


.copyright {

    margin: 10px 0 0;

    color: #777;

    font-size: 10px;

    text-align: center;
}


/* ==========================================
   タブレット
========================================== */

@media (max-width: 1050px) {

    .header-inner {
        flex-wrap: wrap;
    }

    .navigation {

        order: 3;

        flex-basis: 100%;

        justify-content: flex-start;

        overflow-x: auto;
    }


    .top-information {

        padding: 20px;

        grid-template-columns:
            1fr 1fr;
    }


    .clinic-introduction {

        grid-column: 1 / -1;
    }


    .feature-list {

        padding: 0 20px;

        grid-template-columns:
            repeat(3, 1fr);

        row-gap: 25px;
    }


    .feature-item:nth-child(3) {
        border-right: none;
    }


    .symptoms {

        padding-left: 20px;
        padding-right: 20px;
    }


    .symptom-list {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .needle-section,
    .gallery,
    .access {

        margin-left: 20px;
        margin-right: 20px;
    }


    .access {

        grid-template-columns:
            1fr 1fr;
    }


    .access-image {

        grid-column: 1 / -1;
    }

}


/* ==========================================
   スマートフォン
========================================== */

@media (max-width: 700px) {

    .header-inner {

        padding: 8px 12px;
    }


    .logo {

        width: 190px;
    }


    .header-contact {

        margin-left: auto;
    }


    .phone {

        display: none;
    }


    .navigation {

        gap: 16px;
    }


    .navigation a {

        font-size: 12px;
    }


    /* ヒーロー */

    .hero {

        height: 330px;
    }


    .hero-text {

        left: 20px;
        top: 28px;
    }


    .hero-text h1 {

        font-size: 24px;
    }


    .hero-text p {

        font-size: 12px;
    }


    .hero-message {

        display: none;
    }


    /* 上部 */

    .top-information {

        grid-template-columns: 1fr;

        padding: 14px;
    }


    .clinic-introduction {

        grid-template-columns:
            120px 1fr;
    }


    .clinic-introduction > img {

        width: 120px;
        height: 120px;
    }


    .clinic-introduction p {

        font-size: 11px;
    }


    /* 特徴 */

    .feature-list {

        grid-template-columns:
            1fr 1fr;

        padding: 0 10px;

        gap: 16px;
    }


    .feature-item {

        border: none;

        padding: 5px;
    }


    .section-title {

        padding-left: 15px;
        padding-right: 15px;

        font-size: 22px;
    }


    .section-title.left {

        padding-left: 15px;
    }


    /* 症状 */

    .symptoms {

        padding-left: 15px;
        padding-right: 15px;
    }


    .symptom-list {

        grid-template-columns:
            1fr 1fr;
    }


    .symptom-item {

        min-height: 52px;

        font-size: 11px;
    }


    .symptom-item img {

        width: 40px;
        height: 40px;
    }


    /* 鍼 */

    .needle-section {

        grid-template-columns: 1fr;

        margin-left: 15px;
        margin-right: 15px;
    }


    .needle-image img {

        height: 130px;
    }


    /* ギャラリー */

    .gallery {

        margin-left: 15px;
        margin-right: 15px;
    }


    .gallery-list {

        grid-template-columns:
            1fr 1fr;
    }


    /* アクセス */

    .access {

        margin-left: 15px;
        margin-right: 15px;

        grid-template-columns: 1fr;
    }


    .access-image {

        grid-column: auto;
    }


    /* 予約 */

    .reservation-buttons {

        flex-direction: column;

        gap: 8px;
    }


    .reservation-buttons a {

        min-width: 0;
    }


    /* フッター */

    .footer-inner {

        grid-template-columns: 1fr;

        text-align: center;
    }


    .footer-inner > img {

        margin: 0 auto;
    }


    .footer-inner nav {

        gap: 10px;
    }

}


/* ==========================================
   スマートフォン用ハンバーガーメニュー
   既存のPC・タブレット表示を維持し、700px以下で有効化
========================================== */
.menu-toggle {
    display: none;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 8px;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    cursor: pointer;
    position: relative;
    z-index: 1003;
    border-radius: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: #263b32;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 32, 26, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.menu-overlay.is-visible {
    opacity: 1;
}

@media (max-width: 700px) {
    body.menu-open {
        overflow: hidden;
    }

    .header {
        position: relative;
        z-index: 1002;
    }

    .header-inner {
        min-height: 68px;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .logo {
        order: 1;
        width: min(43vw, 160px);
        flex: 0 1 auto;
        min-width: 0;
    }

    /* スマホでは電話アイコン→LINE→ハンバーガーの順に配置 */
    .header-contact {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 7px;
        flex: 0 0 auto;
    }

    .menu-toggle {
        order: 3;
        display: block;
        margin-left: 0;
    }

    .contact-title,
    .phone {
        display: none;
    }

    .phone-icon-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid #3f9650;
        border-radius: 8px;
        color: #3f9650;
        font-size: 22px;
        line-height: 1;
        text-decoration: none;
        flex: 0 0 auto;
    }

    .line-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        flex: 0 0 auto;
    }

    .line-icon {
        display: block;
        width: 38px;
        height: 38px;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        width: min(320px, 82vw);
        height: 100vh;
        height: 100dvh;
        padding: 84px 22px 28px;
        overflow-y: auto;
        background: #fff;
        box-shadow: -8px 0 28px rgba(0, 0, 0, .12);
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, visibility .28s ease;
        white-space: normal;
    }

    .navigation.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .navigation a {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid #e5ebe7;
        font-size: 15px;
        line-height: 1.5;
        white-space: normal;
    }

    .navigation a:last-child {
        margin-top: 0;
        padding: 14px 4px;
        border: 0;
        border-bottom: 1px solid #e5ebe7;
        border-radius: 0;
        background: transparent;
        color: inherit;
        font-weight: 400;
        text-align: left;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle span,
    .menu-overlay,
    .navigation {
        transition: none !important;
    }
}


/* スライドメニュー内の電話リンクも他の項目と同じ見た目 */
@media (max-width: 768px) {
    .navigation .navigation-phone {
        display: block;
    }
}
