/* ============================================
   Clover Homepage - Base Styles
   ============================================ */

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

:root {
    /* 企業カラー: オレンジとグリーン */
    --primary-color: #2E7D32; /* メイングリーン */
    --primary-light: #4CAF50; /* ライトグリーン */
    --secondary-color: #FF6B35; /* メインオレンジ */
    --secondary-light: #FF8C42; /* ライトオレンジ */
    --accent-color: #FF6B35; /* アクセントオレンジ */
    --accent-green: #4CAF50; /* アクセントグリーン */
    
    /* テキストと背景 */
    --text-color: #2D3436;
    --text-light: #636e72;
    --bg-color: #FFFBF5; /* 温かみのある白 */
    --bg-light: #F8F9FA;
    --light-gray: #F5F5F5;
    
    /* ボーダーとシャドウ */
    --border-color: #E0E0E0;
    --border-green: #4CAF50;
    --border-orange: #FF6B35;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-green: 0 4px 20px rgba(46, 125, 50, 0.2);
    --shadow-orange: 0 4px 20px rgba(255, 107, 53, 0.2);
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    --gradient-mixed: linear-gradient(135deg, #2E7D32 0%, #FF6B35 100%);
    
    /* トランジション */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

h2 { 
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

h3 { 
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

h4 { 
    font-size: 1.35rem;
    color: var(--text-color);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    background: var(--gradient-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--gradient-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
}

/* 装飾用罫線は削除済み */

/* 偶数番目のセクションに背景パターンを追加 */
.section:nth-child(even) {
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.02) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 107, 53, 0.02) 100%
    );
    position: relative;
}

.section:nth-child(even)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(46, 125, 50, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section:nth-child(even) > * {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 25px;
    letter-spacing: -0.03em;
}

/* section-title h2の装飾用罫線は削除済み */

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Services Grid */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-top: 40px;
    width: 100%;
}

/* コース紹介セクション内のグリッドを3列に強制 */
section#services .services-grid,
.section#services .services-grid,
#services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Service Card - 魅力的なカードデザイン */
.service-card {
    background: #ffffff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    background-clip: padding-box;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-green);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card .service-icon {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card p.service-age {
    color: var(--primary-color);
    line-height: 1.3;
    font-size: 0.65rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    padding: 3px 6px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover p.service-age {
    color: var(--secondary-color);
    background: rgba(255, 107, 53, 0.15);
    transform: scale(1.05);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--text-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 15px;
    }
    
    /* モバイル版：nav-leftの幅を自動に（300pxだとJPボタンが切れる） */
    .nav-left {
        width: auto !important;
        flex-shrink: 1 !important;
    }
    
    .nav-logo .logo-image {
        height: 30px !important;
        max-width: 120px !important;
    }
    
    .top-nav {
        padding: 0 10px !important;
        justify-content: space-between !important;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .btn::before {
        width: 200px;
        height: 200px;
    }
    
    .btn:hover::before {
        width: 250px;
        height: 250px;
    }
}
/* ==================== Social9スタイルのパネル構成 ==================== */

/* アプリコンテナ */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* トップナビゲーション */
.top-nav {
    height: 56px;
    background: linear-gradient(90deg, #FFFFFF 0%, #FFF5F0 12%, #FF6B6B 28%, #FFB347 44%, #2ED9A5 58%, #3498DB 72%, #9B59B6 100%);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
    z-index: 1000;
    gap: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 300px;
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-logo .logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #333, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
    padding-left: 0;
}

.nav-search {
    position: relative;
}

.nav-search input {
    width: 300px;
    padding: 8px 36px 8px 36px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    transition: all 0.3s;
}

.nav-search input::placeholder {
    color: #999999;
}

.nav-search input:focus {
    width: 350px;
    background: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.nav-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    width: 18px;
    height: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    font-weight: 500;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.lang-btn.active:hover {
    background: #ffffff;
}

.nav-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* メインコンテンツ */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 左サイドバー */
.sidebar {
    width: 300px;
    background: var(--bg-light);
    border-right: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    flex-direction: column;
    transition: width 0.25s;
    overflow-y: auto;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #FFE4DE;
}

.sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2D3436;
    margin: 0;
}

/* サイドバー検索バー */
.sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search .search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #999999;
    pointer-events: none;
    z-index: 1;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 13px;
    color: #2D3436;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.sidebar-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.sidebar-search input::placeholder {
    color: #999999;
}

.sidebar-content {
    flex: 1;
    padding: 8px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #636E72;
    position: relative;
    border-radius: 12px;
    margin: 4px 8px;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.sidebar-item:hover::before {
    height: 60%;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.sidebar-item:hover svg {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.sidebar-item span {
    font-size: 13px;
}

/* サブメニュー */
.sidebar-parent {
    position: relative;
}

.sidebar-parent .submenu-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.sidebar-parent.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    background: #F9F9F9;
    border-left: 3px solid #A5D6A7;
    padding: 4px 0;
    animation: slideDown 0.15s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 48px;
    cursor: pointer;
    transition: background 0.2s;
    color: #636E72;
    font-size: 12px;
}

.sidebar-submenu-item {
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-submenu-item:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

/* アクティブ状態のメニュー項目 */
.sidebar-item.active-menu {
    background: rgba(46, 125, 50, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-item.active-menu::before {
    height: 80%;
    background: var(--primary-color);
}

.sidebar-submenu-item.active-menu {
    background: rgba(46, 125, 50, 0.15);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

.sidebar-sub-submenu-item.active-menu {
    background: rgba(46, 125, 50, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

/* サブサブメニュー（3階層目） */
.sidebar-submenu-parent {
    position: relative;
}

.sidebar-submenu-parent .submenu-arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.sidebar-submenu-parent.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-sub-submenu {
    background: #F0F0F0;
    border-left: 3px solid #81C784;
    padding: 4px 0;
    animation: slideDown 0.15s ease;
}

.sidebar-sub-submenu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 80px;
    cursor: pointer;
    transition: background 0.2s;
    color: #636E72;
    font-size: 11px;
}

.sidebar-sub-submenu-item {
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-sub-submenu-item:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

/* Web制作相談ボタン */
.web-consultation-btn {
    margin: 8px auto;
    padding: 10px 12px;
    background: linear-gradient(135deg, #2a2a3e 0%, #1e2638 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    max-width: calc(100% - 16px);
    display: block;
}

.web-consultation-btn:hover {
    background: linear-gradient(135deg, #3a3a4e 0%, #2e3648 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.web-consultation-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.web-consultation-main {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #ccc;
    line-height: 1.4;
    text-align: center;
}

.web-consultation-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #7ab8e0;
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 中央パネル（チャットエリア） */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #FFE4DE;
    background: white;
}

.chat-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2D3436;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 右パネル（詳細パネル） */
.detail-panel {
    width: 300px;
    background: #1a1a1a;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(46, 125, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* タブヘッダー（付箋デザイン） */
.tab-header {
    display: flex;
    gap: 10px;
    padding: 18px 18px 0 18px;
    border-bottom: 4px solid rgba(46, 125, 50, 0.15);
    background: linear-gradient(
        135deg,
        rgba(255, 251, 245, 0.95) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(248, 249, 250, 0.95) 100%
    );
    position: relative;
    min-height: 60px;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
    opacity: 0.3;
}

.tab-button {
    position: relative;
    background: transparent;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    margin-bottom: -4px;
    outline: none;
}

.tab-button.active {
    transform: scale(1.05);
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -4px;
    background: var(--gradient-primary);
    border: 3px solid var(--primary-light);
    border-bottom: 4px solid transparent;
    border-radius: 18px 18px 0 0;
    transform: perspective(20px) rotateX(-5deg) scale(0.95);
    transform-origin: bottom center;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 -5px 12px rgba(46, 125, 50, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(46, 125, 50, 0.1);
    opacity: 0.8;
}

.tab-button:hover::before {
    background: var(--gradient-orange);
    border-color: var(--secondary-light);
    transform: perspective(20px) rotateX(-3deg) translateY(-2px);
    box-shadow: 
        0 -8px 16px rgba(255, 107, 53, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.7),
        inset 0 -1px 2px rgba(255, 107, 53, 0.15);
    opacity: 1;
}

.tab-button.active::before {
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 251, 245, 0.98) 50%, rgba(255, 255, 255, 1) 100%);
    border-color: var(--secondary-color);
    border-bottom-color: white;
    border-width: 5px;
    border-bottom-width: 5px;
    box-shadow: 
        0 -12px 30px rgba(255, 107, 53, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(255, 107, 53, 0.2),
        0 0 0 4px rgba(255, 107, 53, 0.2);
    transform: perspective(20px) rotateX(0deg) translateY(4px) scale(1.15);
    z-index: 10;
    bottom: -5px;
    opacity: 1;
}

.tab-label {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    z-index: 1;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.tab-button:hover .tab-label {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.tab-button.active .tab-label {
    color: var(--secondary-color);
    text-shadow: 
        0 1px 3px rgba(255, 107, 53, 0.3),
        0 0 8px rgba(255, 107, 53, 0.2);
    font-weight: 900;
    transform: scale(1.05);
    letter-spacing: 2px;
}

/* タブコンテンツ */
.tab-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        rgba(255, 251, 245, 0.7) 50%,
        rgba(248, 249, 250, 0.6) 100%
    );
    z-index: 1;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-warm);
    opacity: 0.2;
}

/* ギャラリーコンテナーのスタイル調整（タブなしの場合） */
.detail-panel .gallery-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #1a1a1a;
    position: relative;
    z-index: 1;
}

/* ギャラリータイトル */
.gallery-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    padding: 24px 16px 16px 16px;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* モバイル版：右パネルのタイトルを可愛いフォントに変更 */
@media (max-width: 768px) {
    .gallery-title {
        font-family: 'Fredoka', sans-serif !important;
        font-weight: 600 !important;
        font-size: 28px !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
    }
}

/* 写真募集パネルのサブタイトル */
.photo-submission-subtitle {
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    padding: 0 16px 24px 16px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* FAQリスト */
.faq-list {
    padding: 0 16px 24px 16px;
}

.faq-item {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.faq-question > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2E7D32 0%, #FF6B35 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-question > span:nth-child(2) {
    flex: 1;
}

.faq-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 16px;
    background: rgba(255, 255, 255, 0.03);
}

.faq-answer > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: top;
    flex-shrink: 0;
}

.faq-answer p {
    display: inline-block;
    width: calc(100% - 32px);
    margin: 0;
    padding: 16px 0 16px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.8;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", "Noto Sans JP", sans-serif;
}

/* Instagramリンクボタン */
.instagram-link-container {
    padding: 8px 16px 16px 16px;
}

.instagram-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.instagram-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
}

.instagram-link-btn .instagram-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.instagram-link-btn .instagram-icon rect,
.instagram-link-btn .instagram-icon circle {
    stroke: white;
}

.instagram-link-btn .instagram-icon circle:last-of-type {
    fill: white;
}

.detail-panel .gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-warm);
    opacity: 0.2;
}

.tab-pane {
    display: none;
    padding: 24px;
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    position: relative;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* セクション切り替えアニメーション - ズームアウト（フェードアウト + 縮小） */
@keyframes sectionZoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* セクション切り替えアニメーション - ズームイン（フェードイン + 拡大） */
@keyframes sectionZoomIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* メインコンテンツのアニメーションクラス */
#mainContent.section-zoom-out {
    animation: sectionZoomOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#mainContent.section-zoom-in {
    animation: sectionZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

.detail-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 251, 245, 0.8) 100%
    );
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.detail-section:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 251, 245, 0.95) 100%
    );
    box-shadow: 
        0 4px 15px rgba(46, 125, 50, 0.15),
        0 0 0 1px rgba(255, 107, 53, 0.1);
    transform: translateX(5px) translateY(-2px);
}

.detail-section:hover::before {
    transform: scaleY(1);
    background: var(--gradient-orange);
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
}

.detail-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-orange);
    border-radius: 1px;
}

.detail-section p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ギャラリースタイル */
.gallery-container {
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 16px 16px;
    background: transparent;
    border-radius: 12px;
    margin: 0;
    position: relative;
    z-index: 1;
    justify-items: stretch;
    align-items: start;
}

/* 右パネルのギャラリーグリッドを確実に2列表示にする */
.detail-panel .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}

