table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
}

th {
  background: #f0f0f0;
}

.pagination {
  margin-top: 20px;
}

form {
  max-width: 600px;
  margin: 0 auto;
}

/* エラーボックス */
.errors {
  background: #ffecec;
  border: 1px solid #f5aca6;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
}

/* 各フィールドをカード化 */
.form-group {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fafafa;
  transition: 0.2s;
}

/* ホバーで少し浮く */
.form-group:hover {
  border-color: #bbb;
  background: #f5f5f5;
}

/* ラベル */
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 入力フィールド */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* フォーカス時 */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* 送信ボタン */
form input[type="submit"] {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background: #0056b3;
}

.title-link {
  font-size: 30px;
  font-weight: 500;
}

.news{
padding:80px 20px;
background:#fff;
text-align:center;
}

.news-wrapper{
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

/* 表示領域 */

.news-container{
overflow:hidden;
width:100%;
max-width:1100px;
}

.news-footer{
text-align:center;
margin-top:40px;
}

.news-button{
display:inline-block;
padding:12px 30px;
border:2px solid #6a5acd;
border-radius:999px;
text-decoration:none;
color:#6a5acd;
transition:0.3s;
}

.news-button:hover{
background:#6a5acd;
color:#fff;
}

/* 横並び */

.news-track{
display:flex;
transition:0.5s;
}

/* カード */

/*.news-card{
min-width:calc(100% / 3);  3つ表示 
box-sizing:border-box;
padding:15px;
}
*/


.news-card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 8px 20px rgba(0,0,0,0.1);
transition:0.3s;
display:block;
text-decoration:none;
color:inherit;
min-width:calc(100% / 3); /* 3つ表示 */
box-sizing:border-box;
padding:15px;
}

.news-card:hover{
transform:translateY(-8px);
}

/* サムネ */

.news-thumb{
width:100%;
height:180px;
object-fit:cover;
}

/* テキスト */

.news-content{
padding:15px;
text-align:left;
}

.news-date{
font-size:12px;
color:#888;
margin-bottom:5px;
}

.news-title{
font-size:16px;
}

/* 矢印 */

.arrow{
background:#6a5acd;
color:white;
border:none;
font-size:30px;
width:50px;
height:50px;
cursor:pointer;
border-radius:50%;
margin:10px;
transition:0.3s;
}

.arrow:hover{
background:#483d8b;
}

@media(max-width:768px){
.news-card{
min-width:100%;
}
}

.form-container {
  max-width: 640px;
  margin: 40px auto;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* エラー */
.form-errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* フィールド単位 */
.form-group {
  margin-bottom: 20px;
}

/* ラベル */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

/* 入力フィールド */
.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
}

/* フォーカス */
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
  outline: none;
}

/* ボタンエリア */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* プライマリボタン */
.btn-primary {
  background: #3b82f6;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2563eb;
}

/* 戻るリンク */
.btn-link {
  color: #6b7280;
  text-decoration: none;
}

.btn-link:hover {
  color: #374151;
}

.schedule{
padding:80px 20px;
background:#f7f7fb;
}

/* 日付ナビ */

.date-nav{
display:flex;
align-items:center;
justify-content:center;
}

.date-container{
  overflow:hidden;
  max-width:1100px;
  width:100%;
}

/* 横スライド */

.date-track{
display:flex;
max-width:1100px;
width:100%;
transition:0.5s;
}

/* 2日表示 */

.date-group{
min-width:50%;
max-width:550px;
padding:0 20px;
box-sizing:border-box;
flex-shrink:0;
}

/* 日付 */

.date-header{
border-bottom:2px solid #ddd;
margin-bottom:20px;
padding-bottom:10px;
}

.date{
font-weight:bold;
font-size:18px;
}

/* 配信リスト */

.schedule-list{
display:flex;
/* flex-direction:column; */
gap:20px;
}

/* カード */

/* .schedule-card{
background:#fff;
border-radius:14px;
padding:15px;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
transition:0.3s;
} */

.schedule-card:hover{
transform:translateY(-5px);
}

/* 上部 */

.card-top{
display:flex;
justify-content:space-between;
align-items:center;
}

/* アイコン */

.icon{
width:40px;
height:40px;
border-radius:50%;
object-fit:cover;
}

/* 時間 */

.time{
font-size:14px;
color:#555;
}

/* タイトル */

.title{
margin:10px 0;
font-size:15px;
font-weight:bold;
}

