* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body, menu, main, header, footer, nav, section, article, h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	font-family: sans-serif;
}

body {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

ul li {
	display: flex;
	align-items: center;
}

a {
	text-decoration: none;
	color: inherit;
}

/*--------------- header ---------------- */

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;

	display: flex;
	align-items: center;
	padding: 5px 10px;
	background: linear-gradient(to bottom, #9FD9A5, #26AAD4);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	color: #fff;
	height: 80px;
}

header img {
	width: 60px;
	margin-right: 20px;
}

.header-text {
	display: flex;
	flex-direction: column;
}

.header-text h1 {
	font-size: 28px;
}

.header-text h2 {
	font-size: 16px;
	font-weight: normal;
}

/* ハンバーガー共通 */
.hamburger {
	background: none;
	border: none;
	cursor: pointer;
	margin-left: auto;
	display: none;
}

.hamburger svg {
	width: 32px;
	height: 32px;
	color: #fff;
}

/*--------------- container ---------------- */

.container {
	display: flex;
	flex: 1;
	height: calc(100vh - 80px);
	width: 100%;
	padding-top: 80px;
}

/*--------------- menu ---------------- */

.menu {
	position: fixed;
	top: 80px;
	left: 0;
	bottom: 0;
	width: 300px;
	overflow-y: auto;
	padding: 1rem;
	border-right: 1px solid #ccc;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: #f4f4f4;
	font-size: 20px;
	transform: translateX(0);
	transition: transform .3s ease;
	z-index: 1500;
}

.menu ul {
	list-style: none;
	border-bottom: 2px solid #ccc;
	padding-left: 0;
	margin-left: 0;
}

.menu ul li {
	height: 50px;
}

.menu ul li > a {
	display:flex;
	align-items:center;
	gap:16px;
	height:100%;
	width:100%;
	border-radius:8px;
	color:#333;
	transition: background-color .2s ease, color .2s ease;
}

.menu ul li > a:hover {
	background:#e6f3f6;
	color:#0b7285;
}

.menu ul li > a:focus-visible {
	outline:none;
	box-shadow:0 0 0 3px rgba(11,114,133,.3);
}

.menu ul li > a:active {
	background:#d0ecf2;
}

.menu svg {
	width:30px;
	height:30px;
	flex-shrink:0;
	display:block;
	transition: transform .2s ease;
}
.menu ul li > a:hover svg {
	transform: translateX(2px);
}

.menu footer {
	text-align: center;
	padding-top: 1rem;
	font-size: 14px;
}

/*--------------- main ---------------- */

.main-wrapper {
	margin: 20px;
	flex: 1;
	display: block; 
	justify-content: center;
	margin-left: 320px;
	min-height: calc(100vh - 80px);
}

.main-content {
	max-width: 800px;
	width: 100%;
	margin: 0 auto;  
	padding-bottom:100px;
}

/*--------------- 質問の追加 ---------------- */

/* ===== 質問フォーム全体 ===== */
.add-question {
	margin-top: 20px;
	margin-bottom:30px;
	padding: 20px;
	border: 1px solid #bbb;
	border-radius: 10px;
	background: #ECF8F3;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* タイトル部分 (SVG + h2) */
.cards-title {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}
.cards-title svg {
	width: 30px;
	height: 30px;
	stroke: #26AAD4;
}
.cards-title h2 {
	font-size: 20px;
	color: #333;
	margin: 0;
}

/* ===== フォーム行 ===== */
.question-form .form-row {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}
.question-form label {
	width: 120px;
	text-align: right;
	font-weight: bold;
	color: #555;
	margin-right: 10px;
}
.question-form input[type="text"],
.question-form textarea,
.question-form input[type="file"] {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.question-form input:focus,
.question-form textarea:focus {
	border-color: #26AAD4;
	box-shadow: 0 0 5px rgba(38,170,212,0.3);
	outline: none;
}
.question-form textarea {
	height: 50px;
	resize: vertical;
}

/* ===== 投稿ボタン ===== */
.form-actions {
	text-align: center;
	margin-top: 20px;
}
.form-actions button {
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.form-actions button:hover:not(:disabled) {
	background: #eaeaea;
	border-color: #999;
}
.form-actions button:disabled {
	background: #ddd;
	color: #999;
	cursor: not-allowed;
}

/* ===== ファイルアップロード行 ===== */
.file-upload-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}
.clear-btn {
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.clear-btn:hover {
	background: #eaeaea;
	border-color: #999;
}
.clear-btn:disabled {
	background: #ddd;
	color: #999;
	cursor: not-allowed;
}

/* ===== 質問モーダル専用 ===== */
#question-modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4000; /* menu より上 */
}
#question-modal.hidden { display: none; }

.question-modal-content {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	width: 420px;
	max-width: 90%;
	text-align: center;
}
.question-modal-content .modal-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 12px;
	color: #333;
}
.question-modal-content .modal-content-text {
	font-size: 14px;
	color: #555;
	margin-bottom: 12px;
}
.question-modal-content .modal-preview {
	max-width: 100%;
	max-height: 200px;
	margin-bottom: 15px;
	border-radius: 6px;
	border: 1px solid #ccc;
}
.question-modal-content .modal-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
}
.question-modal-content .modal-actions button {
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	cursor: pointer;
}
.question-modal-content .modal-actions .confirm-btn {
	background: #26AAD4;
	color: #fff;
	border: none;
}
.question-modal-content .modal-actions .confirm-btn:hover {
	background: #1a7fa6;
}




/* ===== 質問リスト全体 ===== */
.question-list {
	margin-top: 20px;
	margin-bottom: 30px;
	padding: 20px;
	border: 1px solid #bbb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* タイトル */
.question-list h3 {
	border-bottom: 1px solid #bbb;
	padding-bottom: 6px;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: bold;
	color: #333;
}

/* 共通 h4 は標準フォント */
.question-list h4 {
	font-weight: normal;
	margin: 0;
}

/* ===== 投稿者情報エリア ===== */
.question-creater {
	display: flex;
	align-items: center; /* アイコンとテキストを上下中央揃え */
	gap: 16px;
	margin-bottom: 40px;
}

/* アイコン画像 or プレースホルダー */
.user-icon,
.user-icon-placeholder {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* 実際のユーザー画像 */
.user-icon {
	object-fit: cover;
}

/* プレースホルダー */
.user-icon-placeholder {
	background: #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-icon-placeholder svg {
	width: 60%;
	height: 60%;
	fill: white;
}

/* ユーザー名＋日付 */
.user-meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 14px;
}

.user-meta .user-name {
	font-weight: normal;
	color: #333;
}

.user-meta .created-date {
	color: #666;
	font-size: 12px;
	margin-top: 2px;
}

.question-delete-btn {
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.question-delete-btn:hover {
	background: #eaeaea;
	border-color: #999;
}

.question-delete-btn:active {
	background: #ddd;
	border-color: #666;
}

.question-delete-btn:disabled {
	background: #ddd !important;
	color: #999 !important;
	cursor: not-allowed !important;
}

#delete-question-modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4000;
}
#delete-question-modal.hidden { display: none; }

#delete-question-modal .modal-content {
	background: #fff;
	padding: 30px 20px;
	border-radius: 8px;
	width: 400px;
	max-width: 90%;
	text-align: center;
}
#delete-question-modal .modal-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
}