.right-panel .gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* 右パネルのギャラリーアイテムをグリッドに収める */
.detail-panel .gallery-item {
    width: 100%;
    max-width: 100%;
}

/* 右パネルのギャラリーグリッドを確実に2列表示にする */
.detail-panel .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
}

.right-panel .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.1) 0%,
        rgba(255, 107, 53, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.right-panel .gallery-item:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.6),
        0 0 0 3px rgba(255, 107, 53, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
}

.right-panel .gallery-item:hover::before {
    opacity: 1;
}

.right-panel .gallery-item img,
.right-panel .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 0;
}

.right-panel .gallery-item:hover img,
.right-panel .gallery-item:hover video {
    transform: scale(1.1);
}

/* トップ画面：上下10×2行、左右2×2行（合計48枚表示） - 中央パネル用 */
/* 全アイテム統一サイズ：80px */
/* 中央部分幅 = 左(164px) + ロゴ(500px) + 右(164px) = 828px */
.gallery-grid-top {
    display: grid;
    grid-template-columns: repeat(10, 80px);
    gap: 4px;
    width: 836px; /* 10×80 + 9×4 = 836px */
    max-width: 836px;
    margin: 0 auto 0 -15px;
}

/* 中央パネル内のトップ画面ギャラリー */
#top-gallery .gallery-grid-top {
    padding: 0;
}

