:root {
    --primary-navy: #1A2B4C;
    --accent-olive: #8B8B5E;
    --bg-cream: #F2F0E6;
    --text-color: #333;
    --alert-red: #D32F2F;
    --white: #ffffff;
    --grid-line: rgba(139, 139, 94, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

.page-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 18px 20px 0;
}

.toc-link {
    flex: 1 1 140px;
    max-width: 180px;
    text-align: center;
    background: #F9F9F9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-navy);
    text-decoration: none;
}

.toc-link.navy {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: white;
}

.toc-link.olive {
    background: var(--accent-olive);
    border-color: var(--accent-olive);
    color: white;
}

.toc-link.gold {
    background: #D4AF37;
    border-color: #D4AF37;
    color: var(--primary-navy);
}

/* 2-column TOC, filled top-to-bottom then left-to-right (column-major order) */
.toc-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 10px;
}

.toc-grid-2col .toc-link {
    flex: none;
    max-width: none;
    width: 100%;
}

.greeting-subheading {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
    border-left: 4px solid var(--accent-olive);
    padding-left: 12px;
    margin: 28px 0 12px;
    line-height: 1.6;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1A1A1A; /* Darkened for readability, especially for older readers */
    background-color: var(--bg-cream);
    line-height: 1.85; /* Increased breathability */
    letter-spacing: 0.04em; /* Premium spacing */
    /* Grid Background */
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    display: flex;
    justify-content: center;
    -webkit-text-size-adjust: 100%;
}

p {
    font-weight: 500; /* Bolder for readability, especially for older readers */
    text-align: justify;
    text-justify: inter-character;
    margin-bottom: 1.2em;
}

.container {
    width: 100%;
    max-width: 500px; /* Standard mobile width for preview */
    background: white; /* Ensure background is solid white on mobile */
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding-bottom: 60px; /* leave room for the fixed call bar */
}

/* Fixed call bar */
.fixed-call-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: var(--primary-navy);
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in;
}

.fixed-call-bar.hidden {
    transform: translate(-50%, 100%);
}

.fixed-call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.fixed-call-bar .icon {
    font-size: 1.2rem;
}

.fixed-call-bar a:active,
.fixed-call-bar a.is-pressed {
    filter: brightness(1.4);
}

/* 画面右下に常時追従する「ページ最上部へ戻る」丸ボタン（アイコンのみ）。
   位置は .fixed-call-bar と同じく「中央寄せされた最大500pxのコンテナ」を基準に合わせる。
   left:50% を起点に、コンテナ右端から余白20pxぶん内側へ寄せる:
     min(50%, 250px)   … コンテナ右端までの距離（狭い端末では画面端まで）
     - 20px            … 右余白
     - 56px            … ボタン自身の幅
   これによりスマホ実機でも、PCで幅広く表示した場合でも本文カラムの右下に付く。
   50vw ではなく 50% を使うのは、50vw がスクロールバー幅を含むため
   left:50%（スクロールバーを除いた幅が基準）とズレる環境があるため。 */
.scroll-top-btn {
    position: fixed;
    /* 電話予約バーの実測高さは63px。その上に17pxの余白を空けて浮かせる。
       バーは診療時間外に下へ隠れるが、ボタン位置は動かさず固定（見た目の一貫性を優先）。 */
    bottom: 80px;
    left: 50%;
    margin-left: calc(min(50%, 250px) - 20px - 56px);
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-navy);
    color: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101; /* .fixed-call-bar (100) より手前 */
    box-shadow: 0 4px 14px rgba(26, 43, 76, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:active {
    filter: brightness(1.4);
}

.scroll-top-btn:focus-visible {
    outline: 3px solid #D4AF37;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: opacity 0.01s linear, visibility 0.01s;
        transform: none;
    }
}

/* Titles & Typography */
h1, h2, h3, .serif {
    font-family: 'Noto Serif JP', serif;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 20px;
}

.section-title-wrapper::before,
.section-title-wrapper::after {
    content: '';
    height: 2px;
    width: 30px; /* Shortened from 60px */
    background: var(--accent-olive);
}

.section-title {
    color: var(--accent-olive);
    font-size: 1.4rem; /* Slightly reduced from 1.6rem */
    font-weight: bold;
    letter-spacing: 0.1em; /* Reduced spacing to save width */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    white-space: nowrap; /* Prevent wrapping */
}

