/* =====================================================
   受講者マイページ スタイル（オレンジテーマ）
   ===================================================== */

/* ---- ヘッダー ---- */
.student-header {
    background: #f57c00 !important;
    color: #fff;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.student-header-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.student-header-logo {
    font-weight: 700;
    font-size: 0.95em;
}
.student-header-logout {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.88em;
    background: rgba(0,0,0,.18);
    transition: background .15s;
    white-space: nowrap;
}
.student-header-logout:hover { background: rgba(0,0,0,.28); }

/* ---- クイックナビ（アイコンタイルボタン） ---- */
.quick-nav-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.quick-nav-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 8px 18px;
    background: #fff8f0;
    border-radius: 14px;
    color: #f57c00;
    text-decoration: none;
    transition: background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.quick-nav-btn:hover  { background: #ffe0b2; }
.quick-nav-btn:active { transform: scale(.97); }
.quick-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}
.quick-nav-icon svg {
    width: 36px;
    height: 36px;
}
.quick-nav-label {
    font-size: 0.82em;
    font-weight: 700;
    color: #555;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}
.quick-nav-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 0.72em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    .student-header-logo { font-size: 0.8em; }
    .quick-nav-wrap { padding: 12px; border-radius: 12px; }
    .quick-nav { gap: 8px; }
    .quick-nav-btn { padding: 18px 4px 14px; gap: 8px; border-radius: 10px; }
    .quick-nav-icon { width: 40px; height: 40px; }
    .quick-nav-icon svg { width: 28px; height: 28px; }
    .quick-nav-label { font-size: 0.75em; }
}

/* ---- ログインページ背景（オレンジ系） ---- */
body.login-page {
    background-color: #fff3e0 !important;
}

/* ---- メインコンテンツ ---- */
.student-main {
    max-width: 1000px;
    margin: 28px auto;
    padding: 0 16px;
}

/* ---- フッター ---- */
.student-footer {
    text-align: center;
    color: #999;
    font-size: 0.85em;
    padding: 24px;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

/* ---- カレンダーナビ ---- */
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.calendar-nav a {
    color: #e65100;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #f57c00;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background .15s;
}
.calendar-nav a:hover { background: #fff3e0; }
.calendar-title {
    font-size: 1.2em;
    font-weight: 700;
    min-width: 140px;
    text-align: center;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar-table th {
    background: #f5f5f5;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.85em;
    border: 1px solid #ddd;
}
.calendar-table th.sun { color: #e53935; }
.calendar-table th.sat { color: #f57c00; }
.calendar-day {
    vertical-align: top;
    padding: 4px;
    border: 1px solid #ddd;
    min-height: 80px;
    font-size: 0.8em;
}
.calendar-day.sun .calendar-day-num { color: #e53935; }
.calendar-day.sat .calendar-day-num { color: #f57c00; }
.calendar-day.today { background: #fff3e0; }
.calendar-day.past  { background: #fafafa; }
.calendar-empty     { border: 1px solid #ddd; background: #fafafa; }
.calendar-day-num   { font-size: 0.9em; margin-bottom: 4px; font-weight: 600; }

/* ---- コマアイテム ---- */
.slot-item {
    border-radius: 4px;
    padding: 3px 5px;
    margin-bottom: 4px;
    font-size: 0.82em;
    line-height: 1.4;
    cursor: default;
}
.slot-open  { background: #fff3e0; color: #e65100; cursor: pointer; border: 1px solid #ffcc80; }
.slot-open:hover { background: #ffe0b2; }
.slot-mine  { background: #e8f5e9; color: #2e7d32; }
.slot-full  { background: #f5f5f5; color: #999; }

/* ---- 凡例 ---- */
.slot-legend {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.85em;
}
.slot-legend .slot-item { cursor: default; padding: 2px 8px; }

/* ---- モーダル ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    min-width: 340px;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    z-index: 201;
    position: relative;
}
.modal-box h3 { color: #e65100; margin-bottom: 12px; }
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
}

/* ---- 予約カレンダー（2ステップ式） ---- */
.res-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}
.res-cal-title {
    font-size: 1.15em;
    font-weight: 700;
    min-width: 130px;
    text-align: center;
}
.res-cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.res-cal-table th {
    background: #f5f5f5;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.85em;
    border: 1px solid #ddd;
}
.res-cal-table th.sun { color: #e53935; }
.res-cal-table th.sat { color: #f57c00; }
.res-cal-day {
    text-align: center;
    padding: 6px 2px 8px;
    border: 1px solid #ddd;
    height: 62px;
    vertical-align: top;
}
.res-cal-day.sun .res-day-num { color: #e53935; }
.res-cal-day.sat .res-day-num { color: #f57c00; }
.res-cal-day.today  { background: #fff3e0; }
.res-cal-day.past   { background: #fafafa; opacity: .6; }
.res-cal-day.selected { background: #ffe0b2; outline: 2px solid #f57c00; }
.res-cal-empty { border: 1px solid #eee; background: #fafafa; }
.res-day-num {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
}
.res-dot {
    font-size: 1.1em;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
}
.res-dot-open { color: #f57c00; }
.res-dot-open:hover { color: #e65100; }
.res-dot-mine { color: #2e7d32; }
.res-dot-mine:hover { color: #1b5e20; }
.res-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 0.82em;
    color: #666;
}

/* ---- スロットカード ---- */
.slot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.slot-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
}
.slot-card-open     { background: #fff; border-left: 4px solid #f57c00; }
.slot-card-mine     { background: #f1f8e9; border-left: 4px solid #66bb6a; }
.slot-card-disabled { background: #fafafa; border-left: 4px solid #ddd; opacity: .7; }
.slot-card-time {
    font-size: 1.1em;
    font-weight: 700;
    min-width: 110px;
    color: #333;
}
.slot-card-course {
    font-size: 0.9em;
    color: #666;
    flex: 1;
}
.slot-card-action { margin-left: auto; }
.slot-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.82em;
}
.slot-badge-mine     { background: #e8f5e9; color: #2e7d32; }
.slot-badge-full     { background: #f5f5f5; color: #999; }
.slot-badge-disabled { background: #f5f5f5; color: #aaa; font-size: 0.8em; }

/* ---- お知らせリスト ---- */
.announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.announcement-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.announcement-list li:last-child { border-bottom: none; }
.announcement-list a { color: #e65100; text-decoration: none; }
.announcement-list a:hover { text-decoration: underline; }
