﻿/* ========================================
   MALLINK 中検スタイル - 完全整理版
   センター500px完全固定（パディング込み500px）
   試験パネル完全修正版 - スペースなし・矢印なし・行間詰め
======================================== */

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

:root {
    /* カラーパレット */
    --primary-color: #dd3333;
    --secondary-color: #1c3264;
    --light-gray: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --accent-blue: #6DCFF6;
    --white: #ffffff;
    --border-gray: #e5e7eb;
    --center-width: 500px;
}

/* ベース設定 - スマホ版左右スクロール防止 */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: var(--white);
    width: 100%;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* レイアウトコンテナ - 3カラム固定 + 左右背景色 */
.layout-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--light-gray); /* 左右サイドバーの背景色 */
    overflow-x: hidden; /* 横スクロール防止 */
}

/* 左サイドバー - 固定配置 */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: calc((100vw - var(--center-width)) / 2);
    height: 100vh;
    background: var(--light-gray);
    padding: 2rem;
    overflow-y: auto;
    z-index: 30;
    display: block;
}

/* PC版では1100px以下でサイドバー非表示、スマホ版では425px以下で非表示 */
@media (max-width: 1100px) {
    .left-sidebar {
        display: none;
    }
}

.sidebar-content {
    max-width: 250px;
    margin-left: auto;
    margin-right: 2rem;
}