.section-title.navy {
    color: var(--primary-navy);
}

.section-title.gold {
    color: #D4AF37;
}

/* Header */
.main-header {
    background: white;
    padding: 5px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}



.header-content img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.name-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.clinic-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    white-space: nowrap;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.clinic-name-en {
    font-size: 0.9rem;
    color: var(--primary-navy);
    letter-spacing: 0.05em;
    opacity: 1;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.menu-btn-container {
    margin-left: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    min-width: 54px;
}

.menu-rect {
    width: 48px;
    height: 48px;
    background: var(--primary-navy);
    border-radius: 4px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.menu-label {
    font-size: 0.65rem;
    color: var(--primary-navy);
    margin-top: 2px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0;
}

/* Nav drawer */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78%;
    max-width: 320px;
    background: white;
    z-index: 200;
    box-shadow: -6px 0 24px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

.nav-drawer.open {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--primary-navy);
    color: white;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
}

.nav-drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.nav-drawer-link {
    display: block;
    padding: 16px 20px;
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.nav-drawer-link:active,
.nav-drawer-link.is-pressed {
    background: #F2F0E6;
}

body.nav-open {
    overflow: hidden;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #fff;
}
/* Hero Section */
.hero {
    position: relative;
    margin-top: 10px;
}

.hero-main-img {
    width: 100%;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    filter: brightness(1.2) contrast(1.03);
}

.hero-top-overlay {
    position: absolute;
    left: 50%;
    top: 13%;
    transform: translateX(-50%);
    width: 92%;
    text-align: center;
    z-index: 10;
    animation: slideUpFadeCentered 1.4s ease-out both;
}

.hero-floor-overlay {
    position: absolute;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: 88%;
    text-align: center;
    z-index: 10;
    animation: slideUpFadeCentered 1.4s ease-out both;
}

.hero-floor-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.6);
    opacity: 0.85;
    margin: 0 auto 10px;
    display: block;
}

.hero-floor-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #fff;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 6px;
    text-align: center;
}

.hero-floor-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    text-align: center;
}

.hero-badge {
    position: absolute;
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4E4126;
    font-family: 'Noto Serif JP', serif;
    padding: 10px 25px;
    border-radius: 16px;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    animation: slideUpFadeCentered 1.2s ease-out both;
}

.hero-badge .em {
    font-size: 1.2em;
}

.hero-tagline-boxes {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 85%;
    max-width: 400px;
    z-index: 10;
}

.hero-tagline-box {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 25px;
    text-align: center;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #4E4126;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-family: 'Noto Serif JP', serif;
    line-height: 1.4;
    animation: slideUpFade 1.2s ease-out both;
}

.hero-tagline-box .em {
    font-size: 1.15em;
}

.hero-tagline-box:nth-child(1) { animation-delay: 0.3s; }
.hero-tagline-box:nth-child(2) { animation-delay: 0.6s; }

@keyframes float {
    0% { transform: translate(-50%, 0px); }
    50% { transform: translate(-50%, -10px); }
    100% { transform: translate(-50%, 0px); }
}