#delete-question-modal .modal-actions button {
	padding: 10px 20px;         /* 高さを揃える */
	min-width: 120px;           /* 幅を統一 */
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	line-height: 1.5;
	box-sizing: border-box;
}

/* キャンセル */
#cancel-question-delete {
	background: #f8f8f8;
	color: #333;
}
#cancel-question-delete:hover {
	background: #eaeaea;
	border-color: #999;
}

/* 削除する */
#confirm-question-delete {
	background: #ff6666;
	color: #fff;
	border: none;
}
#confirm-question-delete:hover {
	background: #ff4d4d;
}

.question-reps{
	margin-top:30px;
	padding-top:20px;
	border-top:1px solid #bbb;
}


/* 質問本文の改行を反映 */


.question-body p {
  white-space: pre-wrap;
  word-break: break-word;
  padding-bottom: 40px;
}

.question-img{
	margin-top:20px;
}

.question-img img{
	width: 400px;
}

/* ===== 回答リスト全体 ===== */
.answer-list {
	margin-left: 20px; /* 質問より少し右に寄せる */
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ===== 回答項目全体 ===== */
.answer-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-left:20px;
}

/* ===== アイコン ===== */
.user-icon.small {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	margin-top: 4px; /* 上寄せ調整 */
}

/* ===== 本文ブロック ===== */
.answer-body {
	background: #f8f8f8;
	border-radius: 8px;
	padding: 8px 12px;
	flex: 1;
}

