/* クイズ研究会サイト用 スタイルシート */

:root {
    --color-main: #1C3177;
    --color-sub: #7F96C2;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    margin: 0;
    line-height: 1.6;
}

header {
    background-color: #1C3177; /* メインカラー */
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

main {
    max-width: 56rem;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #1C3177;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.quiz-box {
    background-color: #fefce8;
    border: 2px solid #fef08a;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    background-color: #1C3177;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #7F96C2;
}

/* --- ここから下がハンバーガーメニューの追加設定 --- */

/* メニューボタンの基本設定 */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999; /* 他の要素より手前に表示 */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8); /* 背景を少し白くして見やすく */
    border-radius: 4px;
}

/* ハンバーガーの3本線 */
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #1C3177; /* 線の色 */
    position: absolute;
    transition: all 0.3s; /* アニメーションの速度 */
}
.menu-btn span:before { bottom: 8px; }
.menu-btn span:after { top: 8px; }

/* チェックボックスは隠す（仕組みの裏側） */
#menu-btn-check {
    display: none;
}

/* メニューが開いたとき（×印になる動き） */
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0); /* 真ん中の線を消す */
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* メニューの中身（最初は隠しておく） */
.menu-content {
    width: 80%;
    max-width: 320px;
    height: 100%;
    position: fixed;
    top: 0;
    left: -100%; /* 画面の左外に隠す */
    z-index: 9998; /* ボタンのすぐ後ろ */
    background-color: rgba(28, 49, 119, 0.95); /* 背景色 */
    transition: all 0.5s;
}

/* メニューが開いたとき（画面に出てくる） */
#menu-btn-check:checked ~ .menu-content {
    left: 0;
}

/* メニューリストのデザイン */
.menu-content ul {
    padding: 70px 10px 0;
    list-style: none;
}
.menu-content ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    padding: 20px 15px;
}

/* --- ここから下がスケジュールの表用デザイン --- */

/* 表全体の基本設定 */
table {
    width: 100%;
    border-collapse: collapse; /* 枠線を重ねてスッキリさせる */
    margin-top: 10px;
}

/* 文字の間隔と下線 */
th, td {
    padding: 12px 8px; /* 上下左右の余白 */
    border-bottom: 1px solid #e5e7eb; /* 薄い下線 */
    text-align: left;
}

/* 見出し（月・予定）の列 */
th {
    background-color: #f3f4f6; /* 薄いグレー */
    color: #1C3177;
    font-weight: bold;
    width: 30%; /* 「月」の列の幅 */
}

/* 縞模様（striped）にするための設定 */
.striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa; /* 1行おきに色を変える */
}

/* タイトルのデザイン */
.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1C3177;
    border-bottom: 2px solid #1e3a8a;
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- ここから下が連絡先ページ用のデザイン（分離型・背景色あり） --- */

/* リスト全体の設定 */
.contact-list {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem; /* カード同士の間隔を少し広めに */
}

/* カード全体の設定（リンクではなく単なる箱として扱う） */
.contact-card {
    background-color: #e6e6fa; /* ご指定の薄い紫色 */
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 上部：リンク部分（アイコン + ID）のデザイン */
.card-link-header {
    display: inline-flex; /* コンテンツの幅に合わせて伸縮 */
    align-items: center; /* 上下中央揃え */
    text-decoration: none; /* 下線を消す */
    color: #1C3177; /* 文字色（紺色） */
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1rem; /* 説明文との間隔 */
    padding: 8px 12px; /* クリックしやすいように少し余白 */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.6); /* リンク部分だけ少し白くしてボタン感を出す */
    transition: all 0.3s ease;
}

/* リンクにマウスが乗ったときの動き */
.card-link-header:hover {
    background-color: #ffffff; /* 真っ白にする */
    transform: translateY(-2px); /* 少し浮く */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* アイコン画像のサイズ */
.icon-img {
    width: 40px;
    height: auto;
    margin-right: 12px;
    vertical-align: middle;
}

/* 下部：説明文（地の文）のデザイン */
.card-desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7; /* 読みやすいように行間を空ける */
    color: #333333; /* 読みやすい濃いグレー */
}

/* トップページ・メニュー上の導入文 */
.intro-lead {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333333;
    margin: 0 0 2.5rem;
}

/* --- ここから下がお問い合わせフォーム用のデザイン --- */

.contact-form-section {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 20px;
}

.form-title {
    text-align: center;
    border-bottom: none;
    color: #1C3177;
}

.form-lead {
    text-align: center;
    color: #333333;
    margin-bottom: 2rem;
}

.contact-form {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #1C3177;
    margin-bottom: 0.5rem;
}

.required {
    display: inline-block;
    background-color: #C22047;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1C3177;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(28, 49, 119, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.form-submit .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-result {
    text-align: center;
    margin: 1.5rem 0 0;
    padding: 0;
    font-weight: bold;
}

.form-result:empty {
    display: none;
}

.form-result.sending {
    color: #6b7280;
}

.form-result.success {
    color: #15803d;
}

.form-result.error {
    color: #C22047;
}

/* 赤くて太い注目テキスト */
.attention-text {
    color: #C22047;       /* 指定の色 */
    font-size: 1.5rem;    /* 文字サイズ（1.5倍） */
    font-weight: bold;    /* 太文字 */
    text-align: center;   /* 中央寄せ */
    margin: 10px 0;      /* 上下の余白を小さくする（以前は 2rem でした） */
    line-height: 1.2;    /* 行間も少し詰め気味にする */
}