@keyframes float-y {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFadeCentered {
    from { opacity: 0; transform: translateX(-50%) translateY(30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.location-tag {
    background: linear-gradient(90deg, #8B8B5E, #6A6A46);
    color: white;
    text-align: center;
    padding: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    letter-spacing: 0.15em;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.location-tag .icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Buttons */
.btn-3d {
    display: inline-block;
    background: linear-gradient(to bottom, #1A2B4C, #0D1626);
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    box-shadow: 0 5px 0 #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-3d:active,
.btn-3d.is-pressed {
    transform: translateY(3px) scale(0.97);
    box-shadow: 0 2px 0 #000;
    background: linear-gradient(to bottom, #0D1626, #06090F);
    /* filter is not set by any inline style on these buttons, so it always wins */
    filter: brightness(1.55) saturate(1.15);
    transition: none;
}

.btn-3d.btn-olive {
    background: var(--accent-olive);
    box-shadow: 0 5px 0 #5F5F46;
}

.btn-3d.btn-olive:active,
.btn-3d.btn-olive.is-pressed {
    background: #5C5C3B;
    box-shadow: 0 2px 0 #5F5F46;
    filter: brightness(0.78);
    transition: none;
}

.btn-outline-info {
    display: inline-block;
    border: 2px solid #000;
    background: white;
    padding: 5px 60px;
    color: #000;
    text-decoration: none;
    font-weight: normal;
    margin-bottom: 20px;
}

.center {
    text-align: center;
}

/* Consultation Area */
.consultation-section {
    padding: 60px 0;
    background: #fdfdfd;
}
/* Consultation Card Overhaul */
.consultation-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 0 10px;
}

.consultation-summary {
    background: var(--primary-navy);
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid var(--primary-navy);
}

.consultation-summary.closed {
    background: white;
    color: var(--primary-navy);
}

.hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    background: white;
}

.hours-table th {
    background: #f8f8f8;
    color: var(--primary-navy);
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
}

.hours-table td {
    padding: 15px 5px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    font-weight: bold;
}

.hours-table .sun {
    color: #d32f2f;
}

.hours-table .closed {
    color: #ccc;
    font-weight: normal;
}

.hours-table .today-highlight {
    background: rgba(139, 139, 94, 0.08) !important;
    border-left: 1px solid rgba(139, 139, 94, 0.1);
    border-right: 1px solid rgba(139, 139, 94, 0.1);
}

.reception-info-box {
    background: #F9F8F2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: bold;
    color: var(--primary-navy);
    white-space: nowrap;
    min-width: 60px;
    flex-shrink: 0;
}

.alert-banner-soft {
    border-top: 1.5px solid #cc0000;
    border-bottom: 1.5px solid #cc0000;
    background: rgba(204, 0, 0, 0.03);
    padding: 20px 15px;
    margin-bottom: 25px;
    text-align: center;
}

.alert-banner-soft p {
    color: #cc0000;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-open {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    position: relative;
}

.status-open::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.status-closed {
    background: #fafafa;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.alert-bubble {
    color: var(--alert-red);
    border: 2px solid #aaa;
    padding: 10px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 90%;
    font-weight: bold;
    background: white;
    position: relative;
}

/* News Section */
.news-section {
    padding: 60px 15px;
    background: #fff;
}
.greeting-card {
    background: transparent;
    padding: 20px;
}


.rounded-badge {
    background: #E8E5D6;
    color: var(--accent-olive);
    padding: 12px 20px;
    border-radius: 8px; /* Slightly squared for full-width stability */
    font-weight: bold;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Greeting Accordion */
#full-greeting {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin 0.5s ease;
    opacity: 0;
}

#full-greeting.show {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-text-only {
    background: none;
    border: none;
    color: var(--accent-olive);
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.btn-text-only:hover {
    color: var(--primary-navy);
}

.signature-area p {
    margin-bottom: 5px;
}

/* Scroll Reveal Animation */
.reveal-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-target.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.premium-img {
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    filter: brightness(0.85) saturate(1.05); 
    border: 1px solid rgba(139, 139, 94, 0.2);
    transition: transform 0.3s ease;
}

.premium-img:hover {
    transform: scale(1.02);
}

.feature-number-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 234, 216, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-olive);
    margin: 0 auto 10px;
}

/* Unified Feature Detail Design */
.feature-detail-box {
    background: #F9F8F2; /* Subtle warm cream */
    border-left: 4px solid var(--accent-olive);
    padding: 20px;
    border-radius: 4px 12px 12px 4px;
    margin: 20px 0;
    text-align: left;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.03);
}

/* FAQ Accordion */
.faq-item {
    background: #F9F8F2;
    border-left: 4px solid var(--accent-olive);
    border-radius: 4px 12px 12px 4px;
    padding: 18px 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.03);
}

.faq-question {
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--primary-navy);
    line-height: 1.6;
}

.faq-question::marker {
    color: var(--accent-olive);
}

.faq-item[open] .faq-question {
    margin-bottom: 14px;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.9;
}

.feature-tag {
    display: inline-block;
    background: var(--primary-navy);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.feature-tag.alt {
    background: var(--accent-olive);
}

.feature-tag.gold {
    background: #D4AF37;
    color: var(--primary-navy);
}

.feature-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.feature-sub-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 10px;
    line-height: 1.6;
}

.feature-sub-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--accent-olive);
    font-weight: bold;
}

