/* 基本スタイル - 青緑パステル調 */
:root {
  --primary-color: #5BBFBB; /* 青緑色ティール */
  --primary-light: #8ED6D3; /* パステル調の明るいティール */
  --secondary-color: #3CA9A4; /* やや濃い青緑色 */
  --accent-color: #F6BD60; /* アクセントを温かみのある黄色に */
  --light-bg: #F0F9F8; /* 背景色を薄いティール系に */
  --dark-text: #2d3436;
  --light-text: #636e72;
  --card-shadow: 0 10px 20px rgba(0,0,0,0.05);
  --btn-shadow: 0 4px 6px rgba(91,191,187,0.15); /* ボタンシャドウをティール系に */
  --border-radius: 12px;
  --input-radius: 8px;
}

/* Reddit Sansフォントをインポート */
@import url('https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@1,600&display=swap');

/* 基本スタイル */
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 0.95rem; /* 2025-06-19追加の設定を採用 */
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 20px 0;
}

/* 見出しスタイル - 統合 */
h1, .h1 { font-size: 1.8rem !important; }
h2, .h2 { font-size: 1.5rem !important; }
h3, .h3 { font-size: 1.3rem !important; }
h4, .h4 { font-size: 1.1rem !important; }
h5, .h5 { font-size: 1rem !important; }
h6, .h6 { font-size: 0.9rem !important; }

/* タイトルサイズの統一 */
h1.mb-0, 
div.col h1.mb-0, 
.dashboard h1,
.page-header h1,
.page-title,
h1.page-title {
    font-size: 1.7rem !important;
    line-height: 1.3 !important;
}

/* カードヘッダータイトルの統一 */
.card-header h5,
.card-header h5.mb-0,
.card .card-header .mb-0 {
    font-size: 0.95rem !important;
}

/* ヘッダー - モダンスタイル */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 12px 0;
}

/* ナビゲーションブランド - サイト名 */
.navbar-brand,
a.navbar-brand,
.navbar a.navbar-brand,
header .navbar-brand,
nav .navbar-brand {
  font-weight: 700;
  font-size: 1.0rem;
  color: white !important;
  letter-spacing: 0.5px;
}

/* XanaVision固有のブランド名 - Reddit Sans SemiBold 600 Italic に変更、フォントサイズを大きく */
a.navbar-brand[href*="xanavision"],
.navbar-brand:contains("xanavision"),
.navbar-brand:contains("The Navi-Scheduler") {
  font-family: 'Reddit Sans', sans-serif !important;
  font-weight: 600 !important;
  font-style: italic !important;
  font-size: 1.2rem !important; /* フォントサイズを大きく */
  letter-spacing: 0.5px;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  font-size: 0.9rem;
  background-color: rgba(255,255,255,0.15);
}

/* カード - 洗練されたスタイル */
.card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: white;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 15px 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.card-body {
  padding: 20px;
}

/* フォーム - モダンスタイル */
.form-control, .form-select {
  border-radius: var(--input-radius);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background-color: rgba(249,249,249,0.5);
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 3px rgba(91,191,187,0.15); /* フォーカス効果をティール系に */
  border-color: var(--primary-light);
  background-color: white;
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-text);
  font-size: 0.9rem;
}

/* ボタン - モダンスタイル */
.btn {
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--btn-shadow);
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(91,191,187,0.2); /* ホバー時のシャドウもティール系に */
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #8ED6D3 100%);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* テーブル - モダンスタイル */
.table {
  vertical-align: middle;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.table th, 
.table td {
  font-size: 0.9rem;
}

.table thead th {
  background-color: rgba(91,191,187,0.05); /* テーブルヘッダーの背景色をティール系に */
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: none;
  padding: 15px;
}

.table tbody td {
  padding: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: rgba(91,191,187,0.03); /* ホバー時の背景色もティール系に */
}

/* FullCalendar - スケジュール項目の文字を小さく */
.fc {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--card-shadow);
}

