<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">@charset "utf-8";
/*
 * Mobile.css - モバイル専用スタイル
 * 軸馬先生テーマ - スマホボトムナビ &amp; モバイル最適化 Ver 2.1
 * 適用条件: screen and (max-width: 768px)
 */

/* ===== ボトムナビゲーション ===== */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 3px solid var(--color-accent);
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.1),
        0 -1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    transform: translateY(0);
    transition: transform 0.3s ease;
    display: none; /* デフォルトは非表示 */
}

/* スクロール時の自動隠匿 */
.bottom-navigation.hidden {
    transform: translateY(100%);
}

/* ボトムナビコンテナ */
.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ボトムナビアイテム */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 8px;
    border-radius: 16px;
    min-width: 64px;
    position: relative;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

/* タップエフェクト */
.bottom-nav-item:active {
    transform: scale(0.95);
}

/* ホバー・アクティブ状態 */
.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--color-primary);
    background: rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
}

.bottom-nav-item.active {
    background: rgba(30, 58, 138, 0.15);
}

/* アクティブ時の上部アクセント */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 0 0 4px 4px;
    animation: active-bounce 0.3s ease;
}

@keyframes active-bounce {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 40px;
        opacity: 1;
    }
    100% {
        width: 32px;
        opacity: 1;
    }
}

/* ナビアイコン */
.bottom-nav-icon {
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.2) translateY(-2px);
}

.bottom-nav-item.active .bottom-nav-icon {
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.3));
}

/* ナビラベル */
.bottom-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.bottom-nav-item.active .bottom-nav-label {
    color: var(--color-accent);
    font-weight: 700;
}

/* ===== メインコンテンツの調整 ===== */
@media (max-width: 768px) {
    .bottom-navigation {
        display: block;
    }
    
    .main-content {
        padding-bottom: 100px; /* ボトムナビ分のスペース */
        min-height: calc(100vh - 100px);
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* ===== モバイル専用ヘッダー調整 ===== */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: rgba(30, 58, 138, 0.95);
        backdrop-filter: blur(15px);
    }

    .site-header .container {
        padding: 0 16px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 0;
        min-height: auto;
    }
}

/* ===== タッチ操作最適化 ===== */
/* タッチターゲットサイズ確保 */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* タッチ時のハイライト無効化 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* タッチ時のフィードバック */
.touch-feedback:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* ===== スクロール最適化 ===== */
/* iOS Safari の bouncing 制御 */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* スクロール時のボトムナビ制御用 */
.scroll-down .bottom-navigation {
    transform: translateY(100%);
}

.scroll-up .bottom-navigation {
    transform: translateY(0);
}

/* ===== モバイル専用フォント調整 ===== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    h3 {
        font-size: 20px;
        line-height: 1.4;
    }
}

/* ===== モバイル専用ボタン ===== */
@media (max-width: 768px) {
    .mobile-btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .mobile-btn:active {
        transform: scale(0.98);
    }
}

/* ===== 入力フォーム最適化 ===== */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        min-height: 48px;
        font-size: 16px; /* iOS zoom 防止 */
        padding: 12px 16px;
        border-radius: 8px;
        border: 2px solid var(--color-border);
        transition: border-color 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--color-primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }
}

/* ===== スワイプジェスチャー対応 ===== */
.swipe-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swipe-container::-webkit-scrollbar {
    display: none;
}

/* ===== モバイル専用アニメーション ===== */
/* ページ遷移アニメーション */
.page-transition-enter {
    opacity: 0;
    transform: translateX(30px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.page-transition-exit {
    opacity: 1;
    transform: translateX(0);
}

.page-transition-exit-active {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease;
}

/* ===== モバイル専用ポップアップ・モーダル ===== */
.mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-modal.active .mobile-modal-content {
    transform: translateY(0);
}

/* ===== デバイス別最適化 ===== */
/* iPhone対応 */
@supports (padding: max(0px)) {
    .bottom-navigation {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .main-content {
        padding-bottom: max(100px, calc(100px + env(safe-area-inset-bottom)));
    }
}

/* 小画面デバイス（iPhone SE等） */
@media (max-width: 375px) {
    .bottom-nav-container {
        padding: 0 12px;
    }
    
    .bottom-nav-item {
        min-width: 56px;
        padding: 10px 6px;
    }
    
    .bottom-nav-icon {
        font-size: 22px;
    }
    
    .bottom-nav-label {
        font-size: 11px;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* 大画面モバイル（iPhone Pro Max等） */
@media (min-width: 414px) and (max-width: 768px) {
    .bottom-nav-container {
        max-width: 600px;
        padding: 0 30px;
    }
    
    .bottom-nav-item {
        min-width: 72px;
        padding: 14px 10px;
    }
    
    .bottom-nav-icon {
        font-size: 26px;
    }
    
    .bottom-nav-label {
        font-size: 13px;
    }
}

/* ===== 横向き対応 ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .bottom-navigation {
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    }
    
    .bottom-nav-item {
        padding: 8px 6px;
        gap: 4px;
    }
    
    .bottom-nav-icon {
        font-size: 20px;
    }
    
    .bottom-nav-label {
        font-size: 10px;
    }
    
    .main-content {
        padding-bottom: 70px;
    }
}

/* ===== アクセシビリティ（モバイル） ===== */
/* 大きな文字サイズ設定時の対応 */
@media (prefers-font-size: large) {
    .bottom-nav-label {
        font-size: 14px;
    }
    
    .bottom-nav-icon {
        font-size: 28px;
    }
    
    .bottom-nav-item {
        min-width: 72px;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .bottom-navigation {
        background: rgba(20, 20, 20, 0.95);
        border-top-color: var(--color-accent);
    }
    
    .bottom-nav-item {
        color: #ccc;
    }
    
    .bottom-nav-item.active {
        color: var(--color-accent);
        background: rgba(245, 158, 11, 0.15);
    }
}

/* 高コントラストモード */
@media (prefers-contrast: high) {
    .bottom-navigation {
        background: white;
        border-top: 4px solid var(--color-primary);
    }
    
    .bottom-nav-item {
        border: 2px solid transparent;
    }
    
    .bottom-nav-item.active {
        border-color: var(--color-primary);
        background: rgba(30, 58, 138, 0.1);
    }
}

/* アニメーション削減 */
@media (prefers-reduced-motion: reduce) {
    .bottom-navigation,
    .bottom-nav-item,
    .bottom-nav-icon,
    .mobile-modal,
    .mobile-modal-content {
        transition: none;
        animation: none;
    }
    
    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        transform: none;
    }
    
    .bottom-nav-item.active::before {
        animation: none;
    }
}</pre></body></html>