/*
Theme Name: Nakamura Dental Theme
Description: 中村歯科医院カスタムテーマ
Version: 3.2.0
Author: なかじ
*/

/* ============================================
   Google Fonts読み込み
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ============================================
   リセットCSS
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: clip;
}

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

ul {
    list-style: none;
}

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

/* ============================================
   CSS変数 - シアンテーマ
============================================ */
:root {
    --primary-color: #00B8B8;
    --primary-light: #00FFFE;
    --primary-pale: #E0FFFF;
    --secondary-color: #66FFFF;
    --accent-color: #008F8F;
    --text-dark: #0D2B2B;
    --text-gray: #4A7070;
    --bg-light: #F0FFFF;
    --bg-white: #FFFFFF;
    --border-color: #A0E8E8;
    --font-family-base: 'Noto Sans JP', sans-serif;
}

/* ============================================
   基本スタイル
============================================ */
body {
    font-family: var(--font-family-base);
    font-size: 16px;
    color: var(--text-dark);
}

/* WordPress管理バー対応 */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================
   ヘッダー
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.site-header.scrolled .logo a {
    color: var(--primary-color);
}

.logo .clinic-sub {
    font-size: 12px;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.3s;
}

.site-header.scrolled .logo .clinic-sub {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s;
}

.site-header.scrolled .header-phone {
    color: var(--primary-color);
}

.header-phone svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.header-instagram {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    padding: 5px;
    transition: opacity 0.3s, transform 0.3s;
}

.header-instagram:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.header-instagram svg {
    fill: #fff;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.3s;
}

.footer-instagram:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.footer-instagram svg {
    fill: #fff;
}

.footer-section a.footer-instagram,
.footer-section a.footer-instagram:hover {
    color: #fff;
}

/* ヘッダー TikTok */
.header-tiktok {
    display: flex;
    align-items: center;
    background: #000;
    border-radius: 50%;
    padding: 5px;
    transition: opacity 0.3s, transform 0.3s;
}

.header-tiktok:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.header-tiktok svg {
    fill: #fff;
}

/* 言語切り替え */
.lang-switcher {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.lang-switcher .lang-icon {
    display: block;
}

.lang-icon {
    fill: rgba(255,255,255,0.8);
    flex-shrink: 0;
}


#google_translate_element {
    display: inline-block;
}

#google_translate_element .goog-te-gadget {
    font-size: 0;
    margin: 0;
}

#google_translate_element .goog-te-gadget > span {
    display: none;
}

.goog-te-combo {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    color: #fff;
    padding: 4px 24px 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.goog-te-combo option {
    color: #333;
    background: #fff;
}

/* Google Translate バー非表示 */
.goog-te-banner-frame { display: none !important; }
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element .goog-te-gadget img { display: none; }
.goog-te-gadget .goog-te-combo + span { display: none !important; }

/* フッター TikTok */
.footer-tiktok {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: #000;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.3s;
}

.footer-tiktok:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.footer-tiktok svg {
    fill: #fff;
}

.footer-section a.footer-tiktok,
.footer-section a.footer-tiktok:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.primary-nav .menu {
    display: flex;
    gap: 1.2rem;
    flex-wrap: nowrap;
}

.primary-nav .menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.site-header.scrolled .primary-nav .menu a {
    color: var(--text-dark);
}

.primary-nav .menu a:hover {
    color: white;
}

.site-header.scrolled .primary-nav .menu a:hover {
    color: var(--primary-color);
}


/* ドロップダウン */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-bottom: 2px;
    transition: transform 0.3s;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.6rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    margin-top: 0.8rem;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    display: block;
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
    color: var(--text-dark) !important;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
    background: var(--primary-pale);
    color: var(--primary-color) !important;
}

.dropdown li a::after {
    display: none;
}

/* ヘッダー情報（場所・電話） */
.header-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.site-header.scrolled .header-info {
    border-left-color: var(--border-color);
}

