/* リセットCSS & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #111827;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* コンテナ */
.container {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 640px;
        padding: 0 24px;
    }
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.main-title {
    margin-bottom: 16px;
}

.title-label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
}

.title-main {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.title-line1, .title-line2 {
    display: block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .title-line1, .title-line2 {
        font-size: 36px;
    }
}

.meeting-info {
    font-size: 14px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* リードセクション */
.lead-section {
    padding: 40px 0;
    background-color: #F9FAFB;
}

.lead-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #2563EB;
    font-size: 24px;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.lead-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-highlight-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 3px solid #F59E0B;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.lead-highlight-box h3 {
    font-size: 18px;
    color: #92400E;
    margin-bottom: 8px;
    font-weight: 600;
}

.lead-large {
    font-size: 24px;
    font-weight: 700;
    color: #DC2626;
    margin: 0;
}

@media (min-width: 768px) {
    .lead-large {
        font-size: 28px;
    }
}

.lead-points {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .lead-points {
        grid-template-columns: 1fr 1fr;
    }
}

.lead-point-item {
    background: #F3F4F6;
    border-radius: 8px;
    padding: 16px;
}

.lead-point-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lead-point-item h4 i {
    color: #2563EB;
    font-size: 18px;
}

.lead-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lead-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 16px;
    color: #374151;
}

.lead-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2563EB;
    font-size: 12px;
}

.lead-next {
    font-size: 18px;
    font-weight: 600;
    color: #EA580C;
    margin: 0;
}

