/* カスタムCSS - 北綾瀬駅メンタルクリニック */

/* 基本設定（PC基準のスタイルを含む） */
:root {
    --primary-color: #f8bbd9;
    --secondary-color: #6c757d;
    --success-color: #f48fb1;
    --info-color: #f48fb1;
    --warning-color: #ff9800;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --pink-light: #fce4ec;
    --pink-dark: #f8bbd9;
    
    /* Bootstrap Primary色をピンクに変更 */
    --bs-primary: #f48fb1;
    --bs-primary-rgb: 244, 143, 177;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro', 'Yu Gothic Medium', '游ゴシック Medium', YuGothic, '游ゴシック体', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    /*background-color: #fde4ed;*/
}

body.subpage { /*background-color: #fff2f6; */ }

/* ナビゲーション */
.navbar { backdrop-filter: blur(10px); transition: all 0.3s ease; }
.navbar-brand { font-size: 1.5rem; font-weight: 700; }
.nav-link { font-weight: 500; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-color) !important; }

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, var(--info-color), var(--pink-dark));
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero-section h1 { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-section .btn { box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.hero-section .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

/* セクションタイトル */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--info-color);
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute; bottom: -3px; left: 0;
    width: 50px; height: 3px; background: var(--primary-color);
}

/* カード */
.card { border: none; transition: all 0.3s ease; }
/* .card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); } */
.card-header { font-weight: 600; }

/* サイドバー */
.sidebar .card { margin-bottom: 1.5rem; }
.sidebar .card-header { font-size: 1rem; padding: 0.75rem 1rem; }
.news-item { padding-bottom: 0.75rem; border-bottom: 1px solid #e9ecef; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-date { font-size: 0.85rem; }
.news-title { font-weight: 500; color: #495057; }

/* フッター */
footer {
    margin-top: auto;
    background-color: var(--pink-light) !important;
    color: #6c757d !important;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
footer h5 { font-weight: 600; margin-bottom: 1rem; color: var(--info-color) !important; }
footer p, footer address, footer li { color: #6c757d !important; }
.social-links a { transition: color 0.3s ease; color: #6c757d !important; }
.social-links a:hover { color: var(--info-color) !important; }

/* アニメーション */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out; }

/* スクロール時のスムーズ移動 */
html { scroll-behavior: smooth; }

/* アクセシビリティ */
.btn:focus, .nav-link:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* プリント用スタイル（画面2区分とは別枠） */
@media print {
    .navbar, footer, .sidebar { display: none; }
    .container { max-width: none; margin: 0; padding: 0; }
    .hero-section { background: none !important; color: black !important; }
}

/* Bootstrap Primary色をピンクグラデーションに変更 */
.bg-primary { background: linear-gradient(135deg, var(--info-color), var(--pink-dark)) !important; }
.btn-primary {
    background: linear-gradient(135deg, var(--info-color), var(--pink-dark)) !important;
    border-color: var(--info-color) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, var(--pink-dark), var(--info-color)) !important;
    border-color: var(--pink-dark) !important;
}
.badge.bg-primary { background: linear-gradient(135deg, var(--info-color), var(--pink-dark)) !important; }
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--info-color), var(--pink-dark)) !important;
    border-color: var(--info-color) !important;
}

/* TOPページお知らせリストスタイル */
.news-list .news-item:hover { background-color: var(--pink-light); transition: background-color 0.3s ease; }
.news-list .news-item a:hover { color: var(--info-color) !important; transition: color 0.3s ease; } 

/* btn-outline-primary をピンクにカスタマイズ */
.btn-outline-primary { color: var(--info-color); border-color: var(--info-color); background-color: transparent; }
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active { color: #fff; background-color: var(--info-color); border-color: var(--info-color); }
.btn-outline-primary:focus { box-shadow: 0 0 0 0.2rem rgba(244, 143, 177, 0.5); }
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
    color: var(--info-color); background-color: transparent; border-color: var(--info-color); opacity: 0.65;
}

