@charset "utf-8";

/* =============================================================================
 * /css/dashboard.css：スタートページ専用スタイル（ダーク基調カードUI）
 *  - reset.css / common.css をインポート（サイト管理システム流用）
 *  - 右スライドメニュー／モーダル／メール設定フォーム対応
 *  - インデントはタブ
 *  - em, rem を使用する箇所は直下に px 換算コメントを併記
 *  -
 *  - （この行は保持しておいて下さい）
 *  - 2025-08-28 20:00 初版
 *  - 2025-08-29 04:40 font-sizeの調整
 *  - 2025-08-29 04:58 修正：
 *      ・menu.php 用ヘッダー/ナビのスタイルを追加
 *      ・.side-panel__header h3 の font-size の表記ミス（1,8rem → 1.8rem）を修正
 * ========================================================================== */

@import url("reset.css");
@import url("common.css");

/* ----------------------------------------
   ベース
---------------------------------------- */
body {
	font-family: "Noto Sans JP", sans-serif;
	background-color: #1e1e1e;
	color: #f5f5f5;
	margin: 0;
	padding: 0;
}

main, footer, header, section, details, figure,
div, p,
table, th, td, dl, dt, dd, nav, ul, ol, li, label,
textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], button
{ box-sizing: border-box; }

code, pre, small, a { font-size: inherit; }
code, pre { color: #C93; }

.container {
	max-width: 1200px;
	margin: 20px auto;
	padding: 10px 0;
}

/* ----------------------------------------
   共通ヘッダー（/system/menu.php 用）
---------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #222;
	border-bottom: 1px solid #333;
}

.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.site-brand a {
	display: inline-block;
	font-size: 130%;
	/* 約28.8px */
	color: #fff;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 6px;
	background: #2b2b2b;
}

.site-brand a:hover {
	background: #3a3a3a;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__item a {
	display: block;
	font-size: 1.6rem;
	/* 約25.6px */
	color: #eaeaea;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px;
	background: #2e2e2e;
	border: 1px solid #3a3a3a;
	transition: background 0.25s, border-color 0.25s;
}

.site-nav__item a:hover {
	background: #3a3a3a;
	border-color: #4cafef;
}

.site-nav__item.current a {
	background: #4cafef;
	color: #fff;
	border-color: #4cafef;
}


/* ----------------------------------------
   カード
---------------------------------------- */
.card {
	background: #2c2c2c;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.5);
	padding: 20px;
	margin-bottom: 20px;
}

.card .title,
.card h3.title {
	font-size: 2.0rem;
	/* 約32px */
	margin-bottom: 15px;
	border-left: 5px solid #4cafef;
	padding-left: 15px;
	border-bottom: 1px solid #000;
}

/* ----------------------------------------
   ヘッダー内リンク（サイト内ツール）
---------------------------------------- */
.card-links .tbl {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.card-links .tbl div a {
	display: block;
	padding: 10px 15px;
	background: #333;
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	transition: background 0.3s;
	font-size: 1.6rem;
	/* 約25.6px */
}

.card-links .tbl div a:hover {
	background: #4cafef;
}

/* ----------------------------------------
   テキスト・行間
---------------------------------------- */
.mono {
	font-family: monospace;
	white-space: pre-wrap;
	word-break: break-all;
	line-height: 1.2;
	font-size: 1.4rem;
	/* 約22.4px */
}

.lead {
	font-size: 1.6rem;
	/* 約25.6px */
}

.bold {
	font-weight: bold;
}

/* ----------------------------------------
   汎用フォーム部品
---------------------------------------- */
.form-row {
	margin: 10px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.label {
	min-width: 8em;
	/* 約128px */
	font-size: 1.4rem;
	/* 約22.4px */
	color: #ddd;
}

.input,
.textarea,
select,
input[type="text"],
input[type="email"],
input[type="number"] {
	background: #1b1b1b;
	color: #f5f5f5;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 1.4rem;
	/* 約22.4px */
}

.input:focus,
.textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
	outline: none;
	border-color: #4cafef;
	box-shadow: 0 0 0 3px rgba(76,175,239,0.25);
	background: #333333;
	color: #eeeeee;
}

.textarea {
	width: 100%;
	resize: vertical;
}

/* ----------------------------------------
   ボタン
---------------------------------------- */
.btn {
	padding: 8px 16px;
	border: none;
	border-radius: 8px;
	background: #4cafef;
	color: #fff;
	cursor: pointer;
	transition: background 0.25s, transform 0.06s ease-in-out;
	font-size: 1.6rem;
	/* 約25.6px */
}

.btn:hover {
	background: #2196f3;
}

.btn:active {
	transform: translateY(1px);
}

.btn-ghost {
	background: transparent;
	color: #ddd;
	border: 1px solid #555;
}

.btn-ghost:hover {
	background: #333;
	color: #fff;
	border-color: #777;
}

/* ----------------------------------------
   情報表示
---------------------------------------- */
.info {
	margin-top: 10px;
	font-size: 1.6rem;
	/* 約25.6px */
	color: #ccc;
}

.status {
	border: 1px solid #666;
	padding: 8px;
	margin-top: 8px;
	font-size: 1.4rem;
	/* 約22.4px */
	background: #1a1a1a;
}

.sep {
	display: inline-block;
	width: 1rem;
	/* 約16px */
}

/* ----------------------------------------
   外部リンク（テストシステム）
---------------------------------------- */
.flex {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.flex li {
	background: #333;
	padding: 6px 10px;
	border-radius: 6px;
}

.flex li a {
	color: #f5f5f5;
	text-decoration: none;
	font-size: 1.4rem;
	/* 約22.4px */
}

.flex li a:hover {
	text-decoration: underline;
}

/* ----------------------------------------
   右スライドメニュー（テストページ）
---------------------------------------- */
.side-toggle {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1000;
}

.side-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: 360px;
	/* 約360px（px直接指定） */
	background: #242424;
	box-shadow: -4px 0 20px rgba(0,0,0,0.6);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 1100;
	display: flex;
	flex-direction: column;
	border-left: 1px solid #333;
}

.side-panel.is-open {
	transform: translateX(0%);
}

.side-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #333;
}

