﻿/* ================================================
   縺翫￥縺ｿ縺・(okumise) 窶・繝悶Λ繝ｳ繝峨せ繧ｿ繧､繝ｫ
   繧ｫ繝ｩ繝ｼ繝代Ξ繝・ヨ:
     閭梧勹    : #FFFBF5
     繧ｫ繝ｼ繝・ : #FFFFFF
     繧｢繧ｯ繧ｻ繝ｳ繝・ #E8920B
     繝帙ヰ繝ｼ  : #C67A08
     繧ｵ繝・   : #F5C563
     繝・く繧ｹ繝井ｸｻ: #1A1A2E
     繝・く繧ｹ繝亥憶: #6B7280
     謌仙粥    : #10B981
     隴ｦ蜻・   : #F59E0B
     繧ｨ繝ｩ繝ｼ  : #EF4444
     繝懊・繝繝ｼ: #F3F0EB
   ================================================ */

/* 笏笏 Google Fonts 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 笏笏 繝吶・繧ｹ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #FFFBF5;
  color: #1A1A2E;
  margin: 0;
  line-height: 1.6;
}

a {
  color: #E8920B;
  text-decoration: none;
}
a:hover {
  color: #C67A08;
}

/* 笏笏 繝ｬ繧､繧｢繧ｦ繝・笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid #F3F0EB;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.main-content {
  margin-left: 240px;
  padding: 32px;
  min-height: 100vh;
}

.header {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F0EB;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* 笏笏 繝懊ち繝ｳ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: #E8920B;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-primary:hover:not(:disabled) {
  background: #C67A08;
  box-shadow: 0 4px 12px rgba(232,146,11,0.3);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-secondary {
  background: #FFFFFF;
  color: #1A1A2E;
  border: 1px solid #F3F0EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-secondary:hover:not(:disabled) {
  background: #FFFBF5;
  border-color: #E8920B;
  color: #E8920B;
}

.btn-danger {
  background: #EF4444;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* 笏笏 繧ｫ繝ｼ繝・笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.card {
  background: #FFFFFF;
  border: 1px solid #F3F0EB;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 笏笏 繝輔か繝ｼ繝 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #F3F0EB;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #1A1A2E;
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #E8920B;
  box-shadow: 0 0 0 3px rgba(232,146,11,0.12);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1A1A2E;
  margin-bottom: 6px;
}

/* 笏笏 繧ｹ繝斐リ繝ｼ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 0.45rem;
  flex-shrink: 0;
}
.spinner-accent {
  border-color: rgba(232,146,11,0.25);
  border-top-color: #E8920B;
}
/* 蠕梧婿莠呈鋤 */
.spinner-blue {
  border-color: rgba(232,146,11,0.25);
  border-top-color: #E8920B;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 笏笏 繧ｹ繝・ャ繝励ヰ繝ｼ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.step-bar {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
}
.step-bar .step {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 3px solid #F3F0EB;
  color: #6B7280;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.step-bar .step.active {
  border-color: #E8920B;
  color: #E8920B;
}
.step-bar .step.done {
  border-color: #10B981;
  color: #10B981;
}