.feature-sub-list .feature-sub-sublist {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.feature-sub-list .feature-sub-sublist li {
    padding-left: 1.4em;
    margin-bottom: 8px;
}

.feature-sub-list .feature-sub-sublist li::before {
    content: none;
}

/* Brick Banner */
.brick-banner {
    margin: 20px 10px;
    border: 3px solid #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 8px;
}

.brick-banner .premium-img {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.feature-badge {
    position: relative;
    width: 190px;
    height: 56px;
    margin: 4px auto 20px;
}

.feature-badge-oval {
    position: absolute;
    border: 1px solid rgba(139, 139, 94, 0.35);
    border-radius: 50%;
    width: 150px;
    height: 44px;
}

.feature-badge-oval-1 {
    top: 0;
    left: 0;
}

.feature-badge-oval-2 {
    top: 10px;
    left: 22px;
}

.feature-badge-text {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    line-height: 56px;
    font-family: 'Noto Serif JP', serif;
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--accent-olive);
}

.feature-ribbon {
    display: inline-block;
    background: var(--primary-navy);
    color: white;
    padding: 14px 26px;
    border-radius: 3px 18px 18px 3px;
    text-align: center;
    margin-bottom: 4px;
}

.feature-ribbon-num {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.feature-ribbon-line {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 8px auto;
}

.feature-ribbon-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    opacity: 0.85;
}

/* Grid for services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px;
}

.service-item-card {
    background: white;
    border: 2px solid rgba(26, 43, 76, 0.45);
    border-radius: 15px;
    /* 左右のpaddingを絞って本文1行に入る文字数を稼ぐ（用語の途中改行を防ぐため） */
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 16px rgba(26, 43, 76, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-item-card.featured {
    border: 1.5px solid #D4AF37; /* Noble gold */
    background: #FFFDF5; /* Softest gold tint */
}

.service-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent-olive);
    display: block;
}

.service-item-card h4 {
    color: var(--primary-navy);
    text-decoration: underline;
    margin-bottom: 10px;
}

/* カード本文（診療内容の用語リスト）
   用語ごとにinline-blockで囲んであるため、字間を詰めて1行に入る用語数を増やし、
   中央揃えにして行数の少ないカードでも収まりよく見せる */
.service-item-card p {
    letter-spacing: normal;
    text-align: center;
}

.service-more-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent-olive);
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Basic Info */
.clinic-info {
    padding: 60px 0;
    background: #fff;
}

.notices-section {
    padding: 40px 15px 60px;
}

/* Facility Gallery */
.facility-gallery-section {
    padding: 10px 0 30px;
    background: #fff;
}

.facility-gallery-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--accent-olive);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.facility-gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 0 20px 16px;
    scrollbar-width: none;
}

.facility-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.facility-gallery-item {
    flex: 0 0 76%;
    max-width: 300px;
    scroll-snap-align: center;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.facility-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* About Page Intro */
.about-intro-card {
    margin: 18px 20px 0;
    padding: 24px 20px;
    background: linear-gradient(135deg, #F9F8F2 0%, #FFFFFF 100%);
    border: 1px solid rgba(139, 139, 94, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.about-intro-title {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--primary-navy);
    margin: 0 0 12px;
}

.about-intro-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.about-intro-actions .btn-3d,
.about-intro-actions .btn-premium-navy,
.about-intro-actions .btn-premium-gold {
    width: 100%;
    max-width: 260px;
    text-align: center;
}

/* About Page Photo Sections */
.about-photo-section {
    padding: 15px 20px 35px;
}

.about-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-photo-grid .about-photo-full {
    grid-column: 1 / -1;
    width: 100%;
}

.about-photo-single {
    max-width: 400px;
    margin: 0 auto;
}

.about-photo {
    display: block;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.equipment-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary-navy);
    margin-top: 8px;
    font-weight: bold;
}

.equipment-photo-item {
    margin: 0 0 40px;
}

.equipment-item-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-top: 10px;
}

.equipment-tag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 400px;
    margin: 16px auto 0;
}

.equipment-tag {
    background: #F2F0E6;
    border: 1px dashed rgba(139, 139, 94, 0.4);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-navy);
}
.info-banner-blue {
    background: #1A2B4C;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.signature-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.signature-flower {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    border: 1px solid rgba(139, 139, 94, 0.25);
    filter: brightness(0.92) saturate(1.05);
    flex-shrink: 0;
}

/* Premium Signature Card */
.premium-signature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 139, 94, 0.15);
    border-right: 3px solid var(--accent-olive); /* Right accent instead of left for balance with right-aligned text */
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.premium-signature-card::before {
    content: 'Greeting';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(139, 139, 94, 0.03);
    font-family: 'Noto Serif JP', serif;
    pointer-events: none;
}

