/* Big Bamb 共通スタイル（単一CSSファイル） */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #1d1d1f;
  background-color: #f5f5f7;
  line-height: 1.6;
}

a {
  color: #0f62fe;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.admin-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 32px 16px;
}

.admin-header,
.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.admin-logo {
  font-weight: 600;
  font-size: 20px;
}

.admin-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.admin-login-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.admin-login-title {
  margin: 0 0 24px;
  font-size: 24px;
}

.admin-alert-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: #ffe5e5;
  color: #c11818;
  border-radius: 12px;
  font-size: 14px;
}

.admin-alert-success {
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: #e5f5e8;
  color: #1b7f3a;
  border-radius: 12px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
}

.form-group input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  font-size: 14px;
  outline: none;
  background-color: #f9f9fb;
}

.form-group input:focus {
  border-color: #0f62fe;
  box-shadow: 0 0 0 1px rgba(15, 98, 254, 0.2);
  background-color: #ffffff;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f62fe, #2f6bff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 98, 254, 0.35);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(15, 98, 254, 0.35);
}

.admin-dashboard {
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.admin-dashboard-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5ea;
  text-align: left;
}

.table th {
  font-weight: 600;
  background-color: #f5f5f7;
}

.pagination {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.pagination .page {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  font-size: 13px;
}

.pagination .page.current {
  background-color: #0f62fe;
  color: #ffffff;
  border-color: #0f62fe;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.user-detail-grid dl {
  margin: 0;
}

.user-detail-grid dt {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}

.user-detail-grid dd {
  margin: 0;
  font-size: 14px;
}

.page-links {
  margin-top: 24px;
  font-size: 14px;
}

.clickable-row {
  cursor: pointer;
}

 .stock-chart-wrapper {
  margin-top: 24px;
}

/* =========================================================
   フロント共通レイアウト（ヘッダー / メニュー / フッター）
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  display: block;
  height: 32px;
}

.mypage-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f7, #ffffff);
}

.mypage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

/* スライドメニュー */
.slide-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.25s ease-out;
  z-index: 110;
}

.slide-menu.open {
  right: 0;
}

.slide-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-mypage-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f7, #ffffff);
  cursor: pointer;
}

.slide-mypage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.slide-username {
  font-size: 15px;
  font-weight: 600;
}

.slide-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-menu nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: #1d1d1f;
  text-decoration: none;
}

.slide-menu nav li a:hover {
  background-color: #f5f5f7;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 105;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* メインコンテンツ */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

@media (min-width: 768px) {
  main {
    padding: 32px 24px 48px;
  }
}

/* ログイン案内（トップ用） */
.login-prompt-simple {
  margin: 24px auto 0;
  max-width: 480px;
  padding: 24px 16px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.line-login-button-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #06c755;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.line-login-button-simple i {
  display: block;
  font-size: 22px;
}

.line-login-button-simple span {
  line-height: 1;
}

.line-login-btn {
  display: inline-flex;
}

/* トップ：アイコン型クイックリンク */
.top-icon-links {
  margin: 24px 0 8px;
}

.top-icon-links__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #3a3a3c;
}

.top-icon-links__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 480px) {
  .top-icon-links__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .top-icon-links__grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
  }
}

.top-icon-links__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 8px;
  border-radius: 16px;
  background-color: #ffffff;
  color: #1d1d1f;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
}

.top-icon-links__card:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 98, 254, 0.12);
  border-color: rgba(15, 98, 254, 0.25);
  transform: translateY(-2px);
}

.top-icon-links__card:active {
  transform: translateY(0);
}

.top-icon-links__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(145deg, #0f62fe, #3b7cff);
}

.top-icon-links__card--admin .top-icon-links__icon {
  background: linear-gradient(145deg, #5c3d2e, #8b5a3c);
}

.top-icon-links__label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  word-break: keep-all;
}

/* フッター */
.site-footer {
  padding: 16px 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 13px;
  color: #555555;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-menu a {
  font-size: 13px;
}

.footer-copy a {
  color: inherit;
}

/* LINE出品文Bot */
.listing-bot {
  margin: 8px 0 24px;
}

.listing-bot h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
}

.listing-bot p,
.listing-bot-card p {
  margin: 0;
  color: #333333;
  line-height: 1.7;
}