.header-access {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.site-header.scrolled .header-access {
    color: var(--text-gray);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

.site-header.scrolled .hamburger span {
    background: var(--text-dark);
}

.site-header.scrolled .lang-icon {
    fill: rgba(0,0,0,0.4);
}

.site-header.scrolled .goog-te-combo {
    color: var(--text-dark) !important;
    border-color: rgba(0,0,0,0.15) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23333'/%3E%3C/svg%3E") !important;
}

body:not(.is-front-page) .lang-icon {
    fill: rgba(0,0,0,0.4);
}

body:not(.is-front-page) .goog-te-combo {
    color: var(--text-dark) !important;
    border-color: rgba(0,0,0,0.15) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23333'/%3E%3C/svg%3E") !important;
}


/* TOPページ以外：ヘッダーを最初からスクロール後のスタイルに */
body:not(.is-front-page) .site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body:not(.is-front-page) .logo a {
    color: var(--primary-color);
}

body:not(.is-front-page) .logo .clinic-sub {
    color: var(--primary-color);
}

body:not(.is-front-page) .header-phone {
    color: var(--primary-color);
}

body:not(.is-front-page) .primary-nav .menu a {
    color: var(--text-dark);
}

body:not(.is-front-page) .primary-nav .menu a:hover {
    color: var(--primary-color);
}

body:not(.is-front-page) .header-info {
    border-left-color: var(--border-color);
}

body:not(.is-front-page) .header-access {
    color: var(--text-gray);
}

body:not(.is-front-page) .hamburger span {
    background: var(--text-dark);
}

/* ============================================
   メインビジュアル（フルスクリーン写真対応）
============================================ */
.hero {
    margin-top: 0;
    position: relative;
    height: 100vh;
    min-height: 550px;
    background: linear-gradient(to bottom, #00D4D4 60%, #00FFFE);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 歯の透過画像 */
.hero-tooth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: toothFloat 3s ease-in-out infinite;
}

@keyframes toothFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 左側メッセージ（縦書き） */
.hero-message {
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
}

.hero-message span {
    writing-mode: vertical-rl;
    font-size: 38px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* 右側インフォカード */
.hero-info-right {
    position: absolute;
    right: 6%;
    bottom: 12%;
    z-index: 2;
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    min-width: 260px;
}

.hero-info-card .hero-clinic-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.08em;
}

.hero-info-divider {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0.8rem 0;
}

.hero-info-card .hero-address {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.hero-info-card .hero-access {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.hero-info-card .hero-hours {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}

.hero-info-card .hero-hours-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.hero-info-card .hero-closed {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.hero-tel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.3s;
}

.hero-tel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* SCROLLインジケーター */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: white;
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    30% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    70% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* 追従ナビ内 Instagramリンク */
.section-nav-instagram {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    margin-top: 0.3rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    transition: opacity 0.3s, color 0.3s;
}

.section-nav-instagram:hover {
    opacity: 1;
    color: #fff;
}

.section-nav.dark .section-nav-instagram {
    color: #151515;
}

.section-nav.dark .section-nav-instagram:hover {
    opacity: 1;
}

.section-nav-instagram svg {
    fill: #fff;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 3px;
    width: 20px;
    height: 20px;
    transition: background 0.3s, opacity 0.3s;
}

.section-nav-instagram:hover svg {
    background: rgba(255, 255, 255, 0.5);
}

.section-nav.dark .section-nav-instagram svg {
    background: rgba(204, 35, 102, 0.5);
}

.section-nav.dark .section-nav-instagram:hover svg {
    background: rgba(204, 35, 102, 1);
}

/* 追従ナビ内 TikTokアイコン */
.section-nav-shop {
    gap: 0.4rem;
}

.section-nav-tiktok-icon {
    fill: #fff;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 3px;
    width: 20px;
    height: 20px;
    transition: background 0.3s, opacity 0.3s;
}

.section-nav-inner li:hover .section-nav-tiktok-icon {
    background: rgba(255, 255, 255, 0.5);
}

.section-nav.dark .section-nav-tiktok-icon {
    background: #000;
    opacity: 0.5;
}

.section-nav.dark .section-nav-inner li:hover .section-nav-tiktok-icon {
    opacity: 1;
}

/* モバイルヒーロー情報カード（デスクトップ非表示） */
.hero-mobile-info {
    display: none;
}


/* ============================================
   フローティングセクションナビ（参考サイト準拠）
============================================ */
.section-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s;
}

/* MENUボタン（常時右端に表示） */
.section-nav .open-btn {
    position: absolute;
    right: 0;
    width: 50px;
    height: 110px;
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 5px 0 0 5px;
    transition: background 0.3s, color 0.3s;
    transform: translateX(0);
    z-index: 2;
}

.section-nav .open-btn:hover {
    background: rgba(255,255,255,0.6);
    color: #fff;
}

/* ヒーロー通過後の暗色スタイル */
.section-nav.dark .open-btn {
    background: #151515;
    color: #fff;
}

.section-nav.dark .open-btn:hover {
    background: #ffffff;
    color: #151515;
}

.section-nav .open-btn .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: background 0.3s;
}

/* ナビ内容（リスト + CLOSEボタン） */
.section-nav-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-height: 60vh;
    transition: all 0.25s;
    transform: translateX(100%);
}

/* 開いた状態 */
.section-nav.opennav .section-nav-inner {
    transform: translateX(0);
}

/* 閉じた状態ではMENUボタンを右端に戻す */
.section-nav.closenav .open-btn {
    transform: translateX(0);
}

.section-nav.opennav .open-btn {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* リスト */
.section-nav-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.section-nav-inner li {
    border-right: 2px solid #fff;
    transition: border-color 0.3s;
}

.section-nav.dark .section-nav-inner li {
    border-right-color: #151515;
}

.section-nav-inner li a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0.6;
    white-space: nowrap;
    transition: opacity 0.3s, color 0.3s;
    text-decoration: none;
}

.section-nav.dark .section-nav-inner li a {
    color: #151515;
}

.section-nav-inner li a:hover,
.section-nav-inner li.current a {
    opacity: 1;
}

/* CLOSEボタン */
.section-nav-inner .close-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.section-nav.dark .section-nav-inner .close-btn {
    color: #151515;
}

.section-nav-inner .close-btn:hover {
    opacity: 1;
}

.section-nav-inner .close-btn .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

/* ============================================
   スクロールフェードイン
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   セクション共通
============================================ */
.section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-light);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 背景の大きな英字テキスト */
.section-bg-text {
    position: absolute;
    top: -0.15em;
    left: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: rgba(0, 184, 184, 0.07);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title .en {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============================================
   診療案内カード
============================================ */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-card {
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.3s;
}

.service-card:first-child {
    border-top: 1px solid var(--border-color);
}

.service-card:hover {
    padding-left: 0.5rem;
}

.service-card,
.service-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.service-card > a {
    width: 100%;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-width: 160px;
}

.service-card p {
    font-size: 1.03rem;
    color: var(--text-gray);
    line-height: 1.7;
    flex: 1;
}

.service-card .link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* ============================================
   特徴セクション（テンプレート・インプラント）
============================================ */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-pale);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-text p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ============================================
   医院紹介
============================================ */
.clinic-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.clinic-photo {
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-pale);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.clinic-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.clinic-details table {
    width: 100%;
    border-collapse: collapse;
}

.clinic-details th,
.clinic-details td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.clinic-details th {
    color: var(--text-dark);
    font-weight: 600;
    width: 30%;
    white-space: nowrap;
}

.clinic-details td {
    color: var(--text-gray);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    text-align: center;
    table-layout: fixed;
    white-space: nowrap;
}

.schedule-table th,
.schedule-table td {
    padding: 0.6rem 0.3rem;
    border: 1px solid var(--border-color);
    font-size: 13px;
    overflow: hidden;
}

.schedule-table thead th:first-child,
.schedule-table tbody th {
    width: 100px;
    white-space: nowrap;
}

.schedule-table small {
    font-size: 11px;
}

.schedule-table th {
    background: var(--primary-pale);
    color: var(--text-dark);
    font-weight: 600;
}

.schedule-table .open {
    color: var(--primary-color);
    font-weight: 600;
}

.schedule-table .closed {
    color: #ccc;
}

/* ============================================
   医院紹介ギャラリー
============================================ */
.clinic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.clinic-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.clinic-thumbnails img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}

/* ============================================
   アクセス
============================================ */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.access-map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    background: var(--primary-pale);
}