/* ===== 名前・日付 ===== */
.answer-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 12px;
	color: #666;
}

/* ===== 本文 ===== */
.answer-body p {
	margin: 0;
	font-size: 14px;
	color: #222;
	white-space: pre-wrap;
	word-break: break-word;
}
















/* ===== 質問リプライエリア ===== */
.question-reps {
	margin-top: 15px;
}

/* フォームを横並びにして入力とボタンを1行に配置 */
.reply-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

/* コメント入力欄 */
.reply-form input[name="reply"] {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.reply-form input[name="reply"]:focus {
	border-color: #26AAD4;
	box-shadow: 0 0 3px rgba(38,170,212,0.3);
	outline: none;
}

/* リプライ送信ボタン */
.reply-submit-btn {
	padding: 6px 16px;
	border: 1px solid #bbb;
	border-radius: 6px;
	background: #ddd;
	color: #999;
	font-size: 14px;
	cursor: not-allowed;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.reply-submit-btn.active {
	background: #26AAD4;
	color: #fff;
	cursor: pointer;
}
.reply-submit-btn.active:hover {
	background: #1a7fa6;
}

/* ===== リプライモーダル ===== */
#reply-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4000;
}
#reply-modal.hidden {
	display: none;
}

.reply-modal-content {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	width: 400px;
	max-width: 90%;
	text-align: center;
}
.reply-modal-content .modal-text {
	font-size: 15px;
	color: #333;
	margin-bottom: 12px;
	word-break: break-word;
}
.reply-modal-content .modal-preview {
	max-width: 100%;
	max-height: 200px;
	margin-top: 10px;
	border-radius: 6px;
	border: 1px solid #ccc;
}
.reply-modal-content .modal-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}
.reply-modal-content .modal-actions button {
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid #ccc;
}
.reply-modal-content .modal-actions .confirm-btn {
	background: #26AAD4;
	color: #fff;
	border: none;
}
.reply-modal-content .modal-actions .cancel-btn {
	background: #f8f8f8;
	color: #333;
}




/*--------------- ログイン／SignIn ---------------- */

.auth {
	background:#26AAD4;
	border-radius:20px;
	box-shadow:
		0 12px 28px rgba(0,0,0,.22),
		0 6px 12px rgba(0,0,0,.14),
		0 2px 4px  rgba(0,0,0,.12);
	color:#fff;
	font-size:20px;
}

.auth-title {
	padding:20px;
}

.auth-form {
	display:grid;
	gap:24px; 
	padding:24px;
}
.form-row {
	display:grid;
	grid-template-columns:160px 1fr;
	align-items:center;
	gap:16px;
}