.highlight {
    background: linear-gradient(transparent 60%, #FDE047 60%);
    font-weight: 500;
    padding: 0 2px;
}

.highlight-orange {
    background: linear-gradient(transparent 60%, #FED7AA 60%);
    font-weight: 500;
    padding: 0 2px;
}

/* 議題概要セクション */
.topic-section {
    padding: 20px 0;
}

.topic-card {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    background: #F3F4F6;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.card-header i {
    color: #2563EB;
    font-size: 20px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.card-content {
    padding: 20px;
}

.card-content p {
    color: #374151;
    line-height: 1.6;
}

/* 意見セクション */
.opinions-section {
    padding: 40px 0;
    background: #F9FAFB;
}

.section-title-center {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.section-title-center i {
    color: #2563EB;
    font-size: 24px;
}

.opinions-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .opinions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.opinion-card {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.opinion-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.opinion-header h3 {
    font-size: 18px;
}

.opinion-header i {
    font-size: 24px;
}

/* 賛成カード */
.opinion-card.agree .opinion-header {
    background: #DCFCE7;
    color: #059669;
}

.opinion-card.agree .opinion-header i {
    color: #059669;
}

/* 反対カード */
.opinion-card.disagree .opinion-header {
    background: #FEE2E2;
    color: #DC2626;
}

.opinion-card.disagree .opinion-header i {
    color: #DC2626;
}

/* 保留カード */
.opinion-card.pending .opinion-header {
    background: #FED7AA;
    color: #EA580C;
}

.opinion-card.pending .opinion-header i {
    color: #EA580C;
}

.opinion-content {
    padding: 20px;
}

.opinion-content p {
    color: #374151;
    line-height: 1.6;
}

.opinion-content ul {
    list-style: none;
    padding: 0;
}

.opinion-content ul li {
    color: #374151;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.opinion-content ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #EA580C;
    font-weight: bold;
}

/* 継続審議ボックス */
.pending-box {
    background: #FEF3C7;
    border: 2px dashed #F59E0B;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.pending-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-box h4 i {
    color: #F59E0B;
}

.pending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pending-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #78350F;
    font-size: 15px;
}

.pending-list li::before {
    content: '→';
    position: absolute;
    left: 8px;
    color: #F59E0B;
    font-weight: bold;
}

/* 次のステップセクション */
.next-step-section {
    padding: 40px 0;
}

.next-step-card {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    border: 2px solid #2563EB;
    border-radius: 12px;
    overflow: hidden;
}

.step-header {
    background: #2563EB;
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.step-header i {
    font-size: 24px;
}

.step-content {
    padding: 24px 20px;
    text-align: center;
}

.step-date {
    font-size: 24px;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 8px;
}

.step-description {
    color: #374151;
    font-size: 16px;
}

/* 論点の全体像セクション */
.reform-overview {
    padding: 40px 0;
    background: #F9FAFB;
}

.reform-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .reform-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.reform-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reform-header {
    padding: 20px;
    position: relative;
}

.reform-card.external .reform-header {
    background: linear-gradient(135deg, #DCFCE7 0%, #F0FDF4 100%);
    border-bottom: 3px solid #059669;
}

.reform-card.internal .reform-header {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    border-bottom: 3px solid #2563EB;
}

.reform-header i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.reform-card.external .reform-header i {
    color: #059669;
}

.reform-card.internal .reform-header i {
    color: #2563EB;
}

.reform-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.reform-subtitle {
    font-size: 14px;
    color: #6B7280;
    display: block;
}

.reform-content {
    padding: 16px;
}

@media (min-width: 768px) {
    .reform-content {
        padding: 20px;
    }
}

.reform-list {
    list-style: none;
    padding: 0;
}

.reform-list li {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reform-list li:last-child {
    border-bottom: none;
}

.reform-list li i {
    color: #6B7280;
    width: 20px;
    margin-right: 12px;
    display: inline-block;
}

.reform-list li span {
    font-weight: 500;
    color: #111827;
    display: block;
    margin-left: 32px;
}

.reform-list li small {
    font-size: 14px;
    color: #6B7280;
    display: block;
    margin-left: 32px;
    line-height: 1.4;
}

.highlight-text {
    color: #DC2626 !important;
    font-weight: 600 !important;
}

/* キーメッセージセクション */
.key-message-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.message-cards {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.message-card {
    text-align: center;
    padding: 32px 20px;
    background: #F9FAFB;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.message-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-icon i {
    font-size: 28px;
    color: #FFFFFF;
}

.message-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.message-card p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.5;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: #FFFFFF;
    padding: 60px 0;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FDE047 0%, #F59E0B 50%, #FDE047 100%);
}

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

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-title i {
    color: #FDE047;
    font-size: 28px;
}

.footer-lead {
    font-size: 16px;
    color: #E0E7FF;
    margin-bottom: 32px;
}

.next-meeting-reminder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    display: inline-block;
    font-size: 16px;
}

.next-meeting-reminder i {
    margin-right: 8px;
    color: #FDE047;
}

.next-meeting-reminder strong {
    color: #FDE047;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* スクロールバー のカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* アクセシビリティ: フォーカス表示 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
}

/* キーボードナビゲーション時のフォーカス強調 */
.keyboard-nav *:focus {
    outline: 3px solid #2563EB !important;
    outline-offset: 2px !important;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .highlight {
        background: #FDE047;
        color: #000000;
        font-weight: 700;
    }
    
    .highlight-orange {
        background: #FB923C;
        color: #000000;
        font-weight: 700;
    }
    
    .opinion-card.agree .opinion-header {
        background: #059669;
        color: #FFFFFF;
    }
    
    .opinion-card.disagree .opinion-header {
        background: #DC2626;
        color: #FFFFFF;
    }
    
    .opinion-card.pending .opinion-header {
        background: #EA580C;
        color: #FFFFFF;
    }
}

/* 視覚補助: アニメーション無効化オプション */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 色覚サポートモード */
.color-blind-mode .opinion-card.agree .opinion-header::after {
    content: "賛成";
    margin-left: 8px;
    font-size: 14px;
}

.color-blind-mode .opinion-card.disagree .opinion-header::after {
    content: "反対";
    margin-left: 8px;
    font-size: 14px;
}

.color-blind-mode .opinion-card.pending .opinion-header::after {
    content: "保留";
    margin-left: 8px;
    font-size: 14px;
}

/* 印刷用スタイル */
@media print {
    body {
        font-size: 12pt;
    }
    
    .header {
        background: none;
        color: #000000;
        border-bottom: 2px solid #000000;
    }
    
    .section-title i,
    .card-header i,
    .opinion-header i,
    .step-header i,
    .reform-header i,
    .message-icon {
        display: none;
    }
    
    .highlight,
    .highlight-orange {
        background: none;
        font-weight: bold;
        text-decoration: underline;
    }
}