/* 左右のグリッド（2×2行） - アイテムサイズを上下と統一 */
.gallery-grid-top-side {
    display: grid;
    grid-template-columns: repeat(2, 80px);
    grid-template-rows: repeat(2, 80px);
    gap: 4px;
    width: 164px; /* 2×80 + 1×4 = 164px */
    align-self: center;
}

/* 中央部分のラッパー（左右グリッドとロゴエリア） */
.top-gallery-middle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0 auto 0 -15px;
    width: 836px; /* 上下グリッドと同じ幅 */
    max-width: 836px;
}

/* ロゴエリアの幅を508pxに設定（836 - 164×2 = 508px） */
.top-gallery-middle-wrapper .top-gallery-header {
    width: 508px;
    max-width: 508px;
    min-width: 508px;
    flex-shrink: 0;
}

/* トップ画面のヘッダー（背景緑） */
#top-gallery {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    padding: 40px 20px;
    margin-bottom: 0;
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* PC版：写真下の緑背景セクションとスライドショーを非表示 */
@media (min-width: 769px) {
    #top-gallery-bottom {
        display: none !important;
    }
    .home-slideshow {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* モバイル版：緑背景の上下余白を狭く */
    #top-gallery {
        padding: 15px 20px 0px 20px !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 1;
    }
}

/* コース紹介セクションのスタイル */
#services {
    background: transparent !important;
    padding: 80px 20px 30px 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#services .section-title {
    margin-bottom: -50px !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

#services .section-title h2 {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    line-height: 1 !important;
}

#services .container > .section-title {
    margin-bottom: -50px !important;
    margin-top: 0 !important;
}

#services .container > .section-title + .course-flowchart-wrapper {
    margin-top: -50px !important;
    padding-top: 0 !important;
}

/* フローチャートスタイル */
.course-flowchart-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 0 0 20px;
    padding-top: 0 !important;
    overflow: visible;
    width: 100%;
}

#services .container > .section-title + .course-flowchart-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.course-flowchart {
    flex: 1;
    min-width: 50%;
    max-width: 50%;
    padding: 0;
    position: relative;
    z-index: 2;
}

.course-flowchart-image {
    flex: 0 0 80%;
    max-width: 80%;
    margin-right: -20px;
    margin-left: -200px;
    position: relative;
    z-index: 1;
}

