/* 全画面共通の基本設定 */
* {
	box-sizing: border-box;
	/* パディングを含めたサイズ計算にする */
}

body {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	margin: 0;
	/* ヘッダーを密着させるため一度0にする */
	padding: 0;
	color: #333;
	background-color: #f4f7f9;
	line-height: 1.6;
}

/* 各画面のメインコンテンツ部分の余白設定 */
h1,
.form-container,
.menu-container,
table {
	margin-left: 40px;
	margin-right: 40px;
}

h1 {
	margin-top: 30px;
	border-bottom: 2px solid #0056b3;
	padding-bottom: 10px;
	color: #0056b3;
}

/* ヘッダーナビゲーションのスタイル */
.navbar {
	background-color: #0056b3;
	/* 濃い青 */
	color: white;
	padding: 15px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-brand a {
	color: white;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 1px;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 25px;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: white;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	transition: opacity 0.2s;
}

.nav-links a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* 共通のボタン基本スタイル（色などは各画面用CSSで指定） */
.btn {
	display: inline-block;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s;
}

/* ユーザー情報エリアの調整 */
.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
	background: rgba(255, 255, 255, 0.1);
	padding: 5px 15px;
	border-radius: 20px;
}

.user-name {
	color: #ffeb3b;
	/* ユーザー名は少し目立つ黄色に */
	font-weight: bold;
}

.btn-logout {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: white;
	padding: 2px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.8rem;
	transition: all 0.2s;
}

.btn-logout:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: white;
}

/* プロジェクト別がすでに設定されているはずなので、それに合わせたスタイル */
.btn-project-sum {
	background-color: #a777e3;
	/* 紫系（既存の設定に合わせる） */
	color: white;
}

/* 追加：社員別工数ボタンのスタイル */
.btn-employee-sum {
	background-color: #20b2aa;
	/* 青緑系 */
	color: white;
}

/* ボタンが縦に並びすぎないよう、適宜調整 */
.button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}


/* 画面上部の戻るリンクの統一スタイル */
.back-nav {
    margin-bottom: 15px;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-return:hover {
    color: #007bff;
}

.btn-return::before {
    content: "←";
    margin-right: 6px;
}