.fc-toolbar-title {
  font-weight: 700;
  color: var(--primary-color);
}

.fc-button-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  border-radius: 20px !important;
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}

.fc-daygrid-day.fc-day-today {
  background-color: rgba(91,191,187,0.1) !important; /* 今日の日付背景色をティール系に */
}

/* カレンダーイベント(予定)のスタイルを小さく調整 */
.fc-event {
  cursor: pointer;
  border-radius: 4px;
  border: none;
  padding: 1px 3px !important; /* パディングを小さく */
  font-size: 0.75rem !important; /* フォントサイズをさらに小さく */
  color: white;
  line-height: 1.2 !important; /* 行間を詰める */
}

/* 日付の数字を小さく */
.fc-daygrid-day-number {
  font-size: 0.85rem !important;
  padding: 3px 5px !important;
}

/* 項目のタイトルを小さく */
.fc-event-title {
  font-size: 0.75rem !important;
  font-weight: normal !important;
}

/* 時間表示も小さく */
.fc-event-time {
  font-size: 0.7rem !important;
  font-weight: normal !important;
}

/* リスト表示のイベント行の高さを詰める */
.fc-list-day-cushion,
.fc-list-event td {
  padding: 6px 8px !important;
}

/* リスト表示のイベントアイテム */
.fc-list-event-title,
.fc-list-event-time {
  font-size: 0.75rem !important;
}

/* ユーティリティクラス */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.rounded-custom {
  border-radius: var(--border-radius) !important;
}

/* カスタムスタイル */
.weather-widget {
  height: auto;
  min-height: 150px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #5BBFBB 0%, #8ED6D3 100%); /* ティール系グラデーションに変更 */
  color: white;
  padding: 15px;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  background-color: var(--accent-color);
  color: var(--dark-text);
  font-weight: 700;
}

/* タブコンテンツ */
.nav-tabs {
  border-bottom: none;
  margin-bottom: 20px;
}

.nav-tabs .nav-link {
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  color: var(--light-text);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  background-color: rgba(91,191,187,0.05); /* ホバー時の背景色をティール系に */
}

.nav-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-pane {
  min-height: 300px;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.tab-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* ブロックコンテンツ用のスタイル */
/* タブコンテンツコンテナ */
.tab-content-container {
    padding: 20px 0;
}

/* 段落ブロック */
.tab-content-container p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 段落内の改行 */
.tab-content-container p br {
    display: block;
    margin: 0.5em 0;
    content: "";
}

/* 見出しブロック */
.tab-content-container h2,
.tab-content-container h3,
.tab-content-container h4,
.tab-content-container h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* リストブロック */
.tab-content-container ul,
.tab-content-container ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.tab-content-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 画像ブロック */
.tab-content-container figure {
    margin: 2rem 0;
    text-align: center;
}

.tab-content-container figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content-container figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* カードブロック */
.tab-content-container .card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.tab-content-container .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 区切り線 */
.tab-content-container hr {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid #e9ecef;
}

/* カラムブロック（レスポンシブ対応） */
.block-responsive-container {
    margin-bottom: 1.5rem;
}

/* 埋め込みコンテンツ */
.tab-content-container .embed-responsive {
    margin-bottom: 1.5rem;
}

/* コンテンツアイテム */
.content-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ブロックエディタプレビュー用のスタイル（管理画面） */
.block-editor-preview p {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 天気予報ウィジェット用のスタイル */
.x-small {
    font-size: 0.75rem;
}

#weather-container .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0;
}

#weather-container .card:hover {
    transform: translateY(-3px);
}

#weather-container img {
    transition: transform 0.3s ease;
}

#weather-container img:hover {
    transform: scale(1.1);
}

#weather-container .text-primary,
#weather-container .text-danger {
    font-weight: 600;
}

/* 天気予報の拠点セパレーター */
#weather-container hr {
    border-color: rgba(91,191,187,0.2);
    margin: 0;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* ユーティリティテキストクラス */