.logo-section {
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 80px;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.logo-main {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    height: 80%;
    width: auto;
    object-fit: contain;
}

/* サイドバーナビゲーション - 文字を大きく強調 */
.sidebar-nav-section {
    margin-bottom: 2rem;
}

.sidebar-nav-title {
    font-size: 1rem; /* 0.9rem から 1rem に */
    font-weight: 800; /* 700 から 800 に */
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color); /* 2px から 3px に */
    letter-spacing: 0.05em;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav-item {
    display: block;
    padding: 0.7rem 0.75rem; /* 0.6rem から 0.7rem に */
    color: var(--text-light);
    font-size: 0.9rem; /* 0.875rem から 0.9rem に */
    font-weight: 600; /* 500 から 600 に */
    transition: all 0.3s ease;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.sidebar-nav-item:hover {
    background: rgba(221, 51, 51, 0.1);
    color: var(--primary-color);
    padding-left: 1.2rem;
    font-weight: 700; /* 600 から 700 に */
}

/* メインコンテンツ - 500px完全固定 */
.main-content {
    width: 500px;
    max-width: 500px;
    min-width: 500px;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    z-index: 20;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    flex: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* PC版で1100px以下でも500px固定維持 + 影維持 */
@media (min-width: 426px) and (max-width: 1100px) {
    .main-content {
        width: 500px;
        max-width: 500px;
        min-width: 500px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        margin: 0 auto;
    }
}

/* スマホ版では425pxに変更 + 横スクロール完全防止 */
@media (max-width: 425px) {
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        max-width: 100%;
    }

    .layout-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .main-content {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin: 0;
        box-shadow: none;
        padding: 0;
        overflow-x: hidden;
    }

    :root {
        --center-width: 100vw;
    }
}

/* 右サイドバー - 固定配置 */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: calc((100vw - var(--center-width)) / 2);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
    z-index: 30;
    overflow: hidden;
}

/* 画面幅が狭い場合のみ右サイドバー非表示 */
@media (max-width: 1100px) {
    .right-sidebar {
        display: none;
    }
}

/* SNSアイコン - 適切な配置 */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* 飛んでくるキャラクター - より大きく、近く */
.flying-character {
    position: absolute;
    width: 200px; /* 150px から 200px に */
    height: 200px; /* 150px から 200px に */
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.flying-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flying-character.goku {
    right: -250px; /* -200px から -250px に */
    top: 20%; /* 30% から 20% に */
}

.flying-character.show {
    opacity: 1;
    right: 20px; /* 50px から 20px に */
    animation: float 4s ease-in-out infinite, sway 6s ease-in-out infinite;
}

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

@keyframes sway {
    0%, 100% { transform: translateX(0px) rotate(-5deg); }
    25% { transform: translateX(-20px) rotate(5deg); }
    75% { transform: translateX(20px) rotate(-3deg); }
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

/* PC版で1100px以下、スマホ版で425px以下でモバイルメニュー表示 */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hamburger {
    width: 20px;
    height: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* メニューが開いた時の×アイコン */
.mobile-menu.active .hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .hamburger span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-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 ease;
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-gray);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1001;
}

.mobile-menu-close {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

/* モバイル用サイドバーメニュー - 文字を大きく強調 */
.mobile-sidebar-nav {
    margin-top: 2rem;
}

.mobile-nav-section {
    margin-bottom: 2rem;
}

.mobile-nav-title {
    font-size: 1rem; /* 0.9rem から 1rem に */
    font-weight: 800; /* 700 から 800 に */
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color); /* 2px から 3px に */
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-item {
    display: block;
    padding: 0.7rem 0.75rem; /* 0.6rem から 0.7rem に */
    color: var(--text-light);
    font-size: 0.9rem; /* 0.875rem から 0.9rem に */
    font-weight: 600; /* 500 から 600 に */
    transition: all 0.3s ease;
    border-radius: 6px;
}

.mobile-nav-item:hover {
    background: rgba(221, 51, 51, 0.1);
    color: var(--primary-color);
    padding-left: 1.2rem;
    font-weight: 700; /* 追加 */
}

/* モバイル用CHU-Netログインボタン */
.mobile-chunet-login {
    display: block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0.75rem;
    transition: all 0.3s ease;
}

.mobile-chunet-login:hover {
    background-color: #c92121;
}

.mobile-chunet-login .login-text {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mobile-chunet-login .login-subtext {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* モバイルヘッダー - 固定サイズ（ロゴ空白問題修正） */
.site-header {
    display: none;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px; /* 固定幅 */
    z-index: 1000;
    height: 50px; /* 60px から 50px に縮小 */
}

@media (max-width: 1100px) {
    .site-header {
        display: block;
    }
}

@media (max-width: 425px) {
    .site-header {
        width: 100%;
        left: 0;
        transform: none;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px; /* 10px から 5px に縮小 */
    height: 50px; /* 60px から 50px に縮小 */
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-container .logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 35px; /* 40px から 35px に縮小 */
    margin: 0; /* マージンを削除 */
}

.header-container .logo-container a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.logo-combined {
    height: 100%; /* 35px内に収まる */
    width: auto;
    object-fit: contain;
    display: block; /* インライン要素による余白を排除 */
    vertical-align: top; /* ベースライン調整 */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chunet-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chunet-icon-btn:hover {
    background: #c92121;
    transform: scale(1.05);
}

.chunet-icon {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 600px;
    overflow: visible;
}

@media (max-width: 1100px) {
    .hero {
        margin-top: 0;
        padding-top: 50px; /* 60px から 50px に変更 */
        height: calc(100vh - 50px); /* 60px から 50px に変更 */
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 2;
}

/* CHU-Netログインボタン */
.chunet-login {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 1100px) {
    .chunet-login {
        display: none;
    }
}

.chunet-login:hover {
    background-color: #c92121;
    transform: translateY(-2px);
}

.login-text {
    font-size: 15px;
    font-weight: 700;
}

.login-subtext {
    font-size: 12px;
    opacity: 0.9;
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem 3rem;
}

/* ヒーローロゴ */
.hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-logo-main {
    width: 100px;
}

.hero-logo-text {
    width: 180px;
}

/* 試験日程パネル - 文字サイズアップ版 + 下部余白修正 */
.exam-schedule-container {
    position: relative;
    width: 360px;
    margin: 300px auto 10px; /* PC版でさらに100px下に移動 */
    z-index: 2;
    align-self: center;
    height: 340px; /* 320px から 340px に増加して余白確保 */
    overflow: hidden;
}

/* スマホ版では位置調整と高さ増加 */
@media (max-width: 425px) {
    .exam-schedule-container {
        margin: 130px auto 10px; /* スマホ版で50px下に移動 */
        height: 320px; /* 290px から 320px に増加 */
        width: 95%;
        max-width: 360px;
    }
}

.exam-schedule-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.exam-schedule-track {
    display: flex;
    width: 300%; /* 3枚分の幅 */
    height: 100%;
    transition: transform 0.5s ease;
    /* スペース完全削除 */
}

.exam-schedule-panel {
    flex: 0 0 33.333%; /* 1/3の幅 */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-right: 0;
    display: flex;
    flex-direction: column;
}

.exam-schedule-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
}

/* 申込開始前は灰色ヘッダー */
.exam-schedule-header.upcoming {
    background-color: #999;
}

.exam-num {
    font-size: 21px; /* 18px から 21px に増加 */
    font-weight: 700;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* ギャップ削除 */
}

.exam-test-name {
    font-size: 17px; /* 14px から 17px に増加 */
    font-weight: 500;
    opacity: 0.9;
}

.exam-round {
    font-size: 23px; /* 20px から 23px に増加 */
    font-weight: 800;
    line-height: 1.1;
}

.exam-schedule-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.exam-date-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.exam-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 32px; /* 24px から 32px に大幅増加 */
    line-height: 1.1;
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}

.exam-date .year {
    font-size: 24px; /* 18px から 24px に増加 */
    opacity: 0.8;
}

.exam-date .month-day {
    font-size: 32px; /* 24px から 32px に増加 */
}

.exam-date .day {
    font-size: 18px; /* 14px から 18px に増加 */
    margin-left: 8px;
    opacity: 0.9;
}

.exam-secondary-info {
    margin-top: 8px;
    font-size: 14px; /* 11px から 14px に増加 */
    font-weight: 600;
    color: #555;
}

/* 3行情報の行間を少し広げる */
.exam-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px; /* 2px から 6px に増加 */
    font-size: 13px; /* 10px から 13px に増加 */
    line-height: 1.3;
}

/* スマホ版でも同様に */
@media (max-width: 425px) {
    .exam-info-item {
        margin-bottom: 6px;
        font-size: 12px; /* 9px から 12px に増加 */
        line-height: 1.2;
    }
}

.exam-info-icon {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 14px; /* 12px から 14px に増加 */
    min-width: 16px;
    text-align: center;
}

.exam-info-text {
    flex: 1;
    line-height: 1.3;
}

.web-application-button {
    display: block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(221, 51, 51, 0.3);
    margin-top: auto; /* 下部に配置 */
    margin-bottom: 0; /* 下部余白を削除 */
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* 14px から 16px に増加 */
    height: 40px; /* 36px から 40px に増加 */
    line-height: 20px;
}

.web-application-button:hover {
    background-color: #c92121;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(221, 51, 51, 0.4);
}

.web-application-button.disabled {
    background-color: #999;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
    padding: 10px 0;
    margin-top: auto; /* 同じ配置 */
    margin-bottom: 0; /* 同じ余白 */
    border-radius: 30px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    height: 40px; /* 同じ高さ */
    line-height: 20px;
}

.web-application-button.disabled:hover {
    transform: none;
    background-color: #999;
    box-shadow: 0 5px 15px rgba(153, 153, 153, 0.3);
}

/* インジケーターのみ表示（矢印ボタン完全削除） */
.exam-panel-indicator {
    position: absolute;
    bottom: -30px; /* -25px から -30px に調整 */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.exam-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(221, 51, 51, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.exam-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.exam-indicator:hover {
    background-color: rgba(221, 51, 51, 0.6);
    transform: scale(1.1);
}

/* レスポンシブ調整 */
@media (max-width: 992px) {
    .exam-schedule-container {
        position: relative;
        width: 100%;
        max-width: 360px;
        margin: 60px auto 10px; /* 下マージン最小化 */
        z-index: 5;
    }
}

@media (max-width: 576px) {
    .exam-schedule-container {
        width: 95%;
        margin-bottom: 10px; /* 下マージン最小化 */
    }
}

/* 重要なお知らせ - 上下罫線追加、複数件対応 */
.important-notice {
    background: #1e2394;
    border-radius: 0;
    padding: 0;
    margin-top: 5px; /* 2rem から 5px に変更 */
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #1e2394;
    border-bottom: 3px solid #1e2394;
}

@media (max-width: 425px) {
    .important-notice {
        width: 100%;
        max-width: 100%;
        margin: 5px auto 0; /* 2rem から 5px に変更 */
    }
}

.important-notice-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
}

.important-notice-title {
    background: #1e2394;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 15px 20px;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-width: 140px;
    justify-content: center;
}

.important-notice-content {
    background: white;
    flex: 1;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.notice-items {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.important-notice-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.important-notice-item:last-child {
    border-bottom: none;
}

.important-notice-item:hover {
    color: #1a5490;
    background: #f8f9fa;
}

.notice-date {
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notice-text {
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

/* 最新情報セクション - 500px以内 + 左右余白均一 */
.updates {
    background: var(--white);
    padding: 30px 30px 40px; /* 左右同じ余白に統一 */
    position: relative;
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
}

@media (max-width: 425px) {
    .updates {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px 35px; /* スマホ版も左右同じ余白 */
        margin: 0 auto;
    }
}

.updates-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.updates-header {
    text-align: center;
    margin-bottom: 2rem;
}

.updates-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

@media (max-width: 425px) {
    .updates-title {
        font-size: 1.5rem;
    }
}

.updates-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* タブメニュー - より明確な切り替え表示 */
.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.news-tabs::-webkit-scrollbar {
    display: none;
}

.news-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 6px;
}

@media (max-width: 425px) {
    .news-tab {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

.news-tab:hover {
    color: var(--primary-color);
    background: rgba(221, 51, 51, 0.1);
}

.news-tab.active {
    color: white;
    background: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(221, 51, 51, 0.3);
}

/* お知らせコンテンツ */
.news-content {
    display: none;
}

.news-content.active {
    display: block;
}

.updates-list {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    position: relative;
}

@media (max-width: 425px) {
    .update-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.update-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 425px) {
    .update-date {
        margin-bottom: 0.25rem;
    }
}

.update-title {
    color: var(--text-color);
    font-size: 0.875rem;
    flex: 1;
}

.update-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.update-icons i {
    color: var(--text-light);
    font-size: 0.875rem;
}

.update-icons .fa-file-pdf {
    color: #dc3545;
}

.update-icons .fa-external-link-alt {
    color: #0066cc;
}

.update-icons .fa-arrow-right {
    color: var(--primary-color);
}

.view-all-button {
    display: block;
    width: 200px;
    margin: 1.5rem auto 0;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 共通セクションスタイル - 500px以内 + 左右余白均一 */
.event-slider-section,
.features-section,
.tile-section,
.about-section,
.pickup-section,
.action-board-section,
.events-section,
.content-links-section,
.contact-section,
.table-section,
.vision-section {
    padding: 50px 30px; /* 左右余白を30pxに統一 */
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
}

@media (max-width: 425px) {
    .event-slider-section,
    .features-section,
    .tile-section,
    .about-section,
    .pickup-section,
    .action-board-section,
    .events-section,
    .content-links-section,
    .contact-section,
    .table-section,
    .vision-section {
        width: 100%;
        max-width: 100%;
        padding: 40px 20px; /* スマホ版も左右同じ余白 */
        margin: 0 auto;
    }
}

.section-container,
.tile-container,
.about-container,
.pickup-container,
.action-board-container,
.events-container,
.content-links-container,
.contact-container,
.table-container,
.vision-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.section-title,
.tile-title,
.about-title,
.pickup-title,
.action-title,
.events-title,
.content-links-title,
.contact-title,
.table-title,
.vision-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 425px) {
    .section-title,
    .tile-title,
    .about-title,
    .pickup-title,
    .action-title,
    .events-title,
    .content-links-title,
    .contact-title,
    .table-title,
    .vision-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.section-title::after,
.tile-title::after,
.about-title::after,
.content-links-title::after,
.table-title::after,
.vision-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    margin-top: -2.5rem;
}

/* イベントスライダー */
.event-slider-section {
    padding: 40px 30px; /* 左右余白統一 */
    background-color: #f9f9f9;
}

@media (max-width: 425px) {
    .event-slider-section {
        padding: 35px 20px; /* スマホ版も統一 */
    }
}

.event-slider-container {
    position: relative;
    overflow: hidden;
}

.event-slider-wrapper {
    overflow: visible;
    padding: 20px 0;
}

.event-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.event-slide {
    flex: 0 0 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.event-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.event-slider-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.event-slider-button:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.event-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.event-indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 中検の特徴セクション */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

/* 中検の特徴「もっと知る」ボタン追加 */
.features-cta {
    text-align: center;
    margin-top: 2rem;
}

.features-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(221, 51, 51, 0.3);
}

.features-button:hover {
    background-color: #c92121;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(221, 51, 51, 0.4);
}

/* タイルセクション */
.tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tile-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tile-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tile-item:hover .tile-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}

.tile-content {
    color: #fff;
}

.tile-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tile-content p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tile-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tile-button:hover {
    background-color: #c92121;
    transform: translateY(-2px);
}

/* 統計部分の改善 - 画像付き */
.about-content {
    text-align: left;
}

.about-text {
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    margin: 3rem 0;
    gap: 1rem;
}

@media (max-width: 425px) {
    .about-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.stat-image {
    margin-bottom: 1rem;
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

@media (max-width: 425px) {
    .stat-number {
        font-size: 1.25rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.3;
}

.about-cta {
    text-align: center;
    margin-top: 3rem;
}

.about-button,
.action-board-button,
.contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-button:hover,
.action-board-button:hover,
.contact-button:hover {
    background-color: #c92121;
    transform: translateY(-2px);
}

/* 中検を知る - team-mir.ai風トグルセクション */
.vision-section {
    padding: 50px 30px;
    background: #f8f9fa;
}

.vision-toggle {
    margin-bottom: 3rem;
}

.vision-toggle-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.vision-toggle-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vision-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.vision-toggle-header:hover {
    background: #f8f9fa;
}

.vision-toggle-header.active {
    background: #f0f0f0;
}

.vision-toggle-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-toggle-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.vision-toggle-arrow {
    font-size: 1rem;
    color: #999;
    transition: transform 0.3s ease;
}

.vision-toggle-header.active .vision-toggle-arrow {
    transform: rotate(180deg);
}

.vision-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vision-toggle-content.active {
    max-height: 500px;
}

.vision-toggle-inner {
    padding: 0 1.5rem 1.5rem;
}

.vision-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.vision-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.vision-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vision-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.action-board-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.action-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: left;
}

.action-board-button {
    box-shadow: 0 5px 15px rgba(221, 51, 51, 0.3);
}

.action-board-button:hover {
    box-shadow: 0 8px 20px rgba(221, 51, 51, 0.4);
}

/* 背景画像付き団体受験セクション */
.action-board-section-bg {
    background-image: url('https://placehold.jp/500x300/3d70b4/ffffff/500x300.png?text=団体受験のご案内');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 50px 30px; /* 左右余白統一 */
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 425px) {
    .action-board-section-bg {
        width: 100%;
        max-width: 100%;
        padding: 40px 20px; /* スマホ版も統一 */
        margin: 0 auto;
    }
}

.action-board-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.action-board-section-bg .action-board-container {
    position: relative;
    z-index: 2;
}

.action-board-section-bg .section-title {
    color: white;
}

.action-board-section-bg .action-text {
    color: white;
    text-align: left;
}

.action-board-section-bg .action-board-button {
    background-color: var(--primary-color);
    border: 2px solid white;
}

/* お問い合わせセクション */
.contact-section {
    text-align: left;
}

.contact-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: left;
}

.contact-button-wrapper {
    text-align: center;
}

/* イベントセクション修正 - 赤枠白地ボタンデザイン */
.events-intro {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: left;
}

.event-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.event-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(221, 51, 51, 0.1);
}

.event-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 51, 51, 0.3);
}

.event-button i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.event-button span {
    flex: 1;
    text-align: left;
}

/* 英検風トグルメニュー */
.toggle-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.toggle-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-header:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.toggle-icon {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.3s ease;
}

.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.toggle-content.active {
    max-height: 300px;
}

.toggle-links {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1rem;
}

.toggle-link:last-child {
    border-bottom: none;
}

.toggle-link::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
}

.toggle-link:hover {
    color: var(--primary-color);
    padding-left: 1.25rem;
}

/* noteスクロール（team-mir.ai風） - クリック可能に */
.note-container {
    overflow: hidden;
    margin: 0 -15px;
}

.note-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.note-scroll::-webkit-scrollbar {
    height: 8px;
}

.note-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.note-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.note-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.note-item {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.note-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.note-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.note-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note-item:hover .note-thumbnail img {
    transform: scale(1.05);
}

.note-info {
    padding: 15px;
}

.note-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.note-author {
    font-size: 0.75rem;
    color: #999;
}

.pickup-category {
    margin-bottom: 3rem;
}

.category-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* YouTube動画セクション - Note風デザイン - クリック可能に */
.video-container {
    overflow: hidden;
    margin: 0 -15px;
}

.video-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.video-scroll::-webkit-scrollbar {
    height: 8px;
}

.video-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.video-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.video-item {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggNUwxOSAxMkw4IDE5VjVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.video-duration {
    font-size: 0.75rem;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.article-item {
    display: flex;
}

.article-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
}

/* Twitter/X投稿セクション - 横スクロール版 */
.twitter-section {
    padding: 50px 30px; /* 左右余白統一 */
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
    background: #f8f9fa;
}

@media (max-width: 425px) {
    .twitter-section {
        width: 100%;
        max-width: 100%;
        padding: 40px 20px; /* スマホ版も統一 */
        margin: 0 auto;
    }
}

.twitter-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.twitter-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 425px) {
    .twitter-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.twitter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Twitter横スクロールコンテナ */
.twitter-scroll-container {
    overflow: hidden;
    margin: 0 -30px; /* 親の余白を相殺 */
    padding: 0 30px;
}

@media (max-width: 425px) {
    .twitter-scroll-container {
        margin: 0 -20px;
        padding: 0 20px;
    }
}

.twitter-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.twitter-scroll-track::-webkit-scrollbar {
    height: 8px;
}

.twitter-scroll-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.twitter-scroll-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.twitter-scroll-track::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Twitter投稿アイテム */
.twitter-post-item {
    flex: 0 0 340px; /* 固定幅 */
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.twitter-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Twitter埋め込みのスタイル調整 */
.twitter-post-item .twitter-tweet {
    margin: 0 !important;
}

/* もっと見るボタン */
.twitter-more {
    text-align: center;
    margin-top: 2rem;
}

.twitter-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #1da1f2;
    border: 2px solid #1da1f2;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.twitter-more-button:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

/* Instagram セクション */
.instagram-section {
    padding: 50px 30px;
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
    background: white;
}

@media (max-width: 425px) {
    .instagram-section {
        width: 100%;
        max-width: 100%;
        padding: 40px 20px;
        margin: 0 auto;
    }
}

.instagram-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.instagram-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 425px) {
    .instagram-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.instagram-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #E4405F;
}

/* Instagram グリッド */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 425px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        max-width: 100%;
    }
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.instagram-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

/* オーバーレイ */
.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-stats {
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.instagram-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 動画アイコン */
.instagram-video-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ローディング */
.instagram-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #999;
    gap: 1rem;
}

/* もっと見るボタン */
.instagram-more {
    text-align: center;
    margin-top: 2rem;
}

.instagram-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #E4405F;
    border: 2px solid #E4405F;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.instagram-more-button:hover {
    background: #E4405F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

/* SNSセクション（PC/モバイル共通） */
.sns-section {
    padding: 40px 30px; /* 左右余白統一 */
    background: var(--light-gray);
    text-align: center;
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
}

@media (max-width: 425px) {
    .sns-section {
        width: 100%;
        max-width: 100%;
        padding: 35px 20px; /* スマホ版も統一 */
        margin: 0 auto;
    }
}

.sns-container {
    margin: 0;
}

.sns-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.sns-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sns-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sns-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* フッター */
.site-footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 30px 30px; /* 左右余白統一 */
    text-align: center;
    width: 500px;
    max-width: 500px;
    box-sizing: border-box;
}

@media (max-width: 425px) {
    .site-footer {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px; /* スマホ版も統一 */
        margin: 0 auto;
    }
}

.footer-container {
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* 編集モード */
.edit-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 110;
}

.edit-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.edit-toggle-btn:hover {
    transform: scale(1.1);
}

.edit-indicator {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    z-index: 110;
}

.edit-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(221, 51, 51, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.edit-overlay:hover {
    background: rgba(201, 33, 33, 0.9);
}

/* テーブルセクション */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: white;
}

@media (max-width: 425px) {
    .data-table {
        min-width: 550px;
        font-size: 0.75rem;
    }
}

.table-header {
    background: linear-gradient(135deg, var(--primary-color), #e94545);
    color: white;
}

.table-header .table-cell {
    font-weight: 700;
    text-align: center;
    padding: 1rem 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 425px) {
    .table-header .table-cell {
        padding: 0.75rem 0.5rem;
    }
}

.table-header .table-cell:last-child {
    border-right: none;
}

.table-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.table-row:nth-child(even) {
    background-color: #f9f9f9;
}

.table-row:nth-child(even):hover {
    background-color: #f0f0f0;
}

.table-cell {
    padding: 0.875rem 0.75rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
}

@media (max-width: 425px) {
    .table-cell {
        padding: 0.625rem 0.5rem;
    }
}

.table-cell:last-child {
    border-right: none;
}

.table-cell.first-col {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
    color: var(--text-color);
}

.table-row .table-cell.first-col {
    background-color: #f1f3f4;
}

.table-row:hover .table-cell.first-col {
    background-color: #e8eaed;
}

/* スマホ向けテーブル表示改善 */
@media (max-width: 425px) {
    .table-wrapper {
        position: relative;
    }

    .table-wrapper::after {
        content: '← スクロールできます →';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        color: #999;
        text-align: center;
    }
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
