/* Modern Mix Style: Base */
:root {
    --bg-color: #fdfbf7;
    /* 温かみのあるクリーム色 */
    --text-primary: #4a4a4a;
    /* 真っ黒ではなく少し柔らかいグレー */
    --text-secondary: #777;

    /* カードごとのテーマカラー（パステル調・彩度高めで元気な感じに） */
    --color-clinic: #dbf2e3;
    --color-hours: #d1eaed;
    --color-equip: #ececf9;
    --color-check: #f0f2f5;
    --color-reserve: #ffe4e4;
    --color-reserve-hover: #ffcccc;
    --color-link: #fff7d6;
    --color-map: #fff3cd;
    --color-contact: #ffe8d6;
    --color-director: #e3efff;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    /* 丸ゴシックに変更 */
    background-color: var(--bg-color);
    background-image: radial-gradient(#e8e0d5 1px, transparent 1px);
    background-size: 20px 20px;
    /* ドットパターンで紙っぽさを演出 */
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    /* 背景アニメーションのはみ出し防止 */
}

/* Organic Floating Blobs (背景のゆらゆら) */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    /* ふんわりぼかす */
    opacity: 0.6;
    animation: floating 20s infinite alternate;
}

body::before {
    top: -100px;
    left: -100px;
    background: linear-gradient(120deg, #e0f7fa, #e1bee7);
}

body::after {
    bottom: -100px;
    right: -100px;
    background: linear-gradient(120deg, #fff9c4, #ffccbc);
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.site-header {
    background: rgba(220, 235, 255, 0.9);
    backdrop-filter: blur(5px);
    padding-top: 15px;
    padding-bottom: 0px;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1100;
}

/* New nav layout (sub-pages) */
.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.site-logo__icon {
    font-size: 1.6rem;
}

.site-logo__text {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c4a7c;
    letter-spacing: 1px;
}

.main-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.main-nav__list li a {
    display: block;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.main-nav__list li a:hover,
.main-nav__list li a.active {
    background: #2c4a7c;
    color: white;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.header-logo {
    /* Flexboxを解除して元の縦並びに戻す */
    display: block;
}

.header-logo h1 {
    margin: 0;
    font-size: 42px;
    /* 少しサイズを調整 */
    color: #444;
    letter-spacing: 2px;
    /* 影付きデザインは維持 */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.header-logo p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #004d90;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}


.header-info {
    text-align: right;
    font-size: 14px;
}

.header-info .address {
    margin: 0 0 4px;
    color: #666;
    font-size: 12px;
}

.header-info .contact {
    margin: 0;
}

.header-info .tel {
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Zen Maru Gothic', sans-serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

.header-info .tel a {
    color: #e65c00;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-info .tel a::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('images/tel_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    vertical-align: middle;
}

.header-info .tel a:hover {
    color: #ff8c42;
}

@media (max-width: 768px) {
    .header-info .tel a {
        background: linear-gradient(135deg, #ff8c42, #e65c00);
        color: white;
        padding: 8px 18px;
        border-radius: 24px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 3px 10px rgba(230, 92, 0, 0.35);
        font-size: 20px;
    }
    .header-info .tel a::before {
        width: 32px;
        height: 32px;
    }
}

.header-info .fax {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.header-info .fax::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('images/fax_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: 0.75;
}

/* ヘッダー中央：ステータス＋予約ボタンのまとまり */
.header-center-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* WEB予約ボタン（ヘッダー用・丸型） */
.header-reserve-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-reserve-label {
    font-size: 10px;
    color: #f9584a;
    font-weight: bold;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.header-reserve-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(135deg, #ff8c42, #f9584a);
    color: white;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 4px 14px rgba(249, 88, 74, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: float-pulse 2.8s ease-in-out infinite;
}
.header-reserve-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 22px rgba(249, 88, 74, 0.6);
    animation: none;
}
.header-reserve-icon {
    font-size: 20px;
    line-height: 1;
}
.header-reserve-btn small {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header-center-block { gap: 8px; }
    .header-reserve-btn { width: 54px; height: 54px; font-size: 10px; }
    .header-reserve-icon { font-size: 16px; }
}
@media (max-width: 600px) {
    .header-center-block { display: none; }
}

/* ヘッダー中央：本日の診療ステータス */
.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(26, 86, 160, 0.18);
    border-radius: 14px;
    padding: 8px 18px;
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #9ca3af;
}
.status-dot.open {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: pulse-green 2s ease-in-out infinite;
}
.status-dot.closed {
    background: #9ca3af;
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.status-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a56a0;
}
.status-label.closed {
    color: #6b7280;
}
.status-hours {
    font-size: 12px;
    color: #555;
}

@media (max-width: 768px) {
    .header-status {
        padding: 6px 12px;
        gap: 7px;
    }
    .status-label { font-size: 12px; }
    .status-hours { font-size: 11px; }
}
@media (max-width: 600px) {
    .header-status { display: none; }
}

.subjects-bar {
    background-color: #6fb1e6;
    color: white;
    padding: 8px 0;
    /* 高さを少し抑える */
    margin-top: 5px;
    font-size: 15px;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subjects-bar .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.global-nav li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.global-nav li.active a,
.global-nav li a.current {
    background: #fff176;
    color: #5d8bb3;
}

.global-nav li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.subjects-bar .label {
    font-weight: bold;
    margin-right: 15px;
    background: #fff;
    color: #6fb1e6;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* Main Layout */
.main-layout {
    max-width: 1100px;
    margin: 20px auto;
    /* 上部の隙間を詰める */
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    /* 左:固定幅, 右:可変 */
    gap: 40px;
}

/* Left Column: News */
.info-card {
    background: white;
    border-radius: 24px;
    /* より丸く */
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    /* ポップな影 */
    border: 2px solid #f0f0f0;
}

.card-header {
    display: flex;
    align-items: center;
    border-bottom: 2px dashed #ddd;
    /* 点線で親しみやすく */
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    color: #5d8bb3;
    flex-grow: 1;
}

.card-header .icon {
    font-size: 28px;
}

.scroll-box {
    height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-box::-webkit-scrollbar {
    width: 8px;
}

.scroll-box::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-track {
    background: transparent;
}

.news-item {
    margin-bottom: 20px;
    background: #fafafa;
    padding: 15px;
    border-radius: 12px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item time {
    display: inline-block;
    background: #888;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.news-item h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #444;
}

.news-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Hero Illustration Area */
.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8e1;
    /* 暖かい黄色 */
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 0px #ffe0b2;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.hero-text {
    flex: 0 0 45%;
    z-index: 2;
    position: relative;
}

.hero-text p {
    margin: 0;
    color: #e67e22;
    font-weight: bold;
    font-size: 18px;
}

.hero-text h2 {
    margin: 15px 0 0;
    font-size: 32px;
    color: #5d4037;
    line-height: 1.4;
}

/* Hero Slideshow (Added for Presentation Version) */
.hero-slideshow {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* First Visit Hero */
.firstvisit-stage {
    position: relative;
    height: 200px;
    min-height: 200px;
    padding: 0;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 0 #c7e6c6;
    background: #1b5e20;
    isolation: isolate;
}

.firstvisit-stage:focus-within {
    outline: 3px solid rgba(47, 133, 90, 0.35);
    outline-offset: 4px;
}

.firstvisit-photo-layer,
.firstvisit-main-layer {
    position: absolute;
    inset: 0;
    transition: opacity 2.4s ease-in-out, transform 2.4s ease-in-out;
}

.firstvisit-photo-layer {
    opacity: 0;
    transform: scale(1.025);
    z-index: 1;
    pointer-events: none;
}

.firstvisit-photo-layer.is-visible {
    opacity: 1;
    transform: scale(1);
}

.firstvisit-photo-layer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.firstvisit-photo-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 40, 20, 0.50), rgba(8, 40, 20, 0.12));
}

.firstvisit-photo-caption {
    display: none;
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
    font-family: "Zen Maru Gothic", sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.firstvisit-photo-caption span {
    display: block;
    font-size: 12px;
    opacity: 0.86;
    margin-bottom: 4px;
}

.firstvisit-photo-caption strong {
    font-size: 20px;
    letter-spacing: 0;
}

.firstvisit-main-layer {
    z-index: 2;
    opacity: 1;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.20), transparent 28%),
        radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(120deg, #1b5e20 0%, #2e7d32 36%, #43a047 68%, #81c784 100%);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 32px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

.firstvisit-main-layer.is-dimmed {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.firstvisit-main-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.12) 46%, transparent 66%);
    background-size: 220% 100%;
    animation: firstvisit-shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.firstvisit-main-layer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.44) 0 9px, transparent 10px),
        radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.28) 0 6px, transparent 7px),
        linear-gradient(100deg, rgba(255, 238, 126, 0.96), rgba(178, 234, 156, 0.88) 48%, rgba(129, 199, 132, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 -10px 28px rgba(12, 88, 39, 0.10);
    opacity: 0.96;
    pointer-events: none;
    z-index: 0;
}

@keyframes firstvisit-shimmer {
    0%, 65%, 100% {
        background-position: -220% center;
    }
    82% {
        background-position: 220% center;
    }
}

.firstvisit-mark {
    flex: 0 0 76px;
    height: 76px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 28px rgba(20, 74, 35, 0.20);
    z-index: 1;
}

.firstvisit-copy {
    flex: 1;
    min-width: 0;
    padding-bottom: 14px;
    z-index: 1;
    font-family: "Zen Maru Gothic", sans-serif;
}

.firstvisit-copy .sub {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-family: sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.firstvisit-copy h2 {
    color: #fff;
    font-size: 30px;
    line-height: 1.18;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.firstvisit-copy p {
    color: rgba(255, 255, 255, 0.90);
    font-size: 13px;
    line-height: 1.75;
    margin: 10px 0 0;
    min-height: 4.6em;
}

.firstvisit-copy p span {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
    transition: opacity 0.8s ease, transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease;
}

#firstvisit-message.is-visible span {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

#firstvisit-message.is-visible span:nth-child(2) {
    transition-delay: 0.22s;
}

#firstvisit-message.is-visible span:nth-child(3) {
    transition-delay: 0.42s;
}

.firstvisit-base-note {
    position: absolute;
    right: 26px;
    bottom: 10px;
    z-index: 1;
    color: rgba(38, 100, 47, 0.72);
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.1px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-22px);
    animation: firstvisit-base-note-slide 1.25s ease-out 0.8s forwards;
}

@keyframes firstvisit-base-note-slide {
    0% {
        opacity: 0;
        transform: translateX(-18px);
    }
    100% {
        opacity: 0.72;
        transform: translateX(0);
    }
}

.firstvisit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(16, 63, 30, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.firstvisit-dots {
    position: absolute;
    right: 86px;
    top: 48px;
    width: 190px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 68%, rgba(255, 255, 255, 0.18) 0 24px, transparent 25px),
        radial-gradient(circle at 48% 20%, rgba(240, 255, 244, 0.14) 0 14px, transparent 15px),
        radial-gradient(circle at 64% 76%, rgba(255, 255, 255, 0.12) 0 10px, transparent 11px),
        radial-gradient(circle at 78% 40%, rgba(220, 255, 227, 0.16) 0 18px, transparent 19px),
        radial-gradient(circle at 94% 18%, rgba(255, 255, 255, 0.10) 0 8px, transparent 9px);
    filter: blur(1px);
    opacity: 0.82;
    pointer-events: none;
    z-index: 0;
}

.firstvisit-nurse {
    align-self: flex-end;
    width: auto;
    height: 178px;
    margin-bottom: -7px;
    margin-right: 4px;
    filter: drop-shadow(2px 5px 16px rgba(0, 0, 0, 0.24));
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 600px) {
    .firstvisit-stage {
        height: 170px;
        min-height: 170px;
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .firstvisit-main-layer {
        gap: 10px;
        padding: 0 14px;
    }

    .firstvisit-main-layer::after {
        height: 26px;
        border-radius: 0 0 18px 18px;
    }

    .firstvisit-mark {
        flex-basis: 48px;
        height: 48px;
        border-radius: 18px;
        font-size: 20px;
    }

    .firstvisit-copy .sub {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .firstvisit-copy h2 {
        font-size: 21px;
    }

    .firstvisit-copy p {
        display: none;
    }

    .firstvisit-base-note {
        right: 13px;
        bottom: 7px;
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .firstvisit-btn {
        min-height: 28px;
        margin-top: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .firstvisit-dots {
        right: 44px;
        top: 56px;
        width: 112px;
        height: 62px;
        opacity: 0.64;
    }

    .firstvisit-nurse {
        height: 112px;
        margin-right: -4px;
    }

    .firstvisit-photo-caption {
        left: 16px;
        bottom: 16px;
    }

    .firstvisit-photo-caption strong {
        font-size: 17px;
    }

}

/* Logo Image (New Logo) */
.emoji-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 5px;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(5deg);
    }
}

.catch-copy-area {
    text-align: center;
}

.catch-copy-area h2 {
    color: #2c723a;
    /* 緑 */
    font-size: 20px;
    margin-bottom: 15px;
}

.catch-copy-area img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Right Column: Bento Grid Menu */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 160px);
    gap: 20px;
}

.grid-item {
    background: white;
    border-radius: 24px;
    display: block;
    /* Flexbox解除 */
    position: relative;
    overflow: hidden;
    padding: 0;
    /* パディングなしで画面いっぱい使う */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.grid-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.grid-item .emoji {
    position: absolute;
    top: -15px;
    left: -5px;
    font-size: 90px;
    /* 特大サイズ */
    margin: 0;
    z-index: 0;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}


.grid-item:hover .emoji {
    transform: scale(1.1) rotate(-5deg);
}

.text-area {
    position: absolute;
    bottom: 15px;
    right: 15px;
    text-align: right;
    z-index: 1;
}

.grid-item .label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    display: block;
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
    /* 文字が見やすいように */
}

.grid-item .sub {
    font-size: 12px;
    color: #003366;
    letter-spacing: 0.5px;
    display: block;
    font-family: sans-serif;
    /* 英語はサンセリフでシャープに */
}

/* Live Badge (稼働状況) */
.live-badge {
    margin-top: 5px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-red {
    background: #fee2e2;
    color: #ef4444;
    animation: pulse 2s infinite;
}

/* 各パネルのグラデーション背景 (リッチ感アップ) */
.item-clinic {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
}

.item-hours {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #004d40;
}

.item-equip {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
}

.item-checkup {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #424242;
}

.item-reserve {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
    border: 2px solid #ffcdd2;
}

.item-reserve:hover {
    border-color: #ef5350;
}

.item-link {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57f17;
}

.item-map {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
}

.item-contact {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.item-director {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
    color: #37474f;
}

.item-forpatients {
    grid-column: 2 / 3;
    height: 160px;
    background: linear-gradient(120deg, #1b5e20 0%, #2e7d32 35%, #43a047 65%, #81c784 100%);
    color: white;
    display: flex !important;
    align-items: center;
    padding: 0 36px;
    gap: 24px;
    overflow: hidden;
}

.item-forpatients::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.09) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: fp-shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.item-forpatients::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, transparent 70%);
    border-radius: 50%;
    top: -140px;
    right: 80px;
    pointer-events: none;
    z-index: 0;
}

@keyframes fp-shimmer {
    0%, 100% { background-position: -200% center; }
    50%       { background-position:  200% center; }
}

.fp-tile-deco {
    position: absolute;
    font-size: 150px;
    opacity: 0.07;
    right: -10px;
    bottom: -40px;
    z-index: 0;
    pointer-events: none;
    transform: rotate(20deg);
    line-height: 1;
}

.fp-tile-left {
    font-size: 76px;
    flex-shrink: 0;
    line-height: 1;
    z-index: 1;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item-forpatients:hover .fp-tile-left {
    transform: scale(1.2) rotate(-10deg);
}

.fp-tile-center {
    flex: 1;
    z-index: 1;
}

.fp-tile-label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: white;
    display: block;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.fp-tile-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2.5px;
    display: block;
    margin-top: 5px;
    font-family: sans-serif;
    text-transform: uppercase;
}

.fp-tile-right {
    flex-shrink: 0;
    text-align: right;
    z-index: 1;
}

.fp-tile-right p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    margin: 0 0 10px;
}

.fp-tile-btn {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.45);
    transition: background 0.25s, transform 0.2s;
    white-space: nowrap;
}

.item-forpatients:hover .fp-tile-btn {
    background: rgba(255,255,255,0.32);
    transform: translateX(4px);
}

.fp-tile-nurse {
    position: absolute;
    right: 260px;
    bottom: -8px;
    height: 175px;
    width: auto;
    z-index: 2;
    filter: drop-shadow(2px 4px 14px rgba(0,0,0,0.22));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.item-forpatients:hover .fp-tile-nurse {
    transform: scale(1.06) translateY(-6px);
}

/* ヒーロー左スライド2（看護師＋案内文） */
.hero-slide2-nurse { height: 160px; }
.hero-slide2-text  { font-size: 11.5px; }
.hero-slide2-btn   { font-size: 11px; padding: 6px 14px; }
.hero-slide2-btn::after { content: ' →'; }

@media (max-width: 600px) {
    .hero-slide2-nurse { height: 110px; }
    .hero-slide2-text  { font-size: 9.5px; line-height: 1.6; }
    .hero-slide2-btn   { font-size: 9px; padding: 4px 10px; }
    .hero-slide2-btn::after { content: ''; }
}

/* ===== Floating Reservation Button ===== */
.float-reserve {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.float-reserve-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff8c42, #f9584a);
    color: white;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(249, 88, 74, 0.45);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: float-pulse 2.8s ease-in-out infinite;
}

.float-reserve-inner .reserve-icon {
    font-size: 22px;
    line-height: 1;
}

.float-reserve:hover .float-reserve-inner {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(249, 88, 74, 0.6);
    animation: none;
}

.float-reserve-label {
    font-size: 10px;
    color: #f9584a;
    font-weight: bold;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    white-space: nowrap;
}

@keyframes float-pulse {
    0%, 100% { transform: translateY(0);    box-shadow: 0 6px 20px rgba(249,88,74,0.45); }
    50%       { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(249,88,74,0.35); }
}

@media (max-width: 600px) {
    .float-reserve {
        bottom: 16px;
        right: 14px;
    }
    .float-reserve-inner {
        width: 64px;
        height: 64px;
        font-size: 11px;
    }
    .float-reserve-inner .reserve-icon {
        font-size: 18px;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    }

    /* スマホではメニュー（右カラム）を一番上に！ */
    .right-column {
        order: 1;
        margin-top: 0;
    }

    .hero-illustration {
        padding: 0 !important;
        margin-bottom: 15px;
    }

    .hero-text {
        flex: 0 0 45% !important;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-img {
        width: 100px;
    }

    /* お知らせ（左カラム）はその後 */
    .left-column {
        order: 2;
    }

    /* Bento Grid: スマホ用スタックレイアウト（アイコン上・テキスト下） */
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 115px);
        gap: 4px;
    }

    .grid-item {
        padding: 8px 4px 6px;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .grid-item .emoji {
        position: static;
        transform: none;
        font-size: 42px;
        margin: 0 0 4px 0;
        z-index: 1;
        line-height: 1;
    }

    .grid-item:hover .emoji {
        transform: scale(1.1);
    }

    .text-area {
        position: static;
        text-align: center;
        z-index: 1;
        width: 100%;
    }

    .grid-item .label {
        font-size: 13px;
        font-weight: bold;
        line-height: 1.2;
        display: block;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        border-radius: 0;
        color: inherit;
        box-shadow: none;
        text-align: center;
        max-width: 100%;
        text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }

    .live-badge {
        display: none;
    }

    .grid-item .sub {
        display: none !important;
    }

    /* 初診の方へバナー（お知らせ・休診情報の後） */
    .item-forpatients {
        order: 3;
        height: 115px;
        flex-direction: row;
        padding: 0 16px;
        gap: 12px;
    }
    .fp-tile-left { font-size: 52px; }
    .fp-tile-label { font-size: 17px; white-space: nowrap; }
    .fp-tile-sub { display: none; }
    .fp-tile-right { display: none; }
    .fp-tile-nurse {
        position: relative;
        height: 90px;
        width: auto;
        bottom: auto;
        right: auto;
        left: auto;
        top: auto;
        transform: none;
        flex-shrink: 0;
        align-self: flex-end;
        z-index: 1;
    }

    /* 院長の部屋：絶対位置の画像をflexアイテムに変換 */
    .item-director .emoji-img {
        position: static !important;
        width: 52px !important;
        height: 52px !important;
        top: auto !important;
        left: auto !important;
        margin: 0 0 4px 0 !important;
    }

    /* ヘッダー周りの調整（タブレット以下） */
    .site-header {
        padding-top: 10px;
        padding-bottom: 5px;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }

    .header-logo h1 {
        font-size: 28px;
        /* タブレットでは少し大きめに */
    }

    .header-logo p {
        font-size: 11px;
        /* 小さくして表示 */
        line-height: 1.3;
    }

    .header-info {
        text-align: right;
        font-size: 12px;
    }

    .header-info .address {
        font-size: 10px;
    }

    .header-info .tel {
        font-size: 20px;
    }

    .header-info .fax {
        font-size: 10px;
    }

    .subjects-bar .subjects {
        font-size: 12px;
    }
}

/* スマホ（600px以下）: ヘッダー改善版 */
@media (max-width: 600px) {

    /* ヘッダー全体をブルーグラデーションに統一 */
    .site-header {
        background: linear-gradient(180deg, #1a6bb5 0%, #3a8fd4 60%, #6fb1e6 100%);
        backdrop-filter: none;
        padding-top: 10px;
        padding-bottom: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    /* 院名を白文字に */
    .header-logo h1 {
        font-size: 22px;
        color: white;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    /* 法人名・院長名を白で表示 */
    .header-logo p {
        display: block;
        font-size: 10px;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.4;
    }

    /* 住所・FAXは非表示のまま */
    .header-info .address,
    .header-info .fax {
        display: none;
    }

    /* 電話ボタンはそのまま（オレンジが映える） */
    .header-info .tel {
        font-size: 18px;
    }

    /* subjects-barをヘッダーに溶け込ませる */
    .subjects-bar {
        background: transparent;
        box-shadow: none;
        margin-top: 4px;
        padding: 4px 0 6px;
    }

    /* 診療科目を1行で表示 */
    .subjects-left {
        display: flex;
        align-items: center;
        gap: 4px;
        justify-content: center;
        padding: 4px 0 2px;
    }

    .subjects-bar .label {
        font-size: 10px;
        padding: 2px 8px;
        background: rgba(255, 255, 255, 0.25);
        color: white;
        border-radius: 10px;
    }

    .subjects-bar .subjects {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.95);
    }

    .subjects-bar .arrow {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.7);
    }

    /* ナビ */
    .subjects-bar .container {
        flex-direction: column;
        align-items: stretch;
        padding: 2px 6px 4px;
    }

    .global-nav ul {
        flex-wrap: nowrap;
        gap: 1px;
        justify-content: center;
    }

    .global-nav li a {
        font-size: 11px;
        padding: 4px 5px;
        color: rgba(255, 255, 255, 0.95);
        white-space: nowrap;
    }

    .global-nav li a.current {
        background: rgba(255, 255, 100, 0.85);
        color: #1a5a9a;
    }
}



/* --- Inner Page Styles (Added 2026-01-18) --- */
.page-layout {
    display: block;
    /* グリッドではなくシングルカラム */
    max-width: 800px;
}

.content-area {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}

.page-title h1 {
    font-size: 28px;
    color: #444;
    margin: 10px 0 0;
}

.page-title .emoji {
    font-size: 48px;
    display: block;
}

.page-title .sub {
    font-size: 14px;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-block {
    margin-bottom: 50px;
}

.section-block h2 {
    font-size: 22px;
    color: #2c723a;
    /* 緑系 */
    border-left: 5px solid #a5d6a7;
    padding-left: 15px;
    margin-bottom: 20px;
}

.intro-section {
    display: flex;
    gap: 30px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-img img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.gallery-item span {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.btn-link {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }

    .intro-section {
        flex-direction: column;
    }

    .page-title h1 {
        font-size: 24px;
    }
}

/* --- Consultation Hours Page Styles (Moved from html) --- */
.hours-table,
.doctor-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 14px;
}

.hours-table th,
.hours-table td,
.doctor-table th,
.doctor-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
}

.hours-table th,
.doctor-table th {
    background-color: #fce4ec;
    /* 薄いピンク */
    color: #d81b60;
}

.hours-table td:first-child,
.doctor-table td:first-child {
    background-color: #fafafa;
    font-weight: bold;
}

.circle {
    color: #4caf50;
    font-size: 18px;
    font-weight: bold;
}

.cross {
    color: #e0e0e0;
}

.note {
    font-size: 13px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* --- Modal Styles (Added 2026-01-22) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fdfbf7;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e8ed;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    color: #1565c0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #ef5350;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    /* スクロールバーのデザイン */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #edf2f7;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 4px;
}

/* Equipment Card Styling (Refined 2026-01-22) */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.equip-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    /* 枠線をなくして柔らかく */
    box-shadow: 0 4px 15px rgba(220, 230, 240, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    /* アイコン配置用 */
}

.equip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(200, 210, 220, 0.4);
}

/* Image Area with Overlay Icon */
.equip-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.equip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equip-card:hover .equip-img {
    transform: scale(1.05);
}

.equip-icon-overlay {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Content Area */
.equip-info {
    padding: 25px 25px 20px;
    /* アイコン分の余白を考慮 */
}

.equip-name {
    margin: 0 0 12px;
    font-size: 18px;
    color: #444;
    font-weight: bold;
    border-bottom: none;
    /* 下線削除 */
    display: block;
}

.equip-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Chips / Tags */
.equip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    background: #eee;
    color: #555;
}

.tag-speed {
    background: #e3f2fd;
    color: #1565c0;
}

/* Speed: Blue */
.tag-merit {
    background: #fff3e0;
    color: #ef6c00;
}

/* Merit: Orange */
.tag-target {
    background: #fce4ec;
    color: #ad1457;
}

/* Target: Pink */

/* Color Variations (Pastel Backgrounds) */
.bg-blue {
    background: #f0f7ff;
}

.bg-green {
    background: #f1f8e9;
}

.bg-pink {
    background: #fff5f8;
}

.bg-yellow {
    background: #fffde7;
}

.equip-card.bg-blue .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #f0f7ff);
}

.equip-card.bg-green .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #f1f8e9);
}

.equip-card.bg-pink .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fff5f8);
}

.equip-card.bg-yellow .equip-info {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fffde7);
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes for CMS (Added 2026-01-28) */
.text-red {
    color: #d32f2f;
    font-weight: bold;
}

.text-blue {
    color: #1976d2;
    font-weight: bold;
}

/* ===== Nav Bar Wave Animation（院長の部屋のみ）===== */
.director-wave .subjects-bar {
    position: relative;
    overflow: hidden;
}

/* 波1: 白・先がとがった山型 */
.director-wave .subjects-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20'%3E%3Cpath d='M0,18 C55,17 76,2 80,1 C84,2 105,17 160,18 L160,0 L0,0 Z' fill='%23eaf3ff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 160px 20px;
    animation: nav-wave-bg 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* 波2: 薄い白・少しずらして奥行き */
.director-wave .subjects-bar::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0,17 C70,16 96,2 100,1 C104,2 130,16 200,17 L200,0 L0,0 Z' fill='%23eaf3ff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 200px 20px;
    animation: nav-wave-bg2 14s linear infinite reverse;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

@keyframes nav-wave-bg {
    from { background-position-x: 0; }
    to   { background-position-x: 160px; }
}

@keyframes nav-wave-bg2 {
    from { background-position-x: 0; }
    to   { background-position-x: 200px; }
}

/* ===== Wave Decorations ===== */
.wave-divider {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave-top {
    background: #fff;
    margin-top: -2px;
}

.wave-bottom {
    background: #fff;
    margin-bottom: -2px;
}

@media (max-width: 600px) {
    .wave-divider svg {
        height: 36px;
    }
}
