* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    background-color: #232f3e;
    padding: 24px 32px;
    border-bottom: 3px solid #ff9900;
}

#pageTitle {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 48px 32px;
}

/* お知らせボタンセクション */
.notice-button-section {
    margin-bottom: 16px;
}

.notice-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notice-toggle-btn:hover {
    background-color: #0052a3;
}

.notice-icon {
    font-size: 18px;
}

.notice-badge {
    background-color: #ff3333;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notice-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.notice-arrow.open {
    transform: rotate(180deg);
}

/* お知らせプレビュー */
.notice-preview {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.notice-preview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff3333 0%, #ff6666 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
    }
}

.notice-preview-date {
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
}

.notice-preview-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

/* お知らせ内容 */
.notice-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 24px;
}

.notice-content.show {
    max-height: 2000px;
}

.notice-item {
    background-color: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.notice-item[data-is-new="true"] {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-left-color: #ff9900;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.notice-date {
    font-size: 12px;
    font-weight: 600;
    color: #0066cc;
}

.notice-item[data-is-new="true"] .notice-date {
    color: #ff9900;
}

.notice-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.notice-text strong {
    color: #d32f2f;
    font-weight: 700;
}

#langLabel,
#connLabel {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-section {
    margin-bottom: 48px;
}

.language-toggle {
    display: flex;
    gap: 16px;
}

.toggle-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    border-color: #ff9900;
    background-color: #fff9f0;
}

.toggle-btn.active {
    background-color: #ff9900;
    border-color: #ff9900;
    color: #fff;
    font-weight: 600;
}

.connection-section {
    margin-bottom: 32px;
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.connection-btn {
    padding: 32px 24px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.connection-btn:hover {
    border-color: #ff9900;
    background-color: #fff9f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.connection-btn:active {
    transform: translateY(0);
}

.connection-btn.disabled {
    background-color: #e8e8e8;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 1;
}

.connection-btn.disabled:hover {
    background-color: #e8e8e8;
    border-color: #cccccc;
    transform: none;
    box-shadow: none;
}

.connection-btn.disabled .btn-label {
    color: #888888;
}

.connection-btn.disabled .btn-description {
    color: #999999;
}

.btn-label {
    font-size: 18px;
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 8px;
}

.btn-description {
    font-size: 13px;
    color: #666;
}

.footer {
    padding: 20px 32px;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        box-shadow: none;
    }

    .header {
        padding: 20px 16px;
    }

    #pageTitle {
        font-size: 20px;
    }

    .main-content {
        padding: 32px 16px;
    }

    .language-toggle {
        flex-direction: column;
    }

    .connection-grid {
        grid-template-columns: 1fr;
    }

    .toggle-btn,
    .connection-btn {
        padding: 20px 16px;
    }

    .notice-toggle-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .notice-text,
    .notice-preview-text {
        font-size: 13px;
    }

    .notice-preview {
        padding: 12px 16px;
    }
}