.school-layout-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .course-flowchart-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 !important; /* 左右余白をなくしてフレーム幅を広げる */
    }
    
    .course-flowchart-image {
        flex: 1;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .school-layout-image {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .course-flowchart {
        max-width: 100%;
        min-width: 100%; /* フルワイドに */
    }
    
    .flowchart-question {
        padding: 15px 12px !important; /* 内側余白を調整 */
        border-radius: 10px;
    }
    
    .flowchart-radio-option {
        padding: 10px 12px !important; /* 選択肢の内側余白を調整 */
    }
}

.flowchart-step {
    text-align: center;
}

.flowchart-question {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 0 !important;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.flowchart-question p {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.flowchart-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.flowchart-radio-wrapper {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flowchart-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.flowchart-radio-option:hover {
    background: rgba(46, 125, 50, 0.05);
    border-color: #4CAF50;
}

.flowchart-radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2E7D32;
    flex-shrink: 0;
}

.flowchart-radio-option input[type="radio"]:checked + span {
    color: #2E7D32;
    font-weight: 700;
}

.flowchart-radio-wrapper.active .flowchart-radio-option {
    background: rgba(46, 125, 50, 0.1);
    border-color: #2E7D32;
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.flowchart-option-expanded {
    display: none;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px;
    background: rgba(46, 125, 50, 0.05);
    border: 2px solid #2E7D32;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 18px 20px 15px 20px;
    margin-top: -2px;
    animation: expandDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    justify-content: center !important;
    align-items: flex-start !important;
    position: relative;
    z-index: 1;
    min-height: 80px;
}

/* 展開時は横並びで表示 */
.flowchart-option-expanded[style*="display: flex"],
.flowchart-option-expanded[style*="display:flex"],
.flowchart-option-expanded[style*="display:flex"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

/* 展開領域が表示されている場合は必ず横並び */
.flowchart-option-expanded:not([style*="display: none"]) {
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

/* より強力なルール：activeクラスが付いている場合も横並び */
.flowchart-radio-wrapper.active .flowchart-option-expanded {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

/* expanded-horizontalクラスが付いている場合は必ず横並び */
.flowchart-option-expanded.expanded-horizontal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
        padding-top: 18px;
        padding-bottom: 15px;
    }
}

.flowchart-course-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 2px solid #2E7D32;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.flowchart-course-icon-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    border-color: #4CAF50;
    background: rgba(46, 125, 50, 0.05);
}

.flowchart-icon-circle {
    font-size: 3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flowchart-logo-image {
    width: 80px;
    height: auto;
    object-fit: contain;
    max-height: 80px;
}

.flowchart-logo-image-large {
    width: 90px;
    max-height: 90px;
}

.flowchart-course-group .flowchart-logo-image-large,
.flowchart-course-kinder .flowchart-logo-image-large {
    width: 98px;
    max-height: 98px;
    object-fit: contain;
}

.flowchart-course-private .flowchart-logo-image-large,
.flowchart-course-preschool .flowchart-logo-image-large {
    width: 95px;
    max-height: 95px;
    object-fit: contain;
}

.flowchart-preschool-icon {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
}

.flowchart-course-logo-btn {
    position: relative;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    margin-bottom: 50px;
}

.flowchart-course-logo-btn .flowchart-icon-circle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flowchart-icon-label-outside {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2E7D32;
    width: 120px;
    max-width: 120px;
    text-align: center;
    line-height: 1.3;
    z-index: 10;
    pointer-events: none;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    margin-left: 0 !important;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flowchart-course-friends-club .flowchart-icon-label-outside {
    bottom: -42px;
    height: 40px;
}

.flowchart-icon-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2E7D32;
    text-align: center;
    line-height: 1.3;
}

.flowchart-arrow {
    text-align: center;
    font-size: 2rem;
    color: #2E7D32;
    margin: 20px 0;
    font-weight: bold;
}

.flowchart-results {
    margin-top: 30px;
}

.flowchart-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.flowchart-course-card {
    background: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flowchart-course-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    background-clip: padding-box;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.flowchart-course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-green);
    border-color: var(--primary-color);
}

.flowchart-course-card:hover::before {
    opacity: 1;
}

.flowchart-course-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.flowchart-course-card:hover .flowchart-course-icon {
    transform: scale(1.1);
}

.flowchart-course-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.flowchart-course-card:hover h3 {
    color: var(--secondary-color);
}

.flowchart-course-age {
    color: var(--primary-color);
    line-height: 1.3;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    padding: 4px 8px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.flowchart-course-card:hover .flowchart-course-age {
    color: var(--secondary-color);
    background: rgba(255, 107, 53, 0.15);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .flowchart-courses {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .flowchart-option {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .flowchart-question p {
        font-size: 0.75rem !important;
    }
    
    /* モバイル版：サービスグリッドを3列に設定 */
    .services-grid,
    section#services .services-grid,
    .section#services .services-grid,
    #services .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    
    /* モバイル版：サービスカードのサイズとフォントを調整 */
    .service-card {
        padding: 8px !important;
    }
    
    .service-card h3 {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
    
    .service-card p.service-age {
        font-size: 0.55rem !important;
    }
    
    .service-card .service-icon {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
    }
    
    /* モバイル版：トップ画面のギャラリーグリッドを非表示 */
    .gallery-grid-top {
        display: none !important;
    }
    
    .gallery-grid-top-side {
        display: none !important;
    }
    
    /* モバイル版：WELCOME TOセクションのレイアウト調整 */
    .top-gallery-middle-wrapper {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .top-gallery-header {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 20px 15px !important;
    }
    
    /* モバイル版：WELCOME TOセクション直下のタブ表示（非表示） */
    .top-navigation-buttons-mobile {
        display: none !important;
    }
    
    .gallery-item-top {
        width: 100% !important;
        aspect-ratio: 1 !important;
        height: 0 !important;
        padding-bottom: 100% !important;
        position: relative !important;
    }
    
    .gallery-item-top img,
    .gallery-item-top video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .top-gallery-middle-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        flex-direction: column !important;
    }
    
    .gallery-grid-top-side {
        width: 100% !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: auto !important;
    }
    
    /* モバイル版：WELCOME TOセクションのサイズを小さく */
    .top-gallery-header {
        padding: 6px 15px !important;
    }
    
    .top-gallery-welcome {
        font-family: 'Fredoka', 'Nunito', sans-serif !important;
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        letter-spacing: 4px !important;
        margin-bottom: 12px !important;
    }
    
    .top-gallery-welcome-zh {
        font-size: 1.0rem !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
    }
    
    .top-gallery-logo {
        margin: -10px auto 12px !important; /* 上に少し移動 */
        max-width: 120% !important;
        width: 120% !important;
        margin-left: -10% !important; /* 中央揃えのため左マージンを調整 */
    }
    
    .top-gallery-logo img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .top-gallery-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        opacity: 0 !important;
        transition: opacity 2.5s ease-in !important;
    }
    
    /* モバイル版：フェードイン後の状態 */
    .top-gallery-subtitle.fade-in {
        opacity: 1 !important;
    }
}

#services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-top: 40px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#services .service-card {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* mainContentのスタイル */
#mainContent {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#top-gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-gallery-header {
    position: relative;
    text-align: center;
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px; /* 左右グリッド164px + 余白 */
    box-sizing: border-box;
}

.top-gallery-welcome {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 2rem;
    color: white;
    margin: 0 0 8px 0;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
}

.top-gallery-welcome-zh {
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.top-gallery-logo {
    position: relative;
    margin: 0 auto 4px;
}

.top-gallery-school-name-zh {
    font-size: 1.1rem;
    color: white;
    text-align: center;
    margin: 0 0 4px 0;
    letter-spacing: 3px;
    font-weight: 500;
    opacity: 0.9;
}

.top-gallery-logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.top-gallery-subtitle {
    font-size: 1.0rem;
    color: white;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    opacity: 0;
    white-space: nowrap;
    font-weight: bold;
    transition: opacity 0.8s ease-in;
}

/* PC版：モバイル用のタブ・メニューを非表示 */
@media (min-width: 769px) {
    .top-navigation-buttons-mobile {
        display: none !important;
    }
    
    /* PC版：モバイル用言語切り替えを非表示 */
    .language-switcher-mobile {
        display: none !important;
    }
    
    /* PC版：モバイル用メニューを非表示 */
    .nav-menu-mobile {
        display: none !important;
    }
    
    /* PC版：通常の言語切り替えを表示 */
    .language-switcher {
        display: flex !important;
    }
    
    /* PC版：サブタイトルの改行を無効化（1行表示） */
    .top-gallery-subtitle br {
        display: none;
    }
}

/* モバイル版：WELCOME TOセクション内のタブ（非表示） */
@media (max-width: 768px) {
    .top-navigation-buttons-mobile {
        display: none !important;
    }
}

/* ============================================
   ボトムナビゲーション（PC・モバイル共通）
   ※ スタイルはindex.phpのインラインで制御
   ============================================ */

/* ============================================
   TOP画面スライドショー（モバイル版のみ）
   ============================================ */
@media (max-width: 768px) {
    .home-slideshow {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        margin-top: -50px;
        position: relative;
        overflow: hidden;
        background: #000;
        z-index: 2;
    }
    
    .home-slideshow-container {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
    }
    
    .home-slideshow-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        object-fit: cover;
    }
    
    .home-slideshow-slide.active {
        opacity: 1;
    }
    
    /* モバイル版：上の緑背景から「子どもたちが～」テキストを非表示 */
    .top-gallery-subtitle-upper {
        display: none !important;
    }
    
    /* モバイル版：写真下の緑背景セクション */
    #top-gallery-bottom {
        background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
        padding: 15px 20px 15px 20px !important;
        margin: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-gallery-header-bottom {
        text-align: center;
        padding: 0;
    }
    
    .top-gallery-subtitle-lower {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        color: white !important;
        margin: 0 !important;
        text-align: center !important;
        opacity: 1 !important;
        white-space: normal !important;
    }
}

.gallery-item-top {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    animation: fadeInScale 0.4s ease forwards;
    transition: transform 0.3s ease, z-index 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    min-height: 80px;
}

.gallery-item-top:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item-top img,
.gallery-item-top video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-top:hover img,
.gallery-item-top:hover video {
    transform: scale(1.1);
}

.gallery-item-top .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-item-top:hover .play-icon {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.2);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* スクロールバーのスタイル */
.gallery-grid-top::-webkit-scrollbar {
    width: 6px;
}

.gallery-grid-top::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

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

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

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B6B;
    font-size: 12px;
}

/* ギャラリーモーダル */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img,
.gallery-modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

/* ============================================
   ギャラリースライドショー
   ============================================ */
section.gallery-slideshow-section,
.section.gallery-slideshow-section {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 60vh;
}

/* スライドショー画面の罫線を完全に削除 */
section.gallery-slideshow-section::before,
.section.gallery-slideshow-section::before,
section.gallery-slideshow-section::after,
.section.gallery-slideshow-section::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.gallery-slideshow-section .container {
    padding: 0 20px !important;
    margin: 0 !important;
}

.gallery-slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 !important;
}

.gallery-slide-media {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* 画像下部のタイトルと説明 */
.gallery-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5;
    text-align: center;
    padding: 8px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

.gallery-slide-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: block;
}

.gallery-slide-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: block;
}

/* ナビゲーションボタン */
.gallery-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FF1493; /* 派手なピンク */
    border: 2px solid #FF1493;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    color: white;
}

.gallery-slide-nav:hover:not(:disabled) {
    background: #FF69B4; /* ホバー時はより明るいピンク */
    border-color: #FF69B4;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.6);
}

.gallery-slide-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-slide-prev {
    left: 20px;
}

.gallery-slide-next {
    right: 20px;
}

.gallery-slide-nav svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* 閉じるボタン */
.gallery-slide-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-slide-close:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.gallery-slide-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* カウンター */
.gallery-slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* サムネイル一覧 */
.gallery-slide-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 !important;
    margin: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.gallery-slide-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-slide-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-slide-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    transform: scale(1.05);
}

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

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* タイトルと説明（写真上部） */
.gallery-slide-info .gallery-slide-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.4;
}

