@charset "utf-8";

/* 全体の基本設定 */
*, *::before, *::after {
    box-sizing: border-box; 
}
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 大項目のタブ（横並び） */
.main-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}
.main-tab-btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: #eee;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.main-tab-btn.active {
    background-color: #0056b3;
    color: #fff;
}
.main-tab-btn:hover:not(.active) {
    background-color: #ddd;
}

/* キーワード検索バーの設定 */
.search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.search-box {
    position: relative; /* 検索結果ドロップダウンの基準位置 */
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.search-input {
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
    width: 250px; /* 入力スペースの長さを維持 */
}

/* 検索結果のドロップダウン表示 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.search-results.active {
    display: block;
}
.search-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #f1f8ff;
}
.search-result-title {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 3px;
}
.search-result-parent {
    font-size: 11px;
    color: #666;
}

/* 大項目のコンテンツエリア */
.main-content {
    display: none;
}
.main-content.active {
    display: block;
}

/* 左右分割レイアウト（左：説明文、右：メニューアイコン） */
.split-layout {
    display: flex;
    gap: 30px;
}
/* 左側：説明文エリア */
.left-content {
    flex: 1;
    padding: 20px;
    background-color: #f1f8ff;
    border-radius: 8px;
    border: 1px solid #cce5ff;
    overflow-wrap: break-word; 
}
/* 右側：サブメニューエリア */
.right-menu {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* サブコンテンツの表示切り替え */
.sub-content {
    display: none;
}
.sub-content.active {
    display: block;
}

/* 右側のアイコン風ボタン */
.sub-tab-btn {
    padding: 15px 10px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    border: 2px solid #0056b3;
    color: #0056b3;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.sub-tab-btn.active {
    background-color: #0056b3;
    color: #fff;
}
.sub-tab-btn:hover:not(.active) {
    background-color: #e6f0fa;
}

h3 {
    margin-top: 0;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-left: 4px solid #0056b3;
    padding-left: 10px;
    font-size: 1.1em;
    color: #0056b3;
}

.info-flex-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}
.info-flex-row .text-block {
    flex: 1;
}
.info-flex-row .img-block-60 {
    width: 60%;
    flex-shrink: 0;
}
.info-flex-row .img-block-40 {
    width: 40%;
    flex-shrink: 0;
}

.spacer {
    margin-top: 40px;
}
