/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ========== リセット・基本 ========== */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  padding-top: 60px;    /* ヘッダー分 */
  padding-bottom: 70px; /* ボトムナビ分 */
  min-height: 100vh;
}

/* ========== ヘッダー ========== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  z-index: 100;
}

/* ロゴ */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* ハンバーガーメニューボタン */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  border-radius: 2px;
}

/* ヘッダー右側アクションエリア */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* プッシュ通知ベルボタン */
.push-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  color: #888;
  border-radius: 6px;
  transition: color .2s;
}
.push-bell-btn:hover { color: #333; }
.push-bell-btn .bell-icon { width: 22px; height: 22px; display: block; }
.push-bell-btn .bell-on  { display: none; color: #e67e22; stroke: #e67e22; }
.push-bell-btn[data-subscribed] .bell-off { display: none; }
.push-bell-btn[data-subscribed] .bell-on  { display: block; }

/* ========== ドロワーメニュー ========== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 12px rgba(0,0,0,.12);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eee;
}
.drawer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
}
.drawer-close-btn:hover { color: #333; }

.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  flex: 1;
}
.drawer-user {
  padding: 10px 20px;
  font-size: 0.85rem;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}
.drawer-link {
  display: block;
  padding: 12px 20px;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
}
.drawer-link:hover { background: #f5f5f5; }
.drawer-logout { color: #e53935; }
button.drawer-link {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.drawer-admin { color: #555; font-size: 0.9rem; border-top: 1px solid #f0f0f0; margin-top: 4px; }

/* ========== メインコンテンツ ========== */
.app-main {
  max-width: 680px;
  margin: 0 auto;
}

/* ========== お知らせバナー ========== */
.notice-banner {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* ========== タブナビ ========== */
.tab-nav {
  display: flex;
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #999;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}
.tab.active {
  color: #29b6d8;
  border-bottom-color: #29b6d8;
}

/* ========== フィード ========== */
.feed-page {
  background: #f5f5f5;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.post-card > .post-header,
.post-card > .post-title-row,
.post-card > .post-body-wrap,
.post-card > .post-actions {
  padding-left: 16px;
  padding-right: 16px;
}
.post-card > .post-header { padding-top: 14px; }
.post-card > .post-actions { padding-bottom: 14px; }

.post-thumbnail {
  display: block;
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  margin-bottom: 12px;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 8px;
}
.author { font-weight: 700; color: #222; }
.industry { color: #aaa; font-size: 0.78rem; }
.post-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* 削除ボタンをヘッダーの右端に寄せる */
.post-delete-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #bbb;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.post-delete-btn:hover { color: #e53935; }
.post-delete-btn svg { width: 16px; height: 16px; }
/* 編集ボタン */
.post-edit-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #bbb;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
}
.post-edit-btn:hover { color: #1976d2; }
.post-edit-icon { font-size: 15px; line-height: 1; }
/* button_to が生成する form の余白を除去 */
.post-header form { margin: 0; }
.post-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 6px;
}
.post-title { font-size: 1.05rem; font-weight: 700; margin: 0; flex: 1; }
.post-body {
  line-height: 1.65;
  color: #444;
  margin: 0 0 4px;
  /* 3行で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-body.expanded {
  display: block;
  overflow: visible;
}
.expand-btn {
  background: none;
  border: none;
  color: #29b6d8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 16px 10px;
  display: block;
}

/* ハートボタン */
.heart-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.heart-btn svg { width: 24px; height: 24px; transition: color 0.15s; }
.heart-btn.bookmarked { color: #e53935; }
.heart-btn:hover { opacity: 0.75; }

/* ========== ボトムナビ ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  z-index: 100;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #aaa;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.15s;
}
.bottom-nav-item:hover,
.bottom-nav-item.active { color: #29b6d8; }
.bottom-nav-item.bookmarks-active { color: #e53935; }
.bottom-nav-item svg { width: 24px; height: 24px; }

/* サブ画像（2枚目以降） */
.post-sub-images {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
}
.post-sub-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.post-sub-thumbnail:hover { opacity: 0.8; }

/* ========== ライトボックス ========== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  z-index: 1;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255,255,255,.3); }

/* ========== リアクション ========== */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 14px;
}
/* button_to が生成する form をレイアウトから透過させる */
.reactions form {
  display: contents;
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #666;
  transition: border-color 0.15s, background 0.15s;
}
.reaction-btn.active {
  background: #fff3f3;
  border-color: #e53935;
  color: #e53935;
}
.reaction-btn:hover:not(.active) { border-color: #bbb; background: #ececec; }
.reaction-emoji { font-size: 1.1rem; line-height: 1; }
.reaction-count { font-weight: 600; }

/* ========== ブックマーク一覧 ========== */
.bookmarks-page { background: #f5f5f5; }
.bookmarks-title { font-size: 1.1rem; font-weight: 700; padding: 14px 16px 0; margin: 0; }
.empty-message { color: #aaa; font-size: 0.9rem; }

/* ========== ログイン画面 ========== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.login-form .form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus {
  border-color: #29b6d8;
  box-shadow: 0 0 0 3px rgba(41,182,216,.15);
}
.login-btn {
  width: 100%;
  padding: 12px;
  background: #29b6d8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.login-btn:hover { background: #1fa3c4; }
.flash-alert {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.flash-notice {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ========== ログイン専用ページ ========== */
.sessions-body {
  margin: 0;
  padding: 0;
  background: #fff;
  min-height: 100vh;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
.sessions-page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 0 0 40px;
}
.sessions-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 32px;
}
.sessions-takisuta-logo {
  width: 100%;
  max-width: 220px;
  margin-bottom: 32px;
}
.sessions-takisuta-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.sessions-anniversary-logo {
  width: 100%;
  max-width: 220px;
  margin-bottom: 36px;
}
.sessions-anniversary-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.sessions-form {
  width: 100%;
}
.sessions-field {
  margin-bottom: 14px;
}
.sessions-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color .2s;
}
.sessions-input:focus {
  border-color: #29b6d8;
  box-shadow: 0 0 0 3px rgba(41,182,216,.15);
}
.sessions-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.sessions-remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
}
.sessions-remember-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.sessions-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5c800;
  color: #333;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background .2s, transform .1s;
}
.sessions-login-btn::after {
  content: "→";
  font-size: 1.1rem;
}
.sessions-login-btn:hover {
  background: #e6b800;
  transform: translateX(2px);
}
.sessions-flash-alert {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  width: 100%;
}
.sessions-flash-notice {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  width: 100%;
}

/* ========== FAB（投稿ボタン） ========== */
.fab-post {
  position: fixed;
  right: 20px;
  bottom: 84px; /* ボトムナビの上に重ねる */
  width: 52px;
  height: 52px;
  background: #29b6d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(41, 182, 216, 0.45);
  color: #fff;
  text-decoration: none;
  z-index: 200;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.fab-post:hover {
  background: #0097b2;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(41, 182, 216, 0.55);
}
.fab-post svg {
  width: 26px;
  height: 26px;
}

/* ========== 投稿フォーム ========== */
.post-form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}
.post-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.post-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.post-form-cancel {
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
}
.post-form-cancel:hover { color: #333; }
.post-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #333;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #29b6d8;
}
.form-textarea { resize: vertical; }
.form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d7dce1;
  border-radius: 10px;
  background: #f9fbfc;
  color: #44515c;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.form-file-trigger:hover {
  background: #f1f5f7;
  border-color: #c6cdd4;
}
.form-file-trigger:active {
  background: #eaf0f3;
  border-color: #b5bfc8;
  color: #33414d;
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn-draft {
  background: #29b6d8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-draft:hover { background: #0097b2; }
/* 下書き保存・公開ボタン */
.btn-secondary {
  background: #fff;
  color: #555;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: #f5f5f5; border-color: #aaa; }
.btn-primary {
  background: #29b6d8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #0097b2; }
/* 下書きバナー */
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  background: #FFF9E6;
  border-bottom: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 12px 12px 0 0;
}
.draft-banner-label {
  font-size: 0.82rem;
  color: #7A5F00;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.draft-publish-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #444;
  border: 1.5px solid #bbb;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.draft-publish-btn:hover { background: #f5f5f5; border-color: #888; }
.draft-publish-form { margin: 0; }
.post-card--draft { opacity: 0.9; }
/* 既存画像プレビュー */
.existing-images { margin-bottom: 8px; }
.form-hint { font-size: 0.8rem; color: #888; margin-bottom: 6px; }
.existing-image-list { display: flex; flex-wrap: wrap; gap: 8px; }
.existing-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.existing-image-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.existing-image-delete-btn {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.76rem;
  cursor: pointer;
}
.existing-image-delete-btn:hover { background: #f8f8f8; border-color: #c9c9c9; }
.new-images-preview {
  margin-top: 10px;
}
.new-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.new-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
}
.new-image-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.new-image-name {
  margin: 0;
  max-width: 96px;
  font-size: 0.72rem;
  color: #777;
  text-align: center;
  word-break: break-all;
}
.form-errors {
  background: #fdecea;
  border: 1px solid #f5c6c3;
  border-radius: 8px;
  padding: 12px 14px;
}
.form-error-msg {
  color: #c62828;
  font-size: 0.88rem;
  margin: 2px 0;
}

/* ========== フラッシュメッセージ ========== */
.flash-notice {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: 8px 16px;
}
.flash-alert {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: 8px 16px;
}

/* ========== 投票フォーム ========== */
.poll-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 2px;
}
.poll-form-hint {
  font-size: 0.78rem;
  color: #aaa;
  margin: 0 0 8px;
}
.poll-option-input + .poll-option-input { margin-top: 6px; }

/* ========== 投票（表示） ========== */
.poll {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* 未投票時のボタン */
.poll-option--votable {
  width: 100%;
  background: #fff;
  border: 1.5px solid #29b6d8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #29b6d8;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.poll-option--votable:hover { background: #e0f7fb; }
/* button_to が生成する form をレイアウトから透過させる */
.poll form { display: contents; }
/* 投票済みの結果バー */
.poll-option {
  position: relative;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  overflow: hidden;
}
.poll-option--voted {
  border-color: #29b6d8;
  font-weight: 600;
}
.poll-option-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: rgba(41, 182, 216, 0.12);
  transition: width 0.4s ease;
  z-index: 0;
}
.poll-option--voted .poll-option-bar { background: rgba(41, 182, 216, 0.22); }
.poll-option-body {
  position: relative;
  z-index: 1;
  color: #333;
}
.poll-option-meta {
  position: relative;
  z-index: 1;
  float: right;
  color: #888;
  font-size: 0.8rem;
}
.poll-total {
  font-size: 0.78rem;
  color: #aaa;
  margin: 0;
  text-align: right;
}

/* ========== カレンダー ========== */
.calendar-page {
  padding: 12px 8px 24px;
  max-width: 480px;
  margin: 0 auto;
}

/* ヘッダー */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.cal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  font-size: 1.4rem;
  text-decoration: none;
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: #e0e0e0; }

/* グリッド */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* 曜日ヘッダー */
.cal-weekdays { margin-bottom: 4px; }
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  padding: 4px 0;
}
.cal-weekday.sun { color: #e53935; }
.cal-weekday.sat { color: #1e88e5; }

/* 日付セル */
.cal-day {
  min-height: 52px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transition: background 0.12s;
}
.cal-day.has-events { cursor: pointer; }
.cal-day.has-events:hover { background: #f0f8fb; }
.cal-day.other-month { background: transparent; }
.cal-day.other-month .cal-day-num { color: #ccc; }

.cal-day-num {
  font-size: 1.1rem;        /* 0.85rem から 1.1rem に拡大 */
  font-weight: 700;         /* より数字をくっきり太字に */
  color: #333;
  line-height: 1.2;         /* 文字が大きくなった分、行高を少し詰めました */
}
.cal-day.sun .cal-day-num { color: #e53935; }
.cal-day.sat .cal-day-num { color: #1e88e5; }
.cal-day.today .cal-day-num {
  background: #29b6d8;
  color: #fff;
  border-radius: 50%;
  width: 28px;              /* 文字拡大に合わせて 24px → 28px に拡大 */
  height: 28px;             /* 文字拡大に合わせて 24px → 28px に拡大 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* イベントドット */
.cal-dots {
  display: flex;
  gap: 2px;
  margin-top: 3px;
  flex-wrap: wrap;
  justify-content: center;
}
.cal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cal-dot--company       { background: #29b6d8; }
.cal-dot--factory_closed { background: #e53935; }
.cal-dot--branch_closed { background: #fb8c00; }
.cal-dot--overtime      { background: #43a047; }

/* 凡例 */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 0 4px;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #666;
}

/* モーダル */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cal-modal-overlay.open { display: flex; }
.cal-modal {
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 16px;
  width: 100%;
  max-width: 340px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.cal-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.cal-modal-close:hover { color: #555; }
.cal-modal-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  margin: 0 0 12px;
}
.cal-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-modal-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cal-modal-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  color: #fff;
  margin-top: 1px;
}
.cal-modal-badge--company        { background: #29b6d8; }
.cal-modal-badge--factory_closed { background: #e53935; }
.cal-modal-badge--branch_closed  { background: #fb8c00; }
.cal-modal-badge--overtime       { background: #43a047; }

/* カレンダー編集モード */
.cal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.cal-edit-btn {
  padding: 6px 20px;
  border: 1.5px solid #aaa;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}
.cal-edit-btn--factory.active {
  border-color: #e53935;
  color: #e53935;
}
.cal-edit-btn--event.active {
  border-color: #29b6d8;
  color: #29b6d8;
}
.calendar-page[data-edit-mode="factory_closed"] .cal-day,
.calendar-page[data-edit-mode="event"] .cal-day {
  cursor: pointer;
}
.calendar-page[data-edit-mode="factory_closed"] .cal-day:hover,
.calendar-page[data-edit-mode="event"] .cal-day:hover {
  background: #f0fbff;
}

/* 編集モーダル追加フォーム */
.cal-edit-form {
  border-top: 1px solid #eee;
  padding: 12px 18px 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.cal-edit-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.88rem;
  box-sizing: border-box;
}
.cal-edit-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
}
.cal-edit-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-edit-dates .cal-edit-input { width: auto; flex: 1; }
.cal-edit-date-sep { color: #888; font-size: 0.9rem; flex-shrink: 0; }
.cal-edit-add-btn {
  padding: 8px;
  background: #29b6d8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 600;
}
.cal-edit-add-btn:hover { background: #1ea3c5; }

/* 削除ボタン */
.cal-event-delete-btn {
  background: none;
  border: none;
  color: #e53935;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0 0 8px;
  flex-shrink: 0;
  line-height: 1;
  margin-left: auto;
  align-self: center;
}
.cal-modal-empty {
  color: #aaa;
  font-size: 0.85rem;
  padding: 4px 0;
  list-style: none;
}
.cal-decide-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.cal-day.pending-change  { outline: 2px solid #e53935; outline-offset: -2px; }
.cal-modal-item-body {}
.cal-modal-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
}
.cal-modal-item-desc {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
}

/* ==========================================================================
   カレンダー大改造：背景ベタ塗り・センター配置・ミントグリーン化
   ========================================================================== */

/* 1. 数字をマスの「ど真ん中（上下左右）」に配置するレイアウト調整 */
.calendar-page .cal-grid.cal-days .cal-day {
  display: flex !important;
  justify-content: center; /* 左右の真ん中 */
  align-items: center;     /* 上下の真ん中 */
  position: relative;      /* 重なったドットを右上につける基準線 */
  padding: 0 !important;   /* 内側の余白をリセットして綺麗に中央寄せ */
}

/* 今日の日付（水色丸）が真ん中で綺麗に浮き出るように微調整 */
.calendar-page .cal-day.today {
  display: flex !important;
}
.calendar-page .cal-day.today .cal-day-num {
  margin: 0; /* 中央配置のために余計なマージンをリセット */
}

/* 2. 工場休業日：薄ピンク背景 */
.calendar-page .cal-day.has-factory-closed {
  background-color: #FFD1DC !important; /* 薄いピンク */
}
/* 先月・来月の工場休業日は「さらに薄く（半透明に）」 */
.calendar-page .cal-day.other-month.has-factory-closed {
  background-color: #FFF0F2 !important;
}

/* 3. 会社行事：薄緑（ミントグリーン）背景 ➔ 今日の水色と被らない！ */
.calendar-page .cal-day.has-company-event {
  background-color: #D2F4EA !important; /* ミントグリーン */
}
/* 先月・来月の会社行事は「さらに薄く（半透明に）」 */
.calendar-page .cal-day.other-month.has-company-event {
  background-color: #EBFBF7 !important;
}

/* 4. 【年1回のレアケース】両方重なった日は「工場休み（ピンク）」を優先 */
.calendar-page .cal-day.has-factory-closed.has-company-event {
  background-color: #FFD1DC !important;
}

/* 5. 重なった日に出す、右肩の「大きめの緑ドット（白フチ付き）」 */
.cal-dot-overlap {
  position: absolute;
  top: 5px;    /* マスの右上からの隙間 */
  right: 5px;
  width: 9px;  /* 元の6pxから大きく */
  height: 9px;
  background-color: #0D9488 !important; /* 濃いめのミントグリーン */
  border-radius: 50% !important;
  border: 1.5px solid #ffffff !important; /* 💡 背景ピンクに負けない白いフチ */
  box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* ドットを立体的に見せる影 */
  z-index: 2;
}

/* 6. 画面下部にある「凡例」の丸も、新しいデザイン（ミントグリーン）に合わせる */
.calendar-page .cal-dot--company {
  background-color: #0D9488 !important; /* 凡例のドットも緑に変える */
}

/* 7. 編集モード時などのホバー（マウスを乗せた時）の背景色を馴染ませる */
.calendar-page[data-edit-mode="factory_closed"] .cal-day:hover,
.calendar-page[data-edit-mode="event"] .cal-day:hover {
  background: #e6f7ff !important;
  opacity: 0.9;
}

/* ========== シフト表 ========== */
.attendance-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.attendance-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.branch-btn {
  padding: 6px 14px;
  border: 1.5px solid #29b6d8;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #29b6d8;
  text-decoration: none;
  background: #fff;
  white-space: nowrap;
}
.branch-btn.active {
  background: #29b6d8;
  color: #fff;
}
.attendance-table-title { display: none; }
.attendance-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0 16px;
}
.attendance-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0 0 16px;
}
.attendance-section-note {
  font-size: 0.78rem;
  color: #888;
  text-align: left;
  margin: 0 0 16px;
}
.attendance-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}
.attendance-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  background: #fff;
  border: 1px solid #cce8f0;
  border-radius: 6px;
  overflow: hidden;
}
.attendance-table thead tr {
  background: #29b6d8;
  color: #fff;
}
.attendance-table th,
.attendance-table td {
  border: 1px solid #cce8f0;
  text-align: center;
  font-size: 0.78rem;
  padding: 4px 2px;
  min-width: 26px;
}
.attendance-table th.sun,
.attendance-table td.sun { color: #e53935; }
.attendance-table th.sat,
.attendance-table td.sat { color: #1976d2; }
.attendance-table thead th.sun { background: #ef9a9a; color: #fff; opacity: 1; }
.attendance-table thead th.sat { background: #90caf9; color: #fff; opacity: 1; }
.attendance-table thead th.att-today {
  background: #29b6d8;
  color: #fff;
  position: relative;
}
.attendance-table thead th.att-today::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  margin: 2px auto 0;
}
.attendance-table td.att-today {
  background: #e8f7fb;
  font-weight: 700;
}
.att-name-col {
  text-align: left !important;
  padding: 4px 10px !important;
  min-width: 80px !important;
  white-space: nowrap;
  font-weight: 500;
}
.attendance-table thead th.att-name-col {
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}
.att-cell { cursor: default; color: #333; }
.attendance-section.editing .att-cell {
  cursor: pointer;
  background: #f0fbff;
}
.attendance-section.editing .att-cell:hover { background: #d6f2fb; }
.attendance-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}
.att-edit-btn {
  padding: 7px 22px;
  border: 1.5px solid #aaa;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}
.attendance-section.editing .att-edit-btn {
  border-color: #29b6d8;
  color: #29b6d8;
}

/* ドラッグハンドル */
.att-drag-handle {
  display: none;
  cursor: grab;
  color: #bbb;
  font-size: 1rem;
  padding-right: 4px;
  user-select: none;
}
.attendance-section.editing .att-drag-handle { display: inline; }
.att-dragging { opacity: 0.4; }

/* 削除ボタン（×） */
.att-remove-btn {
  display: none;
  background: none;
  border: none;
  color: #e53935;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px 0 0;
  line-height: 1;
  vertical-align: middle;
}
.attendance-section.editing .att-remove-btn { display: inline; }

/* スタッフ追加ボタン */
.att-add-member-btn {
  display: none;
  padding: 7px 18px;
  border: 1.5px solid #29b6d8;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  color: #29b6d8;
  cursor: pointer;
  margin-right: auto;
  margin-left: 10px;
}
.attendance-section.editing .att-add-member-btn { display: inline-block; }

/* スタッフ追加モーダル */
.att-member-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.att-member-modal-overlay.open { display: flex; }
.att-member-modal {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.att-member-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
}
.att-member-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.att-member-modal-body {
  overflow-y: auto;
  flex: 1;
}
.att-member-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}
.att-member-input:focus { border-bottom-color: #29b6d8; }
.att-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 280px;
}
.att-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
  cursor: default;
}
.att-member-item.selected { background: #e8f7fb; }
.att-member-name { font-size: 0.9rem; color: #333; }
.att-member-branch { font-size: 0.75rem; color: #999; }
.att-member-empty,
.att-member-nomatch,
.att-member-error {
  text-align: center;
  color: #e53935;
  font-size: 0.82rem;
  padding: 8px 18px;
}
.att-member-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}
.att-member-add-btn {
  padding: 8px 28px;
  background: #29b6d8;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
}
.att-member-add-btn:hover { background: #1ea3c4; }

/* ========== アカウント管理 ========== */
/* パスワード認証画面 */
.admin-auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 16px;
}
.admin-auth-inner {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.admin-auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.admin-auth-desc {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 24px;
}
.admin-auth-form { margin-top: 0; }
.admin-auth-back {
  text-align: center;
  margin-top: 16px;
}
.admin-auth-back-link {
  font-size: 0.88rem;
  color: #888;
  text-decoration: none;
}
.admin-auth-back-link:hover { color: #333; }

/* ユーザー管理画面 */
.admin-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
}
.admin-back-link {
  font-size: 0.88rem;
  color: #888;
  text-decoration: none;
}
.admin-back-link:hover { color: #333; }

/* 権限凡例 */
.admin-role-legend {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 20px;
}
.admin-role-legend-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 0;
}
.admin-role-legend-row + .admin-role-legend-row {
  border-top: 1px solid #e8e8e8;
  margin-top: 4px;
  padding-top: 8px;
}

/* ロールバッジ */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.role-viewer    { background: #aaa; }
.role-poster    { background: #42a5f5; }
.role-president { background: #ab47bc; }
.role-editor    { background: #ef6c00; }
.shift-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #26a69a;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.form-check-input { width: 18px; height: 18px; cursor: pointer; }
.form-check-label { font-size: 0.95rem; cursor: pointer; }
.form-hint { font-size: 0.8rem; color: #888; margin: 0; }

/* テーブル */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  font-size: 0.9rem;
}
.admin-table th {
  background: #f0f2f5;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #555;
  font-size: 0.8rem;
}
.admin-table td {
  padding: 12px 14px;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table-row:hover td { background: #fafafa; }
.admin-td-name { font-weight: 600; color: #222; }
.admin-td-email { color: #888; font-size: 0.82rem; }
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-add-btn {
  display: inline-block;
  padding: 7px 18px;
  background: #29b6d8;
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-add-btn:hover { background: #0097b2; }
.admin-td-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-edit-btn {
  display: inline-block;
  padding: 6px 0;
  width: 72px;
  text-align: center;
  border: 1px solid #29b6d8;
  border-radius: 6px;
  color: #29b6d8;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.admin-edit-btn:hover { background: #29b6d8; color: #fff; }
.admin-delete-btn {
  display: inline-block;
  padding: 6px 0;
  width: 72px;
  text-align: center;
  border: 1px solid #e53935;
  border-radius: 6px;
  background: none;
  color: #e53935;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}
.admin-delete-btn:hover { background: #e53935; color: #fff; }
.admin-td-actions form { display: contents; }

/* 編集フォーム */
.admin-user-form {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  max-width: 560px;
}

/* ========== アカウント管理 カードグリッド ========== */
.admin-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  padding: 14px 16px 12px;
  width: calc(50% - 6px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .admin-card { width: 100%; }
}
.admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-card-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.admin-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}
.admin-card-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.admin-card-meta {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}
.admin-card-email {
  font-size: 0.78rem;
  color: #aaa;
  margin: 0;
  word-break: break-all;
}
.admin-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: stretch;
}
.admin-card-actions form {
  display: flex;
  margin: 0;
  padding: 0;
}

/* ========== ドロワー：TOPメッセージ編集ボタン ========== */
.drawer-announcement-edit { color: #1a73e8; }

/* ========== お知らせ編集モーダル ========== */
.announcement-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.announcement-modal.open {
  display: flex;
}
.announcement-modal-dialog {
  background: #fff;
  border-radius: 12px;
  width: min(480px, 92vw);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.announcement-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.announcement-modal-header h3 { margin: 0; font-size: 1.1rem; }
.announcement-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: #888;
}
.announcement-modal-body label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}
.announcement-modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.announcement-modal-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}
.announcement-modal-footer {
  margin-top: 20px;
  text-align: right;
}
.announcement-modal-submit {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
}
.announcement-modal-submit:hover { background: #1558b0; }