.side-panel__header h3 {
	font-size: 1.8rem;
	/* 約28.8px */
	margin: 0;
}

.side-panel__links {
	list-style: none;
	margin: 0;
	padding: 16px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	overflow: auto;
}

.side-panel__links li {
	background: #2e2e2e;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
}

.side-panel__links a {
	display: block;
	color: #eaeaea;
	text-decoration: none;
	padding: 10px 12px;
	font-size: 1.6rem;
	/* 約25.6px */
}

.side-panel__links a:hover {
	background: #3a3a3a;
}

/* ----------------------------------------
   モーダル（メール設定）
---------------------------------------- */
.modal {
	position: fixed;
	inset: 0;
	/* top/right/bottom/left:0 相当 */
	background: rgba(0,0,0,0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1200;
}

.modal.is-open {
	display: flex;
}

.modal__dialog {
	background: #262626;
	color: #f5f5f5;
	border-radius: 12px;
	border: 1px solid #3a3a3a;
	width: min(720px, 92vw);
	/* 約720px or 92vw */
	padding: 0;
	box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.modal__header,
.modal__footer {
	padding: 14px 16px;
	border-bottom: 1px solid #333;
}

.modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal__header h3 {
	font-size: 1.8rem;
	/* 約28.8px */
	margin: 0;
}

.modal__body {
	padding: 16px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.modal__footer {
	border-top: 1px solid #333;
	border-bottom: none;
	text-align: right;
}

/* ----------------------------------------
   レスポンシブ微調整
---------------------------------------- */
@media (max-width: 640px) {
	.container {
		padding: 6px;
	}

	.site-header__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.side-panel {
		width: 92vw;
	}

	.form-row {
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav__item a {
		padding: 10px 12px;
	}
}

/* ----------------------------------------
   追加：数値入力（分）
---------------------------------------- */
input.num {
	width: 60px;
	text-align: right;
}

/* ----------------------------------------
   アクセシビリティ補助
---------------------------------------- */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(76,175,239,0.35);
}


.auto-toggle-btn {
	min-width: 150px;
}
.auto-toggle-btn.off {
	background: #555;
	color: #fff;
}
.auto-toggle-btn.on {
	background: #4cafef;
	color: #fff;
}

/* サイドメニュー編集UI */
.links-table th, .links-table td { vertical-align: middle; }
.links-table input[type="text"] { width: 100%; }
.links-table .btn-mini { padding: 6px 10px; font-size: 1.4rem; }
.badge { display:inline-block; padding:2px 6px; border:1px solid #666; border-radius:6px; font-size:1.2rem; color:#bbb; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
pre.log { background:#111; border:1px solid #333; padding:10px; border-radius:8px; white-space:pre-wrap; }

/* 追加：WPログイン用IP登録カード */
.wpcheck-card .host-item { display:flex; gap:8px; align-items:center; margin:6px 0; }
.wpcheck-card .host-item input[type="text"] { flex:1; }
.wpcheck-card .row-actions { display:flex; gap:6px; flex-wrap:wrap; }
.wpcheck-status { margin-top:8px; font-size:1.4rem; color:#9ad29a; }
.wpcheck-status.ng { color:#ff9f9f; }
.wpcheck-url { font-size:1.3rem; color:#bbb; }
.btn-mini { padding:6px 10px; font-size:1.4rem; }

.archive-tools {
	width: 100%;
	display:grid;
	grid-template-columns: 1fr 1fr;
}
.archive-tools > div {
	border: 1px solid #666;
	font-weight: bold;
	padding: 10px 5px;
	font-size: 87.5%;
}
.archive-tools > div a { color: #FFF; text-decoration: none; }
.archive-tools > div a:before { content: "■"; margin: 3px; }
.archive-tools > div a:hover { color: #0FF; text-decoration: none; }


/* ----------------------------------------
    認証サイト管理（許可ID送信）用
---------------------------------------- */
body.dashboard .allow-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 5px;
}
body.dashboard .allow-tags .tag {
	background: #2a2a2a; color: #fff; font-size: 87.5%;
	border: 1px solid #999; border-radius: 10px;
	padding: 4px 12px;
	display: flex;
	align-items: center;
}
body.dashboard .allow-tags .tag-del {
	background: transparent;
	border: none;
	color: #f55;
	font-size: 1.2em;
	margin-left: 4px;
	cursor: pointer;
}

