/* ナビゲーションバー */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 82, 130, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand:hover {
    color: #ffd700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffd700;
    text-decoration: none;
}

/* ページ固有のスタイル */
.hero-section {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 50%, #38a169 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="20%" cy="30%" r="300" fill="url(%23a)"/><circle cx="80%" cy="70%" r="200" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.login-container {
    position: relative;
    z-index: 1;
}

.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: 60vh;
    overflow: visible;
}

.feature-highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-logo {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f6ad55 0%, #38a169 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.input-group input {
    padding-left: 2.5rem;
}

.toggle-form {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.toggle-form:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ログイン中のボタンスタイル */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    color: white !important;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .login-form-container {
        margin: 1rem;
    }
}

/* PWA 関連のスタイル */
.network-online {
    background: #48bb78 !important;
}

.network-offline {
    background: #f56565 !important;
}

.pwa-install-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.pwa-install-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* トースト通知のスタイル */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-smooth);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: var(--success-color);
}

.toast-warning {
    background: var(--warning-color);
}

.toast-info {
    background: var(--info-color);
}

.toast-error {
    background: var(--error-color);
}

/* オフラインモード時のスタイル */
body.offline-mode .login-form-container::before {
    content: "⚠️ オフラインモードです";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 横向き表示時の調整 */
body.landscape .hero-section {
    padding: 1rem;
}

body.landscape .login-form-container {
    margin: 0.5rem;
}