/*
Theme Name: Nishida Clinic Theme
Theme URI: https://hannantest.xsrv.jp/nishida/
Author: Nishida Clinic
Author URI: https://hannantest.xsrv.jp/nishida/
Description: 西田クリニック専用のオリジナルテーマ。内科・総合診療クリニック向けのモダンで信頼感のあるデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nishida-clinic
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready, medical, clinic

西田クリニック - 内科・総合診療
地域の皆さまに寄り添う「かかりつけ医」
*/

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --color-primary: #004a99;
    --color-primary-light: #3387d7;
    --color-primary-dark: #003d80;
    --color-accent: #5ba4d9;
    --color-accent-light: #e8f4fc;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-red-500: #ef4444;
    --color-blue-500: #3b82f6;
    --color-teal-500: #14b8a6;
    --color-rose-500: #f43f5e;
    --color-amber-500: #f59e0b;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --rounded-sm: 0.125rem;
    --rounded-md: 0.375rem;
    --rounded-lg: 0.5rem;
    --rounded-xl: 0.75rem;
    --rounded-2xl: 1rem;
    --rounded-3xl: 1.5rem;
    --rounded-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Header Styles - Floating Glass Design
   ============================================ */
.site-header {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .site-header {
        top: 1.25rem;
        left: 2rem;
        right: 2rem;
    }
}

@media (min-width: 1024px) {
    .site-header {
        top: 1.5rem;
        left: 3rem;
        right: 3rem;
    }
}

@media (min-width: 1280px) {
    .site-header {
        left: auto;
        right: auto;
        width: 100%;
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Glass Container */
.header-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow:
        0 8px 32px rgba(0, 74, 153, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    .header-glass {
        border-radius: 3rem;
    }
}

/* Scrolled State - More opaque */
.site-header.scrolled .header-glass {
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 12px 40px rgba(0, 74, 153, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .header-inner {
        height: 60px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        height: 64px;
        padding: 0 2rem;
    }
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.25);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}

.site-logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.35);
}

.logo-text h1 {
    color: var(--color-gray-800);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
}

@media (min-width: 768px) {
    .logo-text h1 {
        font-size: 1.0625rem;
    }
}

.logo-text p {
    color: var(--color-gray-400);
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Navigation - Glass Style */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.main-nav a {
    color: var(--color-gray-600);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 74, 153, 0.08);
    border-radius: 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.main-nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.main-nav a span {
    position: relative;
    z-index: 1;
}

/* Header Contact - Glass Buttons */
.header-contact {
    display: none;
}

@media (min-width: 768px) {
    .header-contact {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Phone - Glass Style */
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.875rem;
    background: rgba(0, 74, 153, 0.06);
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.header-phone:hover {
    background: rgba(0, 74, 153, 0.1);
    border-color: rgba(0, 74, 153, 0.2);
}

.header-phone svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* CTA Button - Glass Accent */
.btn-access {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: 0.5rem 1.125rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.25);
    transition: all 0.3s ease;
}

.btn-access:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.35);
}

/* Mobile Menu Button - Glass */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 74, 153, 0.06);
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 0.75rem;
    padding: 0;
    cursor: pointer;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 74, 153, 0.1);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Mobile Menu - Glass Panel */
.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow:
        0 12px 40px rgba(0, 74, 153, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    animation: menuSlideDown 0.3s ease;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(0, 74, 153, 0.06);
    color: var(--color-primary);
}

/* Mobile Menu Phone Link */
.mobile-menu-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white) !important;
    border-radius: 0.75rem;
    font-weight: 600;
}

.mobile-menu-phone:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%) !important;
}

.mobile-menu-phone svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Hero Section - Photo Driven Design
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Photo Layer */
.hero-photo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-photo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #002d5c 0%, var(--color-primary) 40%, var(--color-primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
}

/* Hero Photo Image */
.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navy Gradient Overlay for Text Readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 45, 92, 0.85) 0%,
        rgba(0, 74, 153, 0.7) 40%,
        rgba(51, 135, 215, 0.6) 100%
    );
    z-index: 1;
}

