@charset "UTF-8";
/* ローディングオーバーレイ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  background: #FFFFFF;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid #CFDDE1;
  border-top-color: #0C586A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* レポート生成プリローダー */
.report-preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.report-preloader-overlay.active {
  opacity: 1;
  visibility: visible;
}

.report-preloader {
  background: #FFFFFF;
  padding: 40px 48px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.report-preloader__icon {
  font-size: 40px;
  margin-bottom: 16px;
  animation: preloader-pulse 2s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}
.report-preloader__title {
  font-size: 18px;
  font-weight: 700;
  color: #18363D;
  margin: 0 0 8px;
}

.report-preloader__step {
  font-size: 14px;
  color: #526B72;
  margin: 0 0 24px;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

.report-preloader__bar-wrap {
  width: 100%;
  height: 8px;
  background: #EAF3F5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.report-preloader__bar {
  height: 100%;
  width: 0%;
  background: #0C586A;
  border-radius: 4px;
  transition: width 0.35s ease-out;
}

.report-preloader__percent {
  font-size: 28px;
  font-weight: 700;
  color: #0C586A;
  margin: 0;
  letter-spacing: -0.5px;
}

.sidebar-user-info {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #CFDDE1;
  text-align: left;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #18363D;
}

.sidebar-user-plan {
  margin-top: 4px;
  font-size: 12px;
  color: #526B72;
}

/* レイアウト構造 */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* サイドバー — 生成り系ライトテーマ */
.sidebar {
  width: 260px;
  background: #FFFFFF;
  color: #18363D;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
  border-right: 1px solid #CFDDE1;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(43, 43, 43, 0.12);
  border-radius: 3px;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #CFDDE1;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #18363D;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: #0C586A;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.sidebar-nav {
  padding: 16px 0 32px;
  /* NEW バッジ（メニュー） */
  /* ベータ版バッジ（メニュー） */
}
.sidebar-nav .nav-section {
  margin-bottom: 20px;
}
.sidebar-nav .nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #526B72;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 20px 8px;
}
.sidebar-nav .nav-menu {
  list-style: none;
}
.sidebar-nav .nav-item {
  margin-bottom: 2px;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: #526B72;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.02em;
}
.sidebar-nav .nav-link:hover {
  background: #F4F8F9;
  color: #0C586A;
}
.sidebar-nav .nav-link.active {
  background: rgba(47, 58, 74, 0.08);
  color: #0C586A;
  font-weight: 600;
}
.sidebar-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0C586A;
  border-radius: 0 2px 2px 0;
}
.sidebar-nav .nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-nav .nav-submenu {
  list-style: none;
  margin-top: 2px;
}
.sidebar-nav .nav-submenu .nav-link {
  padding: 8px 20px 8px 52px;
  font-size: 13px;
}
.sidebar-nav .nav-new-badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #C95A4F;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-nav .nav-beta-badge {
  margin-left: -6px;
  padding: 1px 6px;
  border: 1px solid #E0A64B;
  border-radius: 999px;
  background: #FDF3E1;
  color: #A66A12;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* かんたん解説（リテラシー低め向け） */
.help-lead {
  margin: 12px 0 20px;
  padding: 14px 16px;
  background: #EAF3F5;
  border: 1px solid #CFDDE1;
  border-radius: 10px;
  color: #526B72;
  font-size: 16px;
  line-height: 1.75;
}

.help-lead strong {
  color: #18363D;
}

/* 解説内の導線ボタン（例: 予約ダッシュボード → 月次レポート）
   テキストリンクだと本文に埋もれて行の途中で折り返すため、独立したボタンにする */
.help-lead-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 18px;
  background: #0C586A;
  border: 1px solid #0C586A;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.help-lead-cta:hover, .help-lead-cta:focus {
  background: #084451;
  border-color: #084451;
  color: #fff;
  text-decoration: none;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  margin-left: 260px;
  width: calc(100% - 260px);
}

/* トップバー */
.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #CFDDE1;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1500;
}
.topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #18363D;
  padding: 4px;
}
.topbar .page-title {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'BIZ UDPGothic', Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #000;
  /* ベータ版バッジ（ページタイトル） */
}
.topbar .page-title .page-title-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 2px 9px;
  border: 1px solid #E0A64B;
  border-radius: 999px;
  background: #FDF3E1;
  color: #A66A12;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  /* ユーザー情報 */
  /* ログアウトを右上固定 */
}
.topbar .topbar-right .report-setting-btn {
  display: inline-block;
  padding: 7px 14px;
  background: #0C586A;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #FFFFFF;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.topbar .topbar-right .report-setting-btn:hover {
  background: #084451;
  box-shadow: 0 4px 12px rgba(47, 58, 74, 0.12);
  transform: translateY(-1px);
}
.topbar .topbar-right .report-setting-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(43, 43, 43, 0.06);
}
.topbar .topbar-right .topbar-user-info {
  text-align: right;
  line-height: 1.2;
  margin-top: 4px;
}
.topbar .topbar-right .topbar-user-name {
  font-weight: 600;
  font-size: 13px;
}
.topbar .topbar-right .topbar-user-plan {
  font-size: 11px;
  color: #637C83;
  margin-top: 5px;
}
.topbar .topbar-right .logout {
  position: static;
  right: 20px;
  top: 20px;
  z-index: 2000;
}
.topbar .topbar-right .logout-btn {
  display: inline-block;
  padding: 7px 14px;
  background: #637C83;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
}
.topbar .topbar-right .logout-btn:hover {
  background: #0C586A;
  box-shadow: 0 4px 12px rgba(47, 58, 74, 0.12);
  transform: translateY(-1px);
}
.topbar .topbar-right .logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(43, 43, 43, 0.06);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.user-menu:hover {
  background: #F4F8F9;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0C586A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
}

/* パンくず */
.breadcrumb {
  padding: 16px 32px;
  background: #FFFFFF;
  border-bottom: 1px solid #CFDDE1;
  font-size: 14px;
  color: #526B72;
}

/* 色だけで本文中のリンクを区別すると、色の見分けがつかない人に伝わらない
   （自動巡回の Links must be distinguishable without relying on color）。
   パンくずは「ホーム › 現在のページ」で文章と同じ並びになるため、常に下線を出す。 */
.breadcrumb a {
  color: #0C586A;
  text-decoration: underline;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: #CFDDE1;
}

/* コンテンツエリア */
.content-area {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 期間セレクター */
.period-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: #EAF3F5;
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
}

.period-btn {
  padding: 9px 22px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #526B72;
  cursor: pointer;
  transition: all 0.25s ease;
}

.period-btn:hover {
  background: rgba(47, 58, 74, 0.06);
  color: #0C586A;
}

.period-btn.active {
  background: #FFFFFF;
  color: #18363D;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(43, 43, 43, 0.06);
}

/* 期間表示テキスト */
.period-display {
  font-size: 14px;
  color: #526B72;
  margin-bottom: 24px;
}

.period-display strong {
  color: #18363D;
  font-weight: 600;
}