.listing-bot-card {
  margin: 0 0 24px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.listing-bot-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
}

.listing-bot-steps {
  margin: 0;
  padding-left: 24px;
  color: #333333;
  line-height: 1.7;
}

.listing-bot-steps li + li {
  margin-top: 8px;
}

.listing-bot-url {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background-color: #f5f5f7;
  word-break: break-all;
  font-size: 14px;
}

.listing-bot-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-bot-status li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #333333;
}

.listing-bot-status .fa-circle-check {
  color: #06c755;
  margin-top: 4px;
}

.listing-bot-status .fa-circle-exclamation {
  color: #d97706;
  margin-top: 4px;
}

.listing-bot-categories {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-bot-categories li {
  padding: 8px 12px;
  border-radius: 999px;
  background-color: #f5f5f7;
  font-size: 13px;
  color: #333333;
  line-height: 1.4;
}

.listing-bot-drafts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-bot-draft {
  padding: 16px;
  border-radius: 12px;
  background-color: #f5f5f7;
}

.listing-bot-draft__meta,
.listing-bot-draft__note {
  margin: 0 0 8px;
  font-size: 13px;
  color: #555555;
}

.listing-bot-draft__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: #1d1d1f;
}

.top-icon-links__card--novel .top-icon-links__icon {
  background: linear-gradient(145deg, #5e5ce6, #7d7aff);
}

.top-icon-links__card--suno .top-icon-links__icon {
  background: linear-gradient(145deg, #ff7a45, #ffb020);
}

.studio-hub {
  margin: 8px 0 32px;
}

.studio-hub__lead {
  margin: 0 0 16px;
  color: #333333;
  line-height: 1.7;
}

.studio-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .studio-hub__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.studio-hub__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 24px;
  border-radius: 16px;
  background-color: #ffffff;
  color: #1d1d1f;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.studio-hub__card:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.studio-hub__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f62fe;
}

.studio-hub__card strong {
  font-size: 24px;
  line-height: 1.3;
}

.studio-hub__text {
  color: #333333;
  font-size: 15px;
  line-height: 1.7;
}

.studio-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.studio-intro h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.25;
  color: #1d1d1f;
}

.studio-intro p,
.studio-empty,
.studio-help,
.studio-meta {
  margin: 0;
  color: #333333;
  line-height: 1.7;
}

.studio-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f62fe;
}

.studio-card {
  padding: 24px;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.studio-card h2,
.studio-item__title {
  margin: 0;
  color: #1d1d1f;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.studio-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.studio-notice {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.6;
}

.studio-notice--success {
  background-color: #e8f6ee;
  color: #137333;
}

.studio-notice--error {
  background-color: #fdecec;
  color: #b42318;
}

.studio-card .form-group input,
.studio-card .form-group textarea,
.studio-card .form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background-color: #f9f9fb;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.studio-card .form-group textarea {
  min-height: 96px;
  resize: vertical;
}

.studio-body {
  min-height: 320px;
}

.studio-card .form-group input:focus,
.studio-card .form-group textarea:focus,
.studio-card .form-group select:focus {
  border-color: #0f62fe;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(15, 98, 254, 0.2);
}

.studio-count,
.studio-help {
  font-size: 13px;
  color: #555555;
}

.studio-card .form-actions {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-toolbar {
  margin: 0;
}

.btn-quiet,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background-color: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-danger {
  background-color: transparent;
  color: #b42318;
}

.studio-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background-color: #f5f5f7;
}

.studio-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-item__title {
  text-decoration: none;
}

a.studio-item__title:hover {
  color: #0f62fe;
}

.studio-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555555;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #ffffff;
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 600;
}

.studio-badge--published {
  background-color: #e8f6ee;
  color: #137333;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-actions form {
  margin: 0;
}

.novel-page-label {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3c;
}

.novel-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.novel-pager__label {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.novel-pager__select {
  width: auto;
  min-width: 96px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background-color: #f9f9fb;
  color: #1d1d1f;
  font-size: 16px;
}

.btn-quiet.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

#novel-form .form-actions .novel-form__add {
  order: 1;
}

#novel-form .form-actions .novel-form__save {
  order: 2;
}