/* Background Typography */
.hero-section::before {
    content: 'NISHIDA CLINIC';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

/* Geometric Shapes */
.hero-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    z-index: 3;
}

.hero-geometric {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    z-index: 3;
}

/* Hero Section Number - Modern Serif */
.hero-section-number {
    position: absolute;
    bottom: 15%;
    right: 5%;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    letter-spacing: -0.02em;
    z-index: 4;
}

@media (min-width: 768px) {
    .hero-section-number {
        font-size: 10rem;
        bottom: 10%;
        right: 8%;
    }
}

@media (min-width: 1024px) {
    .hero-section-number {
        font-size: 14rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 8rem 1.5rem 3rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.625rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title span {
    color: var(--color-accent-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: var(--rounded-full);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--rounded-full);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator-inner {
    width: 2rem;
    height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--rounded-full);
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-indicator-dot {
    width: 6px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--rounded-full);
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Message Section (院長あいさつ) - Premium Design
   ============================================ */
.message-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Background Typography */
.message-section::before {
    content: 'DIRECTOR';
    position: absolute;
    top: 3rem;
    right: -5%;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    color: rgba(0, 74, 153, 0.02);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.message-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 74, 153, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.message-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

@media (min-width: 1024px) {
    .message-grid {
        grid-template-columns: 4fr 6fr;
        gap: 4rem;
    }
}

/* Section Number for Message */
.message-section .section-header {
    position: relative;
}

.message-section-number {
    font-family: 'Times New Roman', serif;
    font-size: 6rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.06);
    line-height: 1;
    letter-spacing: -0.02em;
    position: absolute;
    top: -2rem;
    left: -1rem;
}

@media (min-width: 768px) {
    .message-section-number {
        font-size: 8rem;
        top: -3rem;
        left: -2rem;
    }
}

.message-image {
    position: relative;
}

.message-image-inner {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.08) 0%, rgba(91, 164, 217, 0.12) 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.message-image-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 1.5rem;
    pointer-events: none;
}

.message-image-placeholder {
    text-align: center;
    color: var(--color-primary);
    opacity: 0.4;
}

.message-image-placeholder svg {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    stroke-width: 1;
}

.message-image-placeholder p {
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* Message Photo Image */
.message-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Geometric accents */
.message-image::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.message-image::after {
    content: '02';
    position: absolute;
    bottom: 1.5rem;
    right: -2rem;
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.08);
    line-height: 1;
}

@media (min-width: 768px) {
    .message-image::after {
        font-size: 5rem;
        right: -3rem;
    }
}

.message-content {
    padding-left: 0;
    position: relative;
}

@media (min-width: 1024px) {
    .message-content {
        padding-left: 1rem;
    }
}

.section-label {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-top: 0.5rem;
    letter-spacing: 0.08em;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-divider {
    width: 3rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--rounded-full);
    margin-top: 1rem;
    opacity: 0.6;
}

.message-text {
    margin-top: 2rem;
    color: var(--color-gray-600);
}

.message-text p {
    margin-bottom: 1.25rem;
    line-height: 2;
    letter-spacing: 0.04em;
    font-size: 0.9375rem;
}

.message-text p:first-child {
    font-size: 1rem;
    color: var(--color-gray-700);
}

/* Message Items - Numbered Layout */
.message-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.message-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 74, 153, 0.06);
    position: relative;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item-number {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.12);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

@media (min-width: 768px) {
    .message-item-number {
        font-size: 3rem;
    }
}

.message-item:hover .message-item-number {
    color: rgba(0, 74, 153, 0.25);
}

.message-item-content {
    position: relative;
}

.message-item-content::before {
    content: attr(data-en);
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

.message-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-800);
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem 0;
}

.message-item-text {
    color: var(--color-gray-600);
    font-size: 0.9375rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

/* Accent line animation for message items */
.message-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-item:hover::after {
    width: 100%;
}

.doctor-card {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 74, 153, 0.06);
    border-left: 3px solid var(--color-primary);
    position: relative;
}

.doctor-card::before {
    content: 'PROFILE';
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    opacity: 0.4;
}