.small {
    font-size: 0.85rem !important;
}

.smaller {
    font-size: 0.8rem !important;
}

/* リスト要素 */
.list-group-item {
    font-size: 0.9rem;
}

/* スケジュールリスト表示の調整 */
#list-view .table td, 
#list-view .table th {
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
}

#list-view .badge {
    font-size: 0.7rem !important;
    padding: 3px 6px !important;
}

/* レスポンシブ対応 - 統合したメディアクエリ */
@media (max-width: 992px) {
  :root {
    --border-radius: 10px;
    --input-radius: 6px;
  }
  
  body {
    font-size: 15px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card-header {
    padding: 12px 15px;
  }
  
  .card-body {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.85rem; /* スマホ表示時のベースフォントサイズを小さく */
  }
  
  /* ブランド名サイズを強制的に小さく - 複数のセレクタで確実に適用 */
  .navbar-brand,
  a.navbar-brand,
  header .navbar-brand,
  nav .navbar-brand,
  .navbar a.navbar-brand,
  body .navbar-brand,
  html .navbar-brand,
  a[href*="xanavision"].navbar-brand,
  a[href*="schedule"].navbar-brand,
  a[href*="dashboard"].navbar-brand {
    font-size: 0.8rem !important; /* 少し大きめに調整 */
    letter-spacing: 0 !important;
  }
  
  /* モバイル表示時のブランド名のReddit Sansフォント指定を維持 */
  a.navbar-brand[href*="xanavision"],
  .navbar-brand:contains("xanavision"),
  .navbar-brand:contains("The Navi-Scheduler") {
    font-family: 'Reddit Sans', sans-serif !important;
    font-weight: 600 !important;
    font-style: italic !important;
    letter-spacing: 0 !important;
    font-size: 0.85rem !important; /* モバイル表示でも少し大きめに */
  }
  
  .fc-header-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .fc-toolbar-chunk {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .fc-toolbar-chunk:first-child {
    justify-content: flex-start;
  }
  
  .fc-toolbar-chunk:last-child {
    justify-content: flex-end;
  }
  
  /* モバイル表示時のイベントテキストを調整 - さらに小さく、すべて表示 */
  .fc-event,
  .fc .fc-event,
  .fc-daygrid-event,
  .fc-timegrid-event,
  .fc-list-event {
    font-size: 0.3rem !important; /* さらに小さく */
    padding: 1px 2px !important;
    margin: 1px 0 !important;
    line-height: 1.1 !important; /* 行間を詰める */
    min-height: auto !important; /* 自動高さ */
    height: auto !important; /* 自動高さを強制 */
    max-height: none !important; /* 高さ制限を解除 */
  }
  
  /* 時間帯のイベント表示を修正（月表示）- すべてのテキスト表示 */
  .fc-daygrid-dot-event {
    display: flex !important;
    align-items: flex-start !important; /* 上揃え */
    padding: 1px 2px !important;
    margin: 1px 0 !important;
    min-height: auto !important;
    white-space: normal !important; /* テキスト折り返し許可 */
  }
  
  .fc-daygrid-dot-event .fc-event-time {
    font-size: 0.3rem !important;
    margin-right: 2px !important;
    flex-shrink: 0 !important;
    font-weight: bold !important;
  }
  
  .fc-daygrid-dot-event .fc-event-title {
    font-size: 0.3rem !important;
    white-space: normal !important; /* 折り返し許可 */
    text-overflow: initial !important; /* 省略記号なし */
    overflow: visible !important; /* オーバーフロー表示 */
    flex-grow: 1 !important;
    word-break: break-all !important; /* 単語の途中でも改行 */
  }
  
  /* 週表示の曜日・日付表示を小さく */
  .fc-timeGridWeek-view .fc-col-header-cell,
  .fc-timeGridDay-view .fc-col-header-cell {
    padding: 0 !important;
  }
  
  .fc-timeGridWeek-view .fc-col-header-cell-cushion,
  .fc-timeGridDay-view .fc-col-header-cell-cushion {
    font-size: 0.5rem !important;
    padding: 1px !important;
    white-space: normal !important;
    line-height: 1 !important;
  }
  
  /* 週表示のタイムグリッドの調整 */
  .fc-timegrid-slot-label-cushion {
    font-size: 0.5rem !important;
  }
  
  .fc-timegrid-event .fc-event-time,
  .fc-timegrid-event .fc-event-title {
    font-size: 0.3rem !important;
    line-height: 1.1 !important;
    padding: 1px !important;
    white-space: normal !important; /* 折り返し許可 */
  }
  
  /* カレンダー項目の枠を角丸に戻す */
  .fc-h-event, 
  .fc-v-event {
    border-radius: 2px !important; /* 少し角丸に */
  }
  
  .table thead th,
  .table tbody td {
    padding: 10px;
    font-size: 0.8rem; /* テーブルの文字も小さく */
  }
  
  .btn {
    padding: 7px 14px; /* ボタンサイズを少し小さく */
    font-size: 0.85rem;
  }
  
  .form-control, .form-select {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  /* タブレスポンシブ対応 */
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }
  
  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 8px 15px;
    font-size: 0.85rem; /* タブの文字も小さく */
  }
  
  /* ブロックレスポンシブ対応 */
  .block-responsive-container [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  /* リスト表示の調整 - スマホ表示で半分のサイズに */
  #list-view .table td, 
  #list-view .table th {
    font-size: 0.4rem !important; /* 0.8remの半分 */
    padding: 6px 8px !important;
  }
  
  #list-view .badge {
    font-size: 0.35rem !important; /* 0.7remの半分 */
    padding: 1px 3px !important;
    border-radius: 2px !important; /* バッジも四角く */
  }
  
  /* 天気予報モバイル対応 */
  #weather-container .card-body {
    padding: 0.75rem 0.5rem;
  }
  
  #weather-container h5 {
    font-size: 1rem;
  }
  
  #weather-container .fw-bold {
    font-size: 0.85rem;
  }
  
  #weather-container .small {
    font-size: 0.8rem;
  }
  
  #weather-container img {
    max-width: 35px;
  }
}