.access-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

.access-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.access-item {
    margin-bottom: 1.5rem;
}

.access-item .label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.access-item p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   オンラインショップ導線
============================================ */
.shop-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: white;
}

.shop-banner-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
}

.shop-banner-text p {
    opacity: 0.9;
    line-height: 1.7;
}

.btn-white {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.3s;
    white-space: nowrap;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   お知らせ
============================================ */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.news-text {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ============================================
   フッター
============================================ */
.site-footer {
    background: #F5F5F5;
    color: #333;
    padding: 3.5rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.footer-section p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: #666;
    transition: color 0.3s;
    font-size: 1.05rem;
}

.footer-section a:hover {
    color: #333;
}

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* ============================================
   ページコンテンツ
============================================ */
.page-content {
    margin-top: 70px;
    width: 100%;
}

/* ============================================
   ページヒーロー（サブページ用）
============================================ */
.page-hero {
    padding: 8rem 2rem 4rem;
    background: var(--bg-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero .en {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.page-hero::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.page-hero .bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Roboto', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    color: rgba(0, 184, 184, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

/* ============================================
   パンくずリスト
============================================ */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 13px;
    color: var(--text-gray);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* ============================================
   コンテンツブロック（サブページ用）
============================================ */
.content-block {
    max-width: 1100px;
    margin: 0 auto;
}

.content-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.content-block p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.content-block ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-block ul li {
    color: var(--text-gray);
    line-height: 2;
    list-style: disc;
    padding-left: 0;
}

/* ============================================
   フローステップ（治療の流れ等）
============================================ */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.flow-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.flow-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.flow-step .step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.flow-step .step-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   CTAボックス
============================================ */
.cta-box {
    background: var(--primary-pale);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.cta-box p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.cta-box .tel-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.05em;
}

.cta-box .tel-link:hover {
    color: var(--accent-color);
}

/* ============================================
   アクセスページ専用
============================================ */
.access-map.full {
    min-height: 450px;
}

.access-map.full iframe {
    min-height: 450px;
}

/* アクセスタブ */
.access-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.access-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.access-tab:hover {
    color: var(--primary-color);
}

.access-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.access-tab-content {
    display: none;
}

.access-tab-content.active {
    display: block;
}

/* 駐車場グリッド */
.parking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.parking-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.parking-map {
    border-radius: 12px;
    overflow: hidden;
}

.parking-map iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.route-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.route-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.route-step .step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.route-step .step-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.route-image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-pale);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   アクセスページ：マップ+医院情報レイアウト
============================================ */
.access-map-info-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: stretch;
}

.access-map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    min-height: 450px;
}

.access-map-container iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.access-info-panel {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
}

.access-info-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.access-info-heading.mt {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* ============================================
   リップアート専用レイアウト
============================================ */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.recommend-item {
    text-align: center;
}

.recommend-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--primary-pale);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recommend-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-label {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #E8667A;
    border: 1.5px solid #F4A0A8;
    border-radius: 24px;
    padding: 0.8rem 1.5rem;
    line-height: 1.6;
    background: white;
    box-shadow: 0 3px 12px rgba(232,129,138,0.12);
}

.lip-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.lip-flow-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(232,129,138,0.15);
}

.lip-flow-card .card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.lip-flow-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lip-flow-card .card-body {
    padding: 1.2rem;
}

.lip-step-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E8818A, #F4A0A8);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.case-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   訪問歯科：対応エリアマップ
============================================ */
#map {
    width: 100%;
    height: 450px;
}