.doctor-name {
    color: var(--color-gray-800);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.08em;
}

.doctor-credentials {
    color: var(--color-gray-500);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    letter-spacing: 0.03em;
}

/* ============================================
   Services Section (診療内容) - Premium Design
   ============================================ */
.services-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: 'MEDICAL SERVICES';
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    color: rgba(0, 74, 153, 0.03);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.section-header .section-divider {
    margin: 1rem auto 0;
}

.section-description {
    color: var(--color-gray-600);
    margin-top: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.05em;
    line-height: 2;
}

/* Services List - Numbered Layout */
.services-list {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 74, 153, 0.08);
    position: relative;
}

@media (min-width: 768px) {
    .service-item {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 3rem;
        padding: 3.5rem 2rem;
    }
}

.service-item:last-child {
    border-bottom: none;
}

/* Number styling */
.service-number {
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.12);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

@media (min-width: 768px) {
    .service-number {
        font-size: 5rem;
    }
}

.service-item:hover .service-number {
    color: rgba(0, 74, 153, 0.25);
}

/* Content area */
.service-content {
    position: relative;
}

.service-content::before {
    content: attr(data-en);
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon-new {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-new svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-primary);
    stroke-width: 1.5;
    transition: transform 0.4s ease;
}

.service-item:hover .service-icon-new svg {
    transform: scale(1.1);
}

.service-title-new {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-gray-800);
    letter-spacing: 0.08em;
    margin: 0;
}

@media (min-width: 768px) {
    .service-title-new {
        font-size: 1.5rem;
    }
}

.service-desc-new {
    color: var(--color-gray-600);
    font-size: 0.9375rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
    max-width: 32rem;
}

/* Link styling */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.75rem 0;
    position: relative;
    transition: gap 0.3s ease;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.4s ease;
}

.service-item:hover .service-link::after {
    width: calc(100% - 2rem);
}

.service-item:hover .service-link {
    gap: 1rem;
}

.service-link svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.service-item:hover .service-link svg {
    transform: translateX(4px);
}

/* Accent line animation */
.service-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover::after {
    width: 100%;
}

/* Alternative 2-column grid for smaller items */
@media (min-width: 1024px) {
    .services-grid-alt {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .services-grid-alt .service-item {
        padding: 3rem;
        border-bottom: none;
        border-right: 1px solid rgba(0, 74, 153, 0.08);
    }

    .services-grid-alt .service-item:nth-child(2n) {
        border-right: none;
    }

    .services-grid-alt .service-item:nth-child(1),
    .services-grid-alt .service-item:nth-child(2) {
        border-bottom: 1px solid rgba(0, 74, 153, 0.08);
    }
}

/* Legacy support - hide old classes */
.services-grid,
.service-card,
.service-icon {
    display: none;
}

/* ============================================
   Schedule Section (診療時間) - Unified Board Design
   ============================================ */
.schedule-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Background Watermark */
.schedule-section::before {
    content: 'SCHEDULE';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 700;
    color: rgba(0, 74, 153, 0.025);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Geometric accent */
.schedule-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(0, 74, 153, 0.03);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Section Header with Number */
.schedule-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.schedule-section-number {
    font-family: 'Times New Roman', serif;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.08);
    line-height: 0.8;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .schedule-section-number {
        font-size: 7rem;
    }
}

.schedule-header-content {
    padding-top: 0.5rem;
}

/* Schedule Board Container */
.schedule-board {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Schedule Matrix - Desktop */
.schedule-matrix {
    background: var(--color-white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 74, 153, 0.06);
    position: relative;
}

.schedule-matrix::before {
    content: 'HOURS';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.5rem;
    font-weight: 600;
    color: rgba(0, 74, 153, 0.15);
    letter-spacing: 0.25em;
}

/* Schedule Rows */
.schedule-row {
    display: grid;
    grid-template-columns: 140px repeat(7, 1fr);
    border-bottom: 1px solid rgba(0, 74, 153, 0.04);
}

.schedule-row:last-child {
    border-bottom: none;
}

/* Header Row */
.schedule-row-header {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.03) 0%, rgba(91, 164, 217, 0.02) 100%);
}

