/* 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 svg {
  display: block;
}

.line-login-button-simple span {
  line-height: 1;
}

/* フッター */
.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;
}

/* ----- テンプレ：インライン廃止用（単一CSSへ集約） ----- */

.login-line-btn-wrap {
  text-align: center;
}

.landing-main {
  padding: 24px;
  max-width: 36rem;
  margin: 0 auto;
}

.alert-error {
  color: #b00020;
  line-height: 1.6;
}

body.page-line-friend {
  padding: 32px;
  max-width: 32rem;
  margin: 0 auto;
}

/* =========================================================
   部屋作業リスト
   ========================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.work-app {
  padding-bottom: 88px;
}

.work-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d1d1f;
}

.work-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.work-main h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.work-main h2 {
  margin: 32px 0 16px;
  font-size: 20px;
}

.work-lead {
  margin: 0 0 24px;
  color: #333333;
  line-height: 1.7;
}

.work-month-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.work-month-tabs__item {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.work-month-tabs__item.is-active {
  background: #1d1d1f;
  color: #ffffff;
}

.work-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.work-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.work-stat-card__label,
.work-stat-card__sub {
  margin: 0;
  font-size: 12px;
  color: #555555;
}

.work-stat-card__value {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.work-search,
.work-filter,
.work-bulk,
.work-login-card,
.work-property-card,
.work-room-card,
.work-ops-card,
.work-bulletin-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.work-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  margin-bottom: 32px;
}

.work-search input[type="search"] {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: transparent;
  font-size: 16px;
}

.work-pref-list,
.work-property-list,
.work-room-list,
.work-ops-list,
.work-bulletin {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-pref-card,
.work-property-card {
  display: block;
  padding: 16px;
  color: #1d1d1f;
  text-decoration: none;
}

.work-pref-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.work-pref-card__name {
  font-weight: 600;
  min-width: 72px;
}

.work-pref-card__meta {
  flex: 1;
  color: #555555;
  font-size: 14px;
}

.work-filter {
  display: grid;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.work-filter label,
.work-bulk label,
.work-room-card label,
.work-ops-form label,
.work-login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #555555;
}

.work-filter select,
.work-filter input,
.work-bulk input,
.work-room-card input,
.work-ops-form input,
.work-ops-form textarea,
.work-login-form input {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  background: #f9f9fb;
  font-size: 16px;
}

.work-filter__check {
  flex-direction: row !important;
  align-items: center;
  min-height: 48px;
}

.work-count {
  margin: 0 0 16px;
  color: #555555;
  font-size: 14px;
}

.work-property-card__top,
.work-room-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.work-property-card h2,
.work-property-card h3,
.work-room-card h3 {
  margin: 0;
  font-size: 18px;
}

.work-property-card__meta,
.work-property-card__dates,
.work-room-card__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555555;
}

.work-property-card__rooms {
  margin: 8px 0 0;
  font-weight: 600;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f5f5f7;
  color: #333333;
}

.work-tag--pre_install { background: #e8f1ff; color: #0f62fe; }
.work-tag--after_switch { background: #fff4d6; color: #8a6d00; }
.work-tag--no_install { background: #f1f1f3; color: #666666; }
.work-tag--remove_existing { background: #ffece5; color: #c11818; }
.work-tag--meter_check { background: #e9f8ef; color: #1b7f3a; }
.work-tag--add,
.work-tag--gw { background: #e8f1ff; color: #0f62fe; }

.work-back {
  margin: 0 0 16px;
}

.work-back a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
}

.work-def {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 24px;
}

.work-def dt {
  font-size: 12px;
  color: #555555;
}

.work-def dd {
  margin: 4px 0 0;
}

.work-note {
  padding: 16px;
  border-radius: 12px;
  background: #fff6e5;
  color: #333333;
}

.work-note--small {
  margin: 8px 0;
  padding: 8px 12px;
  font-size: 13px;
}

.work-bulk {
  padding: 16px;
  margin-bottom: 24px;
}

.work-bulk h2,
.work-ops-card summary,
.work-bulletin-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.work-bulk__row,
.work-room-card__fields,
.work-ops-grid {
  display: grid;
  gap: 16px;
}

.work-room-card,
.work-bulletin-card,
.work-ops-card {
  padding: 16px;
}

.work-ops-card summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.work-ops-card summary::-webkit-details-marker {
  display: none;
}

.work-ops-card__title {
  display: block;
  font-weight: 700;
}

.work-ops-card__sub,
.work-ops-address {
  display: block;
  color: #555555;
  font-size: 13px;
}

.work-ops-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.work-ops-notice textarea {
  min-height: 96px;
}

.work-sticky-save {
  position: sticky;
  bottom: 88px;
  padding: 16px 0;
}

.work-sticky-save .btn-primary,
.work-ops-form .btn-primary,
.work-login-form .btn-primary,
.work-bulk .btn-primary,
.work-filter .btn-primary,
.work-search .btn-primary {
  min-height: 48px;
  width: 100%;
}

.work-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.work-bottom-nav__item {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #555555;
  font-size: 11px;
  text-decoration: none;
}

.work-bottom-nav__item.is-active {
  color: #0f62fe;
}

.work-footer {
  margin-bottom: 8px;
}

.work-empty {
  padding: 24px 0;
  color: #555555;
}

.work-login-main {
  display: grid;
  gap: 24px;
}

.work-login-card {
  padding: 24px;
}

.work-login-form {
  display: grid;
  gap: 16px;
}

.work-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 88px;
  z-index: 120;
  padding: 16px;
  border-radius: 12px;
  background: #1d1d1f;
  color: #ffffff;
  text-align: center;
}

.work-property-card--static {
  margin-bottom: 8px;
}

.work-summary-table tfoot th {
  background: #f5f5f7;
  font-weight: 700;
}

.work-composer,
.work-hub-add {
  padding: 16px;
  margin-bottom: 24px;
}

.work-composer form,
.work-composer label {
  display: grid;
  gap: 16px;
}

.work-composer textarea {
  min-height: 160px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  background: #f9f9fb;
  font-size: 16px;
}

.work-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-btn-danger {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #ffe5e5;
  color: #c11818;
  font-weight: 600;
  cursor: pointer;
}

.work-share-link {
  margin: 0 0 16px;
}

.work-share-link a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
}

.work-ops-form h3 {
  margin: 0;
  font-size: 16px;
}

@media (min-width: 768px) {
  .work-main {
    padding: 32px 24px 64px;
  }

  .work-filter,
  .work-bulk__row,
  .work-room-card__fields,
  .work-ops-grid,
  .work-def {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-sticky-save .btn-primary,
  .work-ops-form .btn-primary,
  .work-filter .btn-primary,
  .work-bulk .btn-primary {
    width: auto;
    min-width: 160px;
  }
}

