/* ============================================
   スタッフポータル 統合CSS
   ニコニコガイドサービス
   （旧 staff-portal.css / staff-opinions.css を統合）
   ============================================ */

:root {
	--primary:     #F5D547;
	--accent:      #6DB81C;
	--text:        #003366;
	--bg:          #FBF6E8;
	--white:       #FFFFFF;
	--border:      #E0E0E0;
	--gray-border: #E0E0E0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Noto Sans JP', sans-serif;
	color: var(--text);
	line-height: 1.8;
	background: var(--bg);
}

/* ============================================
   ログイン
   ============================================ */

.login-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #FBF6E8 0%, #F5EBD8 100%);
}

.login-box {
	background: var(--white);
	padding: 50px 40px;
	border-radius: 12px;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.login-box h1  { font-size: 24px; text-align: center; margin-bottom: 10px; }
.login-desc    { font-size: 16px; color: #666; text-align: center; margin-bottom: 30px; }

.login-error {
	background: #FFF0F0;
	border: 1px solid #FFCCCC;
	color: #CC0000;
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 20px;
	text-align: center;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input {
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-family: inherit;
}

.btn-primary {
	width: 100%;
	padding: 16px;
	background: var(--accent);
	color: var(--white);
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .3s;
}
.btn-primary:hover { background: #5A9A16; }

.login-notice {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid var(--border);
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* ============================================
   ヘッダー（ポータル・意見一覧 共通）
   ============================================ */

.portal-header {
	background: linear-gradient(135deg, var(--accent) 0%, #5A9A16 100%);
	color: var(--white);
	padding: 30px 20px;
}

.portal-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.portal-header h1 { font-size: 22px; }
.portal-header p  { font-size: 14px; opacity: .9; margin-top: 3px; }

.header-buttons { display: flex; gap: 10px; }

.btn-hiyari {
	background: #FFD700;
	color: #333;
	padding: 10px 20px;
	border-radius: 6px;
	border: 1px solid #FFC700;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background .3s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.btn-hiyari:hover { background: #FFC700; }
.btn-hiyari svg   { width: 14px; height: 14px; fill: #333; flex-shrink: 0; }

.btn-logout,
.btn-home,
.btn-back {
	background: rgba(255, 255, 255, .2);
	color: var(--white);
	padding: 10px 20px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, .3);
	cursor: pointer;
	font-size: 14px;
	transition: background .3s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.btn-logout:hover,
.btn-home:hover,
.btn-back:hover { background: rgba(255, 255, 255, .3); }

/* ============================================
   ポータル本体
   ============================================ */

.portal-content { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.portal-grid    { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

/* カード共通 */
.portal-card {
	background: var(--white);
	border-radius: 10px;
	border: 1px solid var(--border);
	overflow: hidden;
	margin-bottom: 25px;
}
.portal-card-header {
	background: #F8F8F8;
	padding: 18px 22px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 10px;
}
.portal-card-header h2 {
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.portal-card-header .icon,
.portal-card-header h2 .icon { width: 22px; height: 22px; fill: var(--accent); flex-shrink: 0; }
.portal-card-body      { padding: 20px 22px; }

/* ドキュメントアイテム（メインカラム） */
.document-item {
	border: 1px solid #F0F0F0;
	border-radius: 8px;
	margin-bottom: 15px;
	overflow: hidden;
	transition: box-shadow .3s;
}
.document-item:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

.document-header {
	display: flex;
	align-items: center;
	padding: 16px;
	background: #FAFAFA;
	transition: background .3s;
}
.document-header:hover { background: #F5F5F5; }

.document-icon {
	width: 42px;
	height: 42px;
	background: #FFF3E0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 14px;
	flex-shrink: 0;
}
.document-icon svg { width: 20px; height: 20px; fill: #FF9800; }

.document-info    { flex: 1; }
.document-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.document-info p  { font-size: 13px; color: #999; }

.document-actions { display: flex; align-items: center; gap: 10px; }

.document-download {
	background: var(--accent);
	color: var(--white);
	padding: 8px 14px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: background .3s;
}
.document-download:hover { background: #5A9A16; }

.view-opinions-link {
	border: 1px solid var(--accent);
	color: var(--accent);
	padding: 8px 14px;
	border-radius: 5px;
	font-size: 13px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all .3s;
}
.view-opinions-link:hover { background: var(--accent); color: var(--white); }

/* 緊急連絡先 */
.emergency-tel  { font-size: 18px; color: var(--accent); font-weight: 700; margin: 8px 0 15px; }
.emergency-info { font-size: 13px; color: #666; line-height: 1.8; }

/* 各種様式（サイドバー） */
.sidebar-document-download {
	background: var(--accent);
	color: #FFF;
	padding: 8px 14px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: background .3s;
	white-space: nowrap;
	flex-shrink: 0;
}
.sidebar-document-download:hover { background: #5A9A16; }

.sidebar-document-item {
	border: 1px solid #F0F0F0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 15px;
	background: #FAFAFA;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.sidebar-document-info    { flex: 1; }
.sidebar-document-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sidebar-document-info p  { font-size: 12px; color: #999; line-height: 1.5; }

/* ============================================
   意見一覧ページ
   ============================================ */

.opinions-page-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 30px 20px 60px;
}

.document-info-bar {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.document-info-bar-icon {
	width: 48px;
	height: 48px;
	background: #FFF3E0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.document-info-bar-icon svg { width: 24px; height: 24px; fill: #FF9800; }
.document-info-bar-text h2  { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.document-info-bar-text p   { font-size: 13px; color: #999; }

.opinion-card {
	background: var(--white);
	border: 1px solid #F0F0F0;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 14px;
	transition: box-shadow .3s;
}
.opinion-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }

.opinion-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.opinion-card-number {
	background: #F5F5F5;
	color: #999;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 12px;
}
.opinion-card-date { font-size: 13px; color: #999; }
.opinion-card-text { font-size: 15px; line-height: 1.9; color: var(--text); }

/* コメントフォーム調整 */
.opinions-page-content form textarea {
	width: 100%;
	height: 120px;
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 1rem;
	font-size: 14px;
	font-family: inherit;
}
.opinions-page-content form p.form-submit { margin-top: 1rem; }
.opinions-page-content form input[type="submit"] {
	background: var(--accent);
	color: var(--white);
	padding: 10px 28px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: background .3s;
}
.opinions-page-content form input[type="submit"]:hover { background: #5A9A16; }

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 900px) {
	.portal-grid      { grid-template-columns: 1fr; }
	.document-header  { flex-wrap: wrap; gap: 12px; }
	.document-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 600px) {
	.document-info-bar { flex-direction: column; text-align: center; }
	.opinion-card      { padding: 16px 18px; }
	.opinion-card-text { font-size: 14px; }
}