.schedule-row-header .schedule-cell {
    padding: 1.25rem 0.5rem;
}

/* Schedule Cells */
.schedule-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    position: relative;
    transition: background 0.3s ease;
}

/* Subtle column dividers */
.schedule-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 74, 153, 0.04);
}

/* Time Column */
.schedule-cell-time {
    background: rgba(0, 74, 153, 0.02);
    align-items: flex-start;
    padding-left: 1.5rem;
    padding-right: 1rem;
}

.schedule-cell-time::after {
    display: none;
}

.schedule-time-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.schedule-time-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-gray-800);
    letter-spacing: 0.02em;
}

/* Day Header Cells */
.schedule-cell-day {
    gap: 0.25rem;
}

.schedule-day-en {
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--color-gray-400);
    letter-spacing: 0.15em;
}

.schedule-day-ja {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-700);
    letter-spacing: 0.1em;
}

/* Saturday styling */
.schedule-cell-day.is-saturday .schedule-day-ja {
    color: var(--color-blue-500);
}

.schedule-cell-day.is-saturday .schedule-day-en {
    color: var(--color-blue-500);
    opacity: 0.7;
}

/* Sunday styling */
.schedule-cell-day.is-sunday {
    background: rgba(239, 68, 68, 0.03);
}

.schedule-cell-day.is-sunday .schedule-day-ja {
    color: var(--color-red-500);
}

.schedule-cell-day.is-sunday .schedule-day-en {
    color: var(--color-red-500);
    opacity: 0.7;
}

/* Status Cells */
.schedule-cell-status {
    min-height: 70px;
}

/* Open Status */
.schedule-cell-status.is-open {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.04) 0%, rgba(91, 164, 217, 0.03) 100%);
}

.schedule-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-cell-status.is-open:hover .schedule-status-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.35);
}

/* Saturday Open */
.schedule-cell-status.is-saturday.is-open {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.schedule-cell-status.is-saturday.is-open .schedule-status-badge {
    background: linear-gradient(135deg, var(--color-blue-500) 0%, #60a5fa 100%);
}

/* Closed Status */
.schedule-cell-status.is-closed {
    background: rgba(0, 0, 0, 0.01);
    position: relative;
}

.schedule-status-closed {
    position: relative;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Stripe pattern for closed */
.schedule-status-closed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(0, 74, 153, 0.06) 3px,
        rgba(0, 74, 153, 0.06) 6px
    );
    border-radius: 0.5rem;
}

.schedule-status-closed::after {
    content: '/';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.2);
}

/* Sunday Closed - Special styling */
.schedule-cell-status.is-sunday {
    background: rgba(239, 68, 68, 0.03);
}

.schedule-cell-status.is-sunday .schedule-status-closed::before {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(239, 68, 68, 0.08) 3px,
        rgba(239, 68, 68, 0.08) 6px
    );
}

.schedule-cell-status.is-sunday .schedule-status-closed::after {
    color: rgba(239, 68, 68, 0.3);
}

/* Saturday Closed */
.schedule-cell-status.is-saturday.is-closed {
    background: rgba(59, 130, 246, 0.02);
}

.schedule-cell-status.is-saturday.is-closed .schedule-status-closed::before {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(59, 130, 246, 0.06) 3px,
        rgba(59, 130, 246, 0.06) 6px
    );
}

.schedule-cell-status.is-saturday.is-closed .schedule-status-closed::after {
    color: rgba(59, 130, 246, 0.25);
}

/* Legend */
.schedule-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.schedule-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-legend-badge {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.schedule-legend-badge.is-open {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.schedule-legend-badge.is-closed {
    position: relative;
    border-radius: 0.25rem;
    overflow: hidden;
}

.schedule-legend-badge.is-closed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        rgba(0, 74, 153, 0.1) 2px,
        rgba(0, 74, 153, 0.1) 4px
    );
}

.schedule-legend-badge.is-closed::after {
    content: '/';
    font-size: 0.75rem;
    color: rgba(0, 74, 153, 0.3);
    position: relative;
    z-index: 1;
}