/* ============================================
   レスポンシブ (タブレット)
============================================ */
@media (max-width: 1024px) {
    .header-container {
        padding: 0.8rem 1.5rem;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .clinic-info-grid {
        grid-template-columns: 1fr;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .access-map-info-grid {
        grid-template-columns: 1fr;
    }

    .parking-grid {
        grid-template-columns: 1fr;
    }
    .parking-grid iframe {
        height: 350px !important;
    }

    .lip-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   レスポンシブ (スマホ)
============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-right {
        flex-direction: row;
    }

    .logo a {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.2;
    }
    .logo .clinic-sub {
        font-size: 10px;
    }

    .lang-switcher { order: 1; }
    .header-instagram { order: 2; }
    .header-tiktok { order: 3; }
    .hamburger { order: 4; }

    .lang-switcher {
        position: static;
        transform: none;
    }

    .lang-switcher .lang-icon {
        display: none;
    }

    .lang-switcher .goog-te-combo {
        font-size: 0.7rem;
        padding: 2px 18px 2px 5px;
    }

    .header-phone .phone-text {
        display: none;
    }

    .primary-nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 60px);
        background: white;
        transition: right 0.3s;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .primary-nav.active {
        right: 0;
    }

    .primary-nav .menu {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .primary-nav .menu a {
        color: var(--text-dark) !important;
    }

    .dropdown {
        position: static;
        transform: none;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        padding: 0.5rem 0 0 1rem;
    }

    .has-dropdown > a::after {
        display: none;
    }

    .header-info {
        display: none;
    }

    .pc-br {
        display: none;
    }

    /* モバイル：SNSアイコン スクロール前は白、スクロール後にブランドカラー */
    .header-instagram {
        background: none;
        padding: 5px;
    }
    .header-instagram svg {
        fill: #fff;
        transition: fill 0.3s;
    }
    .site-header.scrolled .header-instagram,
    body:not(.is-front-page) .header-instagram {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    .header-tiktok {
        background: none;
        padding: 5px;
    }
    .header-tiktok svg {
        fill: #fff;
        transition: fill 0.3s;
    }
    .site-header.scrolled .header-tiktok,
    body:not(.is-front-page) .header-tiktok {
        background: #000;
    }

    /* ヒーロー：上下分離型（メッセージ→歯→カード） */
    .hero {
        height: 100vh;
        height: 100svh;
        min-height: 500px;
        margin-top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 140px 1rem 3.5rem;
        gap: 0.3rem;
    }

    .hero-message {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        order: 1;
        flex-shrink: 0;
        padding-bottom: 0.3rem;
    }

    .hero-message span {
        writing-mode: horizontal-tb;
        font-size: clamp(20px, 5.5vw, 26px);
        letter-spacing: 0.15em;
    }

    .hero-tooth {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 0;
        flex: 1;
        min-height: 0;
        object-fit: contain;
        order: 2;
    }

    .hero-scroll {
        display: none;
    }

    .hero-mobile-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        order: 3;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        padding: 0.8rem 1.2rem;
        width: 92%;
        max-width: 380px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .hero-mobile-info-row {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        color: var(--text-dark);
        width: 100%;
    }

    .hero-mobile-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: white;
        background: var(--primary-color);
        border-radius: 4px;
        padding: 0.2rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 5.5em;
        text-align: center;
    }

    .hero-mobile-tel {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        margin-top: 0.15rem;
        padding: 0.55rem;
        background: white;
        color: var(--primary-color);
        font-family: 'Roboto', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        border-radius: 8px;
        text-decoration: none;
    }

    .hero-mobile-sns {
        text-decoration: none;
        margin-top: 0.3rem;
        padding: 0.5rem 0.6rem;
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        border-radius: 8px;
        color: #fff;
    }

    .hero-mobile-sns .hero-mobile-label {
        background: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

    .hero-mobile-sns-inner {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: #fff;
        font-weight: 600;
    }

    .hero-mobile-sns-inner svg {
        fill: #fff;
    }

    .hero-mobile-sns-row {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        margin-top: 0.3rem;
        width: 100%;
    }

    .hero-mobile-sns-row .hero-mobile-info-row {
        width: 100%;
        margin-top: 0;
        justify-content: center;
    }

    .hero-mobile-tiktok {
        text-decoration: none;
        padding: 0.5rem 0.6rem;
        background: #000;
        border-radius: 8px;
        color: #fff;
    }

    .hero-mobile-tiktok .hero-mobile-label {
        background: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

    .section {
        padding: 3.5rem 1.2rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .service-card,
    .service-card > a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-card h3 {
        min-width: auto;
    }

    .shop-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 1.1rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .section-nav {
        display: none !important;
    }

    /* サブページ用レスポンシブ */
    .page-hero {
        padding: 6rem 1.2rem 3rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .breadcrumb {
        padding: 0.8rem 1.2rem;
        font-size: 12px;
    }

    .flow-step {
        flex-direction: column;
        gap: 0.8rem;
    }

    .route-step {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .cta-box .tel-link {
        font-size: 1.3rem;
    }

    /* アクセスページ */
    .access-map-container {
        min-height: 300px;
    }

    /* 医院紹介サムネイル */
    .clinic-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 診療時間テーブル */
    .schedule-table {
        font-size: 11px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.4rem 0.15rem;
        overflow: visible;
    }

    .schedule-table thead th:first-child,
    .schedule-table tbody th {
        width: 85px;
    }

    .schedule-table small {
        font-size: 9px;
    }

    /* リップアート */
    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recommend-circle {
        width: 200px;
        height: 200px;
    }

    .lip-flow-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .risk-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .price-table {
        font-size: 0.9rem;
    }

    .price-table td {
        padding: 0.8rem 0;
    }

    /* ハンバーガー */
    .hamburger {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    /* feature-text */
    .feature-text h3 {
        font-size: 1.15rem;
    }

    /* Leafletマップ */
    #map {
        height: 300px;
    }
}

/* ============================================
   全ページ：文字サイズメリハリ強化
============================================ */
.section-title h2 {
    font-size: 2.625rem;
}

.feature-text h3 {
    font-size: 1.8rem;
}

.content-block h3 {
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.15rem;
}

.clinic-details h3 {
    font-size: 1.5rem;
}

.shop-banner-text h3 {
    font-size: 1.8rem;
}

.access-details h3 {
    font-size: 1.4rem;
}

/* スマホ時のメリハリ調整 */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.3rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .feature-text h3 {
        font-size: 1.4rem;
    }

    .content-block h3 {
        font-size: 1.3rem;
    }

    .clinic-details h3 {
        font-size: 1.3rem;
    }

    .shop-banner-text h3 {
        font-size: 1.4rem;
    }
}
