/* ── 変数 ──────────────────────────────────────────────────────── */
:root {
  --teal:        #0E6E55;
  --teal-h:      #0a5441;
  --teal-l:      #e8f5f1;
  --amber:       #B4760F;
  --amber-h:     #8c5c0c;
  --amber-l:     #fef6e4;
  --bg:          #F6F4EE;
  --white:       #ffffff;
  --text:        #1f2937;
  --muted:       #6b7280;
  --border:      #d1d5db;
  --danger:      #dc2626;
  --danger-l:    #fee2e2;
  --success:     #16a34a;
  --success-l:   #dcfce7;
  --warning:     #d97706;
  --warning-l:   #fef3c7;
  --info:        #2563eb;
  --info-l:      #dbeafe;
  --radius:      8px;
  --shadow:      0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-m:    0 4px 6px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
}

/* ── リセット ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--teal-h); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── ナビゲーション ───────────────────────────────────────────────── */
.nav {
  background: var(--teal);
  color: #fff;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 56px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.nav-brand:hover { color: #cde; text-decoration: none; }
.nav-brand .icon { font-size: 1.3rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-links a, .nav-links span {
  color: rgba(255,255,255,.88);
  padding: .4rem .75rem;
  border-radius: 5px;
  font-size: .9rem;
  transition: background .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }
.nav-role-badge {
  background: var(--amber);
  color: #fff;
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-sep { color: rgba(255,255,255,.4); }

/* ── メインコンテンツ ─────────────────────────────────────────────── */
.main { flex: 1; padding: 1.5rem 1.5rem 3rem; max-width: 1100px; margin: 0 auto; width: 100%; }

/* ── フラッシュメッセージ ─────────────────────────────────────────── */
.flashes { padding: .75rem 1.5rem 0; max-width: 1100px; margin: 0 auto; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  margin-bottom: .5rem;
  font-size: .9rem;
  position: relative;
}
.flash-success { background: var(--success-l); color: #14532d; border: 1px solid #86efac; }
.flash-error   { background: var(--danger-l);  color: #7f1d1d; border: 1px solid #fca5a5; }
.flash-warning { background: var(--warning-l); color: #78350f; border: 1px solid #fcd34d; }
.flash-info    { background: var(--info-l);    color: #1e3a8a; border: 1px solid #93c5fd; }
.flash-close { margin-left: auto; cursor: pointer; opacity: .6; background: none; border: none; font-size: 1.1rem; line-height: 1; }
.flash-close:hover { opacity: 1; }

/* ── カード ──────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  background: var(--teal);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.card-body { padding: 1.25rem; }

/* ── ページタイトル ───────────────────────────────────────────────── */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.page-subtitle { color: var(--muted); font-size: .9rem; margin-top: -.75rem; margin-bottom: 1.25rem; }

/* ── ボタン ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(.93); }
.btn-primary   { background: var(--teal);  color: #fff; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-amber     { background: var(--amber);  color: #fff; }
.btn-outline   { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-sm        { padding: .3rem .7rem; font-size: .82rem; }
.btn-xs        { padding: .2rem .5rem; font-size: .75rem; }

/* ── フォーム ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: .3rem; color: #374151; }
input[type=text], input[type=email], input[type=password], input[type=date],
select, textarea {
  width: 100%;
  padding: .55rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,110,85,.15);
}
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: .25rem; }
.required { color: var(--danger); }

/* ── チェックボックス / タグ選択 ─────────────────────────────────── */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag-check { display: none; }
.tag-label {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.tag-check:checked + .tag-label {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.tag-label:hover { border-color: var(--teal); color: var(--teal); }

/* ── 部署フォルダグリッド ────────────────────────────────────────── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}
.folder-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-align: center;
  position: relative;
}
.folder-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  text-decoration: none;
}
.folder-icon { font-size: 3rem; line-height: 1; }
.folder-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.folder-lock {
  position: absolute;
  top: .5rem; right: .6rem;
  font-size: .8rem;
  background: var(--amber-l);
  color: var(--amber);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-weight: 700;
}

/* ── イベントカード (フォルダ内) ──────────────────────────────────── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.event-card-thumb {
  height: 130px;
  background: var(--teal-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.event-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: .9rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.event-card-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.35;
}
.event-card-meta { font-size: .78rem; color: var(--muted); }
.event-type-badge {
  display: inline-block;
  font-size: .72rem;
  padding: .15rem .45rem;
  border-radius: 4px;
  background: var(--teal-l);
  color: var(--teal);
  font-weight: 600;
}

/* ── タグバッジ ───────────────────────────────────────────────────── */
.tag-badge {
  display: inline-block;
  font-size: .72rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── イベント詳細 ─────────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); }
.breadcrumb-sep { color: var(--border); }

.meta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.meta-table th { width: 120px; padding: .55rem .75rem; text-align: left; font-weight: 600; color: var(--muted); vertical-align: top; }
.meta-table td { padding: .55rem .75rem; }
.meta-table tr { border-bottom: 1px solid var(--bg); }

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  margin: 1.5rem 0 .75rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--teal-l);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* 画像ギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity .15s;
}
.gallery-item img:hover { opacity: .9; }
.gallery-item-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  justify-content: flex-end;
  padding: .3rem .4rem;
  gap: .3rem;
  opacity: 0;
  transition: opacity .15s;
}
.gallery-item:hover .gallery-item-actions { opacity: 1; }

/* 動画 */
.video-list { display: flex; flex-direction: column; gap: .75rem; }
.video-item { background: #000; border-radius: 6px; overflow: hidden; }
.video-item video { width: 100%; max-height: 420px; display: block; }
.video-meta { padding: .5rem .75rem; background: var(--white); display: flex; justify-content: space-between; align-items: center; }

/* ドキュメント */
.doc-list { display: flex; flex-direction: column; gap: .5rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
}
.doc-icon { font-size: 1.4rem; }

/* コメント */
.comment-list { display: flex; flex-direction: column; gap: .75rem; }
.comment-item {
  background: var(--bg);
  border-radius: 6px;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.comment-meta { font-size: .78rem; color: var(--muted); display: flex; gap: .75rem; }
.comment-content { font-size: .9rem; line-height: 1.5; white-space: pre-wrap; }
.comment-form { margin-top: 1rem; display: flex; gap: .6rem; }
.comment-form textarea { flex: 1; min-height: 70px; }

/* ── 設定ページ ───────────────────────────────────────────────────── */
.settings-tabs { display: flex; gap: .25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab-btn {
  padding: .5rem 1.1rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .15s;
}
.tab-btn.active, .tab-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.tab-btn-amber { border-color: var(--amber); color: var(--amber); }
.tab-btn-amber.active, .tab-btn-amber:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.settings-section { margin-bottom: 2rem; }
.settings-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--teal-l);
}
.settings-section-title.amber-title { color: var(--amber); border-bottom-color: var(--amber-l); }

.item-list { display: flex; flex-direction: column; gap: .4rem; }
.item-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--bg);
  border-radius: 6px;
  font-size: .9rem;
}
.item-row-name { flex: 1; }

/* ユーザーテーブル */
.user-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.user-table th { padding: .6rem .75rem; text-align: left; background: var(--bg); font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.user-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.user-table tr:last-child td { border-bottom: none; }
.user-table tr:hover td { background: var(--bg); }
.role-select { padding: .25rem .5rem; font-size: .82rem; border-radius: 4px; border: 1.5px solid var(--border); }

/* 承認待ちバッジ */
.badge-pending { background: var(--amber-l); color: var(--amber); border: 1px solid #fde68a; padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 600; }
.badge-admin   { background: var(--amber-l); color: var(--amber-h); border: 1px solid #fcd34d; padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 600; }
.badge-editor  { background: var(--teal-l);  color: var(--teal);   border: 1px solid #6ee7b7; padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 600; }
.badge-viewer  { background: var(--bg); color: var(--muted); border: 1px solid var(--border); padding: .15rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 600; }

/* 部署パスワード設定 */
.dept-pw-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--bg);
  border-radius: 6px;
  flex-wrap: wrap;
}
.dept-pw-name { min-width: 120px; font-weight: 600; font-size: .9rem; }
.dept-pw-status { font-size: .78rem; }
.dept-pw-status.locked   { color: var(--amber); }
.dept-pw-status.unlocked { color: var(--muted); }
.dept-pw-input { flex: 1; min-width: 140px; padding: .35rem .6rem; font-size: .85rem; }

/* ── 検索 ────────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.search-bar input {
  flex: 1;
  padding: .65rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
}
.search-bar input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,110,85,.15); }
.search-results { margin-bottom: 2rem; }
.result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin-bottom: .5rem;
  transition: transform .1s;
}
.result-item:hover { transform: translateX(3px); text-decoration: none; }
.result-item-icon { font-size: 1.4rem; }
.result-item-body { flex: 1; }
.result-item-title { font-weight: 700; color: var(--text); font-size: .95rem; }
.result-item-meta  { font-size: .78rem; color: var(--muted); }

/* ── フィルターバー ───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select { padding: .4rem .6rem; font-size: .85rem; border-radius: 6px; }

/* ── ログイン画面 ─────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.5rem;
}
.auth-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-m);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo .icon { font-size: 2.5rem; color: var(--teal); }
.auth-logo h1 { font-size: 1.2rem; font-weight: 700; color: var(--teal); margin-top: .4rem; }
.auth-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.auth-footer { margin-top: 1.25rem; text-align: center; font-size: .85rem; color: var(--muted); }

/* ── ライトボックス ───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ── ヘルプ ──────────────────────────────────────────────────────── */
.help-toc { background: var(--teal-l); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.help-toc ol { padding-left: 1.25rem; }
.help-toc li { margin-bottom: .25rem; font-size: .9rem; }
.help-section { margin-bottom: 2rem; }
.help-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--teal); margin-bottom: .75rem; padding-bottom: .3rem; border-bottom: 2px solid var(--teal-l); }
.help-section h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: .9rem 0 .4rem; }
.help-section p, .help-section li { font-size: .9rem; line-height: 1.7; color: var(--text); }
.help-section ul { padding-left: 1.4rem; list-style: disc; }
.help-contact {
  background: var(--amber-l);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
}
.help-contact h2 { color: var(--amber); border-bottom-color: #fde68a; }

/* ── エラーページ ─────────────────────────────────────────────────── */
.error-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.error-card {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 500px;
}
.error-code { font-size: 5rem; font-weight: 900; color: var(--teal); line-height: 1; }
.error-msg  { font-size: 1.2rem; font-weight: 700; margin: .75rem 0 .5rem; }
.error-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* ── フッター ────────────────────────────────────────────────────── */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: .75rem;
  font-size: .78rem;
  margin-top: auto;
}

/* ── アンバー強調 (管理者専用要素) ──────────────────────────────── */
.admin-section {
  border-left: 4px solid var(--amber);
  padding-left: 1rem;
}

/* ── 承認待ちページ ───────────────────────────────────────────────── */
.pending-card {
  max-width: 520px;
  margin: 4rem auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-m);
  padding: 2.5rem 2rem;
  text-align: center;
}
.pending-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.pending-title { font-size: 1.3rem; font-weight: 700; color: var(--amber); margin-bottom: .75rem; }

/* ── レスポンシブ ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 0 1rem; }
  .main { padding: 1rem 1rem 2rem; }
  .folder-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .event-grid  { grid-template-columns: 1fr; }
  .gallery     { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .comment-form { flex-direction: column; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .nav-links a span.nav-label { display: none; }
}

/* ── ユーティリティ ───────────────────────────────────────────────── */
.text-muted  { color: var(--muted); }
.text-teal   { color: var(--teal); }
.text-amber  { color: var(--amber); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── フェーズ2: アバター・アイコン ───────────────────────────────── */
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; vertical-align: middle;
}
.nav-avatar-init {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff;
  font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.folder-icon-img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
}
.icon-thumb {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border);
}

/* ── フェーズ2: カラーピッカー行 ───────────────────────────────── */
.color-row {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
}
.color-row label { min-width: 130px; font-size: .88rem; font-weight: 600; }
.color-row input[type="color"] { width: 44px; height: 36px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; padding: 2px; }
.color-hex { font-size: .82rem; color: var(--muted); font-family: monospace; min-width: 60px; }

/* ── フェーズ2: 画像プレビュー ───────────────────────────────── */
.img-preview {
  max-width: 180px; max-height: 120px; border-radius: 6px;
  border: 1px solid var(--border); object-fit: contain; display: block;
  margin-top: .5rem;
}

/* ── フェーズ2: マイアカウントページ ─────────────────────────── */
.account-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.account-section h2 {
  font-size: 1rem; font-weight: 700; color: var(--teal);
  margin-bottom: 1rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--teal-l);
}

/* ── フェーズ2: パスワードトグル ───────────────────────────── */
.pw-wrap {
  display: flex; gap: .4rem; align-items: center;
}
.pw-wrap input { flex: 1; }
.pw-toggle {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  padding: 0 .5rem; height: 38px; cursor: pointer; font-size: 1rem;
  color: var(--muted); flex-shrink: 0;
}
.pw-toggle:hover { background: var(--bg); }
