﻿/* ベーススタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.step-title-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 30px; /* ステップ2のフォームパネルより少し控えめに */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* 他のパネルと合わせる */
    margin-bottom: 20px; /* 下に余白 */
    text-align: center;
}
.step-title-panel h3 {
    margin: 0; /* h3のデフォルトマージンをリセット */
    font-size: 22px; /* ステップ2と揃える */
    color: #1a3168;
}
h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #1a3168;
}

#content {
    display: flex;
    gap: 20px;
}

#selected-list, #left-panel, #right-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#selected-list {
    margin-bottom: 20px;
}

#left-panel, #right-panel {
    width: 50%;
    height: 75vh;
    display: flex;
    flex-direction: column;
}

#selected-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#selected-list ul li {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

#export-button, #search-controls button {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    color: #fff;
    background-color: #008ca5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#export-button:hover, #search-controls button:hover {
    background-color: #006c82;
}
#search-controls button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* 検索バー */
#search-controls {
    margin-bottom: 20px;
}

#search-bar {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#search-controls button {
    margin-right: 5px;
}

/* 分類リスト共通 */
#category-tree, #small-list-container {
    flex: 1;
    overflow-y: auto;
}

.large-category, .medium-category, .small-list {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.large-category {
    font-weight: bold;
    background-color: #f8f9fa;
}

.medium-category {
    margin-left: 20px;
    font-size: 13px;
}

.large-category:hover, .medium-category:hover, .small-list:hover {
    background-color: #e9ecef;
}

.small-list {
    border: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
}

span, .small-list span {
    vertical-align: middle;
}

.guidance-message {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 14px;
}

/* スクロールスタイル */
#category-tree, #small-list-container {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}
#category-tree::-webkit-scrollbar, #small-list-container::-webkit-scrollbar {
    width: 8px;
}
#category-tree::-webkit-scrollbar-thumb, #small-list-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* --- ヘッダースタイル --- */
header {
    background-color: #1a3168;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}
.logo-title h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: normal;
}
.member-badge {
    background-color: #fff;
    color: #1a3168;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

/* 新ステップナビゲーション */
.process-steps ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.process-steps li {
    position: relative;
    text-align: center;
}
.process-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}
.process-steps a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    background-color: #1a3168;
}
.step-circle {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: bold;
    transition: all 0.3s;
}
.step-label {
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s;
}
.process-steps a:hover .step-circle, .process-steps a:hover .step-label {
    border-color: #fff;
    opacity: 1;
}
.process-steps li.active .step-circle {
    border-color: #008ca5;
    background-color: #008ca5;
}
.process-steps li.active .step-label {
    opacity: 1;
    font-weight: bold;
}
.process-steps li.active ~ li::after {
    background-color: rgba(255, 255, 255, 0.3); /* アクティブ以降も薄い色に */
}
.process-steps li.active::after {
    background-color: #008ca5; /* アクティブなステップの線 */
}


.manual-link a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 18px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}
.manual-link a:hover {
    background-color: #fff;
    color: #1a3168;
}

/* --- フッタースタイル --- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #888;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 960px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    .process-steps { order: 2; }
    .manual-link { order: 3; }
}

@media (max-width: 768px) {
    .logo-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .logo-title h2 {
        font-size: 14px;
    }
    body {
        padding-bottom: 60vh;
    }
    .main-container {
        padding: 10px;
    }
    .step-title-panel {
        padding: 15px; /* スマホ用にパディング調整 */
        margin-bottom: 15px;
    }
    .step-title-panel h3 {
        font-size: 18px; /* スマホ用にフォントサイズ調整 */
    }
    #content {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        padding: 3px; /* パネル間の余白を詰めるため縮小 */
        background-color: #f0f2f5;
        z-index: 100;
        border-top: 1px solid #ddd;
        box-sizing: border-box;
        gap: 2px; /* パネル間の余白を縮小 */
    }
    #left-panel, #right-panel {
        width: 50%;
        height: 100%;
        padding: 6px; /* パネル内の余白を縮小 */
        box-sizing: border-box;
    }
    #left-panel h3, #right-panel h3 {
        font-size: 14px;
    }
    .large-category, .medium-category, .small-list {
        padding: 8px;
        font-size: 12px;
    }
    .medium-category {
        margin-left: 5px; /* インデントを縮小 */
        font-size: 11px;
    }
    #search-controls button {
        padding: 4px 6px; /* ボタンサイズを縮小 */
        margin: 1% 0;
        font-size: 10px;
    }
    #search-bar {
        padding: 6px;
    }
    footer {
        display: none;
    }
}