.schedule-legend-text {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    letter-spacing: 0.08em;
}

/* Notes */
.schedule-notes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 74, 153, 0.02);
    border-radius: 1rem;
}

@media (min-width: 640px) {
    .schedule-notes {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.schedule-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-note-icon {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.schedule-note-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.schedule-note-text {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    letter-spacing: 0.04em;
}

.schedule-note.is-holiday .schedule-note-icon {
    color: var(--color-red-500);
}

.schedule-note.is-holiday .schedule-note-text {
    color: var(--color-red-500);
    font-weight: 500;
}

/* Schedule CTA */
.schedule-cta {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.schedule-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 74, 153, 0.06);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .schedule-cta-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.75rem 2.5rem;
    }
}

.schedule-cta-inner::before {
    content: 'CONTACT';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.5rem;
    font-weight: 600;
    color: rgba(0, 74, 153, 0.06);
    letter-spacing: 0.3em;
}

.schedule-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-cta-icon {
    width: 3rem;
    height: 3rem;
    border: 1.5px solid rgba(0, 74, 153, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.schedule-cta:hover .schedule-cta-icon {
    border-color: var(--color-primary);
    background: rgba(0, 74, 153, 0.05);
}

.schedule-cta-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    stroke-width: 1.5;
}

.schedule-cta-info {
    display: flex;
    flex-direction: column;
}

.schedule-cta-label {
    font-size: 0.625rem;
    color: var(--color-gray-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.schedule-cta-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .schedule-cta-number {
        font-size: 1.75rem;
    }
}

.schedule-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.875rem 1.75rem;
    border: 1px solid rgba(0, 74, 153, 0.2);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.schedule-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateX(-101%);
    transition: transform 0.4s ease;
    z-index: 0;
}

.schedule-cta-btn span,
.schedule-cta-btn svg {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.schedule-cta-btn svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2;
}

.schedule-cta-btn:hover {
    border-color: var(--color-primary);
}

.schedule-cta-btn:hover::before {
    transform: translateX(0);
}

.schedule-cta-btn:hover span,
.schedule-cta-btn:hover svg {
    color: var(--color-white);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .schedule-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .schedule-section-number {
        font-size: 4rem;
    }

    /* Mobile: Horizontal scroll for matrix */
    .schedule-matrix {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 74, 153, 0.2) transparent;
    }

    .schedule-matrix::-webkit-scrollbar {
        height: 4px;
    }

    .schedule-matrix::-webkit-scrollbar-track {
        background: transparent;
    }

    .schedule-matrix::-webkit-scrollbar-thumb {
        background: rgba(0, 74, 153, 0.2);
        border-radius: 2px;
    }

    .schedule-row {
        min-width: 600px;
        grid-template-columns: 100px repeat(7, 1fr);
    }

    .schedule-cell-time {
        padding-left: 1rem;
    }

    .schedule-time-value {
        font-size: 0.8125rem;
    }

    .schedule-cell-status {
        min-height: 60px;
    }

    .schedule-status-badge {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.625rem;
    }

    .schedule-status-closed {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Legacy support - hide old classes */
.hours-section,
.hours-board,
.hours-slots,
.hours-slot,
.hours-day-chip,
.hours-notices,
.hours-cta {
    display: none;
}

/* ============================================
   Access Section (アクセス) - Premium Design
   ============================================ */
.access-section {
    padding: 6rem 0 8rem;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Background Typography */
.access-section::before {
    content: 'LOCATION';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    color: rgba(0, 74, 153, 0.02);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Geometric accent */
.access-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(0, 74, 153, 0.03);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.access-grid {
    display: grid;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .access-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Map Container */
.access-map {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.04) 0%, rgba(91, 164, 217, 0.06) 100%);
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(0, 74, 153, 0.08);
}

@media (min-width: 1024px) {
    .access-map {
        aspect-ratio: auto;
        min-height: 450px;
    }
}

.access-map::before {
    content: '03';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.1);
    line-height: 1;
}

.access-map-placeholder {
    text-align: center;
    color: var(--color-primary);
    opacity: 0.4;
}

.access-map-placeholder svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    stroke-width: 1;
}

.access-map-placeholder p {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
}

/* Access Photo Image */
.access-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Info Container */
.access-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Main Address Card */
.access-card {
    background: var(--color-white);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 74, 153, 0.06);
    position: relative;
    border: 1px solid rgba(0, 74, 153, 0.06);
}

.access-card::before {
    content: 'CLINIC INFO';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    opacity: 0.4;
}

.access-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 74, 153, 0.06);
}