/* セクションヘッダー */
.section-header { margin-bottom: 30px; border-bottom: 3px solid #e78fa6; padding-bottom: 15px; }
.flat-section-title { font-size: 1.8rem; font-weight: 700; color: #e78fa6; margin: 0; background-color: transparent; padding: 20px 0 0 0; }

/* フルスクリーン/フル幅セクション */
.full-width-section { width: 100%; padding: 0px 0 30px 0; background-color: #ffffff; }
.section-content-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; }
.section-bg-1 { background-color: #fff2f6; }
.section-bg-2 { background-color: #fde4ed; }

/* Hero Buttons（共通） */
.hero-buttons { display: flex; margin-left: auto; transition: opacity 0.3s ease; flex-direction: row; }
.hero-buttons.fade { opacity: 0; pointer-events: none; }

/* Hero Buttons - Scrolled State（PCでは隠す） */
.hero-buttons.scrolled {
    position: fixed; top: 50%; right: 10px; transform: translateY(-50%);
    flex-direction: column; z-index: 1001; width: 56px; display: none;
}
.hero-buttons.scrolled .hero-btn { width: 40px; min-width: 40px; height: 40px; padding: 8px; transition: none; }
.hero-buttons.scrolled .hero-btn span { display: none; }

/* -------------------------------------------
   Subpage Header & Navigation  (共通スタイル)
--------------------------------------------- */
.subpage-header {
    color: #ffffff; min-height: 400px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
.subpage-hero-header { position: relative; z-index: 10; padding: 0; }
.subpage-hero-header-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.subpage-logo {
    background-color: rgba(255, 255, 255, 0.95); padding: 15px 20px; border-radius: 0; backdrop-filter: blur(10px);
    position: relative; z-index: 100; height: 75px; display: flex; align-items: center; justify-content: center;
}
.subpage-logo-img { max-height: 45px; width: auto; filter: none; }

/* Subpage hero buttons */
.subpage-hero-buttons { display: flex; margin-left: auto; margin-right: 0; transition: opacity 0.3s ease; }
.subpage-hero-buttons.fade { opacity: 0; pointer-events: none; }
.subpage-hero-buttons.scrolled {
    position: fixed; top: 50%; right: 0; transform: translateY(-50%);
    flex-direction: column; z-index: 1000;
}
.subpage-hero-buttons.scrolled .subpage-hero-btn { width: 40px; min-width: 40px; height: 40px; padding: 8px; transition: none; }
.subpage-hero-buttons.scrolled .subpage-hero-btn span { display: none; }

.subpage-hero-btn {
    background-color: rgba(255, 255, 255, 0.2); border: none; color: white; padding: 15px 20px; border-radius: 0;
    text-decoration: none; font-weight: 700; transition: all 0.3s ease; backdrop-filter: blur(10px);
    min-width: 120px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 75px;
}
.subpage-hero-btn i { font-size: 1.1rem; margin-bottom: 0; }
.subpage-hero-btn span { font-size: 0.8rem; line-height: 1; }
.subpage-hero-btn-contact { background-color: #e78fa6; }
.subpage-hero-btn-web { background-color: #F5C842; }
.subpage-hero-btn-line { background-color: #00B900; }
.subpage-hero-btn:hover { background-color: rgba(255, 255, 255, 0.3); color: white; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.subpage-hero-btn-contact:hover { background-color: #d67394; }
.subpage-hero-btn-web:hover { background-color: #E8B637; }
.subpage-hero-btn-line:hover { background-color: #009900; }

/* Subpage Content */
.subpage-content {
    flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
    position: relative; z-index: 2; text-align: center;
}
.subpage-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.subpage-breadcrumb { font-size: 1rem; opacity: 0.9; }
.subpage-breadcrumb a { color: white; text-decoration: none; }
.subpage-breadcrumb a:hover { text-decoration: underline; }

/* Square Navigation */
.nav-square-menu { background-color: white; box-shadow: 0 2px 10px rgba(231, 143, 166, 0.1); z-index: 1000; position: sticky; top: 0; }
.hamburger-btn { display: none; }
.nav-square-container { display: flex; width: 100%; margin: 0; padding: 0; }
.nav-square-item {
    flex: 1; background-color: #fdf6f8; color: #d67394; text-decoration: none; padding: 15px 20px;
    text-align: center; font-weight: 700; font-size: 0.85rem; border: none; transition: all 0.3s ease;
    border-right: 1px solid rgba(231, 143, 166, 0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-icon { font-size: 1.2rem; margin-bottom: 2px; }
.nav-text { font-size: 0.85rem; line-height: 1.2; }
.nav-square-item:last-child { border-right: none; }
.nav-square-item:hover { background-color: #f4e6ea; color: #e78fa6; }
.nav-square-item.nav-square-active { background-color: #e78fa6; color: white; }
.nav-square-contact { background-color: #e78fa6; color: white; }
.nav-square-contact:hover { background-color: #d67394; color: white; }

/* Utility: PC/SP表示制御（PC基準） */
.u-pc { display: block; }
.u-sp { display: none; background-color: #fde4ed; }

/* Hero Fullscreen */
.hero-fullscreen {
    height: 100vh; color: white; position: relative; display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden; --mask-offset: 0px; min-height: 100vh;
}
.hero-fullscreen::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/main_visual.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;
    z-index: -1; transform: translateY(var(--parallax-offset, 0px)); will-change: transform;
    /* マスク指定（必要に応じて有効化）
    mask-image: url('../images/hero-mask.svg'); mask-repeat: no-repeat; mask-position: center; mask-size: cover; mask-mode: luminance;
    -webkit-mask-image: url('../images/hero-mask.svg'); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: cover; -webkit-mask-mode: luminance;
    */
}

/* Hero Header */
.hero-header { position: relative; z-index: 10; }
.hero-header-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.hero-logo {
    background-color: rgba(255, 255, 255, 0.95); padding: 15px 20px; border-radius: 0; backdrop-filter: blur(10px);
    position: relative; z-index: 100; height: 75px; display: flex; align-items: center; justify-content: center;
}
.hero-logo a { display: block; text-decoration: none; }
.hero-logo-img { max-height: 45px; width: auto; filter: none; }

/* Hero Buttons - Clean Square Style */
.hero-buttons { margin-left: auto; }
.hero-btn {
    background-color: rgba(255, 255, 255, 0.2); border: none; color: white; padding: 15px 20px; border-radius: 0;
    text-decoration: none; font-weight: 700; transition: all 0.3s ease; backdrop-filter: blur(10px);
    min-width: 120px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 75px;
}
.hero-btn i { font-size: 1.1rem; margin-bottom: 0; }
.hero-btn span { font-size: 0.8rem; line-height: 1; }
.hero-btn-contact { background-color: #e78fa6; }
.hero-btn-web { background-color: #F5C842; }
.hero-btn-line { background-color: #00B900; }
.hero-btn:hover { background-color: rgba(255, 255, 255, 0.3); color: white; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.hero-btn-contact:hover { background-color: #d67394; color: white; }
.hero-btn-web:hover { background-color: #E8B637; color: white; }
.hero-btn-line:hover { background-color: #009900; color: white; }

/* Hero Content / Features */
.hero-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.hero-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }
.hero-feature-item {
    background-color: rgba(255, 255, 255, 0.2); border: none; color: #756770; padding: 12px 18px; border-radius: 25px;
    text-decoration: none; font-weight: 700; transition: all 0.3s ease; backdrop-filter: blur(10px); text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.85rem; line-height: 1.2; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); gap: 5px;
}
.hero-feature-item i { font-size: 1.2rem; margin-bottom: 2px; }
.hero-feature-item:hover { background-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* デスクトップでモバイル専用ロゴを非表示 */
.hero-logo-mobile { display: none; }
.hero-center-content { text-align: center; }
.hero-title {
    font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); color: white;
}
.hero-subtitle { color: white; display: block; margin-top: 10px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); text-align: center; animation: bounce 2s infinite; z-index: 2; }
.scroll-text { font-size: 0.9rem; margin-bottom: 10px; opacity: 0.8; letter-spacing: 1px; color: #333; }
.scroll-arrow { font-size: 1.2rem; opacity: 0.8; color: #333; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Square Navigation Menu（共通） */
.nav-square-menu { background-color: white; box-shadow: 0 2px 10px rgba(231, 143, 166, 0.1); z-index: 1000; }
.hamburger-btn { display: none; }
.nav-square-container { display: flex; width: 100%; margin: 0; padding: 0; }
.nav-square-item {
    flex: 1; background-color: #fdf6f8; color: #d67394; text-decoration: none; padding: 15px 20px;
    text-align: center; font-weight: 700; font-size: 0.85rem; border: none; border-radius: 0;
    border-right: 1px solid #f0e6ea; transition: all 0.3s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-icon { font-size: 1.2rem; margin-bottom: 2px; }

/* フラットカード / ニュース */
.flat-card { background-color: #fdf6f8; border-radius: 20px; padding: 20px; margin: 0; }
.news-list { background-color: transparent; }
.news-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; gap: 20px; }
.news-item-border { border-bottom: 1px solid #f0e6ea; }
.news-date { color: #5a6c7d; font-size: 0.9rem; font-weight: 600; min-width: 100px; flex-shrink: 0; }
.news-title { color: #2c3e50; text-decoration: none; font-weight: 500; flex-grow: 1; transition: color 0.3s ease; }
.news-title:hover { color: #e78fa6; text-decoration: none; }

/* セクションアクション */
.section-action { text-align: right; margin-top: 20px; }

/* Symptom Section / Flat grid */
.symptom-section { margin-bottom: 60px; }
.symptom-intro { text-align: center; font-size: 1.6rem; font-weight: 700; color: #2c3e50; margin-bottom: 40px; }
.symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.symptom-card { background-color: #ffffff; padding: 30px 25px; }
.symptom-heading {
    display: inline-block; font-size: 1.4rem; font-weight: 700; padding: 8px 25px; margin-bottom: 25px;
    border: 2px solid #e78fa6; color: #e78fa6; background-color: #fdf6f8;
}
.symptom-heading.physical { border-color: #d67394; color: #d67394; }
.symptom-list { list-style: disc; padding-left: 1.2rem; color: #2c3e50; line-height: 1.8; font-size: 0.95rem; }
.symptom-img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
    margin: 0 auto 20px auto; display: block; max-width: 70%;
}
.flat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.flat-grid-content { display: flex; flex-direction: column; }
.flat-grid-image { display: flex; align-items: center; justify-content: center; }
.flat-image { width: 100%; height: 300px; object-fit: cover; border-radius: 0; }
.flat-text-content p { font-size: 1rem; line-height: 1.8; color: #2c3e50; margin-bottom: 20px; }
.flat-text-content p:last-child { margin-bottom: 0; }
.flat-card-title { font-size: 1.3rem; font-weight: 700; color: #e78fa6; margin-bottom: 20px; }
.flat-btn {
    background-color: transparent; border: 2px solid #e78fa6; color: #e78fa6; padding: 12px 25px; border-radius: 0;
    text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px;
}
.flat-btn:hover { background-color: #e78fa6; color: white; text-decoration: none; }
.flat-btn-outline { background-color: transparent; border-color: #d67394; color: #d67394; }
.flat-btn-outline:hover { background-color: #d67394; color: white; }
.flat-btn-primary { background-color: #f4a6cd; border-color: #f4a6cd; color: white; }
.flat-btn-primary:hover { background-color: #e78fa6; border-color: #e78fa6; color: white; }

/* Contact Styles */
.flat-contact-card { background-color: #fdf6f8; padding: 30px; text-align: center; border-radius: 20px; }
.flat-contact-header { margin-bottom: 25px; }
.flat-contact-header i { font-size: 2.5rem; color: #e78fa6; margin-bottom: 15px; }
.flat-contact-header h3 { font-size: 1.3rem; font-weight: 700; color: #e78fa6; margin: 0; }
.flat-contact-content .phone-number { font-size: 2rem; font-weight: 700; color: #e78fa6; margin-bottom: 15px; }
.flat-contact-content p { margin-bottom: 10px; color: #2c3e50; }
.flat-contact-content .note { font-size: 0.9rem; color: #5a6c7d; }
.flat-contact-online .flat-btn { margin: 15px 0; }

/* フラットマップ */
.flat-map { width: 100%; height: 300px; border: 1px solid #f0e6ea; }
.flat-map iframe { border: none; border-radius: 0; width: 100%; height: 100%; }

/* Hero Wave */
.hero-fullscreen .hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; }
.hero-fullscreen .hero-wave svg { width: 100%; height: 152px; display: block; }
.hero-fullscreen .hero-wave .u-sp { display: none; }

/* 桜のSVG */
.svg { position: relative; }
.sakura-svg { position: absolute; top: -70px; right: 10px; z-index: 1; }
.nav-sakura-svg { width: 200px; height: auto; opacity: 0.7; }

/* ハンバーガーアイコン（共通構造） */
.hamburger-icon {
    width: 30px; height: 20px; position: absolute; top: 50%; right: 15px; transform: translateY(-50%);
    transition: .5s ease-in-out; cursor: pointer; padding: 10px 0;
}
.hamburger-line {
    display: block; position: absolute; height: 3px; width: 100%; background-color: #d67394; border-radius: 9px;
    opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out;
}
.hamburger-line:nth-child(1) { top: 0px; }
.hamburger-line:nth-child(2) { top: 10px; }
.hamburger-line:nth-child(3) { top: 20px; }
.hamburger-btn.active .hamburger-line:nth-child(1) { top: 10px; transform: rotate(135deg); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; left: -60px; }
.hamburger-btn.active .hamburger-line:nth-child(3) { top: 10px; transform: rotate(-135deg); }

/* ========== ページ固有のスタイル ========== */

/* Services Page */
.service-item {
    background-color: white; padding: 10px; margin-bottom: 20px; transition: all 0.3s ease; border-radius: 15px;
}
.service-item:hover { box-shadow: 0 4px 15px rgba(231, 143, 166, 0.1); transform: translateY(-2px); }
.service-title { font-size: 1.3rem; font-weight: 700; color: #e78fa6; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.service-title i { font-size: 1.5rem; }
.service-description { color: #2c3e50; line-height: 1.8; margin-bottom: 20px; }
.service-details { background-color: rgba(231, 143, 166, 0.05); padding: 20px; border-radius: 8px; }
.service-details h4 { color: #d67394; font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.service-details ul { margin: 0; padding-left: 20px; color: #2c3e50; }
.service-details li { margin-bottom: 8px; line-height: 1.6; }

/* Schedule Table */
.schedule-table { width: 100%; border-collapse: collapse; background-color: white; border-radius: 10px; overflow: hidden; }
.schedule-table th, .schedule-table td { padding: 5px; text-align: center; border: 1px solid #f0e6ea; }
.schedule-table th { background-color: #e78fa6; color: white; font-weight: 700; font-size: 0.95rem; }
.schedule-table td { color: #2c3e50; font-weight: 600; }
.schedule-table .time-slot { background-color: #fdf6f8; font-weight: 700; width: 20%; }
.schedule-table .available { background-color: #e8f5e8; color: #2e7d2e; }
.schedule-table .closed { background-color: #f8f8f8; color: #999; }
.schedule-table .special { background-color: #fff3cd; color: #856404; font-size: 0.9rem; }

/* Information Cards */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.info-card { background-color: white; padding: 25px; text-align: center; transition: all 0.3s ease; border-radius: 15px; }
.info-card:hover { box-shadow: 0 4px 15px rgba(231, 143, 166, 0.1); }
.info-card-icon { font-size: 3rem; color: #e78fa6; margin-bottom: 20px; }
.info-card-title { font-size: 1.2rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.info-card-text { color: #5a6c7d; line-height: 1.6; text-align: left; }

/* Note Section */
.note-section { background-color: rgba(231, 143, 166, 0.1); padding: 25px; margin-top: 30px; border-radius: 15px; }
.note-title { color: #e78fa6; font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.note-content { color: #2c3e50; line-height: 1.7; }
.note-content ul { margin: 15px 0; padding-left: 20px; }
.note-content li { margin-bottom: 8px; }

/* Doctor Page */
.doctor-profile { background-color: white; padding: 10px; margin-bottom: 40px; transition: all 0.3s ease; border-radius: 15px; }
.doctor-profile:hover { box-shadow: 0 8px 25px rgba(231, 143, 166, 0.1); transform: translateY(-3px); }
.doctor-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.doctor-image { width: 200px; object-fit: cover; border-radius: 15px; }
.doctor-info { display: flex; flex-direction: column; gap: 25px; }
.doctor-name { font-size: 2rem; font-weight: 700; color: #e78fa6; margin-bottom: 10px; }
.doctor-title { font-size: 1.2rem; color: #d67394; font-weight: 600; margin-bottom: 20px; }
.doctor-section { background-color: #fdf6f8; padding: 20px; margin-bottom: 20px; border-radius: 8px; }
.doctor-section-title { font-size: 1.1rem; font-weight: 700; color: #e78fa6; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.doctor-section-content { color: #2c3e50; line-height: 1.8; text-align: left; }
.doctor-section-content ul { margin: 0; padding-left: 20px; }
.doctor-section-content li { margin-bottom: 8px; }
.doctor-schedule { background-color: rgba(231, 143, 166, 0.1); border: 1px solid #e78fa6; padding: 20px; text-align: center; border-radius: 12px; }
.schedule-highlight { font-size: 1.3rem; font-weight: 700; color: #e78fa6; margin-bottom: 10px; }
.schedule-note { color: #2c3e50; font-size: 0.95rem; }
.doctor-message { background: linear-gradient(135deg, #fdf6f8 0%, #f8e8ed 100%); padding: 30px; margin-top: 30px; position: relative; border-radius: 15px; }
.doctor-message::before { content: '"'; position: absolute; top: -10px; left: 20px; font-size: 4rem; color: #e78fa6; font-family: serif; }
.message-title { font-size: 1.3rem; font-weight: 700; color: #e78fa6; margin-bottom: 20px; text-align: center; }
.message-content { font-size: 1.1rem; line-height: 1.8; color: #2c3e50; font-style: italic; }
.qualification-badge, .experience-badge {
    display: inline-block; color: white; padding: 0 5px; font-size: 0.8rem; margin: 2px; border-radius: 12px;
}
.qualification-badge { background-color: #e78fa6; }
.experience-badge { background-color: #f4a6cd; }
.philosophy-section { background-color: white; padding: 10px; text-align: center; border-radius: 15px; }
.philosophy-title { font-size: 1.8rem; font-weight: 700; color: #e78fa6; margin-bottom: 30px; }
.philosophy-content { font-size: 1.1rem; line-height: 2; color: #2c3e50; max-width: 800px; margin: 0 auto; }
.philosophy-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.philosophy-point { background-color: #fdf6f8; padding: 25px; border-radius: 12px; }
.philosophy-point-title { font-size: 1.1rem; font-weight: 700; color: #e78fa6; margin-bottom: 15px; }
.philosophy-point-content { color: #2c3e50; line-height: 1.6; }
.philosophy-point-text { text-align: left; }

/* Access Page */
.clinic-info { background-color: white; padding: 40px; margin-bottom: 30px; border-radius: 15px; }
.clinic-name { font-size: 2rem; font-weight: 700; color: #e78fa6; margin-bottom: 15px; text-align: center; }
.clinic-detail-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.detail-label { font-weight: 700; color: #e78fa6; white-space: nowrap; display: flex; align-items: center; gap: 10px; min-width: 120px; }
.detail-content { color: #2c3e50; line-height: 1.8; }
.phone-number { font-size: 1.4rem; font-weight: 700; color: #e78fa6; }
.map-container {
    width: 100%; height: 400px; background-color: #f8f8f8; display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 1.1rem; margin-bottom: 30px; border-radius: 15px;
}
.transport-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.transport-card { background-color: white; padding: 25px; text-align: center; transition: all 0.3s ease; border-radius: 15px; }
.transport-card:hover { box-shadow: 0 4px 15px rgba(231, 143, 166, 0.1); transform: translateY(-2px); }
.transport-icon { font-size: 3rem; color: #e78fa6; margin-bottom: 20px; }
.transport-title { font-size: 1.2rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.transport-description { color: #5a6c7d; line-height: 1.6; }
.transport-time { background-color: #e78fa6; color: white; padding: 8px 15px; font-weight: 700; margin-top: 15px; display: inline-block; border-radius: 12px; }
.landmark-section { padding: 0px; margin-top: 30px; border-radius: 15px; }
.landmark-title { color: #e78fa6; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.landmark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.landmark-item { background-color: white; padding: 15px; border-radius: 8px; }
.landmark-name { font-weight: 700; color: #e78fa6; margin-bottom: 5px; }
.landmark-distance { color: #2c3e50; font-size: 0.9rem; }
.contact-card {
    background: linear-gradient(135deg, #e78fa6 0%, #f4a6cd 100%); color: white; padding: 40px; text-align: center; border-radius: 15px;
}
.contact-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.contact-card-phone { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.contact-card-hours { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.9; }
.contact-card-note { font-size: 0.95rem; opacity: 0.8; }
.parking-info { background-color: #fff3cd; padding: 20px; margin-top: 20px; border-radius: 12px; }
.parking-title { color: #856404; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.parking-content { color: #856404; line-height: 1.6; }

/* Privacy Page */
.policy-content { background-color: white; padding: 20px; line-height: 1.8; color: #2c3e50; border-radius: 15px; }
.policy-section { margin-bottom: 40px; }
.policy-section h3 {
    color: #e78fa6; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f0e6ea;
}
.policy-section h4 { color: #d67394; font-size: 1.1rem; font-weight: 600; margin: 25px 0 15px 0; }
.policy-section p { margin-bottom: 15px; }
.policy-section ul, .policy-section ol { margin: 15px 0; padding-left: 30px; }
.policy-section li { margin-bottom: 8px; }
.important-note { background-color: rgba(231, 143, 166, 0.1); padding: 20px; margin: 25px 0; border-radius: 12px; }
.important-note .note-title { color: #e78fa6; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.contact-info { background-color: #f8f9fa; padding: 25px; margin-top: 30px; border-radius: 12px; }
.contact-info h4 { color: #e78fa6; margin-bottom: 15px; font-size: 1.2rem; }
.contact-details { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; }
.contact-label { font-weight: 600; color: #2c3e50; min-width: 80px; }
.contact-value { color: #2c3e50; }
.effective-date {
    text-align: right; color: #5a6c7d; font-style: italic; margin-top: 40px; padding-top: 20px; border-top: 1px solid #f0e6ea;
}

/* Contact Page（フォーム等） */
.contact-form-wrapper {
    background-color: white; border-radius: 15px; padding: 40px; box-shadow: 0 4px 20px rgba(231, 143, 166, 0.1);
}
.contact-form-intro { margin-bottom: 40px; text-align: center; }
.contact-form-intro p { color: #5a6c7d; font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.contact-phone-info {
    display: flex; align-items: center; justify-content: center; gap: 15px; background-color: #fff2f6;
    border: 2px solid #f0e6ea; border-radius: 12px; padding: 20px; margin: 0 auto; max-width: 400px;
}
.phone-icon { width: 50px; height: 50px; background-color: #e78fa6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.phone-details { flex: 1; }
.phone-number { font-size: 1.3rem; font-weight: 700; color: #2c3e50; margin-bottom: 5px; }
.phone-hours { font-size: 0.9rem; color: #5a6c7d; }
.contact-form { margin-top: 40px; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; font-weight: 600; color: #2c3e50; margin-bottom: 8px; font-size: 1rem; }
.required {
    color: #e78fa6; font-size: 0.8rem; font-weight: 700; background-color: #e78fa6; color: white; padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}
.optional { color: #5a6c7d; font-size: 0.8rem; font-weight: 400; background-color: #f8f8f8; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.form-input, .form-textarea {
    width: 100%; padding: 15px; border: 2px solid #f0e6ea; border-radius: 10px; font-size: 1rem; font-family: inherit; transition: all 0.3s ease; background-color: #fafafa;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: #e78fa6; background-color: white; box-shadow: 0 0 0 3px rgba(231, 143, 166, 0.1); }
.form-input.error, .form-textarea.error { border-color: #dc3545; background-color: #fff5f5; }
.form-textarea { resize: vertical; min-height: 120px; }
.error-message { color: #dc3545; font-size: 0.9rem; margin-top: 5px; font-weight: 500; }
.form-actions { text-align: center; margin-top: 40px; }
.btn-submit {
    background: linear-gradient(135deg, #e78fa6, #d67394); color: white; border: none; padding: 15px 40px; border-radius: 25px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(231, 143, 166, 0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231, 143, 166, 0.4); }
.contact-notes {
    background-color: white; border-radius: 15px; padding: 30px; box-shadow: 0 4px 20px rgba(231, 143, 166, 0.1);
}
.notes-title { color: #2c3e50; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.notes-title i { color: #e78fa6; }
.notes-list { list-style: none; padding: 0; margin: 0; }
.notes-list li { padding: 10px 0; padding-left: 25px; position: relative; color: #5a6c7d; line-height: 1.6; }
.notes-list li:before { content: "•"; color: #e78fa6; font-size: 1.2rem; position: absolute; left: 0; top: 10px; }

/* 確認画面 */
.contact-confirm-wrapper { background-color: white; border-radius: 15px; padding: 40px; box-shadow: 0 4px 20px rgba(231, 143, 166, 0.1); }
.confirm-intro { text-align: center; margin-bottom: 40px; }
.confirm-intro p { color: #5a6c7d; font-size: 1.1rem; line-height: 1.8; }
.confirm-content { background-color: #fff2f6; border-radius: 12px; padding: 30px; margin-bottom: 40px; }
.confirm-item { margin-bottom: 25px; border-bottom: 1px solid #f0e6ea; padding-bottom: 15px; }
.confirm-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.confirm-label { font-weight: 600; color: #2c3e50; margin-bottom: 8px; font-size: 0.9rem; }
.confirm-value { color: #5a6c7d; font-size: 1rem; line-height: 1.6; }
.confirm-value.message-content { background-color: white; padding: 15px; border-radius: 8px; border: 1px solid #f0e6ea; }
.confirm-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-back, .btn-send {
    padding: 12px 30px; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: none;
}
.btn-back { background-color: transparent; color: #5a6c7d; border: 2px solid #5a6c7d; }
.btn-back:hover { background-color: #5a6c7d; color: white; text-decoration: none; }
.btn-send { background: linear-gradient(135deg, #e78fa6, #d67394); color: white; box-shadow: 0 4px 15px rgba(231, 143, 166, 0.3); }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231, 143, 166, 0.4); text-decoration: none; color: white; }

/* 送信完了画面 */
.contact-result-wrapper { background-color: white; border-radius: 15px; padding: 40px; box-shadow: 0 4px 20px rgba(231, 143, 166, 0.1); text-align: center; }
.success-message, .error-message { margin-bottom: 40px; }
.success-icon, .error-icon { font-size: 4rem; margin-bottom: 20px; }
.success-icon { color: #28a745; }
.error-icon { color: #dc3545; }
.success-title, .error-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; color: #2c3e50; }
.success-text, .error-text { color: #5a6c7d; font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.contact-info-reminder, .contact-info-alternative { background-color: #fff2f6; border-radius: 12px; padding: 25px; margin-top: 30px; }
.contact-info-reminder h4, .contact-info-alternative h4 { color: #2c3e50; font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.phone-contact { display: flex; align-items: center; justify-content: center; gap: 15px; }
.result-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.btn-home, .btn-retry {
    padding: 12px 30px; border-radius: 25px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-home { background: linear-gradient(135deg, #e78fa6, #d67394); color: white; box-shadow: 0 4px 15px rgba(231, 143, 166, 0.3); }
.btn-home:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231, 143, 166, 0.4); text-decoration: none; color: white; }
.btn-retry { background-color: transparent; color: #5a6c7d; border: 2px solid #5a6c7d; }
.btn-retry:hover { background-color: #5a6c7d; color: white; text-decoration: none; }

/* Sitemap Page */
.sitemap-wrapper { background-color: white; border-radius: 15px; padding: 40px; box-shadow: 0 4px 20px rgba(231, 143, 166, 0.1); }
.sitemap-intro { text-align: center; margin-bottom: 40px; }
.sitemap-intro p { color: #5a6c7d; font-size: 1.1rem; line-height: 1.8; }
.sitemap-content { margin-bottom: 50px; }
.sitemap-section { margin-bottom: 40px; }
.sitemap-section:last-child { margin-bottom: 0; }
.sitemap-section-title {
    color: #2c3e50; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; padding: 15px 20px;
    background: linear-gradient(135deg, #e78fa6, #f4a6cd); color: white; border-radius: 12px; display: flex; align-items: center; gap: 10px;
}
.sitemap-section-title i { font-size: 1.1rem; }
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-item { margin-bottom: 8px; }
.sitemap-link {
    display: flex; align-items: center; gap: 15px; padding: 15px 20px; background-color: #fdf6f8;
    border: 1px solid #f0e6ea; border-radius: 10px; text-decoration: none; transition: all 0.3s ease; color: #2c3e50;
}
.sitemap-link:hover { background-color: #fff2f6; border-color: #e78fa6; text-decoration: none; color: #2c3e50; transform: translateX(5px); }
.sitemap-link.current { background-color: #e78fa6; border-color: #d67394; color: white; }
.sitemap-link.current:hover { background-color: #d67394; color: white; transform: none; }
.sitemap-link i { color: #e78fa6; font-size: 0.9rem; min-width: 15px; }
.sitemap-link.current i { color: white; }
.link-title { font-weight: 600; font-size: 1rem; min-width: 150px; }
.link-description { color: #5a6c7d; font-size: 0.9rem; flex: 1; }
.sitemap-link.current .link-description { color: rgba(255, 255, 255, 0.9); }

/* クリニック情報サマリー */
.clinic-info-summary {
    background-color: #fff2f6; border: 2px solid #f0e6ea; border-radius: 15px; padding: 30px; margin-bottom: 40px;
}
.clinic-info-title { color: #2c3e50; font-size: 1.3rem; font-weight: 700; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.clinic-info-title i { color: #e78fa6; }
.clinic-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.clinic-info-item { background-color: white; padding: 20px; border-radius: 10px; border: 1px solid #f0e6ea; }
.info-label { font-weight: 600; color: #2c3e50; margin-bottom: 8px; font-size: 0.9rem; }
.info-value { color: #5a6c7d; font-size: 1rem; line-height: 1.6; }
.phone-link { color: #e78fa6; text-decoration: none; font-weight: 600; }
.phone-link:hover { color: #d67394; text-decoration: underline; }

/* サイト更新情報 */
.site-update-info { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 25px; }
.update-info-title { color: #2c3e50; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.update-info-title i { color: #e78fa6; }
.update-content { color: #5a6c7d; }
.last-updated { font-weight: 600; margin-bottom: 15px; color: #2c3e50; }
.update-note { line-height: 1.6; margin: 0; }

/* Main Content Layout */
.main-content-wrapper { background-color: #fff2f6; min-height: calc(100vh - 400px); padding: 40px 0; }
.content-section { max-width: 1200px; margin: 0 auto 40px auto; padding: 0 20px; }
.content-section:last-child { margin-bottom: 0; }

/* Timeline（PC基準） */
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-item {
    display: flex; align-items: flex-start; margin-bottom: 1.5rem; padding: 1rem 0; border-bottom: 1px solid rgba(244, 143, 177, 0.2); transition: all 0.3s ease;
}
.timeline-item:hover { background-color: rgba(248, 187, 217, 0.05); border-radius: 8px; padding: 1rem; margin-left: -1rem; margin-right: -1rem; }
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.timeline-date {
    flex-shrink: 0; /*width: 200px;*/ padding-right: 1.5rem; color: #e78fa6; font-weight: 600; font-size: 0.95rem; text-align: right; position: relative;
}
.timeline-date::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; margin-right: -4px; }
.timeline-content {
    flex: 1; color: #555; line-height: 1.6; font-size: 1rem; padding-left: 1rem; border-left: 2px solid rgba(244, 143, 177, 0.3); margin-left: 0.5rem;
}
.timeline-content strong { color: #333; font-weight: 600; }

/* Footer予約ボタン色 */
.flat-btn-web { background-color: #F5C842 !important; border-color: #F5C842 !important; }
.flat-btn-web:hover { background-color: #E8B637 !important; border-color: #E8B637 !important; }
.flat-btn-line { background-color: #00B900 !important; border-color: #00B900 !important; }
.flat-btn-line:hover { background-color: #009900 !important; border-color: #009900 !important; }

/* Footerカルーセル */
#footerCarousel {
    width: 100%; height: 260px; overflow: hidden; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
#footerCarousel .carousel-inner { position: relative; height: 100%; }
#footerCarousel .carousel-item {
    height: 100%; overflow: hidden; opacity: 0; transition: opacity 0.8s ease-in-out; position: absolute; top: 0; left: 0; width: 100%; z-index: 1; display: block !important;
}
#footerCarousel .carousel-item.active { opacity: 1; position: relative; z-index: 2; }
#footerCarousel .carousel-image { width: 100%; height: 100%; object-fit: cover; object-position: center center; }

/* --- ここから「画面は2区分のみ」：モバイル(<768px) と PC(>=768px) --- */

/* ===== モバイル（<768px） ===== */
@media (max-width: 767.98px) {
    /* 共通レイアウト縮小 */
    .section-content-wrapper { padding: 0 15px; }
    .u-pc { display: none; }
    .u-sp { display: block; }

    /* Hero */
    .hero-section { min-height: 330px; text-align: center; }
    .hero-section h1 { font-size: 2rem; }
    .navbar-brand { font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }
    .btn-lg { padding: 0.5rem 1rem; font-size: 1rem; }

    /* Hero Header / Logo（小画面はロゴを隠し、モバイル用ロゴを出す想定） */
    .hero-header { top: 0; right: 0; width: auto; }
    .hero-logo { display: none; }
    .hero-logo-mobile {
        display: block; margin-bottom: 20px; background-color: rgba(255,255,255,0.9); padding: 15px 20px; border-radius: 0; backdrop-filter: blur(10px);
    }
    .hero-logo-img-mobile { max-height: 50px; width: auto; }

    .hero-title { font-size: 2rem !important; margin-bottom: 0 !important; line-height: 1.4 !important; font-weight: 600 !important; }
    .hero-section .lead { font-size: 1rem; }

    .hero-buttons { justify-content: center; margin: 0 auto; gap: 10px; width: 100%; max-width: 300px; flex-direction: row; }
    .hero-btn { min-width: 90px; height: 80px; padding: 10px 12px; font-size: 0.8rem; }
    .hero-btn i { font-size: 1rem; }
    .hero-btn span { font-size: 0.75rem; }

    /* Hero Buttons - Scrolled（モバイルでは出す） */
    .hero-buttons.scrolled { right: 8px; display: flex; }
    .hero-buttons.scrolled .hero-btn { width: 32px; min-width: 32px; height: 32px !important; padding: 6px; }

    /* Hero Center content（中央カード風） */
    .hero-fullscreen .hero-title { font-size: 1.5rem !important; line-height: 1.1; }
    .hero-subtitle { display: block; margin-top: 10px; }
    .hero-fullscreen .hero-center-content {
        padding: 0.8rem !important; position: absolute !important; top: 40% !important; left: 50% !important;
        transform: translate(-50%, -50%) !important; width: 90% !important; max-width: 400px !important;
        background-color: rgba(255, 255, 255, 0.2) !important; backdrop-filter: blur(5px) !important;
        border-radius: 10px !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    .hero-fullscreen .hero-logo-mobile { display: block !important; margin-bottom: 0.5rem !important; }
    .hero-fullscreen .hero-logo-img-mobile { max-height: 30px !important; width: auto !important; }
    .hero-fullscreen .hero-content { position: relative !important; height: 100% !important; }

    /* Features */
    .hero-features { gap: 10px; margin-top: 20px; }
    .hero-feature-item { padding: 8px 12px; font-size: 0.75rem; border-radius: 20px; flex-direction: row; gap: 8px; }
    .hero-feature-item i { font-size: 1rem; margin-bottom: 0; }

    /* Scroll indicator */
    .scroll-indicator { bottom: 10px; }
    .scroll-text { font-size: 0.7rem; }
    .scroll-arrow { font-size: 0.9rem; }

    /* Hero Wave（モバイルはSP版表示） */
    .hero-fullscreen .hero-wave .u-pc { display: none; }
    .hero-fullscreen .hero-wave .u-sp { display: block; }
    .hero-fullscreen { height: 80vh; min-height: 80vh; }

    /* Sakura（モバイルは非表示） */
    .sakura-svg { display: none; }

    /* Subpage */
    .subpage-title { font-size: 1.8rem; }
    .subpage-header { min-height: 65vh; }
    .subpage-hero-header { position: absolute; top: 0; right: 0; width: auto; padding: 0; }
    .subpage-hero-header-content { flex-direction: column; align-items: flex-end; height: auto; gap: 0; }
    .subpage-logo { display: none; }
    .subpage-hero-buttons { flex-direction: row; gap: 0; margin: 0; }
    .subpage-hero-btn { min-width: 95px; height: 70px; padding: 10px 8px; font-size: 0.8rem; }
    .subpage-hero-btn i { font-size: 1.2rem; }
    .subpage-hero-btn span { font-size: 0.8rem; }
    .subpage-content { padding: 20px; }

    /* モバイル専用ロゴ（サブページ） */
    .subpage-logo-mobile {
        display: block; margin-bottom: 20px; background-color: rgba(255, 255, 255, 0.9);
        padding: 15px 20px; border-radius: 0; backdrop-filter: blur(10px);
    }

    /* ナビ（ハンバーガー） */
    .nav-square-menu { display: flex; align-items: center; position: relative; }
    .hamburger-btn {
        display: block !important; background-color: rgba(255, 255, 255, 0.95); border: none; padding: 20px 15px; cursor: pointer;
        backdrop-filter: blur(10px); width: 100%; text-align: right; position: relative; z-index: 1001;
    }
    .hamburger-icon { position: absolute; top: 50%; transform: translateY(-50%); }
    .nav-square-container {
        position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 1000; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-square-container.active { max-height: 500px; overflow: visible; }
    .nav-square-item { border-bottom: 1px solid rgba(231, 143, 166, 0.2); border-right: none; padding: 15px 20px; font-size: 0.9rem; }
    .nav-square-item:last-child { border-bottom: none; }

    /* Flat card / news list */
    .flat-card { padding: 20px; }
    .news-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; }
    .news-date { min-width: auto; font-size: 0.9rem; }
    .section-action { text-align: center; }
    .mobile-hidden { display: none !important; }

    /* Symptom / Flat grid（1列化） */
    .symptom-grid { grid-template-columns: 1fr; gap: 25px; }
    .symptom-intro { font-size: 1.4rem; }
    .symptom-img { max-width: 80%; }
    .flat-grid { grid-template-columns: 1fr; gap: 20px; }
    .flat-image { height: 250px; }
    .flat-btn { width: 100%; justify-content: center; }

    /* Contact summary card */
    .flat-contact-card { padding: 20px; margin-bottom: 20px; }
    .flat-contact-content .phone-number { font-size: 1.5rem; }

    /* Map縮小 */
    .flat-map { height: 250px; }

    /* Schedule Table（モバイルは固定幅解除） */
    .schedule-table .time-slot { width: auto; }

    /* Main content / section */
    .main-content-wrapper { padding: 20px 0; }
    .content-section { padding: 0 15px; margin-bottom: 30px; }

    /* Doctor page縮小 */
    .doctor-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .doctor-image { width: 70%; margin: 0 auto; }
    .doctor-name { font-size: 1.5rem; }
    .doctor-title { font-size: 1rem; }
    .philosophy-points { grid-template-columns: 1fr; gap: 20px; }

    /* Contact page縮小 */
    .contact-form-wrapper, .contact-confirm-wrapper, .contact-result-wrapper { padding: 25px; }
    .contact-phone-info { flex-direction: column; text-align: center; gap: 10px; }
    .phone-icon { width: 40px; height: 40px; font-size: 1rem; margin: 0 auto; }
    .phone-number { font-size: 1.2rem; }
    .confirm-actions, .result-actions { flex-direction: column; align-items: center; }
    .btn-back, .btn-send, .btn-home, .btn-retry { width: 100%; max-width: 250px; justify-content: center; }
    .contact-notes { padding: 20px; }
    .notes-title { font-size: 1.1rem; }

    /* Sitemap縮小 */
    .sitemap-wrapper { padding: 25px; }
    .sitemap-section-title { font-size: 1.1rem; padding: 12px 15px; }
    .sitemap-link { flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; }
    .sitemap-link:hover { transform: none; }
    .link-title { min-width: auto; font-size: 0.95rem; }
    .link-description { font-size: 0.85rem; }
    .clinic-info-grid { grid-template-columns: 1fr; gap: 15px; }
    .clinic-info-item { padding: 15px; }
    .clinic-info-summary, .site-update-info { padding: 20px; }

    /* さらに小さい端末寄りの調整（旧≤576px相当を統合） */
    .main-content-wrapper { padding: 15px 0; }
    .content-section { padding: 0 10px; margin-bottom: 25px; }
    .doctor-section { padding: 15px; }
    .doctor-message { padding: 20px; }
    .message-content { font-size: 1rem; }

    .contact-form-wrapper, .contact-confirm-wrapper, .contact-result-wrapper { padding: 20px; }
    .contact-form-intro p { font-size: 1rem; }
    .phone-number { font-size: 1.1rem; }
    .phone-hours { font-size: 0.8rem; }
    .form-input, .form-textarea { padding: 12px; font-size: 0.9rem; }
    .btn-submit { padding: 12px 30px; font-size: 1rem; }
    .success-icon, .error-icon { font-size: 3rem; }
    .success-title, .error-title { font-size: 1.5rem; }
    .success-text, .error-text { font-size: 1rem; }

    .sitemap-wrapper { padding: 20px; }
    .sitemap-intro p { font-size: 1rem; }
    .sitemap-section-title { font-size: 1rem; padding: 10px 12px; }
    .sitemap-link { padding: 12px; }
    .link-title { font-size: 0.9rem; }
    .link-description { font-size: 0.8rem; }
    .clinic-name { font-size: 1.2rem; }
    .clinic-info-title, .update-info-title { font-size: 1.1rem; }
    .clinic-info-summary, .site-update-info { padding: 15px; }

    /* Timeline（モバイル縦積み） */
    .timeline-item { flex-direction: column; align-items: stretch; margin-bottom: 1.25rem; padding: 0.75rem 0; }
    .timeline-date {
        width: 100%; text-align: left; padding-right: 0; padding-bottom: 0.5rem; margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(244, 143, 177, 0.3); position: relative;
    }
    .timeline-date::after { right: auto; left: 0; top: auto; bottom: -1px; margin-right: 0; margin-left: -4px; transform: translateX(-50%); }
    .timeline-content { border-left: none; padding-left: 0; padding-top: 0.5rem; margin-left: 0; }
}

/* ===== PC（≥768px） ===== */
/* PCはベースを基本とし、必要に応じて明示上書き */
@media (min-width: 768px) {
    .hero-section { min-height: 600px; }
    .hero-title { font-size: 3.5rem; }
    .hero-logo { display: flex; }
    .hero-fullscreen { height: 100vh; min-height: 100vh; }
    .hero-fullscreen .hero-wave .u-pc { display: block; }
    .hero-fullscreen .hero-wave .u-sp { display: none; }
    .sakura-svg { display: block; }
    .nav-square-container { position: static; max-height: none !important; overflow: visible !important; }
}

/* 透明カード背景（任意の見た目維持） */
.card { background-color: transparent; }

/* === Hero/Subpage ボタンを正円に戻す（上書き） === */
.hero-buttons a,
.hero-btn,
.subpage-hero-btn {
  border-radius: 50% !important;
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  padding: 0 !important;
  margin: 10px !important;
  overflow: hidden;
}

/* スクロール時の小型版も正円維持 */
.hero-buttons.scrolled .hero-btn,
.subpage-hero-buttons.scrolled .subpage-hero-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  padding: 8px !important;
}

/* ===========================
   スマホ横向き（ランドスケープ）対策
   ※ CSSの一番最後に追記してください
   =========================== */
   @media (max-width: 767.98px) and (orientation: landscape) {

    /* ヒーローは高さ固定をやめてフローに戻す */
    .hero-fullscreen {
      height: auto !important;
      min-height: 100vh; /* fallback */
      /* 波形分の下余白を確保して下切れ回避 */
      padding-bottom: 96px !important;
    }
    /* 安全なビューポート単位が使える環境ではそちらを優先 */
    @supports (height: 100svh) {
      .hero-fullscreen { min-height: 100svh; }
    }
  
    /* 絶対配置で中央寄せしていたカードを通常フローに */
    .hero-fullscreen .hero-center-content {
      position: static !important;
      transform: none !important;
      top: auto !important;
      left: auto !important;
      width: min(92vw, 560px) !important;
      margin: 8px auto 12px !important;
    }
  
    /* ヘッダーとロゴを全幅化＆センター */
    .hero-header-content {
        flex-direction: column !important;
        align-items: center !important;
    }
    /* ロゴブロックを中央配置。画像も中央に */
    .hero-logo-mobile {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto 12px !important;
    }
    .hero-logo-img-mobile {
        display: inline-block !important;
        margin: 0 auto !important;
    }
  
    /* 上の丸ボタンを小さく＆通常フロー上で中央揃え */
    .hero-buttons {
      position: static !important;
      margin: 8px auto !important;
      justify-content: center !important;
      gap: 8px !important;
    }
    .hero-buttons a,
    .hero-btn {
      width: 60px !important;
      height: 60px !important;
      min-width: 60px !important;
      border-radius: 50% !important;
      padding: 0 !important;
    }
  
    /* タイトルやチップを圧縮 */
    .hero-title {
      font-size: clamp(1.3rem, 3.2vw, 1.6rem) !important;
      line-height: 1.15 !important;
    }
    .hero-subtitle { font-size: 0.9rem !important; }
    .hero-features { gap: 6px !important; margin-top: 10px !important; }
    .hero-feature-item { padding: 6px 10px !important; font-size: 0.7rem !important; }
    .hero-feature-item i { font-size: 0.9rem !important; }
  
    /* 下部の「scroll」インジケータは横向きでは非表示にして重なり回避 */
    .scroll-indicator { display: absolute !important; }
    .hero-fullscreen .hero-wave svg { height: 90px !important; }
  
    /* 短い縦幅でのパララックスを抑止（はみ出し防止） */
    .hero-fullscreen::before { background-attachment: scroll !important; }
  
    /* 横向きではフローティングのスクロール時ボタンを無効化 */
    .hero-buttons.scrolled,
    .subpage-hero-buttons.scrolled { display: none !important; }
  
    /* 下のスクエアナビが重ならないようstickyを解除（絶対配置の基準は維持） */
    .nav-square-menu { position: relative !important; }
  }