.studio-prose {
  margin-top: 16px;
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.studio-switch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.studio-switch input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.studio-switch__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-switch__tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#src-link:checked ~ .studio-switch__tabs label[for="src-link"],
#src-upload:checked ~ .studio-switch__tabs label[for="src-upload"] {
  background-color: #1d1d1f;
  color: #ffffff;
}

.studio-switch__panel {
  display: none;
}

#src-link:checked ~ .studio-switch__panel--link,
#src-upload:checked ~ .studio-switch__panel--upload {
  display: block;
}

.studio-embed,
.studio-audio {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background-color: #ffffff;
}

.studio-embed {
  height: 240px;
}

a.studio-badge {
  text-decoration: none;
}

.studio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.studio-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 16px;
  border-radius: 999px;
  background-color: #f5f5f7;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.studio-filters a.is-active {
  background-color: #1d1d1f;
  color: #ffffff;
}

.studio-lyrics-box {
  margin-top: 8px;
}

.studio-lyrics-box summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.studio-lyrics {
  margin: 8px 0 0;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.studio-artist {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
}

.studio-tag-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-tag-editor__list,
.studio-tag-editor__add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-tag-editor__add input {
  flex: 1 1 180px;
  min-width: 0;
}

.studio-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px 4px 12px;
  border-radius: 999px;
  background-color: #f5f5f7;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
}