.access-logo {
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.access-card:hover .access-logo {
    background: var(--color-primary);
    color: var(--color-white);
}

.access-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-800);
    letter-spacing: 0.08em;
}

/* Info Items */
.access-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
}

.access-item:last-child {
    margin-bottom: 0;
}

.access-item-icon {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 74, 153, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.access-item:hover .access-item-icon {
    border-color: var(--color-primary);
    background: rgba(0, 74, 153, 0.05);
}

.access-item-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
    stroke-width: 1.5;
}

.access-item-label {
    color: var(--color-gray-400);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.access-item-value {
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
}

.access-item-value a {
    color: var(--color-primary);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.access-item-value a:hover {
    color: var(--color-primary-dark);
}

/* Transport Cards - Numbered */
.access-extras {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-extra-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 74, 153, 0.04);
    border: 1px solid rgba(0, 74, 153, 0.06);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.access-extra-card:hover {
    box-shadow: 0 4px 20px rgba(0, 74, 153, 0.08);
    transform: translateY(-2px);
}

.access-extra-number {
    font-family: 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.15);
    line-height: 1;
}

.access-extra-content {
    flex: 1;
}

.access-extra-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.access-extra-header svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-primary);
    stroke-width: 1.5;
}

.access-extra-header h5 {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-gray-800);
    letter-spacing: 0.06em;
}

.access-extra-card p {
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

/* ============================================
   Contact Section (お問い合わせ) - Premium Design
   ============================================ */
.contact-section {
    padding: 6rem 0 7rem;
    background: linear-gradient(135deg, #002d5c 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Background Typography */
.contact-section::before {
    content: 'CONTACT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Geometric shape */
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Number */
.contact-section-number {
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .contact-section-number {
        font-size: 5rem;
    }
}

.contact-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    letter-spacing: 0.08em;
}

@media (min-width: 640px) {
    .contact-title {
        font-size: 2rem;
    }
}

.contact-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.contact-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 640px) {
    .contact-box-inner {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-phone-icon {
    width: 3rem;
    height: 3rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-box:hover .contact-phone-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-phone-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-white);
    stroke-width: 1.5;
}

.contact-phone-text {
    text-align: left;
}

.contact-phone-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-phone-number {
    color: var(--color-white);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .contact-phone-number {
        font-size: 1.875rem;
    }
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--color-white);
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-white);
    transform: translateX(-101%);
    transition: transform 0.4s ease;
    z-index: 0;
}

.contact-btn span {
    position: relative;
    z-index: 1;
}

.contact-btn:hover {
    border-color: var(--color-white);
}

.contact-btn:hover::before {
    transform: translateX(0);
}

.contact-btn:hover span {
    color: var(--color-primary);
}

.contact-hours {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 1.5rem;
    letter-spacing: 0.06em;
}

/* ============================================
   Footer - Premium Design
   ============================================ */
.site-footer {
    background: #0a1628;
    color: var(--color-white);
    padding: 0;
    position: relative;
}

/* Footer Top - Main Content */
.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 3rem;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-logo-text h4 {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.footer-logo-text p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-address {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-address a:hover {
    color: var(--color-white);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

@media (min-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: 0;
    }
}

.footer-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    padding: 0.625rem 1.25rem;
    position: relative;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .footer-nav a {
        padding: 0.625rem 0;
    }
}

.footer-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    .footer-nav a::before {
        left: -1rem;
    }
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-nav a:hover::before {
    width: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    border-top: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
}

.footer-credit {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
}

/* ============================================
   Fade In Animation
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WordPress Specific Styles
   ============================================ */
.wp-block-button__link {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--rounded-full);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.wp-block-button__link:hover {
    background: var(--color-primary-dark);
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   Unified Glassmorphism Variables
   ============================================ */
:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(255, 255, 255, 0.92);
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 74, 153, 0.08);
}

/* ============================================
   Gallery Section - Glassmorphism Masonry
   ============================================ */
.gallery-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
    overflow: hidden;
}