.auth .form-row input[type="text"],
.auth .form-row input[type="email"],
.auth .form-row input[type="password"] {
	width:100%;
	padding:12px 14px;
	font-size:16px;
	border:1px solid #cbd5e1;
	border-radius:10px;
	background:#fff;
	transition:border-color .2s, box-shadow .2s;
}
.auth .form-row input::placeholder { color:#9aa7b2; }
.auth .form-row input:hover { border-color:#94a3b8; }
.auth .form-row input:focus {
	outline:none;
	border-color:#26AAD4;
	box-shadow:0 0 0 3px rgba(38,170,212,.25);
}
.auth .form-row input:disabled {
	background:#f3f4f6; color:#9ca3af; cursor:not-allowed;
}

.auth .form-row input.is-invalid,
.auth .form-row input[aria-invalid="true"] {
	border-color:#ef4444;
	box-shadow:0 0 0 3px rgba(239,68,68,.2);
}
.auth .form-row .help-text {
	font-size:12px; color:#ef4444; margin-top:6px;
}

.auth .input-wrap { position:relative; }
.auth .input-wrap .input-icon {
	position:absolute; left:12px; top:50%; transform:translateY(-50%);
	width:20px; height:20px; pointer-events:none; color:#94a3b8;
}
.auth .input-wrap input { padding-left:40px; }

.auth .form-row--inline {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.auth .form-row--inline .link-muted {
	align-self: flex-start;
}

.auth .form-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.auth input[type="checkbox"] {
	transform: scale(2);
	transform-origin: left center;
	accent-color: #fff;
	cursor: pointer;
	margin-right:20px;
}

.auth .form-actions .btn-primary {
	width: 200px;
	padding: 10px 0;
	background: #9FD9A5;
	color: #fff;
	border: none;
	border-radius: 9999px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.35),
		inset 0 -1px 0 rgba(0,0,0,.08),
		0 8px 18px rgba(0,0,0,.18),
		0 2px 6px rgba(0,0,0,.12);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	will-change: transform, box-shadow;
}

.auth .form-actions .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.35),
		inset 0 -1px 0 rgba(0,0,0,.08),
		0 12px 26px rgba(0,0,0,.22),
		0 4px 10px rgba(0,0,0,.14);
	filter: brightness(1.02);
}

.auth .form-actions .btn-primary:active {
	transform: translateY(0);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.3),
		inset 0 -1px 0 rgba(0,0,0,.1),
		0 6px 14px rgba(0,0,0,.18),
		0 2px 6px rgba(0,0,0,.12);
	filter: brightness(.98);
}

.auth .form-actions .btn-primary:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px rgba(38,170,212,.35),
		0 8px 18px rgba(0,0,0,.18),
		0 2px 6px rgba(0,0,0,.12),
		inset 0 1px 0 rgba(255,255,255,.35);
}

.page-divider {
	display:flex;
	align-items:center;
	gap:12px;
	margin:50px 0;
	color:#6b7280;
}
.page-divider::before,
.page-divider::after {
	content:"";
	flex:1 1 auto;
	height:1px;
	background:#d1d5db;
}
.page-divider > span {
	font-size:30px;
	letter-spacing:.12em;
	font-weight:700;
}

.auth_confirm {
	padding:20px;
}

@media (prefers-reduced-motion: reduce){
	.auth .form-actions .btn-primary{ transition: box-shadow .15s ease; }
	.auth .form-actions .btn-primary:hover{ transform:none; }
}

@media (max-width:480px){
	.form-row{ grid-template-columns:1fr; }
}

.alert {
	padding: 10px 15px;
	margin:20px;
	border-radius: 6px;
	font-size: 0.9rem;
}
.alert-danger {
	background-color: #fdecea;
	color: #c62828;
	border: 1px solid #f5c2c0;
}




/*--------------- プロフィール ---------------- */
.profile { margin-bottom:80px; }

.profiles {
	border:1px solid #bbb;
	padding:20px;
	border-radius:5px;
}

.profile h1 { margin-bottom:20px; }

.profiles.prof_img {
	display: flex;
	align-items: center;
	gap: 50px;
}

.prof_img_border {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 1px solid #bbb;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.prof_img_uploader {
	background: #eee;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prof_contents { flex: 1; }

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  text-align: center;
}

#preview-container {
  margin-top: 20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom:30px;
}
#preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-circle {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 2px solid #bbb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	margin: 20px auto;
	background: #f8f8f8;
	cursor: pointer;
	text-align: center;
}
.preview-circle span {
	position: absolute;
	color: #aaa;
	font-size: 14px;
	pointer-events: none;
}
.preview-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hidden { display: none; }

.profileButton,
.profile-save {
	padding: 8px 16px;
	margin: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.profileButton:hover,
.profile-save:hover {
	background: #eaeaea;
	border-color: #999;
}

.profileButton:active,
.profile-save:active {
	background: #ddd;
	border-color: #666;
}
.profileButton:disabled {
	background: #ddd !important;
	color: #999 !important;
	cursor: not-allowed !important;
}

#open-uploader img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.prof_contents {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 6px;
	font-weight: bold;
}