.gallery-slide-info .gallery-slide-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* スライドショーモード時の右パネル非表示 */
.detail-panel.slideshow-mode {
    display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }
    
    .language-switcher-mobile {
        display: block !important;
        position: relative;
    }
    
    .lang-btn-mobile {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 4px 7px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        cursor: pointer;
        font-size: 10px;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.2s ease;
        font-weight: 500;
        height: 26px;
    }
    
    .lang-btn-mobile:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .lang-btn-mobile.active {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.9);
        color: #333;
    }
    
    .globe-icon {
        width: 13px;
        height: 13px;
        stroke: currentColor;
        fill: none;
    }
    
    .lang-code {
        font-weight: 600;
        font-size: 9px;
    }
    
    .lang-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 120px;
        z-index: 1000;
        overflow: hidden;
    }
    
    .lang-dropdown-menu.active {
        display: block;
    }
    
    .lang-dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        background: white;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        cursor: pointer;
        font-size: 13px;
        color: #333;
        transition: background 0.2s ease;
        text-align: left;
    }
    
    .lang-dropdown-item:last-child {
        border-bottom: none;
    }
    
    .lang-dropdown-item:hover {
        background: #f5f5f5;
    }
    
    .lang-dropdown-item .lang-code {
        font-weight: 600;
        font-size: 11px;
        color: #666;
        min-width: 24px;
    }
    
    .lang-dropdown-item .lang-name {
        flex: 1;
    }
    
    .lang-dropdown-item.active {
        background: #e8f5e9;
    }
    
    .lang-dropdown-item.active .lang-code {
        color: #2E7D32;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: 28px;
    }
    
    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1001;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
        width: 280px;
        background: var(--bg-light);
        flex-direction: column;
        overflow-y: auto;
    }
    
    .sidebar.active {
        display: flex !important;
    }
    
    .detail-panel {
        display: none;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 1001;
        width: 280px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        overflow-y: auto;
    }
    
    .detail-panel.active {
        display: flex;
    }
    
    /* モバイル用ボタン */
    .mobile-menu-btn,
    .mobile-gallery-btn,
    .mobile-chat-btn {
        display: flex !important;
    }
    
    /* モバイル用ラベル画像サイズ調整 */
    .service-label-image,
    .contact-label-image,
    .access-label-image {
        max-width: 120px !important;
    }
    
    .service-main-media .service-label {
        bottom: -30px !important;
        right: 5px !important;
    }
    
    .contact-label-container,
    .access-label-container {
        top: 10px !important;
        right: 10px !important;
    }
    
    /* スライドショー */
    section.gallery-slideshow-section,
    .section.gallery-slideshow-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    section.gallery-slideshow-section::before,
    .section.gallery-slideshow-section::before {
        display: none !important;
        content: none !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    section.gallery-slideshow-section::after,
    .section.gallery-slideshow-section::after {
        display: none !important;
        content: none !important;
    }
    
    .gallery-slideshow-section .container {
        padding: 0 10px !important;
        margin: 0 !important;
    }
    
    .gallery-slideshow-container {
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .gallery-slide-media {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-slide-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-slide-prev {
        left: 10px;
    }
    
    .gallery-slide-next {
        right: 10px;
    }
    
    .gallery-slide-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-slide-close {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
    }
    
    .gallery-slide-close svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-slide-counter {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-slide-info {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 6px 12px;
    }
    
    .gallery-slide-info .gallery-slide-title {
        font-size: 12px;
    }
    
    .gallery-slide-info .gallery-slide-description {
        font-size: 11px;
    }
    
    .gallery-slide-media {
        min-height: 300px;
        padding: 0;
        margin-top: 0;
        margin-bottom: 5px;
    }
    
    .gallery-slide-image,
    .gallery-slide-video {
        max-height: 50vh;
    }
    
    /* モバイル用フローティングチャットボタン */
    .mobile-chat-btn {
        display: flex !important;
    }
}

/* モバイル用フローティングボタン共通 */
.mobile-chat-btn,
.mobile-menu-btn,
.mobile-gallery-btn {
    display: none;
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    border: none;
}

.mobile-chat-btn:hover,
.mobile-menu-btn:hover,
.mobile-gallery-btn:hover {
    transform: scale(1.1);
}

.mobile-chat-btn svg,
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

/* Careersページ専用：右パネル表示アイコンをカレンダーアイコン＋CALENDARテキスト付き四角ボタンに */
body.careers-page .mobile-gallery-btn,
body.careers-page #mobileGalleryBtn {
    width: auto !important;
    min-width: 60px !important;
    height: 44px !important;
    border-radius: 8px !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 4px 8px !important;
}

body.careers-page .mobile-gallery-btn .calendar-icon,
body.careers-page #mobileGalleryBtn .calendar-icon,
body.careers-page .calendar-icon {
    width: 20px !important;
    height: 20px !important;
    stroke: white !important;
    fill: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.careers-page .mobile-gallery-btn .gallery-icon,
body.careers-page #mobileGalleryBtn .gallery-icon,
body.careers-page .gallery-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.careers-page .mobile-gallery-text,
body.careers-page #mobileGalleryBtn .mobile-gallery-text,
body.careers-page .mobile-gallery-text {
    font-size: 8px !important;
    font-weight: 600 !important;
    color: white !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* CareersページでBotアイコンを非表示 */
body.careers-page .mobile-chat-btn,
body.careers-page #mobileChatBtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* カレンダーアイコンとテキストの初期状態（非表示） */
.calendar-icon,
.mobile-gallery-text {
    display: none !important;
}

/* Careersページでカレンダーアイコンとテキストを表示（インラインスタイルを上書き） */
body.careers-page .calendar-icon,
body.careers-page .mobile-gallery-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 通常の右パネル表示アイコン（丸） */
.mobile-gallery-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
}

.mobile-chat-btn {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 4px !important;
}

.mobile-chat-btn-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.mobile-chat-btn-text {
    font-size: 8px !important;
    font-weight: 600 !important;
    color: #2E7D32 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    font-family: 'Comic Sans MS', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

/* チャットボタン（右下） */
.mobile-chat-btn {
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #2E7D32;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

/* ギャラリーボタン（右上・ナビバーの直下） */
.mobile-gallery-btn {
    top: 64px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.mobile-gallery-btn.active {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

/* 右パネルが開いている時、丸アイコンを非表示 */
body.right-panel-open .mobile-gallery-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* スライドショーが開いている時、丸アイコンを非表示 */
body.slideshow-open .mobile-gallery-btn,
.detail-panel.slideshow-mode ~ .mobile-gallery-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* スクロール時にギャラリーボタンを非表示 */
.mobile-gallery-btn.scrolled-away {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
}

/* TOPページでは右パネル表示アイコンのみ非表示（Botアイコンは表示） */
body.home-page .mobile-gallery-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* メニューボタン（左下） */
.mobile-menu-btn {
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.mobile-menu-text {
    font-family: 'Comic Sans MS', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Meiryo', cursive;
    font-size: 8px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

/* モバイル時のオーバーレイ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-overlay.active {
    display: block;
}

.gallery-slide-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* カウンター */
.gallery-slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* サムネイル一覧 */
.gallery-slide-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 !important;
    margin: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.gallery-slide-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-slide-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-slide-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    transform: scale(1.05);
}

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

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* タイトルと説明（写真上部） */
.gallery-slide-info .gallery-slide-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.4;
}

.gallery-slide-info .gallery-slide-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* スライドショーモード時の右パネル非表示 */
.detail-panel.slideshow-mode {
    display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }
    
    .language-switcher-mobile {
        display: block !important;
        position: relative;
    }
    
    .lang-btn-mobile {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 4px 7px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        cursor: pointer;
        font-size: 10px;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.2s ease;
        font-weight: 500;
        height: 26px;
    }
    
    .lang-btn-mobile:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .lang-btn-mobile.active {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.9);
        color: #333;
    }
    
    .globe-icon {
        width: 13px;
        height: 13px;
        stroke: currentColor;
        fill: none;
    }
    
    .lang-code {
        font-weight: 600;
        font-size: 9px;
    }
    
    .lang-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 120px;
        z-index: 1000;
        overflow: hidden;
    }
    
    .lang-dropdown-menu.active {
        display: block;
    }
    
    .lang-dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        background: white;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        cursor: pointer;
        font-size: 13px;
        color: #333;
        transition: background 0.2s ease;
        text-align: left;
    }
    
    .lang-dropdown-item:last-child {
        border-bottom: none;
    }
    
    .lang-dropdown-item:hover {
        background: #f5f5f5;
    }
    
    .lang-dropdown-item .lang-code {
        font-weight: 600;
        font-size: 11px;
        color: #666;
        min-width: 24px;
    }
    
    .lang-dropdown-item .lang-name {
        flex: 1;
    }
    
    .lang-dropdown-item.active {
        background: #e8f5e9;
    }
    
    .lang-dropdown-item.active .lang-code {
        color: #2E7D32;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: 28px;
    }
    
    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1001;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
        width: 280px;
        background: var(--bg-light);
        flex-direction: column;
        overflow-y: auto;
    }
    
    .sidebar.active {
        display: flex !important;
    }
    
    .detail-panel {
        display: none;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 1001;
        width: 280px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        overflow-y: auto;
    }
    
    .detail-panel.active {
        display: flex;
    }
    
    /* モバイル用ボタン */
    .mobile-menu-btn,
    .mobile-gallery-btn,
    .mobile-chat-btn {
        display: flex !important;
    }
    
    /* モバイル用ラベル画像サイズ調整 */
    .service-label-image,
    .contact-label-image,
    .access-label-image {
        max-width: 120px !important;
    }
    
    .service-main-media .service-label {
        bottom: -30px !important;
        right: 5px !important;
    }
    
    .contact-label-container,
    .access-label-container {
        top: 10px !important;
        right: 10px !important;
    }
    
    /* スライドショー */
    section.gallery-slideshow-section,
    .section.gallery-slideshow-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    section.gallery-slideshow-section::before,
    .section.gallery-slideshow-section::before {
        display: none !important;
        content: none !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    section.gallery-slideshow-section::after,
    .section.gallery-slideshow-section::after {
        display: none !important;
        content: none !important;
    }
    
    .gallery-slideshow-section .container {
        padding: 0 10px !important;
        margin: 0 !important;
    }
    
    .gallery-slideshow-container {
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .gallery-slide-media {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-slide-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-slide-prev {
        left: 10px;
    }
    
    .gallery-slide-next {
        right: 10px;
    }
    
    .gallery-slide-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-slide-close {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
    }
    
    .gallery-slide-close svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-slide-counter {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-slide-info {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 6px 12px;
    }
    
    .gallery-slide-info .gallery-slide-title {
        font-size: 12px;
    }
    
    .gallery-slide-info .gallery-slide-description {
        font-size: 11px;
    }
    
    .gallery-slide-media {
        min-height: 300px;
        padding: 0;
        margin-top: 0;
        margin-bottom: 5px;
    }
    
    .gallery-slide-image,
    .gallery-slide-video {
        max-height: 50vh;
    }
    
    /* モバイル用フローティングチャットボタン */
    .mobile-chat-btn {
        display: flex !important;
    }
}

/* モバイル用フローティングボタン共通 */
.mobile-chat-btn,
.mobile-menu-btn,
.mobile-gallery-btn {
    display: none;
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    border: none;
}

.mobile-chat-btn:hover,
.mobile-menu-btn:hover,
.mobile-gallery-btn:hover {
    transform: scale(1.1);
}

.mobile-chat-btn svg,
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

/* Careersページ専用：右パネル表示アイコンをカレンダーアイコン＋CALENDARテキスト付き四角ボタンに */
body.careers-page .mobile-gallery-btn,
body.careers-page #mobileGalleryBtn {
    width: auto !important;
    min-width: 60px !important;
    height: 44px !important;
    border-radius: 8px !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 4px 8px !important;
}

body.careers-page .mobile-gallery-btn .calendar-icon,
body.careers-page #mobileGalleryBtn .calendar-icon,
body.careers-page .calendar-icon {
    width: 20px !important;
    height: 20px !important;
    stroke: white !important;
    fill: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.careers-page .mobile-gallery-btn .gallery-icon,
body.careers-page #mobileGalleryBtn .gallery-icon,
body.careers-page .gallery-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.careers-page .mobile-gallery-text,
body.careers-page #mobileGalleryBtn .mobile-gallery-text,
body.careers-page .mobile-gallery-text {
    font-size: 8px !important;
    font-weight: 600 !important;
    color: white !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* CareersページでBotアイコンを非表示 */
body.careers-page .mobile-chat-btn,
body.careers-page #mobileChatBtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* カレンダーアイコンとテキストの初期状態（非表示） */
.calendar-icon,
.mobile-gallery-text {
    display: none !important;
}

/* Careersページでカレンダーアイコンとテキストを表示（インラインスタイルを上書き） */
body.careers-page .calendar-icon,
body.careers-page .mobile-gallery-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 通常の右パネル表示アイコン（丸） */
.mobile-gallery-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
}

.mobile-chat-btn {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 4px !important;
}

.mobile-chat-btn-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.mobile-chat-btn-text {
    font-size: 8px !important;
    font-weight: 600 !important;
    color: #2E7D32 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    font-family: 'Comic Sans MS', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

/* チャットボタン（右下） */
.mobile-chat-btn {
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #2E7D32;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

/* ギャラリーボタン（右上・ナビバーの直下） */
.mobile-gallery-btn {
    top: 64px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.mobile-gallery-btn.active {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

/* 右パネルが開いている時、丸アイコンを非表示 */
body.right-panel-open .mobile-gallery-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* スライドショーが開いている時、丸アイコンを非表示 */
body.slideshow-open .mobile-gallery-btn,
.detail-panel.slideshow-mode ~ .mobile-gallery-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* スクロール時にギャラリーボタンを非表示 */
.mobile-gallery-btn.scrolled-away {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
}

/* TOPページでは右パネル表示アイコンのみ非表示（Botアイコンは表示） */
body.home-page .mobile-gallery-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* メニューボタン（左下） */
.mobile-menu-btn {
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.mobile-menu-text {
    font-family: 'Comic Sans MS', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Meiryo', cursive;
    font-size: 8px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

/* モバイル時のオーバーレイ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-overlay.active {
    display: block;
}
/* ==================== モバイル版：上パネル内MENUテキスト ==================== */
.nav-menu-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu-mobile {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.9);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.5px;
        background: none;
        border: none;
        padding: 4px 0;
        transition: opacity 0.2s ease;
    }
    
    .nav-menu-mobile:hover {
        opacity: 0.7;
    }
    
    .nav-menu-mobile svg {
        width: 16px;
        height: 16px;
        stroke: rgba(255, 255, 255, 0.9);
        fill: none;
    }
    
    /* 旧フローティングMENUボタンを非表示 */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* モバイル版：現在のページ名表示 */
    .mobile-page-title {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.9);
        font-size: 10px;
        font-weight: 500;
        white-space: nowrap;
        padding: 0 6px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.2px;
    }
}

/* PC版：モバイル用ページ名を非表示 */
@media (min-width: 769px) {
    .mobile-page-title {
        display: none !important;
    }
}

/* ==================== グラデーション帯内フッター（著作権表示） ==================== */
.site-footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: center !important;
    padding-bottom: 4px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.site-footer-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1px;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
}

.site-footer-copyright {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .site-footer-name {
        font-size: 9px;
    }
    
    .site-footer-copyright {
        font-size: 6px;
    }
}
