body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; background-color: #fbfbf5; margin: 0; padding: 0; color: #524a42; }

.container { width: 96%; max-width: 1400px; margin: 0 auto;}
.container.full-width { width: 96%;max-width: 96%; }

/*■■■■■■■■■■■■ヘッダー*/

.top-ribbon { display: flex; justify-content: space-between; align-items: center; background-color: #da8522; color: #fff; padding: 0 30px; height: 65px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); margin-bottom: 30px; }

.header-left { display: flex; align-items: center; gap: 30px; }

.system-title { margin: 0; font-size: 1.3rem; font-weight: bold; color: #fff; letter-spacing: 0.5px; }
.system-title a { margin: 0; color: #fff; text-decoration: none; }

.current-service { background-color: rgba(255, 255, 255, 0.2); padding: 4px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; border: 1px solid rgba(255, 255, 255, 0.3); }

.header-right { display: flex; align-items: center; }

.font-size-selector { display: flex; align-items: center; gap: 5px; background-color: rgba(0,0,0,0.1); padding: 5px 15px; border-radius: 25px; }
.font-size-selector .label { font-size: 0.8rem; color: #ffe8d6; margin-right: 5px; }

.btn-font { background: rgba(255,255,255,0.2); border: none; color: #fff; padding: 4px 14px; cursor: pointer; border-radius: 15px; font-size: 0.85rem; transition: background 0.2s; }
.btn-font:hover { background: rgba(255,255,255,0.3); }
.btn-font.active { background: #fff; color: #c60; font-weight: bold; }

.user-utility { display: flex; align-items: center; gap: 10px; margin-right: 20px; }
.user-name { font-size: 0.85rem; color: #fff; }
.btn-logout { background: #f8f9fa; border: 1px solid #ddd; color: #d9534f; padding: 4px 10px; border-radius: 4px; text-decoration: none; font-size: 0.8rem; font-weight: bold; transition: 0.2s; }
.btn-logout:hover { background: #d9534f; color: #fff; border-color: #d43f3a; }

.header-right { display: flex; align-items: center; }

/*■■■■■■■■■■■■ヘッダー・ドロップダウンメニュー*/

.main-menu { display: flex; gap: 5px; height: 100%; align-items: center; }

.menu-parent { position: relative; height: 100%; }

.menu-item { color: #ffe8d6; text-decoration: none; padding: 0 15px; height: 65px; line-height: 65px; font-size: 0.95rem; transition: all 0.3s; display: block; white-space: nowrap; }
.menu-item:hover { background-color: rgba(0,0,0,0.1); color: #fff; }
.menu-item.active { background-color: rgba(0,0,0,0.2); color: #fff; font-weight: bold; }

/* ドロップダウン本体：初期状態は非表示 */
.dropdown-menu { position: absolute; top: 65px; left: 0; background-color: #fff; min-width: 180px; list-style: none; padding: 8px 0; margin: 0; box-shadow: 0 8px 16px rgba(0,0,0,0.15); border-radius: 0 0 4px 4px; display: none; z-index: 1000; border-top: 3px solid #da8522; }

/* 親をホバーしたら表示 */
.menu-parent:hover .dropdown-menu { display: block; }

.dropdown-menu li { border-bottom: 1px solid #f5f5f5; }
.dropdown-menu li:last-child { border-bottom: none; }

.dropdown-menu a { display: block; padding: 12px 20px; color: #524a42; text-decoration: none; font-size: 0.9rem; transition: background 0.2s; white-space: nowrap; }
.dropdown-menu a:hover { background-color: #fdfaf7; color: #da8522; }

/* 矢印（▾）の微調整 */
.menu-item::after { font-size: 0.7rem; margin-left: 4px; opacity: 0.7; }



/*■■■■■■■■■■■■フッター*/

.system-footer { margin-top: 50px;padding: 20px 0;background-color: #f0ede0;border-top: 1px solid #e0dcd0;text-align: center; }
.system-footer p { margin: 0;font-size: 0.8rem;color: #8a8076; }

/*■■■■■■■■■■■■文字サイズ可変設定（修正版）*/

/* htmlタグ（ルート）のサイズを変えることで、すべてのremを連動させる */
html.size-small { font-size: 13px !important; }
html.size-medium { font-size: 15px !important; }
html.size-large { font-size: 18px !important; }

/* 個別の要素で font-size: 14px; のように「px」で固定されている場所があれば、
   それらも「rem」に書き換えると、このボタン一つで完璧に連動します。
*/

/*■■■■■■■■■■■■ログイン*/

.login-container { width: 100%; max-width: 400px; padding: 20px; box-sizing: border-box; margin: 100px auto 0 auto;}

.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-top: 6px solid #da8522; }

.login-header { text-align: center; margin-bottom: 30px; }
.login-header .system-title { margin: 0; font-size: 1.5rem; color: #da8522; font-weight: bold; }
.login-header .sub-title { margin: 10px 0 0; font-size: 0.9rem; color: #8a8076; }

.login-form .input-group { margin-bottom: 20px; }
.login-form label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: bold; color: #443e38; }
.login-form input { width: 100%; padding: 12px; border: 1px solid #ead0bc; border-radius: 6px; box-sizing: border-box; font-size: 1rem; background-color: #fafafa; transition: border-color 0.2s; }
.login-form input:focus { outline: none; border-color: #da8522; background-color: #fff; }

.btn-login { width: 100%; padding: 14px; background-color: #da8522; color: #fff; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.2s; margin-top: 10px; }
.btn-login:hover { background-color: #c6761d; }

.login-footer { text-align: center; margin-top: 30px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.login-footer p { margin: 0; font-size: 0.75rem; color: #b0a8a0; }




/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/


/*■■■■■■■■■■■■設定画面レイアウト*/

.settings-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; align-items: start; }

.settings-col { display: flex; flex-direction: column; gap: 20px; }

.settings-section { background: #fff; padding: 20px; border-radius: 4px;box-shadow: 0 2px 10px rgba(0,0,0,0.1); border: #eee 1px solid;border-left: 5px solid #da8522; }
.settings-section h3 { margin: 0 0 15px 0; font-size: 1.2rem; color: #8e583e; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.settings-section label { display: block; font-size: 0.8rem; font-weight: bold; color: #8a8076; margin-bottom: 4px; margin-top: 12px; }
.settings-section label:first-child { margin-top: 0; }

.settings-section input[type="text"], .settings-section input[type="number"], .settings-section textarea { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 6px 10px; box-sizing: border-box; font-size: 1.1rem; line-height: 120%;}

.stk-hbox-space { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stk-hbox-space span { font-size: 1rem; color: #524a42; }
.unit-input { display: flex; align-items: center; gap: 5px; width: 100px; font-size: 1.1rem; }
.unit-input input { text-align: right; padding: 4px 6px; font-size: 1.2rem;}

.mt-20 { margin-top: 20px; }


/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/


/*■■■■■■■■■■■■ユーザー登録*/

.stk-input-name { width: 100%; border: 1px solid #ccc; padding: 4px; border-radius: 4px; }
.btn-delete-user { background: none; border: none; color: #d9534f; font-weight: bold; cursor: pointer; font-size: 1.2rem; }

.new-entry-row td { background-color: #f9f9f9; padding-top: 15px; border-top: 2px solid #eee; }


/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/


/*■■■■■■■■■■■■初期残高設定*/

.admin-note { font-size: 0.85rem; color: #c04a40; background: #fff5f5; padding: 10px; border-radius: 4px; border-left: 4px solid #c04a40; margin-bottom: 15px; }

.header-controls-area { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; margin-bottom: 20px; }

.filter-bar { display: flex; gap: 10px; align-items: center; padding: 15px; background: #f9f9f9; border-radius: 6px; border: 1px solid #eee; margin: 0; }

.bulk-update-panel { display: flex; align-items: center; gap: 10px;margin-bottom: 30px;}
.bulk-update-panel label { font-weight: bold; color: #b05e2f; font-size: 0.9rem; }

.stk-input-price { width: 140px; text-align: right; font-weight: bold; font-family: "Verdana", sans-serif; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.stk-input-date { padding: 8px; border: 1px solid #ccc; border-radius: 4px; color: #555; }

.btn-batch-exec { background-color: #da8522; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-batch-exec:hover { background-color: #c6761d; transform: translateY(-1px); }

.save-status { font-size: 0.75rem; font-weight: bold; }

.maintenance-guide { margin-top: 50px; padding: 25px; background-color: #fff; border: 2px dashed #eee; border-radius: 10px; }
.maintenance-guide h3 { color: #5a32a3; font-size: 1.1rem; margin-top: 0; display: flex; align-items: center; gap: 8px; }

.guide-steps { margin: 15px 0; line-height: 1.8; color: #444; }
.guide-steps li { margin-bottom: 10px; }
.guide-steps strong { color: #d9534f; }

.guide-note { margin: 20px 0 0 0; padding: 15px; background-color: #fdf7f7; border-left: 5px solid #d9534f; font-size: 0.9rem; color: #721c24; }