/* Background Watermark */
.gallery-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(5rem, 20vw, 18rem);
    font-weight: 300;
    color: rgba(0, 74, 153, 0.02);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Gallery Header with Number */
.gallery-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.gallery-section-number {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.08);
    line-height: 1;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .gallery-section-number {
        font-size: 6rem;
    }
}

.gallery-header-content {
    flex: 1;
}

/* Clean 4x3 Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        gap: 1.25rem;
    }
}

/* Gallery Items - Base */
.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

/* Wide Items - span 2 columns */
.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

/* Mobile: 2 columns, wide items span full width */
@media (max-width: 639px) {
    .gallery-item-wide {
        grid-column: span 2;
        aspect-ratio: 2 / 1;
    }
}

/* Image Placeholder */
.gallery-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4fc 0%, #d1e8f8 50%, #bfe0f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-placeholder svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.gallery-item-wide .gallery-image-placeholder svg {
    width: 36px;
    height: 36px;
}

.gallery-image-placeholder span {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.gallery-item:hover .gallery-image-placeholder {
    opacity: 0.4;
    transform: scale(1.05);
}

/* Gallery Photo Image */
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.05);
}

/* Glassmorphism Caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption-number {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1;
    opacity: 0.5;
}

.gallery-caption-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.gallery-caption-content p {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    line-height: 1.5;
}

/* ============================================
   Access Section - Updated with Number
   ============================================ */
.access-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: var(--color-white);
    overflow: hidden;
}

/* Access Watermark */
.access-watermark {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(5rem, 18vw, 16rem);
    font-weight: 300;
    color: rgba(0, 74, 153, 0.02);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Access Header with Number */
.access-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.access-section-number {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(0, 74, 153, 0.08);
    line-height: 1;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .access-section-number {
        font-size: 6rem;
    }
}

.access-header-content {
    flex: 1;
}

/* ============================================
   Section Photo Overlays - Ambient Texture
   ============================================ */
.message-section,
.services-section,
.schedule-section {
    position: relative;
}

.message-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 60%;
    background: linear-gradient(135deg, transparent 0%, rgba(232, 244, 252, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Services Section Ambient Light */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 40%;
    background: radial-gradient(ellipse at top left, rgba(232, 244, 252, 0.5) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Schedule Section Ambient */
.schedule-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 50%;
    background: radial-gradient(ellipse at bottom left, rgba(232, 244, 252, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Updated Numbering Font - All Sections
   ============================================ */
.service-number,
.message-item-number,
.access-extra-number,
.contact-section-number,
.schedule-section-number {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
}

/* Contact Section Number Update */
.contact-section-number {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
    .contact-section-number {
        font-size: 8rem;
    }
}

@media (min-width: 1024px) {
    .contact-section-number {
        font-size: 12rem;
    }
}

/* Schedule Section Number Update */
.schedule-section-number {
    font-size: 4rem;
    color: rgba(0, 74, 153, 0.06);
}

@media (min-width: 768px) {
    .schedule-section-number {
        font-size: 6rem;
    }
}

/* Service Numbers */
.service-number {
    font-size: 2.5rem;
    color: rgba(0, 74, 153, 0.08);
}

@media (min-width: 768px) {
    .service-number {
        font-size: 3.5rem;
    }
}

/* Message Item Numbers */
.message-item-number {
    font-size: 2rem;
    color: rgba(0, 74, 153, 0.1);
}

/* ============================================
   Responsive Utilities
   ============================================ */
.sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* ============================================
   Google Fonts Import (add to header if not loaded)
   ============================================ */
/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&display=swap'); */
