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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.page-description {
    color: #666;
    font-size: 1rem;
}

/* ========================================
   公告カード
   ======================================== */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.announcement-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

.announcement-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.announcement-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-category {
    background-color: #2563eb;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.announcement-content {
    color: #444;
    line-height: 1.8;
}

.announcement-content > p {
    margin-bottom: 1.5rem;
}

/* ========================================
   財務諸表
   ======================================== */
.financial-statement {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 6px;
}

.financial-statement h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.financial-statement h4:first-child {
    margin-top: 0;
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.financial-table th,
.financial-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.financial-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #1a1a1a;
}

.financial-table td.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.financial-table .total-row {
    background-color: #f3f4f6;
    font-weight: 600;
    border-top: 2px solid #2563eb;
}

.financial-table .subtotal-row {
    background-color: #f9fafb;
    font-weight: 600;
}

.financial-table tr:last-child td {
    border-bottom: none;
}

/* ========================================
   公告なし表示
   ======================================== */
.no-announcements {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-company-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: #b3b3b3;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .content-container {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .announcement-card {
        padding: 1.5rem;
    }

    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .announcement-title {
        font-size: 1.2rem;
    }

    .financial-table {
        font-size: 0.9rem;
    }

    .financial-table th,
    .financial-table td {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    .financial-table {
        font-size: 0.85rem;
    }

    .financial-table th,
    .financial-table td {
        padding: 0.4rem 0.5rem;
    }
}

/* ========================================
   印刷用スタイル
   ======================================== */
@media print {
    .header-nav,
    .footer {
        display: none;
    }

    .content-container {
        box-shadow: none;
    }

    .announcement-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .financial-table {
        page-break-inside: avoid;
    }
}