.form-group input,
.form-group textarea {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.form-group textarea { height:150px; }

#profile-form {
	margin: 0;
	padding: 0;
	width: 100%;
}

#profile-form input,
#profile-form textarea {
	width: 100%;
	box-sizing: border-box;
}

.form-row {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.form-row label {
	width: 150px;
	font-weight: bold;
}

.form-row input {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.form-actions {
	text-align: center;
	margin-top: 20px;
}

.password-save {
	padding: 8px 20px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.password-save:hover {
	background: #eaeaea;
	border-color: #999;
}

.password-save:disabled {
	background: #ddd;
	color: #999;
	border-color: #aaa;
	cursor: not-allowed;
}

.error-message {
	color: red;
	margin-top: 8px;
	font-size: 14px;
}

.success-message {
	color: blue;
	margin-top: 8px;
	font-size: 14px;
}

.input-error {
	border: 1px solid red !important;
	background: #ffe5e5 !important;
}

.form-group-inline {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-start; /* ← 左寄せ */
	margin-bottom: 15px;
}

.form-group-inline label {
	width: 120px;       /* ラベル幅固定 */
	font-weight: bold;
	text-align: left;   /* 左寄せ */
}

.form-group-inline .styled-select {
	flex: 0 0 220px;    /* 横幅を狭める */
	padding: 6px 12px;
	font-size: 14px;
	border: 2px solid #bbb;
	border-radius: 6px;
	background: #fff;
	color: #333;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2326AAD4'><path d='M7 8l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	min-height: 34px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-inline .styled-select:hover {
	border-color: #000;
}

.form-group-inline .styled-select:focus {
	outline: none;
	border-color: #1a7fa6;
	box-shadow: 0 0 0 2px rgba(38,170,212,0.2);
}





/*--------------- アカウント削除 ---------------- */
.delete-account {
	width: 100%;
	max-width: 400px;
	padding: 12px 0;
	background: #ff6666;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
	margin-bottom:20px;
}
.delete-account:hover { background: #ff4d4d; }

/* アカウント削除モーダル専用 */
#delete-modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3000;
}
#delete-modal.hidden { display: none; }

.delete-modal-content {
	background: #fff;
	padding: 30px 20px;
	border-radius: 8px;
	width: 400px;
	max-width: 90%;
	text-align: center;
}

.delete-modal-content p {
	font-size: 16px;
	margin-bottom: 20px;
	color: #333;
}

.delete-modal-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 10px;
}

.delete-modal-actions button {
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f8f8f8;
	color: #333;
	font-size: 14px;
	cursor: pointer;
}

#cancel-delete {
	background: #f8f8f8;
	color: #333;
}
#cancel-delete:disabled {
	background: #ddd;
	color: #999;
	cursor: not-allowed;
}

#confirm-delete {
	background: #ff6666;
	color: #fff;
	border: none;
}
#confirm-delete:disabled {
	background: #ddd;
	color: #999;
	cursor: not-allowed;
}

/*--------------- レスポンシブ ---------------- */

/* スマホ */
@media (max-width: 480px){
	.container {
		margin: 0;
		width: 100%;
		overflow-x: hidden;
		position: relative;
	}
	.menu {
		position: fixed;
		top: 80px;
		right: 0;
		bottom: 0;
		width: 80vw;
		max-width: 320px;
		background: #f4f4f4;
		border-left: 1px solid #ccc;
		transform: translateX(100%);   /* ← 完全に隠す */
		transition: transform .3s ease;
		z-index: 2000;
	}
	.menu.menu--open {
		transform: translateX(0);      /* ← 開いたとき表示 */
	}
	.main-wrapper {
		margin: 0;
		margin-left: 0;                /* ← PC用の余白を解除 */
		height: auto;
		overflow: visible;
	}
	.hamburger {
		display: block;
	}
}

/* タブレット */
@media (min-width: 481px) and (max-width: 768px){
	.menu {
		width: 200px;
		font-size: 16px;
	}
	.main-wrapper {
		margin-left: 220px;            /* ← PCより少し狭くする */
	}
	.main-content {
		max-width: 100%;               /* ← メインは全幅を確保 */
	}
}