.btn-premium-gold {
    display: inline-block;
    border: 1px solid var(--accent-olive);
    color: var(--accent-olive);
    background: transparent;
    padding: 12px 40px;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(139, 139, 94, 0.1), transparent);
    transition: all 0.6s;
}

@media (hover: hover) and (pointer: fine) {
    .btn-premium-gold:hover {
        color: white;
        background: var(--accent-olive);
    }
    .btn-premium-gold:hover::before {
        left: 100%;
    }
}

.btn-premium-gold:active,
.btn-premium-gold.is-pressed {
    color: white;
    background: #55553A;
    border-color: #55553A;
    transform: scale(0.96);
    transition: none;
}

/* Navy variant of the same outline button, for navy-themed items */
.btn-premium-navy {
    display: inline-block;
    border: 1px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
    padding: 12px 40px;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium-navy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(26, 43, 76, 0.1), transparent);
    transition: all 0.6s;
}

@media (hover: hover) and (pointer: fine) {
    .btn-premium-navy:hover {
        color: white;
        background: var(--primary-navy);
    }
    .btn-premium-navy:hover::before {
        left: 100%;
    }
}

.btn-premium-navy:active,
.btn-premium-navy.is-pressed {
    color: white;
    background: #0D1626;
    border-color: #0D1626;
    transform: scale(0.96);
    transition: none;
}

.footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #888;
}

.footer-legal-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
}

.footer-legal-links a {
    color: #999;
    font-size: 0.75rem;
    text-decoration: underline;
}

/* ===== 現在地表示：ハンバーガーメニュー ===== */
/* 今どのページを見ているかを、ドロワー内で太字＋オリーブ＋左の帯で示す。
   border-left の 4px ぶん padding-left を減らして、文字位置がずれないようにしている。 */
.nav-drawer-link.active {
    color: var(--accent-olive);
    font-weight: 700;
    background: #FAF9F3;
    border-left: 4px solid var(--accent-olive);
    padding-left: 16px;
}

/* ===== パンくずリスト（診療案内の子ページ） ===== */
/* 「ホーム ＞ 診療案内 ＞ 超音波検査」。本文の邪魔をしないよう小さく淡く。 */
/* 色は「淡いが読める」ところを狙っている。#6E6E5F は白背景でコントラスト比 5.17:1 で
   WCAG AA（普通の文字は4.5:1以上）を満たす。高齢の患者さんが多いので薄くしすぎない。 */
.breadcrumb {
    padding: 14px 20px 0;
    font-size: 0.75rem;
    line-height: 1.7;
    color: #6E6E5F;
}

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

.breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* 区切り「＞」はCSSで入れる（HTMLに書くとスクリーンリーダーが読み上げてしまうため） */
.breadcrumb li + li::before {
    content: "＞";
    margin: 0 6px;
    color: #8F8F7D;
    font-size: 0.7rem;
}

.breadcrumb a {
    color: #6E6E5F;
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:active {
    color: var(--accent-olive);
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--primary-navy);
}

/* ------------------------------------------------------------------
   狭い端末（iPhone SE=375px / iPhone 12〜14=390px）向けの調整。
   .clinic-name が white-space: nowrap のため、
   ロゴ＋クリニック名＋メニューボタンの横一列が最小 421px 必要になり、
   375px・390px 幅では 46px / 31px ぶん画面からはみ出して
   ページ全体が横スクロールしていた。ロゴとクリニック名を少し縮めて収める。
   PC（1024px以上）は style.pc.css 側で上書きされるため影響なし。
   ------------------------------------------------------------------ */
@media (max-width: 420px) {
    .main-header { padding: 5px 12px; }
    .header-content { gap: 8px; }
    .header-content > a img {
        width: 52px !important;
        height: 52px !important;
    }
    .clinic-name { font-size: 1.05rem; letter-spacing: 0.02em; }
    .clinic-name-en { font-size: 0.78rem; letter-spacing: 0.02em; }

    /* トップページ「基本情報」バナーも同じ理由（クリニック名が nowrap）で
       ロゴ＋名称の一列が 409px 必要になり、はみ出していた。 */
    .info-banner-blue p:first-child { font-size: 1.1rem !important; }
}