/* 笏笏 繧ｹ繝・・繧ｿ繧ｹ繝舌ャ繧ｸ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-draft      { background: #F3F0EB; color: #6B7280; }
.badge-pending    { background: #FEF3C7; color: #92400E; }
.badge-scheduled  { background: #FFF3E0; color: #C67A08; }
.badge-approved   { background: #FFF3E0; color: #E8920B; }
.badge-published  { background: #D1FAE5; color: #065F46; }
.badge-failed     { background: #FEE2E2; color: #991B1B; }
.badge-archived   { background: #F3F0EB; color: #6B7280; }

/* 笏笏 繝医・繧ｹ繝磯夂衍・井ｸ企Κ蝗ｺ螳夲ｼ俄楳笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
#toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-5rem);
  background: #1A1A2E;
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}

/* 笏笏 逕ｻ蜒上・繝ｬ繝薙Η繝ｼ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
#img-preview {
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

/* 笏笏 繝上ャ繧ｷ繝･繧ｿ繧ｰ繝√ャ繝・笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.tag-chip {
  display: inline-flex;
  align-items: center;
  background: #FFF3E0;
  color: #C67A08;
  border: 1px solid #F5C563;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.15rem;
  cursor: text;
  min-height: 30px;
  transition: background 0.15s;
}
.tag-chip:focus {
  outline: none;
  background: #FDEBC8;
  border-color: #E8920B;
}
.tag-chip-sm {
  display: inline-block;
  background: #FFF3E0;
  color: #C67A08;
  border-radius: 9999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  margin: 0.1rem 0.1rem 0 0;
  white-space: nowrap;
}

/* 笏笏 譁・ｭ玲焚繧ｫ繧ｦ繝ｳ繧ｿ繝ｼ隴ｦ蜻・笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.char-warn { color: #EF4444; }

/* 笏笏 繧ｭ繝｣繝励す繝ｧ繝ｳ陦ｨ遉ｺ繧ｹ繧ｿ繧､繝ｫ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.caption-textarea {
  font-size: 16px !important;
  line-height: 1.85 !important;
  word-break: break-all;
  letter-spacing: 0.01em;
}

/* 笏笏 螳牙・繝√ぉ繝・け 窶・騾夐℃ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.safety-pass {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #D1FAE5;
  border: 2px solid #6EE7B7;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #065F46;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.safety-pass svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #10B981;
}
.safety-fail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #991B1B;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* 笏笏 繝繝・す繝･繝懊・繝・窶・謚慕ｨｿ繧ｫ繝ｼ繝・笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.post-card {
  background: #FFFFFF;
  border: 1px solid #F3F0EB;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.post-card-caption {
  font-size: 0.875rem;
  color: #1A1A2E;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.post-card-meta {
  font-size: 0.72rem;
  color: #6B7280;
}
.caption-cell {
  max-width: 220px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1A1A2E;
  word-break: break-all;
}

/* 笏笏 繧ｵ繝ｼ繝薙せ繝ｩ繝吶Ν 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.svc-label {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #6B7280;
  background: #FFFBF5;
  border: 1px solid #F3F0EB;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.svc-label-up { color: #C67A08; background: #FFF3E0; border-color: #F5C563; }
.svc-label-ay { color: #7c3aed; background: #ede9fe; border-color: #c4b5fd; }

/* 笏笏 謚慕ｨｿ謇ｿ隱阪・繧ｿ繝ｳ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.approve-btn-primary {
  background: linear-gradient(135deg, #E8920B 0%, #C67A08 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,146,11,0.35), 0 1px 3px rgba(0,0,0,0.08);
  padding: 0.875rem 1rem;
  letter-spacing: 0.02em;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  width: 100%;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.approve-btn-primary:hover {
  background: linear-gradient(135deg, #C67A08 0%, #A86207 100%);
  box-shadow: 0 6px 20px rgba(232,146,11,0.45);
  transform: translateY(-1px);
}
.approve-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232,146,11,0.3);
}
.approve-btn-primary:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

/* 笏笏 隍・焚逕ｻ蜒上し繝繝阪う繝ｫ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.img-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
.img-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #F3F0EB;
}
.img-thumb-label {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  line-height: 1.4;
}
.img-thumb-del {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 9999px;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  padding: 0;
}
.img-thumb-del:hover {
  background: rgba(239, 68, 68, 0.85);
}
.step2-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid #F3F0EB;
}

/* 笏笏 繧ｹ繧ｱ繧ｸ繝･繝ｼ繝ｫ 繧ｯ繧､繝・け驕ｸ謚槭・繧ｿ繝ｳ 笏笏笏笏笏笏笏笏笏笏笏 */
.schedule-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid #F5C563;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #C67A08;
  background: #fff;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}
.schedule-quick-btn:hover {
  background: #FFF3E0;
  border-color: #E8920B;
  color: #E8920B;
}
.schedule-quick-btn.active {
  background: #E8920B;
  border-color: #E8920B;
  color: #fff;
}
.schedule-preview-text {
  font-size: 0.875rem;
  color: #C67A08;
  font-weight: 600;
  background: #FFF3E0;
  border: 1.5px solid #F5C563;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
}