@media (max-width: 576px) {
  :root {
    --border-radius: 8px;
  }
  
  body {
    font-size: 0.8rem; /* 小型スマホではさらに小さく */
  }
  
  /* 小型端末ではさらに小さく - より高い優先度で */
  a.navbar-brand[href*="schedule.xanavision.biz"],
  a.navbar-brand[href*="dashboard"],
  .navbar-brand {
    font-size: 0.8rem !important; /* 少し大きめに調整 */
    letter-spacing: 0 !important;
    font-weight: 700 !important;
  }
  
  /* 小型端末でもReddit Sansフォント指定を維持 */
  a.navbar-brand[href*="xanavision"],
  .navbar-brand:contains("xanavision"),
  .navbar-brand:contains("The Navi-Scheduler") {
    font-family: 'Reddit Sans', sans-serif !important;
    font-weight: 600 !important;
    font-style: italic !important;
    font-size: 0.85rem !important; /* 小型端末でも少し大きめに */
  }
  
  .card {
    margin-bottom: 15px;
  }
  
  .card-header {
    padding: 10px 15px;
    font-size: 0.95rem; /* カードヘッダーの文字も小さく */
  }
  
  .weather-widget {
    min-height: 120px;
  }
  
  h1, .h1 { font-size: 1.5rem !important; }
  h2, .h2 { font-size: 1.3rem !important; }
  h3, .h3 { font-size: 1.1rem !important; }
  h4, .h4 { font-size: 0.8rem !important; }
  h5, .h5 { font-size: 0.7rem !important; }
  
  /* ページタイトル */
  .page-title, 
  h1.mb-0, 
  .page-header h1 {
    font-size: 1.4rem !important;
  }
  
  /* FullCalendar小画面対応 */
  .fc-toolbar-title {
    font-size: 1.1rem !important;
  }
  
  .fc-button {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.8rem !important;
  }
  
  .fc-col-header-cell-cushion,
  .fc-daygrid-day-number {
    font-size: 0.7rem !important;
  }
  
  /* 週表示の曜日・日付表示をさらに小さく */
  .fc-timeGridWeek-view .fc-col-header-cell-cushion,
  .fc-timeGridDay-view .fc-col-header-cell-cushion {
    font-size: 0.45rem !important;
    padding: 0 !important;
  }
  
  /* スモールスクリーン用のイベントテキストをさらに小さく */
  .fc-event,
  .fc .fc-event,
  .fc-daygrid-event,
  .fc-timegrid-event,
  .fc-list-event {
    font-size: 0.25rem !important; /* さらに小さく */
    padding: 1px !important;
    margin: 1px 0 !important;
    line-height: 1.0 !important; /* 行間をさらに詰める */
  }
  
  /* 時間帯イベントをさらに調整 */
  .fc-daygrid-dot-event .fc-event-time {
    font-size: 0.25rem !important;
    margin-right: 1px !important;
  }
  
  .fc-daygrid-dot-event .fc-event-title {
    font-size: 0.25rem !important;
    word-break: break-all !important;
  }
  
  /* リスト表示の調整 - さらに小さく、四角く */
  #list-view .table td, 
  #list-view .table th {
    font-size: 0.33rem !important; /* 0.65remの半分程度 */
    padding: 4px 5px !important; /* パディングも少し小さく */
  }
  
  #list-view .badge {
    font-size: 0.3rem !important; /* 0.6remの半分 */
    padding: 1px 2px !important; /* パディングも小さく */
    border-radius: 0px !important; /* 完全に四角く */
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .form-control, .form-select {
    padding: 8px;
    font-size: 0.8rem;
  }
  
  .navbar-nav .nav-link {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  /* 天気予報小画面対応 */
  #weather-container .card-body {
    padding: 0.5rem 0.25rem;
  }
  
  #weather-container .small {
    font-size: 0.7rem;
  }
  
  #weather-container .x-small {
    font-size: 0.65rem;
  }
  
  #weather-container img {
    max-width: 30px;
  }
  
  #weather-container .col-4 {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  #weather-container .row {
    margin-left: -5px;
    margin-right: -5px;
  }
}





