/* ログイン画面スタイル - モダンデザイン */

:root {
    --primary: #52C9A8;
    --primary-dark: #3AA88F;
    --primary-light: #7DD9BA;
    --primary-pale: #E0F7F0;

    --background: #0A1F1C;
    --surface: #FFFFFF;

    --text-primary: #1A3A35;
    --text-secondary: #4A6B65;
    --text-disabled: #9CA8A4;

    --border: #D5E8E2;
    --danger: #EF5350;

    --shadow: 0 4px 12px rgba(26, 58, 53, 0.08);
    --shadow-lg: 0 20px 60px rgba(82, 201, 168, 0.25);

    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background: radial-gradient(ellipse at top, #1A4D44 0%, #0A1F1C 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 背景アニメーション */
body::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(circle at 20% 50%, rgba(82, 201, 168, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(125, 217, 186, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(82, 201, 168, 0.1) 0%, transparent 50%);
    animation: bgShift 20s ease infinite;
    z-index: 0;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-5%, 5%) rotate(5deg); }
    66% { transform: translate(5%, -5%) rotate(-5deg); }
}

/* 背景パーティクル */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 650px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 30px 90px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin: 2rem;
    animation: containerFadeIn 0.6s ease;
}

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

/* ブランディングエリア（左側） */
.login-brand {
    background: linear-gradient(135deg, #52C9A8 0%, #3AA88F 50%, #2D9078 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* メッシュグラデーション背景 */
.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    animation: meshMove 30s linear infinite;
}

@keyframes meshMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.brand-content {
    position: relative;
    z-index: 2;
    color: white;
}

.brand-logo {
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.brand-logo img {
    max-width: 280px !important;
    height: auto;
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.brand-content > p {
    font-size: 1.0625rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 300;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: featureSlideIn 0.6s ease backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes featureSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* デコレーション円 */
.brand-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(2px);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    animation: circleFloat1 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -80px;
    animation: circleFloat2 10s ease-in-out infinite;
}

.circle-3 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 30%;
    animation: circleFloat3 6s ease-in-out infinite;
}

@keyframes circleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

@keyframes circleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.15); }
}

@keyframes circleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 15px) scale(0.9); }
}

