/* ベースリセット */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #202124;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* メニュー開閉用 */
#menu-toggle {
    display: none;
}
#menu-toggle:checked ~ .main-container .sidebar {
    margin-left: -256px;
}

/* トップバー */
.top-bar {
    background-color: #ffffff;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    z-index: 100;
    position: relative;
}
.hamburger-label {
    font-size: 24px;
    margin-right: 20px;
    cursor: pointer;
    color: #5f6368;
    user-select: none;
    padding: 5px;
}
.logo-area {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.logo-text {
    font-size: 20px;
    color: #5f6368;
    white-space: nowrap;
}
.user-area {
    margin-left: auto;
}
.circle-icon {
    width: 32px;
    height: 32px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* レイアウト */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* サイドバー */
.sidebar {
    width: 256px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    padding-top: 10px;
    transition: margin-left 0.3s ease;
    margin-left: 0;
    flex-shrink: 0;
}
.sidebar ul {
    list-style: none;
}
.sidebar li {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.sidebar li:hover {
    background-color: #f1f3f4;
}
.sidebar li.active {
    background-color: #e8f0fe;
    color: #1967d2;
    font-weight: bold;
}
.sidebar li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    align-items: center;
}
.sidebar .icon {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}
.sidebar .separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}
.sidebar .menu-label {
    font-size: 12px;
    color: #5f6368;
    padding: 10px 20px 5px;
    pointer-events: none;
}

/* コンテンツエリア */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background-color: #f8f9fa;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h1 {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
}
.btn {
    background-color: #fff;
    border: 1px solid #dadce0;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #1a73e8;
    cursor: pointer;
}

/* 詳細ページ用コンテンツボックス */
.content-box {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    max-width: 900px;
    margin-bottom: 20px;
}
.content-box h2 {
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #1a73e8;
}
.content-box h3 {
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
}
.content-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}
.content-box ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #444;
}
.content-box li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* グリッド・カード（index用） */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
@media (min-width: 1000px) {
    .double-width {
        grid-column: span 2;
    }
}
.widget-card {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.widget-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}
.dots {
    color: #5f6368;
    cursor: pointer;
}
.widget-body {
    padding: 10px 20px 20px;
    flex-grow: 1;
    font-size: 14px;
}
.widget-body h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
}
.widget-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f3f4;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}
.widget-footer a {
    text-decoration: none;
    color: #3367d6;
    font-size: 13px;
    font-weight: 500;
}
.widget-footer a:hover {
    text-decoration: underline;
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}
.status-badge.open {
    background-color: #e6f4ea;
    color: #137333;
}
.status-badge.closed {
    background-color: #fce8e6;
    color: #c5221f;
}

/* テーブル・タグ・リスト */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.simple-table th, .simple-table td {
    border-bottom: 1px solid #f1f3f4;
    padding: 10px 5px;
    text-align: left;
    font-size: 14px;
}
.simple-table th {
    color: #5f6368;
    font-weight: 500;
}
.link-list {
    list-style: none;
}
.link-list li {
    margin-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 4px;
}
.link-list a {
    text-decoration: none;
    color: #3367d6;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background-color: #f1f3f4;
    color: #333;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
}
.stock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.stock-item {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
}
.stock-item strong {
    color: #1a73e8;
    display: block;
    margin-bottom: 5px;
}

/* アウトラインと画像の横並びレイアウト */
.outline-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.outline-texts {
    flex: 1;
    min-width: 300px;
}
.outline-texts .content-box {
    max-width: none;
    margin-bottom: 20px;
}
.outline-image {
    flex-shrink: 0;
}
.outline-image img {
    border-radius: 8px;
    border: 1px solid #dadce0;
    max-width: 100%;
    height: auto;
}

/* 機材一覧用カードグリッド */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.machine-card {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.machine-card h3 {
    font-size: 16px;
    color: #1a73e8;
    margin-top: 0;
    margin-bottom: 12px;
    border: none;
}
.machine-image-placeholder {
    width: 100%;
    height: 150px;
    background-color: #f1f3f4;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}
.machine-card img {
    width: 100%;       
    height: auto;      
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid #eee;
}
.machine-card p {
    font-size: 14px;
    color: #444;
    margin-bottom: 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* =========================================
   利用ルール (index.html 手書き記号対応)
   ========================================= */
.rule-section {
    margin-bottom: 25px;
}

/* 見出し（〇）のスタイル */
.rule-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 15px; /* 上部の余白を追加 */
    color: #333;
}
.rule-section:first-child h3 {
    margin-top: 0; /* 最初だけ余白を消す */
}

/* ブラウザ標準のリストスタイルを無効化し、手書きの「・」を活かす */
.rule-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.rule-section li {
    list-style: none; /* デフォルトの黒丸を消す */
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 6px;
    padding-left: 0;
}

/* ルール強調用の赤字・下線 */
.highlight-red {
    color: #d93025;
    text-decoration: underline;
    font-weight: bold;
}