.rich-text-editor {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
}

.editor-toolbar {
    padding: 5px;
    border-bottom: 1px solid #ced4da;
    background-color: #f8f9fa;
}

.editor-content {
    min-height: 150px;
    padding: 10px;
    overflow-y: auto;
}

/* リンクの表示スタイル */
.editor-content a {
    color: #0d6efd;
    text-decoration: underline;
}

/* プレビューのスタイル */
.block-html-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #ced4da;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.block-content-preview .pdf-container {
    margin-bottom: 1.5rem;
}

.block-content-preview .pdf-preview iframe {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.block-content-preview .pdf-download {
    transition: background-color 0.2s;
}

.block-content-preview .pdf-download:hover {
    background-color: #e9ecef !important;
}









/* 最終的な上書き - これが最も優先されるようにCSSの最後に配置 */
@media (max-width: 768px) {
  a.navbar-brand[href="https://schedule.xanavision.biz/dashboard"] {
    font-size: 0.85rem !important; /* もう少し大きく */
    letter-spacing: 0 !important;
    font-family: 'Reddit Sans', sans-serif !important;
    font-weight: 600 !important;
    font-style: italic !important;
  }
  
  /* FullCalendarのイベント表示を上書き - すべてのテキスト表示 */
  .fc-daygrid-dot-event .fc-event-title {
    white-space: normal !important; /* 折り返し許可 */
    overflow: visible !important; /* オーバーフロー表示 */
    text-overflow: initial !important; /* 省略記号なし */
    display: block !important;
    font-size: 0.3rem !important; /* 読みやすいサイズ */
    word-break: break-all !important; /* 単語の途中でも改行 */
  }
  
  /* 時間表示を含むイベント用 */
  .fc-daygrid-event .fc-event-time,
  .fc-daygrid-event .fc-event-title {
    display: inline-block !important;
    vertical-align: top !important;
    line-height: 1.1 !important;
    font-size: 0.3rem !important; /* 読みやすいサイズ */
    white-space: normal !important; /* 折り返し許可 */
    overflow: visible !important; /* オーバーフロー表示 */
    word-break: break-all !important; /* 単語の途中でも改行 */
  }
  
  /* 週表示の各セルを調整 */
  .fc-timeGridWeek-view .fc-col-header-cell,
  .fc-timeGridDay-view .fc-col-header-cell {
    height: auto !important;
  }
  
  .fc-timeGridWeek-view .fc-col-header-cell-cushion,
  .fc-timeGridDay-view .fc-col-header-cell-cushion {
    display: block !important;
    text-align: center !important;
    padding: 2px 0 !important;
    font-size: 0.5rem !important; /* 強制的に小さく */
  }
  
  /* バッジ（カテゴリ表示）を角丸に */
  .badge,
  span.badge,
  .fc .fc-list-event-dot {
    border-radius: 2px !important;
  }
  
  /* イベント枠を調整 */
  .fc-h-event,
  .fc-v-event,
  .fc-daygrid-event-harness {
    margin: 1px 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  
  /* イベントドット表示を調整 */
  .fc .fc-daygrid-event-dot {
    margin: 0 2px 0 0 !important;
    width: 5px !important;
    height: 5px !important;
    border-width: 2px !important;
  }
  
  /* スケジュール項目のカテゴリ背景を調整 */
  .fc-daygrid-event {
    padding-top: 2px !important; 
    padding-bottom: 2px !important;
  }
  
  /* 最も強力な上書き - すべてのイベント要素に適用 */
  .fc-event-main,
  .fc-event-title-container,
  .fc-daygrid-event .fc-event-title,
  .fc-daygrid-event .fc-event-time,
  .fc-timegrid-event .fc-event-title,
  .fc-timegrid-event .fc-event-time,
  .fc-list-event .fc-list-event-title,
  .fc-list-event .fc-list-event-time {
    font-size: 0.3rem !important; /* 統一サイズ */
    line-height: 1.1 !important; /* 行間を適切に */
    font-weight: 600 !important; /* 文字を太く */
    padding: 0 2px !important; /* 横パディングのみ追加 */
    white-space: normal !important; /* 折り返し許可 */
    overflow: visible !important; /* オーバーフロー表示 */
    text-overflow: initial !important; /* 省略記号なし */
    word-break: break-all !important; /* 単語の途中でも改行 */
  }
  
  /* イベントの縦幅を確保 */
  .fc .fc-daygrid-day-events {
    margin-bottom: 0 !important;
    padding: 2px 2px !important;
  }
  
  .fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    position: relative !important;
    min-height: 2em !important;
  }
  
  .fc-event-title {
    font-weight: 600 !important; /* タイトルを太く */
  }
  
  .fc-event-time {
    font-weight: 600 !important; /* 時間も太く */
  }
  
  /* イベントの内容が表示されるようにする */
  .fc-daygrid-event .fc-event-title,
  .fc-timegrid-event .fc-event-title,
  .fc-list-event .fc-list-event-title {
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }
  
  /* ドットイベント（時間指定イベント）の修正 - 文字色をカテゴリ色に合わせる */
  .fc-daygrid-dot-event {
    display: block !important; /* flexからblockに変更 */
    padding: 2px !important;
    margin: 1px 0 !important;
    height: auto !important;
    background-color: transparent !important; /* 背景を透明に */
  }
  
  .fc-daygrid-dot-event .fc-event-time,
  .fc-daygrid-dot-event .fc-event-title {
    display: inline !important; /* インライン表示に変更 */
    font-size: 0.3rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1 !important;
    color: inherit !important; /* ドットと同じ色を継承 */
  }
  
  /* ドットイベントの色設定を強化 */
  .fc-daygrid-dot-event {
    color: currentColor !important; /* ドットの色を文字色に適用 */
  }
  
  /* ドットと文字の色を一致させる */
  .fc-daygrid-dot-event .fc-event-dot {
    background-color: currentColor !important;
    border-color: currentColor !important;
  }
  
  /* 特定のカテゴリ色のドットイベントテキストにも対応 */
  .fc-daygrid-dot-event.fc-event-primary .fc-event-time,
  .fc-daygrid-dot-event.fc-event-primary .fc-event-title,
  .fc-daygrid-dot-event.fc-event-success .fc-event-time,
  .fc-daygrid-dot-event.fc-event-success .fc-event-title,
  .fc-daygrid-dot-event.fc-event-danger .fc-event-time,
  .fc-daygrid-dot-event.fc-event-danger .fc-event-title,
  .fc-daygrid-dot-event.fc-event-warning .fc-event-time,
  .fc-daygrid-dot-event.fc-event-warning .fc-event-title,
  .fc-daygrid-dot-event.fc-event-info .fc-event-time,
  .fc-daygrid-dot-event.fc-event-info .fc-event-title {
    color: inherit !important;
  }
  
  /* 小型スマホでは特に小さくする */
  @media (max-width: 375px) {
    .fc-event-main,
    .fc-event-title-container,
    .fc-daygrid-dot-event .fc-event-title,
    .fc-daygrid-dot-event .fc-event-time,
    .fc-daygrid-event .fc-event-title,
    .fc-daygrid-event .fc-event-time {
      font-size: 0.25rem !important; /* さらに小さく */
    }
  }
}

/* フッター調整 - ティール系に合わせる */
footer.bg-dark {
  background: linear-gradient(135deg, #3CA9A4 0%, #5BBFBB 100%) !important;
}

/* FullCalendarのPC表示時のイベントテキスト色対応 - スマホのように色付きで表示 */
/* 以下のスタイルはPC表示時にも適用されるよう、メディアクエリの外に配置 */

/* 1. ドットイベント(時間付き)のテキスト色をドットの色に合わせる */
.fc-daygrid-dot-event {
  color: inherit !important; /* 文字色をドット色で継承 */
}

/* 2. ドットイベントの時間・タイトルテキストも同じ色にする */
.fc-daygrid-dot-event .fc-event-time,
.fc-daygrid-dot-event .fc-event-title {
  color: inherit !important; /* 親要素の色を継承 */
}

/* 3. ドット自体の色も合わせる */
.fc-daygrid-dot-event .fc-event-dot {
  background-color: currentColor !important;
  border-color: currentColor !important;
}

/* 4. 通常イベント(背景色付き)のテキストも見やすく */
.fc-event,
.fc-daygrid-event,
.fc-timegrid-event {
  color: inherit !important; /* 背景色に合わせた文字色 */
}

/* 5. PCでのテキスト表示を見やすく */
.fc-event-time,
.fc-event-title {
  font-weight: 600 !important; /* テキストを少し太く */
}

/* 6. 既存の白色指定を上書き */
.fc-event,
.fc-daygrid-event .fc-event-title,
.fc-daygrid-event .fc-event-time,
.fc-timegrid-event .fc-event-title,
.fc-timegrid-event .fc-event-time {
  color: inherit !important;
}

/* 7. デフォルトカラーが指定されていない場合はティール色を使用 */
.fc-daygrid-event:not([class*="fc-event-"]),
.fc-daygrid-dot-event:not([class*="fc-event-"]) {
  color: var(--primary-color, #5BBFBB) !important;
}

/* 固定されたお知らせのスタイル */
.pinned-notification {
    background-color: rgba(232, 244, 253, 0.6);
    border-left: 3px solid #17a2b8;
}

.notification-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #17a2b8;
}






/* 在庫管理スタイルシート */

/* 全体コンテナ */
.inventory-container {
    padding-bottom: 30px;
}

/* アクションボタン */
.action-buttons {
    margin-bottom: 20px;
}

.action-buttons .btn {
    padding: 12px;
    font-size: 16px;
}

/* ドロップダウン内のフォーム */
.dropdown-item-form {
    margin: 0;
    padding: 0;
}

.dropdown-item-form .dropdown-item {
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

/* ステータスグラフ */
.status-bar {
    margin-bottom: 15px;
}

.status-bar .progress {
    height: 25px;
}

/* ステータスカラー */
.bg-orange {
    background-color: #fd7e14;
}

.border-orange {
    border-color: #fd7e14 !important;
}

/* アイテムカード */
.item-card {
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-image {
    max-height: 80px;
    object-fit: contain;
}

/* ステータス選択 */
.status-selection .btn {
    padding: 10px;
    margin-bottom: 10px;
}

.btn-outline-orange {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-orange:hover,
.btn-check:checked + .btn-outline-orange {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
}

/* バーコードスキャン */
.camera-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    height: 2px;
    background: rgba(255, 0, 0, 0.8);
    box-shadow: 0px 0px 8px 2px rgba(255, 0, 0, 0.5);
    animation: scanner-animation 2s infinite;
}

@keyframes scanner-animation {
    0% { transform: translateY(-100px); }
    50% { transform: translateY(100px); }
    100% { transform: translateY(-100px); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .camera-container {
        height: 250px;
    }
}


/* 在庫テーブルのスタイル */
.table-inventory {
    table-layout: fixed;
    width: 100%;
}

/* 列幅の設定 */
.table-inventory .col-image {
    width: 70px;
}
.table-inventory .col-name {
    width: auto;
    min-width: 150px;
}
.table-inventory .col-status {
    width: 110px;
}
.table-inventory .col-jancode {
    width: 120px;
}
.table-inventory .col-price {
    width: 100px;
}
.table-inventory .col-label {
    width: 130px; /* 管理番号のために幅を拡大 */
}
.table-inventory .col-category {
    width: 100px;
}
.table-inventory .col-group {
    width: a100px;
}
.table-inventory .col-actions {
    width: 90px;
}

/* テーブルセル内のテキスト処理 */
.table-inventory th, 
.table-inventory td {
    padding: 8px;
    vertical-align: middle;
    word-break: break-word;
}

/* スマホ表示時のスタイル調整 */
@media (max-width: 767.98px) {
    .table-inventory .col-name {
        min-width: 120px;
    }
    
    .table-inventory .col-image {
        width: 60px;
    }
    
    .table-inventory .col-actions {
        width: 80px;
    }
    
    /* スマホでは商品名を2行までに制限し、省略記号で表示 */
    .table-inventory .col-name {
        max-height: 2.4em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* スマホ用の詳細ビュー */
.mobile-detail-row {
    display: none;
}

/* 商品名が長い場合のスマホ表示対応 */
@media (max-width: 767.98px) {
    .table-inventory td:nth-child(2) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* スマホでのテーブルレイアウト最適化 */
@media (max-width: 575.98px) {
    .table-inventory th, 
    .table-inventory td {
        padding: 6px 4px;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
}


@media (max-width: 767.98px) {
    .mobile-detail-row {
        display: table-row;
        background-color: #f8f9fa;
    }
    
    .mobile-detail-cell {
        padding: 8px 12px !important;
    }
    
    .mobile-detail-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .mobile-detail-list li {
        margin-bottom: 4px;
    }
}


  /* コンテナを最大幅に広げる */
  .container-fluid.mt-custom {
    width: 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }
  
  /* テーブルを横スクロール可能にする */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 商品名の列幅を調整し、テキストを折り返す */
  .product-name-cell {
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* テーブルのセル内のコンテンツが切れないようにする */
  .table td, .table th {
    white-space: normal;
  }
  
  /* テーブルの行高さを最適化 */
  .table tr {
    height: auto;
  }