/* --- 共通設定 --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    /* Windows 2000 デフォルトの青色 */
    background-color: #3A6EA5;
    font-family: "MS UI Gothic", "Tahoma", sans-serif;
    font-size: 12px;
    color: #000;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

a { color: #000080; text-decoration: none; }
a:hover { text-decoration: underline; color: #FF0000; }
a:visited { color: #800080; }

/* --- 言語切り替え用 --- */
.lang-en { display: none; }
.lang-jp { display: block; }
body.english-mode .lang-en { display: block; }
body.english-mode .lang-jp { display: none; }

/* --- レイアウトコンテナ --- */
.container {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 980px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* --- Win2000 ウィンドウ --- */
.win2k-window {
    background-color: #D4D0C8;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: 1px 1px 0 #000;
    padding: 2px;
    margin-bottom: 15px;
    width: 100%;
}

.title-bar {
    background: linear-gradient(to right, #0A246A, #A6CAF0);
    color: #fff;
    padding: 2px 5px;
    font-weight: bold;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 18px;
}

.win-buttons span {
    display: inline-block;
    width: 16px;
    height: 14px;
    background-color: #D4D0C8;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    text-align: center;
    line-height: 12px;
    color: #000;
    font-size: 10px;
    margin-left: 2px;
    cursor: pointer;
}

.window-body {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background-color: #fff;
    padding: 10px;
    margin-top: 2px;
    word-wrap: break-word;
}

/* --- カラム設定 --- */
.col-left { width: 180px; flex-shrink: 0; }
.col-main { flex: 1; min-width: 0; }
.col-right { width: 220px; flex-shrink: 0; }

/* --- メニューバー --- */
.toolbar-area {
    padding: 2px;
    border-bottom: 1px solid #808080;
    margin-bottom: 5px;
    font-size: 11px;
    position: relative;
    z-index: 100;
}

.menu-bar {
    display: flex;
    gap: 10px;
    padding-left: 5px;
    user-select: none;
    cursor: default;
    flex-wrap: wrap;
}

.menu-item {
    padding: 1px 5px;
    position: relative;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: #0A246A;
    color: #fff;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #D4D0C8;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 200;
    color: #000;
    padding: 2px;
}

.dropdown div {
    padding: 5px 10px;
    cursor: pointer;
}

.dropdown div:hover {
    background-color: #0A246A;
    color: #fff;
}

.dropdown hr {
    border: 0;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #808080;
    margin: 3px 0;
}

.show-menu { display: block; }

/* --- iframe装飾 --- */
iframe.custom-frame {
    width: 100%;
    border: 2px solid;
    border-color: #404040 #fff #fff #404040;
    background: #fff;
    display: block;
}

iframe.sidebar-frame {
    width: 100%;
    height: 1200px;
    border: none;
    background-color: transparent;
    display: block;
}