.studio-tag__remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: #555555;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* ===================== ここから やりたい事リスト・ミライ・家族のスケジュール（もと wish.css / chat.css / family.css） ===================== */
/* やりたい事リスト */
.wish { max-width: 720px; margin: 0 auto; padding: 12px 16px 40px; box-sizing: border-box; }
.wish *, .wish *::before, .wish *::after { box-sizing: border-box; }
.wish-title { font-size: 22px; margin: 6px 0 12px; line-height: 1.35; word-break: break-word; }
.wish-error { color: #c0392b; }
.wish-card { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.wish-card h2 { font-size: 16px; margin: 0 0 8px; }
.wish-sub { font-size: 12px; color: #888; margin: 4px 0; }
.wish-msg { font-size: 13px; color: #777; margin: 6px 0 0; min-height: 1em; }
.wish-back { display: inline-block; margin: 4px 0 8px; font-size: 14px; color: #555; text-decoration: none; }

/* まとめ */
.wish-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.wish-summary div { background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.wish-summary b { display: block; font-size: 26px; line-height: 1.1; color: #2c7a4b; }
.wish-summary small { font-size: 14px; }
.wish-summary span { font-size: 12px; color: #777; }

/* 入力 */
.wish input[type=text], .wish textarea, .wish select, .wish input[type=date] {
  width: 100%; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid #ddd; border-radius: 10px; background: #fff;
}
.wish textarea { margin-top: 8px; resize: vertical; }
.wish-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wish-row label { flex: 1 1 140px; font-size: 12px; color: #666; display: flex; flex-direction: column; gap: 4px; }
.wish-chk { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 10px 0; }
.wish-btn {
  display: inline-block; padding: 10px 18px; font-size: 15px; font-weight: 700; color: #fff; background: #2c7a4b;
  border: 0; border-radius: 999px; cursor: pointer;
}
.wish-btn:disabled { opacity: .5; cursor: default; }
.wish-btn.sub { background: #e8f3ec; color: #2c7a4b; }
.wish-btn.danger { background: #fff; color: #c0392b; border: 1px solid #f0c4be; margin-left: 6px; }

/* タブと一覧 */
.wish-tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.wish-tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 10px; background: #f1f3f2; color: #555; text-decoration: none; font-size: 14px; font-weight: 700; }
.wish-tabs a.on { background: #2c7a4b; color: #fff; }
.wish-empty { text-align: center; color: #888; font-size: 14px; padding: 20px 0; }
.wish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wish-item a { display: block; background: #fff; border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.wish-item.st-done a { background: #f6fbf7; }
.wish-item.st-paused a { opacity: .7; }
.wi-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef1f0; color: #555; }
.chip.soon { background: #fff2d6; color: #9a6b00; }
.chip.over { background: #fde5e2; color: #c0392b; }
.chip.done { background: #dff3e6; color: #1e7d45; }
.chip.paused { background: #ececec; color: #777; }
.wi-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; word-break: break-word; }
.wi-bar { height: 8px; background: #eceeed; border-radius: 99px; overflow: hidden; }
.wi-bar div { height: 100%; background: linear-gradient(90deg, #4caf73, #2c7a4b); border-radius: 99px; transition: width .4s; }
.wi-bar.big { height: 14px; }
.wi-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.wi-next { font-size: 12px; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-pct { font-size: 15px; color: #2c7a4b; flex: none; }

/* 1件の画面 */
.wish-reason { font-size: 14px; color: #555; margin: -4px 0 10px; }
.wish-progress .pct { font-size: 14px; color: #2c7a4b; margin-bottom: 4px; }
.wish-progress .pct b { font-size: 36px; }
.wish-slider { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.wish-slider input { flex: 1; }
.wish-chart-box { margin-top: 12px; }
.wish-chart { width: 100%; height: auto; display: block; }
.wish-chart .grid { stroke: #e6e8e7; stroke-dasharray: 4 4; }
.wish-chart .area { fill: rgba(76, 175, 115, .15); }
.wish-chart .line { fill: none; stroke: #2c7a4b; stroke-width: 2.5; stroke-linejoin: round; }
.wish-chart-x { display: flex; justify-content: space-between; font-size: 11px; color: #999; }
.wish-first { background: #f2f8f4; border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 0 0 8px; }
.wish-advice { font-size: 14px; line-height: 1.75; margin: 0 0 6px; }
.step-list { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: step; }
.step { position: relative; padding: 10px 30px 10px 0; border-bottom: 1px solid #f0f0f0; }
.step-main { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.step-main input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #2c7a4b; }
.step-title { font-size: 15px; font-weight: 700; }
.step-est { font-size: 11px; color: #9a6b00; background: #fff2d6; border-radius: 6px; padding: 1px 6px; margin-left: auto; flex: none; }
.step.done .step-title { text-decoration: line-through; color: #999; }
.step-detail { font-size: 13px; color: #666; margin: 4px 0 0 28px; }
.step.done .step-detail { color: #aaa; }
.step-del { position: absolute; right: 0; top: 8px; border: 0; background: none; color: #bbb; font-size: 18px; cursor: pointer; }
.step-add { display: flex; gap: 8px; }
.step-add input { flex: 1; }
.wish-edit summary { cursor: pointer; font-weight: 700; }
.wish-edit input[type=text] { margin-top: 10px; }
.wish-edit .wish-btn { margin-top: 10px; }

/* 最初に書いた文 */
.wish-orig { margin: -4px 0 10px; font-size: 13px; color: #777; }
.wish-orig summary { cursor: pointer; }
.wish-orig p { margin: 6px 0 0; padding: 8px 10px; background: #f7f8f7; border-radius: 8px; }


/* 通知の設定 */
.nf-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nf-mode { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 8px; font-size: 14px; }
.nf-mode label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nf-h2 { margin-top: 16px !important; }
.nf-ios { background: #fff8e6; border-radius: 8px; padding: 8px 10px; color: #8a6400; }
.wish-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; margin: -6px 0 10px; }
.wish-links a { font-size: 13px; color: #2c7a4b; text-decoration: none; font-weight: 700; }
.wish-said { list-style: none; margin: 0; padding: 0; }
.wish-said li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.wish-said small { display: block; color: #999; font-size: 11px; }

/* 無料・低価格で使えるもの */
.wish-res { list-style: none; margin: 4px 0 6px; padding: 0; }
.wish-res li { font-size: 14px; padding: 6px 0; border-bottom: 1px dashed #eee; line-height: 1.6; }
.wish-res .cost { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-right: 6px; }
.wish-res .cost-free { background: #dff3e6; color: #1e7d45; }
.wish-res .cost-low { background: #fff2d6; color: #9a6b00; }

/* トップの「ミライに報告」 */
.wish-coach {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; margin: 0 0 12px;
  text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); border: 2px solid #cfe9d9;
}
.wish-coach .wc-av { width: 44px; height: 44px; border-radius: 50%; background: #eef7f1; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.wish-coach div { flex: 1; min-width: 0; }
.wish-coach b { display: block; font-size: 15px; color: #2c7a4b; }
.wish-coach small { font-size: 12px; color: #777; }
.wish-coach .wc-arrow { font-style: normal; font-size: 22px; color: #9db1a5; }

/* 作戦メモ（2026-10-29） */
.wish-note { border-top: 1px solid #eee; padding: 8px 0; }
.wish-note summary { cursor: pointer; font-size: 15px; }
.wish-note summary small { color: #999; font-weight: normal; margin-left: 4px; }
.wish-note p { white-space: normal; line-height: 1.7; font-size: 14px; background: #f7faf8; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.wish-note .wish-btn { width: auto; display: inline-block; padding: 6px 14px; font-size: 13px; margin: 0 6px 0 0; }
/* チャットのやりたい事の帯 */
.chat-wishes { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.chat-wishes::-webkit-scrollbar { display: none; }
.chat-wishes a { flex: none; text-decoration: none; background: #fff; border: 1px solid #cfe0d6; border-radius: 12px; padding: 6px 10px; font-size: 12px; color: #333; max-width: 11em; }
.chat-wishes a b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-wishes .cw-bar { display: block; height: 4px; background: #e6efe9; border-radius: 9px; margin-top: 4px; overflow: hidden; font-style: normal; }
.chat-wishes .cw-bar span { display: block; height: 100%; background: #2c7a4b; }
.chat-wishes a.all { background: #fff; color: #2c7a4b; border: 1px dashed #2c7a4b; display: flex; align-items: center; font-weight: bold; }
/* チャットの部屋（2026-10-29）：開いている部屋は塗りつぶす */
.chat-wishes a.room { min-height: 48px; padding: 8px 16px; }
.chat-wishes a.room small { display: block; font-size: 11px; color: #6b7d72; margin-top: 4px; }
.chat-wishes a.room.on { background: #2c7a4b; color: #fff; border-color: #2c7a4b; }
.chat-wishes a.room.on small { color: #e6f2ea; }
.chat-wishes a.room.on .cw-bar { background: rgba(255, 255, 255, .35); }
.chat-wishes a.room.on .cw-bar span { background: #fff; }
.act-link { display: inline-block; margin: 2px 0 0 4px; font-size: 13px; color: #2c7a4b; }

/* AI社員ミライとのチャット */
.chat-body { background: #eef3f0; }
.chat-body .site-footer { display: none; }
.chat { max-width: 720px; margin: 0 auto; padding: 0 12px calc(150px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.chat-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  background: #eef3f0; border-bottom: 1px solid #dfe7e2;
}
.chat-head b { display: block; font-size: 16px; }
.chat-head small { font-size: 11px; color: #6b7d72; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-back, .chat-set { text-decoration: none; font-size: 24px; color: #2c7a4b; padding: 0 6px; }
.chat-set { font-size: 18px; }
.chat-av, .msg .av {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.chat-log { padding: 12px 0; }
.chat-empty { background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #555; }
.msg { display: flex; gap: 8px; margin: 12px 0; align-items: flex-start; }
.msg.me { justify-content: flex-end; }
.msg .col { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.msg.me .col { align-items: flex-end; }
.bubble { padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.65; word-break: break-word; }
.msg.ai .bubble { background: #fff; border-top-left-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.msg.me .bubble { background: #2c7a4b; color: #fff; border-top-right-radius: 4px; }
.msg.me.pending .bubble { opacity: .6; }
.msg.checkin .bubble { border: 2px solid #f3d27a; }
.msg .tag { font-size: 11px; color: #a07400; font-weight: 700; }
.msg .tm { font-size: 10px; color: #8a9a90; }
.msg .act {
  text-align: left; border: 1px solid #9fd8b5; background: #f0faf4; color: #1e7d45; font-size: 13px; font-weight: 700;
  border-radius: 12px; padding: 8px 12px; cursor: pointer;
}
.msg .act.done { background: #f4f6f5; border-color: #dfe5e1; color: #6b7d72; cursor: default; }
.bubble.typing { display: flex; gap: 4px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9db1a5; animation: dot 1s infinite ease-in-out; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-quick {
  position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px; max-width: 720px; margin: 0 auto; box-sizing: border-box;
  scrollbar-width: none;
}
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button {
  flex: none; border: 1px solid #cfe0d6; background: #fff; color: #2c7a4b; border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.chat-input {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; align-items: flex-end;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dfe7e2;
}
.chat-input textarea {
  flex: 1; resize: none; font: inherit; font-size: 16px; line-height: 1.5; padding: 9px 12px; border: 1px solid #d5ddd8;
  border-radius: 18px; max-height: 140px; box-sizing: border-box;
}
.chat-input button {
  border: 0; background: #2c7a4b; color: #fff; font-weight: 700; border-radius: 18px; padding: 10px 16px; font-size: 15px; cursor: pointer;
}
.chat-input button:disabled { opacity: .5; }
@media (min-width: 760px) { .chat-input, .chat-quick { max-width: 720px; margin: 0 auto; } }

/* 家族のスケジュール */
.fam-welcome { background: #e9f7ef; color: #1e7d45; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* カレンダー */
.fam-cal-card { padding: 12px 10px; }
.fam-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fam-cal-head b { font-size: 17px; flex: 1; text-align: center; }
.fam-nav, .fam-today { border: 0; background: #f1f3f2; border-radius: 10px; height: 34px; min-width: 34px; font-size: 18px; cursor: pointer; color: #333; }
.fam-today { font-size: 13px; padding: 0 10px; font-weight: 700; }
.fam-week, .fam-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.fam-week span { text-align: center; font-size: 11px; color: #888; padding-bottom: 4px; }
.fam-week .sun { color: #d0453a; } .fam-week .sat { color: #2f7bd9; }
.fam-day {
  min-height: 64px; border: 0; border-top: 1px solid #eef0ef; background: #fff; padding: 3px 2px; text-align: left;
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; overflow: hidden; font: inherit;
}
.fam-day .n { font-size: 12px; font-weight: 700; color: #333; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; }
.fam-day.sun .n { color: #d0453a; } .fam-day.sat .n { color: #2f7bd9; }
.fam-day.out { background: #fafbfa; } .fam-day.out .n { color: #bbb; }
.fam-day.today .n { background: #2c7a4b; color: #fff; }
.fam-day.sel { background: #eef7f1; }
.fam-day .ev {
  display: block; font-size: 10px; line-height: 1.35; color: #fff; background: var(--c, #555); border-radius: 4px; padding: 0 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fam-day .more { font-size: 10px; color: #888; padding-left: 2px; }
.fam-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: #555; }
.fam-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 4px; vertical-align: -1px; }

/* 予定の一覧 */
.fam-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fam-day-head h2 { margin: 0; }
.fam-list { list-style: none; margin: 0; padding: 0; }
.fam-list li { border-left: 4px solid var(--c, #555); padding: 8px 10px; margin: 8px 0; background: #fafbfa; border-radius: 0 10px 10px 0; cursor: pointer; }
.fam-list li.none { border: 0; background: none; color: #888; font-size: 14px; cursor: default; padding-left: 0; }
.fam-list .t { font-size: 12px; color: #666; }
.fam-list .ti { font-size: 15px; font-weight: 700; margin: 1px 0; }
.fam-list .who { font-size: 12px; color: var(--c, #555); font-weight: 700; }
.fam-list .who small { color: #999; font-weight: 400; margin-left: 4px; }
.fam-list .memo { font-size: 13px; color: #555; margin-top: 4px; white-space: pre-wrap; }

/* 設定 */
.fam-settings summary { cursor: pointer; font-weight: 700; }
.fam-settings h3 { font-size: 14px; margin: 16px 0 6px; color: #2c7a4b; }
.fam-members { list-style: none; margin: 0; padding: 0; }
.fam-members li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.fam-members .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.fam-members small { color: #999; }
.fam-invite { display: flex; gap: 8px; }
.fam-invite input { flex: 1; font-size: 13px !important; }
.fam-line { display: inline-block; margin-top: 8px; background: #06c755 !important; text-decoration: none; }
.fam .btn-link { border: 0; background: none; color: #c0392b; font-size: 13px; cursor: pointer; }
.fam-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.fam-colors button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #ddd; cursor: pointer; }
.fam-colors button.on { box-shadow: 0 0 0 3px var(--c); }

/* 予定の入力 */
.fam-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; }
.fam-modal[hidden] { display: none; }
.fam-modal-box {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box;
}
.fam-modal-box h2 { margin: 0 0 10px; font-size: 17px; }
.fam-who-label { display: block; font-size: 12px; color: #666; margin-top: 10px; }
.fam-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fam-who label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 2px solid var(--c); color: var(--c); font-weight: 700; cursor: pointer; }
.fam-who input { accent-color: var(--c); }
.fam-modal-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (min-width: 600px) {
  .fam-modal { align-items: center; }
  .fam-modal-box { border-radius: 18px; }
  .fam-day { min-height: 84px; }
  .fam-day .ev { font-size: 11px; }
}

/* ===== 共通の小物（2026-10-29：絵文字をやめて Font Awesome に。直書きの CSS をここへ移した） ===== */
.ico { margin-right: 8px; }
.ico-only { margin: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.wish-btn.is-link { display: inline-block; text-decoration: none; }
.wish-msg.is-big { font-size: 14px; }
.chat-denied { margin: 8px 16px; }
/* 進み具合の棒の長さ（5% きざみ。style 属性の代わり） */
.pw-0 { width: 0% !important; }
.pw-5 { width: 5% !important; }
.pw-10 { width: 10% !important; }
.pw-15 { width: 15% !important; }
.pw-20 { width: 20% !important; }
.pw-25 { width: 25% !important; }
.pw-30 { width: 30% !important; }
.pw-35 { width: 35% !important; }
.pw-40 { width: 40% !important; }
.pw-45 { width: 45% !important; }
.pw-50 { width: 50% !important; }
.pw-55 { width: 55% !important; }
.pw-60 { width: 60% !important; }
.pw-65 { width: 65% !important; }
.pw-70 { width: 70% !important; }
.pw-75 { width: 75% !important; }
.pw-80 { width: 80% !important; }
.pw-85 { width: 85% !important; }
.pw-90 { width: 90% !important; }
.pw-95 { width: 95% !important; }
.pw-100 { width: 100% !important; }
/* 家族の色（style 属性の代わり。family_lib.php の FAMILY_COLORS と同じ） */
.fc-e2553f { --c: #e2553f; }
.fc-2f7bd9 { --c: #2f7bd9; }
.fc-2c9a5a { --c: #2c9a5a; }
.fc-d89a00 { --c: #d89a00; }
.fc-8b5cd6 { --c: #8b5cd6; }
.fc-e0457b { --c: #e0457b; }
.fc-0f9bb0 { --c: #0f9bb0; }
.fc-7a6a58 { --c: #7a6a58; }
.fc-555 { --c: #555; }

/* わたしのこと（profile.php） */
.pf-field { margin: 0 0 16px; }
.pf-field label { display: block; font-weight: bold; margin-bottom: 8px; }
.pf-field textarea { width: 100%; box-sizing: border-box; min-height: 96px; padding: 8px; font-size: 15px; line-height: 1.6; border: 1px solid #ddd; border-radius: 12px; }
.pf-note { font-size: 13px; color: #666; margin: 0 0 16px; line-height: 1.6; }
.pf-ok { background: #e8f5ec; color: #2c7a4b; padding: 8px 16px; border-radius: 12px; }

/* 自分診断（shindan.php） */
.sd-note { font-size: 13px; color: #666; line-height: 1.6; margin: 0 0 16px; }
.sd-q { margin: 0 0 24px; }
.sd-q > b { display: block; margin-bottom: 8px; }
.sd-q .num { color: #2c7a4b; margin-right: 4px; }
.sd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sd-opts label { display: block; border: 1px solid #dfe7e2; border-radius: 12px; padding: 8px 8px; font-size: 14px; cursor: pointer; background: #fff; min-height: 48px; }
.sd-opts input { position: absolute; opacity: 0; pointer-events: none; }
.sd-opts label:has(input:checked) { background: #2c7a4b; border-color: #2c7a4b; color: #fff; font-weight: bold; }
.sd-opts input:focus-visible + span { outline: 2px solid #2c7a4b; outline-offset: 2px; }
.sd-q textarea { width: 100%; box-sizing: border-box; min-height: 72px; padding: 8px; font-size: 15px; border: 1px solid #ddd; border-radius: 12px; }
.sd-type { text-align: center; padding: 24px 16px; }
.sd-type small { color: #666; }
.sd-type h2 { font-size: 24px; margin: 8px 0; color: #2c7a4b; }
.sd-trait { display: grid; grid-template-columns: 6.5em 1fr 2em; gap: 8px; align-items: center; margin: 8px 0 0; font-size: 14px; }
.sd-bar { height: 8px; background: #e6efe9; border-radius: 99px; overflow: hidden; }
.sd-bar span { display: block; height: 100%; background: #2c7a4b; border-radius: 99px; }
.sd-trait-c { font-size: 12px; color: #666; margin: 0 0 8px 7.2em; }
.sd-list { margin: 0; padding-left: 1.2em; line-height: 1.7; }
.sd-review { list-style: none; padding: 0; margin: 0; }
.sd-review li { border-top: 1px solid #eee; padding: 8px 0; font-size: 14px; line-height: 1.6; }
.sd-lv { display: inline-block; font-size: 12px; font-weight: bold; padding: 0 8px; border-radius: 99px; margin-right: 8px; }
.lv1 { background: #e3f4e8; color: #23784a; } .lv2 { background: #eef1f5; color: #4a5a70; }
.lv3 { background: #fff2dc; color: #a2620b; } .lv4 { background: #fde6e4; color: #b3342a; }
.sd-ok { background: #e8f5ec; color: #2c7a4b; padding: 8px 16px; border-radius: 12px; }
.sd-hist { font-size: 13px; line-height: 1.9; }
.sd-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-row form { margin: 0; }
.sd-row .wish-btn.sub { background: #fff; color: #2c7a4b; border: 1px solid #2c7a4b; }

/* 会員の管理（admin/members.php） */
.mb-list { list-style: none; margin: 0; padding: 0; }
.mb-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.mb-list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eee; }
.mb-name { flex: 1 1 160px; min-width: 0; }
.mb-name b { display: block; }
.mb-name small { color: #888; font-size: 12px; }
.mb-rank { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.r-super { background: #fde5e2; color: #c0392b; } .r-family { background: #dff3e6; color: #1e7d45; } .r-normal { background: #eef1f0; color: #555; }
.mb-list form { display: flex; gap: 8px; }
.mb-list select { width: auto !important; padding: 8px !important; font-size: 14px !important; }

/* ===== AI担当チーム（6人。名前だけ借りたオリジナルの担当者）：担当者ごとの色。coach_lib.php の COACH_STAFF と同じキー ===== */
.st-mirai { --st: #2c7a4b; }
.st-bright { --st: #2b4a7a; }
.st-emma { --st: #7a4fc4; }
.st-lou { --st: #b5477e; }
.st-astonaige { --st: #2f6fc4; }
.st-kai { --st: #9a6a00; }
.st-team { --st: #5d6f64; }
.chat-av[class*="st-"], .msg .av[class*="st-"], .chat-staff .av { background: var(--st); color: #fff; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--st, #2c7a4b); }
.msg .who small { font-weight: 400; color: #8a9a90; margin-left: 8px; }
.msg.ai[class*="st-"] .bubble { border-left: 3px solid var(--st); }
.chat-staff { background: #fff; border-radius: 16px; margin: 8px 0; padding: 8px 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); }
.chat-staff summary { cursor: pointer; font-weight: 700; font-size: 14px; line-height: 32px; color: #2c7a4b; }
.chat-staff ul { list-style: none; margin: 8px 0; padding: 0; }
.chat-staff li { display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; border-radius: 12px; }
.chat-staff li.on { background: #f5f9f6; }
.chat-staff li div { flex: 1 1 160px; min-width: 0; }
.chat-staff li b { display: block; color: var(--st); }
.chat-staff li small { font-size: 12px; color: #666; }
.chat-staff .av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.chat-staff .wish-btn { padding: 8px 16px; font-size: 13px; min-height: 40px; }

/* ===== ログイン画面（login.php。2026-10-30） ===== */
.login-card { max-width: 440px; margin: 24px auto; text-align: center; padding: 32px 24px; }
.login-card .wish-title { margin: 0 0 16px; }
.login-lead { font-size: 15px; line-height: 1.8; color: #333; margin: 0 0 24px; }
.login-card .line-login-btn { margin: 0 0 24px; }
.login-feat { list-style: none; margin: 0 0 16px; padding: 16px; background: #f5f9f6; border-radius: 12px; text-align: left; font-size: 14px; line-height: 1.6; color: #333; }
.login-feat li { padding: 8px 0; }
.login-feat li i { color: #2c7a4b; width: 1.2em; text-align: center; }