﻿body {
    background-color: #f4f6f9;
    font-family: "Segoe UI", "Yu Gothic", sans-serif;
}

.page-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    padding: 16px 32px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ロゴとメニューを左側に寄せて並べるエリア */
.logo-section {
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    background-color: #fff;
    /* ここを修正：menu-areaではなくlogo-section全体に実線を引く */
    border-bottom: 1px solid #000;
    margin-bottom: 30px;
}

.logo-image {
    max-height: 80px;
    width: auto;
}

/* メニューエリアのスタイル（border-bottomを削除） */
.menu-area {
    display: flex;
    gap: 30px;
    /*border-bottom-style: solid;*/
}

.menu-item {
    text-decoration: none;
    color: #495057;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

    .menu-item:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

.page-header__title {
    flex: 1;
}

.page-header__stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.company-block {
    text-align: left;
    white-space: nowrap;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

.company-name-en {
    font-size: 2rem;
    font-weight: 600;
    color: #FFFFFF;
}

.stat-box-left,
.stat-box-right {
    width: 150px;
    min-width: 128px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 3px 5px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

    .stat-box-left small,
    .stat-box-right small {
        display: block;
        white-space: normal;
    }

.main-container {
    display: flex;
    gap: 24px;
}

/* サイドバーの幅を90pxに縮小 */
.sidebar {
    flex: 0 0 180px;
    margin-top: 19px;
}

.port-button {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

    .port-button:hover {
        background-color: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

    .port-button.active {
        background-color: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

.content {
    flex: 1;
}

.search-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

    .search-card .card-body {
        padding: 24px;
    }

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

.btn-search {
    background-color: #0d6efd;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
}

    .btn-search:hover {
        background-color: #0a58ca;
    }

.result-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.table thead {
    background-color: #eef2f7;
}

    .table thead th {
        border: none;
        font-size: 0.82rem;
        color: #495057;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        padding: 12px 16px;
    }

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.92rem;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.badge-atd {
    background-color: #198754;
}

.badge-etd {
    background-color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #adb5bd;
}

/* 更新日情報エリア（ヒット件数：左端、更新日：右端に配置） */
.update-info {
    display: flex;
    justify-content: space-between; /* 左端と右端に振り分ける */
    align-items: center;
    padding: 8px 0;
    margin-bottom: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.gridview-container {
    height: 420px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

    .gridview-container table {
        width: 100%;
        border-collapse: collapse;
    }

.table-fixed thead {
    position: sticky;
    top: 0;
    background-color: #eef2f7;
    z-index: 100;
}

    .table-fixed thead th {
        border: none;
        font-size: 0.82rem;
        color: #495057;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        padding: 12px 16px;
        font-weight: 600;
        background-color: #eef2f7;
    }

.table-fixed tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.92rem;
    border-bottom: 1px solid #dee2e6;
}

.table-fixed tbody tr:hover {
    background-color: #f8fafc;
}

/* 脚注エリアのスタイル */
.footnote-area {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: 8px;
}

/* 追加：警告エリア（赤い四角）のスタイル */
.warning-area {
    margin-top: 12px;
    padding: 15px;
    background-color: #fff5f5; /* 薄い赤 */
    border-left: 5px solid #dc3545; /* 濃い赤の左線 */
    border-radius: 4px;
    /*color: #dc3545;*/
    /*font-weight: bold;*/
    font-size: 0.9rem;
}
