* {
    font-family: 'BIZ UDGothic', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: #2c3e50;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-bottom: 2px solid #e8f4fd;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clinic-info h1 {
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #5b9bd5;
}

.clinic-info p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-phone {
    background: #5b9bd5;
    border: 2px solid #5b9bd5;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-phone:hover {
    background: #4a8bc2;
    border-color: #4a8bc2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.3);
}

.btn-reserve {
    background: linear-gradient(135deg, #8ec5eb 0%, #5b9bd5 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.3);
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.4);
}

.menu-toggle {
    background: #5b9bd5;
    border: 2px solid #5b9bd5;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: #4a8bc2;
    border-color: #4a8bc2;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #8ec5eb 0%, #5b9bd5 100%);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.opening-info {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 20px;
}

/* News Section - 最優先 */
.news-section {
    padding: 80px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #8ec5eb 0%, #5b9bd5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #70b8e8;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #5b9bd5;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    margin-top: 10px;
    line-height: 1.5;
}

.news-excerpt {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}


/* Featured Services */
.services-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #8ec5eb 0%, #5b9bd5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.7;
}

/* Facility Section */
.facility-section {
    padding: 80px 20px;
    background: white;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.facility-item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.facility-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8d5f0 0%, #70b8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    transition: all 0.3s;
}

.facility-item:hover .facility-image {
    transform: scale(1.05);
}

.facility-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 30px 20px 20px;
    font-size: 18px;
    font-weight: 700;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.about-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.about-content p {
    color: #555;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.menu-header {
    background: linear-gradient(135deg, #8ec5eb 0%, #5b9bd5 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.menu-items {
    padding: 30px;
}

.menu-items a {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #ecf0f1;
    font-size: 16px;
    transition: all 0.3s;
}

.menu-items a:hover {
    background: #f8f9fa;
    padding-left: 30px;
    color: #5b9bd5;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .btn-phone {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .btn-reserve {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .news-grid,
    .services-grid,
    .facility-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 30px 20px;
    }
    
    .side-menu {
        width: 280px;
        right: -280px;
    }
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bg-transparent {
    background: rgba(34, 34, 34, .3);
}

/* ==================================================
   ニュース・リスト
================================================== */
.news-list {
    margin: 0;
}
.news-list > li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    margin-top: 0!important;
}
.news-list > li:hover {
    background-color: #d8efff;
}
.news-list > li > a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}
.news-date {
    color: var(--accent-01-dark);
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-right: 10px;
}
.news-category {
    display: inline-block;
    padding: 1px 10px;
    font-size: 0.75rem;
    background-color: #5b9bd5;
    color: white;
    border-radius: 2px;
    margin-right: 10px;
}

.cardlink .news-category {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    margin: 0;
    font-size: .8rem;
}

/* ==================================================
   フローチャート
================================================== */
.flowchart-vertical > :nth-child(n+2)::before {
    content: "▼";
    display: block;
    color: #5b9bd5;
    font-size: 2rem;
    width: 100%;
    text-align: center;
    margin: 0 20px 10px;
    padding-left: 60px;
}

.flowchart-horizontal > * {
    display: inline-block;
}

.flowchart-horizontal > li {
    margin: 0 !important;
}

.flowchart-horizontal > li > span {
    border: #5b9bd5 1px solid;
    color: #5b9bd5;
    background: white;
    padding: 10px 40px;
    border-radius: 8px;
}

.flowchart-horizontal > li.uk-active > span {
    border: #0078d7 1px solid;
    color: white;
    background: #0078d7;
    font-weight: bold;
}

.flowchart-horizontal > :nth-child(n+2)::before {
    content: "▶";
    display: inline-block;
    width: 18px;
    height: 18px;
    color: #5b9bd5;
    font-size: 1.2em;
    background-size: contain;
}

@media (max-width: 640px) {
    .flowchart-vertical > :nth-child(n+2)::before {
        font-size: 1.5rem;
    }
    
    .flowchart-horizontal > li > span {
        font-size: 1rem;
        padding: 5px 5px;
    }
    
    .flowchart-horizontal > :nth-child(n+2)::before {
        width: 18px;
        height: 18px;
    }
}

/*版ズレ見出し(Out of frame)*/
.heading-oor {
  --stroke-color: rgba(100,100,100,1);
  font-weight: bold;
  color: white;

  text-shadow:
    /* --- 黒い縁取り --- */
    -1px -1px 0 var(--stroke-color),
     1px -1px 0 var(--stroke-color),
    -1px  1px 0 var(--stroke-color),
     1px  1px 0 var(--stroke-color),
    -1px  0   0 var(--stroke-color),
     2px  0   0 var(--stroke-color),
     0   -1px 0 var(--stroke-color),
     0    1px 0 var(--stroke-color),

    /* --- 影（右下方向）--- */
    6px 6px 0 #5b9bd5; 
}

/* マーカー付き見出し */
.heading-marker {
    display: inline;
    color: var(--dark-color);
    line-height: 1.8;
    background: linear-gradient(transparent 50%, #5b9bd5 0%);
    padding-bottom: .3em;
}

.article-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 32px;
}