/* ログインフォームエリア（右側） */
.login-form-container {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(240, 251, 247, 0.3) 0%, transparent 100%);
    overflow-y: auto;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: formFadeIn 0.8s ease 0.2s backwards;
}

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

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* フォーム */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label svg {
    color: var(--primary);
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:hover {
    border-color: var(--primary-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px var(--primary-pale),
        0 4px 12px rgba(82, 201, 168, 0.15);
    transform: translateY(-1px);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 8px;
}

.toggle-password:hover {
    color: var(--primary);
    background: var(--primary-pale);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 1px solid #EF9A9A;
    border-radius: 12px;
    color: var(--danger);
    font-size: 0.875rem;
    font-weight: 500;
    animation: errorShake 0.5s ease;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message svg {
    flex-shrink: 0;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(82, 201, 168, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-login:hover::before {
    transform: translateX(100%);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2D9078 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(82, 201, 168, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(82, 201, 168, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login:hover svg {
    transform: translateX(5px);
}

.login-footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-disabled);
    font-size: 0.8125rem;
}

/* LINE固定ボタン（フローティングアクションボタン） */
.line-fab {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.line-fab.active {
    display: flex;
}

.line-fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(6, 199, 85, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.line-fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(6, 199, 85, 0.5);
}

.line-fab-btn:active {
    transform: scale(0.95);
}

.line-fab-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.line-fab-btn span {
    display: none;
}

.line-fab-help {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    color: #06C755;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.line-fab-help:hover {
    transform: scale(1.1);
    background: #06C755;
    color: white;
}

.line-fab-help-icon {
    line-height: 1;
}

/* スマートフォンでのフローティングボタン位置調整 */
@media (max-width: 480px) {
    .line-fab {
        bottom: 1rem;
        right: 1rem;
    }

    .line-fab-btn {
        width: 52px;
        height: 52px;
    }

    .line-fab-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* レスポンシブ */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .login-brand {
        padding: 2rem;
        min-height: auto;
    }

    .brand-content {
        text-align: center;
    }

    .brand-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .brand-logo img {
        max-width: 220px !important;
    }

    .brand-content > p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .brand-features {
        display: none;
    }

    .decoration-circle {
        display: none;
    }

    .login-form-container {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        min-height: auto;
    }

    .login-brand {
        padding: 1.25rem 1rem;
    }

    .brand-logo img {
        max-width: 160px !important;
    }

    .brand-content > p {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .login-form-container {
        padding: 1.5rem 1.25rem;
    }

    .login-header {
        margin-bottom: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-form {
        gap: 1.25rem;
    }

    .login-footer {
        margin-top: 1.5rem;
    }

    .btn-login {
        padding: 1rem 1.5rem;
    }
}

/* ローディング状態 */
.btn-login.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-login.loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    margin-left: -11px;
    margin-top: -11px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* LINE Login Styles */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 1rem;
}

.btn-line {
    width: 100%;
    padding: 1rem;
    background: #06C755;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-line:hover {
    background: #05B04D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

.btn-line svg {
    fill: white;
}

.qr-code-section {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--primary-pale);
    border-radius: var(--radius);
}

.qr-code-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-code-container canvas,
.qr-code-container img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
}

.qr-link {
    font-size: 0.75rem;
    color: var(--primary);
    word-break: break-all;
    text-decoration: none;
}

.qr-link:hover {
    text-decoration: underline;
}

/* LINE説明セクション */
.line-description {
    margin-top: 1rem;
    text-align: left;
}

.line-description p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.help-link:hover {
    color: var(--primary-dark);
}

.help-link:hover .help-link-text {
    text-decoration: underline;
}

.help-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.help-link:hover .help-icon-circle {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.help-link-text {
    color: var(--primary);
}

/* LINE友だち追加リンク */
.line-friend-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #06C755;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.line-friend-link:hover {
    color: #05B04D;
    text-decoration: underline;
}

.line-friend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #06C755;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* モーダル（ポップアップ） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--border);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #F8FAF9;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.modal-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn:hover {
    background: var(--primary-dark);
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        max-height: 85vh;
    }

    .modal-content h3 {
        font-size: 1.125rem;
    }

    .help-step {
        padding: 0.875rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .step-content h4 {
        font-size: 0.875rem;
    }

    .step-content p {
        font-size: 0.75rem;
    }

    .line-description {
        padding: 0.875rem;
    }

    .line-description p {
        font-size: 0.75rem;
    }
}

/* ブラウザ互換性警告バナー */
.browser-warning-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: bannerSlideDown 0.4s ease;
}

@keyframes bannerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.browser-warning-banner .warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.browser-warning-banner .warning-text {
    display: inline;
    vertical-align: middle;
}

.browser-warning-banner .warning-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.browser-warning-banner .warning-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* バナー表示時のbody調整 */
body.has-warning-banner {
    padding-top: 50px;
}

@media (max-width: 480px) {
    .browser-warning-banner {
        font-size: 0.75rem;
        padding: 0.75rem 0.875rem;
        padding-right: 2.5rem;
    }

    .browser-warning-banner .warning-close {
        right: 0.5rem;
        width: 22px;
        height: 22px;
    }

    body.has-warning-banner {
        padding-top: 60px;
    }
}

/* メンテナンス画面 */
.maintenance-container {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.6s ease;
}

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

.maintenance-icon {
    margin-bottom: 2rem;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.maintenance-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maintenance-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.maintenance-notice {
    padding: 1.5rem;
    background: var(--primary-pale);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.maintenance-notice p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0.5rem 0;
}

.maintenance-notice p:first-child {
    margin-top: 0;
}

.maintenance-notice p:last-child {
    margin-bottom: 0;
}