/* サムネ */
.thumbnail-wrapper{
    width:100%;
    height: 100%;
    aspect-ratio:16/9;
    background:#000;
    border-radius:10px;

    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

/* 画像 */

.thumbnail{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

/* 矢印 */

.arrow{
background:#6a5acd;
color:#fff;
border:none;
width:50px;
height:50px;
border-radius:50%;
font-size:24px;
cursor:pointer;
margin:10px;
}

/* フッター */

.schedule-footer{
text-align:center;
margin-top:40px;
}

.schedule-button{
display:inline-block;
padding:12px 30px;
border:2px solid #6a5acd;
border-radius:999px;
text-decoration:none;
color:#6a5acd;
transition:0.3s;
}

.schedule-button:hover{
background:#6a5acd;
color:#fff;
}

/* .schedule-list{
display:flex;
gap:15px;
overflow-x:auto;  
scroll-snap-type:x mandatory;
padding-bottom:10px;
} */

.schedule-list{
  display:grid;
  grid-template-columns:1fr; /* 1列 */
  gap:15px;
}

/* カード（デフォルト：1枚） */

/* .schedule-card{
flex:0 0 100%;  
scroll-snap-align:start;

background:#fff;
border-radius:14px;
padding:15px;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
overflow: hidden;
} */

.schedule-card{
  width:100%;
  background:#fff;
  border-radius:14px;
  padding:7px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

/* 2枚以上ある場合 */

/* .schedule-list:has(.schedule-card:nth-child(2)){
flex-wrap:wrap;
overflow-x:hidden;
} */

.schedule-list:has(.schedule-card:nth-child(2)){
grid-template-columns:1fr 1fr;
}


/* 2列グリッド化 */

/* .schedule-list:has(.schedule-card:nth-child(2)) .schedule-card{
flex:0 0 calc(50% - 8px);
} */
.schedule-list:has(.no-schedule){
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:150px; /* 高さ確保（重要） */
}

.no-schedule{
    text-align:center;
    padding:80px;
    color:#888;
    background:#f0f0f5;
    border-radius:10px;
    font-size:42px;
}

/* さらにスクロール対応（スマホなど） */

@media(max-width:768px){

.schedule-list{
flex-wrap:nowrap;
overflow-x:auto;
}

.schedule-card{
flex:0 0 80%;
}

}

.schedule-list::-webkit-scrollbar{
display:none;
}

.schedule-list{
-webkit-overflow-scrolling: touch;
}
nav{
    display:flex;
}

/* サイドバー本体（非表示状態） */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px; /* 初期は隠す */
  width: 240px;
  height: 100%;
  background: #1f2937;
  color: white;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 16px;
}

/* 開いた状態 */
.sidebar.open {
  left: 0;
}

/* ヘッダー */
.sidebar-header {
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 18px;
}

/* メニュー */
.sidebar-menu ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: block;
  width: 100%;
  padding: 10px;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar-menu a:hover {
  background: #374151;
  color: white;
}

/* ログアウト */
.sidebar-logout ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.sidebar-logout li {
  margin-bottom: 8px;
}

.sidebar-logout a {
  display: block;
  width: 100%;
  padding: 10px;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar-logout a:hover {
  background: #374151;
  color: white;
}

/* トグルボタン（常に表示） */
.floating-toggle-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: left 0.3s ease;
}

.sidebar.open ~ .floating-toggle-btn {
  left: 260px;
}

/* ホバー */
.floating-toggle-btn:hover {
  background: #2563eb;
}

.main-content {
  padding: 20px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 900;
}

.overlay.show {
  display: block;
}

/* Devise: administration area */
body.admin-area{
  padding-top:0;
  background:#f3f4f6;
}

.admin-area .devise-page{
  min-height:100vh;
  padding:40px 20px;
  background:linear-gradient(135deg, #eef2ff, #f8fafc 55%, #e0f2fe);
}

.admin-area .devise-card{
  border:1px solid #dbe3ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 38px rgba(31, 41, 55, .14);
}

.admin-area .devise-card__eyebrow{ color:#2563eb; }
.admin-area .devise-card__header h1{ color:#1f2937; }
.admin-area .devise-field input:focus{ border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59, 130, 246, .18); }
.admin-area .devise-check-field input{ accent-color:#3b82f6; }
.admin-area .devise-form .devise-submit{ border-radius:8px; background:#3b82f6; }
.admin-area .devise-form .devise-submit:hover{ background:#2563eb; }
.admin-area .devise-links a{ color:#2563eb; }
.admin-area .flash-message{ width:100%; margin:0 0 18px; border-radius:8px; }
.admin-area .flash-message--notice{ border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
