@charset "UTF-8";

/* ========================================
   1. 全体の基本設定
======================================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Hiragino Sans", "Meiryo", sans-serif;
    background-color: #BAD6FF; /* 指定の背景色（淡い青） */
    color: #000000;
}

/* ========================================
   2. ヘッダー共通設定
======================================== */
.top-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    
    /* 💡 戻るボタンを絶対配置するための基準にする */
    position: relative; 
    
    /* タイトルを上下左右の中央に配置 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px; /* ヘッダーの高さ確保 */
}

.header-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #004097; /* 指定の文字色（深い青） */
}

/* 戻るリンク (ヘッダー左上) */
.header-back-link {
    position: absolute;
    left: 20px; /* 左からの余白 */
    
    /* 💡 中身が画像1枚になるため、flex設定は不要に */
    /* display: flex; */
    /* align-items: center; */
    
    text-decoration: none;
    
    /* 💡 画像に文字が含まれているため、テキストスタイルは不要に */
    /* color: #004097; */
    /* font-size: 16px; */
    /* font-weight: bold; */
    
    /* 画像を上下中央に配置するための調整 */
    display: block;
    top: 50%;
    transform: translateY(-50%);
}

.header-back-link:hover {
    opacity: 0.7; /* ホバー時に少し薄くする */
}

/* 💡 新しい画像用スタイルを追加 */
.back-btn-img {
    height: 22px; /* 💡 Figmaに合わせて高さを調整 (元のSVGの20pxから変更) */
    width: auto; /* 幅は自動調整 */
    display: block; /* 画像の下に隙間ができないように */
}

/* メインコンテンツ領域の共通ラッパー */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 60px); 
    box-sizing: border-box;
}

/* ========================================
   3. ハンバーガーメニュー関連
======================================== */

/* 右上のハンバーガーボタン */
.hamburger-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #004097;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.hamburger-btn:hover {
    opacity: 0.7;
}

/* スライドメニューの背景（暗くなる部分） */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 40, 0.4); /* 少し青みがかった半透明の黒 */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* スライドメニュー本体 */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px; /* 初期状態は画面外 */
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1); /* 柔らかな影 */
    display: flex;
    flex-direction: column;
}
.side-menu.active {
    right: 0; /* アクティブで画面内にスライド */
}

/* メニューヘッダー */
.menu-header {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.menu-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold; /* 「メニュー」はボールドのまま */
    color: #000000; /* 黒に変更 */
}
.close-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    font-size: 24px;
    color: #000000; /* 黒に変更 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.close-btn:hover {
    opacity: 0.7;
}

/* 生徒情報エリア */
.menu-user-info {
    padding: 25px 20px;
    background-color: transparent; /* 背景色を削除（透明に） */
    color: #000000; /* 文字色を黒に */
    border-bottom: 1px solid #e5e7eb; /* 下に薄い線を引いて区切ります */
}
.menu-user-info .user-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: normal; /* 太字を解除 */
}
.menu-user-info .user-id {
    margin: 0;
    font-size: 14px;
    font-weight: normal; /* 太字を解除 */
}

/* リンク一覧 */
.menu-links {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    flex: 1;
}
.menu-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #000000; /* 文字色を黒に */
    font-size: 16px;
    font-weight: normal; /* 太字を解除 */
    transition: background-color 0.2s, padding-left 0.2s;
    border-left: 4px solid transparent;
}

/* リンクをホバー（タップ）した時の動き */
.menu-links a:hover {
    background-color: #f9fafb; /* うっすらグレーの背景にして自然な操作感に */
    border-left: 4px solid #004097; /* 選択していることがわかるように青いラインだけ残す */
    padding-left: 24px;
}
/* ========================================
   スマホ（画面幅768px以下）用のレイアウト調整
======================================== */
@media screen and (max-width: 768px) {
    .main-content {
        align-items: flex-start; /* 上下中央揃えを解除して上詰めに変更 */
        padding-top: 40px;       /* 上から少しだけ余白を取る（お好みで調整してください） */
        
        /* 💡 オマケ：スマホのブラウザ（Safariなど）のURLバー対策 */
        /* 100vhだと画面下に隠れてしまうことがあるため、最新の 100dvh を指定します */
        min-height: calc(100dvh - 54px); 
    }
}