/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hospital-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.contact-item i {
    color: #2c5aa0;
}

.phone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-number {
    font-weight: 600;
    font-size: 1rem;
    color: #2c5aa0;
}

.emergency-note {
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: 500;
}

/* ナビゲーション */
.main-nav {
    background: #fff;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ドロップダウンメニュー */
.dropdown,
.nav-menu li.menu-item-has-children {
    position: relative;
}

.dropdown-menu,
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu,
.nav-menu li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li,
.nav-menu .sub-menu li {
    border-bottom: none;
}

.dropdown-menu a,
.nav-menu .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-menu a:hover,
.nav-menu .sub-menu a:hover {
    background: #f8f9fa;
    color: #2c5aa0;
    padding-left: 25px;
}

.dropdown-menu a::after,
.nav-menu .sub-menu a::after {
    display: none;
}

.mobile-menu-close {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    display: block;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #fff;
        transition: 0.3s;
        display: block;
        border-radius: 2px;
    }
}

/* メインビジュアル */
.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* メインビジュアル内のボタン */
.hero-internal-buttons {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* キャッチコピー */
.hero-catchcopy {
    position: absolute;
    top: calc(50% - 280px);
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin-left: -200px;
}

.hero-catchcopy p {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* ヒーローサービスボタン */
.hero-services {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin-left: -200px;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    min-height: 120px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

.service-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
    width: 100%;
}

/* 外来受付情報 */
.outpatient-info {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    max-width: 380px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 100px;
}

/* 表示制御クラス */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 外来受付情報セクション（モバイル・タブレット用） */
.outpatient-info-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.outpatient-info-section .outpatient-info {
    position: static;
    transform: none;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    background: #2c5aa0;
    color: white;
    padding: 8px 12px;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
}

.time-slots {
    margin-bottom: 10px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.time-value {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.9rem;
}

.visiting-time {
    margin-bottom: 10px;
}

.visiting-time .time-value {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-notes {
    margin-top: 10px;
}

.info-notes p {
    font-size: 0.75rem;
    color: #666;
    margin: 3px 0;
    line-height: 1.4;
}

.info-actions {
    margin-top: 15px;
    text-align: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2c5aa0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 1024px以下での表示調整 */
@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* デスクトップ表示では非表示 */
@media (max-width: 768px) {
    .hero-internal-buttons {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
        gap: 15px;
        order: 3;
    }

    .hero-catchcopy {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        margin: 20px 0;
        order: 2;
    }

    .hero-catchcopy p {
        font-size: 1.5rem;
        color: #333;
        text-shadow: none;
    }

    .hero-services {
        position: static;
        transform: none;
        max-width: 100%;
        margin: 30px auto 0;
        order: 4;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-card {
        padding: 12px 16px;
        gap: 10px;
        min-height: 100px;
    }

    .service-image {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outpatient {
    background: #fff;
    color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outpatient:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-visiting {
    background: rgba(255, 255, 255, 0.9);
    color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-visiting:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #fff;
    color: #2c5aa0;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: #fff;
}

/* ボタンエリア */
.button-area {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 0 0 50px;
}

/* 1024px以下ではボタンエリアの上マージンを調整 */
@media (max-width: 1024px) {
    .button-area {
        margin-top: 0;
        padding: 50px 0;
    }
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.button-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.button-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #2c5aa0;
}

.button-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.button-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.button-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* お知らせセクション */
.news-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2c5aa0;
}

/* タブ機能 */
.news-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 5px;
}

.tab-button {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #2c5aa0;
    color: #fff;
    border-color: #2c5aa0;
}

.tab-button:hover:not(.active) {
    background: #f8f9fa;
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.news-list {
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    min-width: 100px;
    margin-right: 20px;
}

.news-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.news-category.important {
    background: #e74c3c;
    color: #fff;
}

.news-category.medical {
    background: #2c5aa0;
    color: #fff;
}

.news-category.event {
    background: #27ae60;
    color: #fff;
}

/* 追加: topics カテゴリー（アイコン型表示用の色設定） */
.news-category.topics {
    background: #ff9800;
    color: #fff;
}

.news-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.news-title:hover {
    color: #2c5aa0;
}

.news-more {
    text-align: center;
}

/* 当院の特徴セクション */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* バナーエリア */
.banner-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.banner-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    display: none;
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    overflow: hidden;
}

.banner-slide.active {
    display: flex;
    align-items: center;
}

.banner-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
}

.banner-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.banner-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.banner-prev,
.banner-next {
    background: #2c5aa0;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-prev:hover,
.banner-next:hover {
    background: #1e3a5f;
    transform: scale(1.1);
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2c5aa0;
    transform: scale(1.2);
}

/* フッター */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-contact i {
    color: #3498db;
    width: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.hours p {
    margin-bottom: 5px;
}

.hours .note {
    color: #bdc3c7;
    font-size: 0.85rem;
    font-style: italic;
    margin: 5px 0;
}

.emergency {
    color: #e74c3c !important;
    font-weight: 600;
}

/* グループ施設リンク */
.group-facilities {
    margin: 40px 0;
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 30px;
}

.group-facilities h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.facility-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.facility-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.facility-btn:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        text-align: left;
        position: relative;
    }

    .hospital-logo {
        flex: 1;
    }

    .logo-image {
        height: 50px;
        max-width: 250px;
    }

    .contact-info {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: #2c5aa0;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .phone-info {
        text-align: center;
    }

    .phone-number {
        font-size: 0.9rem;
    }

    .emergency-note {
        font-size: 0.75rem;
    }

    .main-nav {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #e9ecef;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .mobile-menu-close {
        display: flex;
        justify-content: flex-end;
        padding: 15px 0;
        border-bottom: 2px solid #2c5aa0;
        margin-bottom: 20px;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #2c5aa0;
        cursor: pointer;
        padding: 5px;
    }

    .close-btn:hover {
        color: #1e3a5f;
    }

    .dropdown-menu,
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu a,
    .nav-menu .sub-menu a {
        padding: 10px 20px;
        font-size: 0.9rem;
        color: #666;
    }

    .dropdown-menu a:hover,
    .nav-menu .sub-menu a:hover {
        background: #e9ecef;
        color: #2c5aa0;
        padding-left: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .button-card {
        padding: 20px 15px;
    }

    .button-icon {
        width: 50px;
        height: 50px;
    }

    .button-icon i {
        font-size: 1.2rem;
    }

    .button-card h3 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-date,
    .news-category {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .banner-slide {
        height: 300px;
        flex-direction: column;
        position: relative;
    }

    .banner-content {
        padding: 30px 20px;
        text-align: center;
        position: relative;
        z-index: 2;
        background: rgba(44, 90, 160, 0.8);
        border-radius: 10px;
        margin: 20px;
    }

    .banner-content h3 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .banner-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .facility-buttons {
        gap: 8px;
    }

    .facility-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-catchcopy p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-image {
        height: 40px;
        max-width: 200px;
    }

    .feature-card {
        padding: 20px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.department-card,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* スクロール時のスムーズな動作 */
html {
    scroll-behavior: smooth;
}

/* アクセシビリティ */
.btn:focus,
.nav-menu a:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {

    .header,
    .footer,
    .hero-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section-title {
        page-break-after: avoid;
    }
}