/* 笏笏 莠育ｴ・き繝ｬ繝ｳ繝繝ｼ 繧ｰ繝ｪ繝・ラ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.cal-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border: 1px solid #F3F0EB;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.75rem;
  min-width: 600px;
}
.cal-header-cell {
  background: #FFFBF5;
  border-bottom: 1px solid #F3F0EB;
  border-right: 1px solid #F3F0EB;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-weight: 700;
  color: #1A1A2E;
}
.cal-time-cell {
  background: #FFFBF5;
  border-bottom: 1px solid #F3F0EB;
  border-right: 1px solid #F3F0EB;
  padding: 0.4rem 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-slot {
  border-bottom: 1px solid #F3F0EB;
  border-right: 1px solid #F3F0EB;
  min-height: 64px;
  padding: 0.25rem;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.cal-slot:hover {
  background: #FFF3E0;
}
.cal-slot-empty::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #F5C563;
  font-weight: 700;
}
.cal-slot-empty:hover::after {
  color: #E8920B;
}
.cal-slot-booked {
  background: #FFF3E0;
  cursor: default;
}
.cal-slot-booked:hover {
  background: #FDEBC8;
}
.cal-slot-published {
  background: #D1FAE5;
  cursor: default;
}
.cal-slot-published:hover {
  background: #A7F3D0;
}
.cal-slot-card {
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cal-slot-card-booked    { color: #C67A08; }
.cal-slot-card-published { color: #065F46; }

/* 笏笏 繝上Φ繝舌・繧ｬ繝ｼ繝｡繝九Η繝ｼ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1A1A2E;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

/* 笏笏 繧ｵ繧､繝峨ヰ繝ｼ繝ｭ繧ｴ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid #F3F0EB;
  flex-shrink: 0;
}
.sidebar-logo-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #E8920B;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.sidebar-logo-link:hover {
  color: #C67A08;
}

/* 笏笏 繧ｵ繧､繝峨ヰ繝ｼ繝翫ン 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.sidebar-nav {
  list-style: none;
  padding: 12px 12px 0;
  margin: 0;
  flex: 1;
}
.sidebar-nav li {
  margin-bottom: 2px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.sidebar-nav-item svg {
  flex-shrink: 0;
}
.sidebar-nav-item:hover {
  background: #FFF3E0;
  color: #E8920B;
}
.sidebar-nav-item.active {
  background: #FFF3E0;
  color: #E8920B;
  font-weight: 700;
}

/* 笏笏 繧ｵ繧､繝峨ヰ繝ｼ繝輔ャ繧ｿ繝ｼ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid #F3F0EB;
  flex-shrink: 0;
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: left;
}
.sidebar-logout:hover {
  background: #FEE2E2;
  color: #EF4444;
}
.sidebar-legal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 4px;
}
.sidebar-legal a {
  font-size: 0.72rem;
  color: #9CA3AF;
  text-decoration: none;
}
.sidebar-legal a:hover { color: #6B7280; }
.sidebar-legal-sep { font-size: 0.72rem; color: #D1D5DB; }

/* 笏笏 繝壹・繧ｸ譛ｬ菴薙Λ繝・ヱ繝ｼ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.page-body {
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-main {
  padding: 32px;
  flex: 1;
}

/* 笏笏 繝倥ャ繝繝ｼ蜀・ｦ∫ｴ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0;
  flex: 1;
}
.header-user {
  font-size: 0.82rem;
  color: #6B7280;
  background: #F3F0EB;
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-user:hover, .header-user:focus {
  background: #FFF3E0;
  color: #C67A08;
  outline: none;
}
@media (max-width: 480px) {
  .header-user { max-width: 120px; }
}

/* 笏笏 繝ｬ繧ｹ繝昴Φ繧ｷ繝・(768px莉･荳・ 笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 200;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  .page-body {
    margin-left: 0;
  }
  .page-main {
    padding: 16px;
  }
  .hamburger-btn {
    display: flex;
  }
  .cal-grid {
    min-width: 480px;
  }
}

/* 笏笏 遞手ｾｼ陦ｨ遉ｺ豕ｨ險・笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏笏 */
.tax-note { font-size: 0.75em; color: #9CA3AF; margin-left: 0.25em; font-weight: 400; }

/* ==============================================
   共通レイアウト: .container (中央寄せラッパー)
   ============================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================
   Pricing Page FAQ Section (v10.1 追加)
   ============================================== */

.pricing-faq {
  padding: 80px 20px;
  background-color: #FFFBF5;
}
.pricing-faq .section-title {
  text-align: center;
  font-size: 2rem;
  color: #1A1A2E;
  margin-bottom: 16px;
  font-weight: 700;
}
.pricing-faq .section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #6B7280;
  margin-bottom: 48px;
  line-height: 1.7;
}
.pricing-faq .faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.pricing-faq .faq-item {
  background: #FFFFFF;
  border: 1px solid #F3F0EB;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.pricing-faq .faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.pricing-faq .faq-item[open] { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.pricing-faq .faq-question {
  padding: 20px 56px 20px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A2E;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.pricing-faq .faq-question::-webkit-details-marker { display: none; }
.pricing-faq .faq-question::after {
  content: +;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #E8920B;
  transition: transform 0.2s ease;
  font-weight: 300;
}
.pricing-faq .faq-item[open] .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.pricing-faq .faq-answer {
  padding: 0 24px 24px 24px;
  color: #6B7280;
  line-height: 1.8;
  font-size: 0.95rem;
}
.pricing-faq .faq-answer p { margin-bottom: 12px; }
.pricing-faq .faq-answer p:last-child { margin-bottom: 0; }
.pricing-faq .faq-answer ul { margin: 12px 0; padding-left: 24px; }
.pricing-faq .faq-answer li { margin-bottom: 6px; }
.pricing-faq .faq-answer strong { color: #1A1A2E; font-weight: 600; }

/* Plans billing info link */
.plans-billing-info {
  max-width: 800px;
  margin: 32px auto 0 auto;
  padding: 20px 24px;
  background-color: #FFFBF5;
  border: 1px solid #F3F0EB;
  border-radius: 12px;
  text-align: center;
}
.plans-billing-info p { margin: 0; color: #6B7280; font-size: 0.95rem; line-height: 1.7; }
.plans-billing-info a { color: #E8920B; text-decoration: underline; font-weight: 600; }
.plans-billing-info a:hover { color: #C67A08; }

@media (max-width: 768px) {
  .pricing-faq { padding: 60px 16px; }
  .pricing-faq .section-title { font-size: 1.5rem; }
  .pricing-faq .faq-question { font-size: 1rem; padding: 16px 48px 16px 20px; }
  .pricing-faq .faq-answer { padding: 0 20px 20px 20px; font-size: 0.9rem; }
}

/* ── ユーティリティ ────────────────────────────────────── */
.hidden { display: none !important; }

/* ─────────────────────────────────────────────────────────
   モバイル最適化 (2026-04-15 追加 — 協力者デモ向け)
   service-spec v10.4 §6.10 準拠
   ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* タッチターゲット最小44px */
  button, .btn, a.btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    font-size: 0.95rem;
  }
  input, textarea, select {
    font-size: 16px; /* iOS zoom 防止 */
    min-height: 44px;
  }
  textarea { min-height: 88px; }

  /* ページ余白 */
  main, .page-main, #page-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* カード・セクション */
  .content-card, .dash-section, .plan-card {
    border-radius: 12px !important;
  }

  /* 見出し */
  h1 { font-size: 1.25rem !important; }
  h2 { font-size: 1.1rem !important; }

  /* フォームラベル */
  label { font-size: 0.95rem; }

  /* スクロール時のスムーズ性 */
  html { scroll-behavior: smooth; }
}

@media (max-width: 480px) {
  /* 超小型端末 (iPhone SE 等) */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .plan-card { padding: 20px !important; }
  .ob-card { padding: 24px 20px !important; }
}

/* ─────────────────────────────────────────────────────────
   ボトムナビゲーション（スマホ専用、768px以下で表示）
   iOS safe-area-inset-bottom 対応
   ───────────────────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  border-top: 1px solid #F3F0EB;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.bottom-nav .bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  min-height: 44px;
  border-radius: 10px;
  color: #6B7280;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav .bn-item:hover,
.bottom-nav .bn-item:active {
  background: #FFFBF5;
}
.bottom-nav .bn-item.active {
  color: #E8920B;
}
.bottom-nav .bn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav .bn-item.center {
  background: #E8920B;
  color: #FFFFFF;
  border-radius: 50%;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  max-height: 52px;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(232, 146, 11, 0.4);
  flex: 0 0 auto;
  align-self: center;
}
.bottom-nav .bn-item.center:hover,
.bottom-nav .bn-item.center:active {
  background: #C67A08;
}
.bottom-nav .bn-item.center .bn-label { display: none; }

@media (max-width: 768px) {
  .bottom-nav { display: flex; align-items: flex-end; }
  /* ボトムナビ分の下余白確保 */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* undo-toastをボトムナビより上に */
  .undo-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── Auto-hide Header ─────────────────────────────────────────── */
.header {
  transition: transform 300ms ease;
  will-change: transform;
}
.header.hidden {
  transform: translateY(-100%);
}

/* ── Pull-to-Refresh Indicator ─────────────────────────────────── */
.ptr-indicator {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateY(-60px) translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.ptr-indicator.visible {
  opacity: 1;
}
.ptr-spinner {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease;
}
.ptr-indicator.ready .ptr-spinner {
  transform: rotate(180deg);
}
.ptr-indicator.refreshing .ptr-spinner {
  animation: ptr-spin 0.9s linear infinite;
}
@keyframes ptr-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Skeleton Screen ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F3F0EB 25%, #E8E4DF 50%, #F3F0EB 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-inline {
  display: inline-block;
  min-width: 60px;
  height: 1em;
  vertical-align: middle;
}
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #F3F0EB;
}
.skeleton-row:last-child { border-bottom: none; }
.skeleton-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
}
.skeleton-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-badge {
  width: 60px;
  height: 20px;
  border-radius: 10px;
  flex-shrink: 0;
}
.skeleton-card {
  background: #FFFFFF;
  border: 1px solid #F3F0EB;
  border-radius: 12px;
  padding: 20px;
}
.skeleton-line-30 { height: 12px; width: 30%; }
.skeleton-line-40 { height: 12px; width: 40%; }
.skeleton-line-50 { height: 12px; width: 50%; }
.skeleton-line-60 { height: 12px; width: 60%; }
.skeleton-line-70 { height: 12px; width: 70%; }
.skeleton-line-80 { height: 12px; width: 80%; }
.skeleton-line-90 { height: 12px; width: 90%; }
