:root {
    --primary-yellow: #f9c23c;
    --soft-blue: #e0f2ff;
    --soft-pink: #fff0f5;
    --soft-green: #e9f7ef;
    --text-color: #4a4a4a;
    --black-stone: #333333;
    --white-stone: #ffffff;
    --border-color: #e0e0e0;
    --bg-table-header: #f8f9fa;
}

/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 背景装飾（水彩風） */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.4;
}

.circle-1 { top: -10%; left: 10%; width: 300px; height: 300px; background: radial-gradient(circle, #e0f2ff, #a2d2ff); }
.circle-2 { bottom: 5%; left: 5%; width: 400px; height: 400px; background: radial-gradient(circle, #ffcfd2, #fde2e4); }
.circle-3 { top: 20%; right: -5%; width: 350px; height: 350px; background: radial-gradient(circle, #d8f3dc, #b7e4c7); }

/* ヘッダー */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8C00;
    display: flex;
    align-items: center;
    gap: 10px;
}

.igo-icon {
    width: 24px;
    height: 24px;
    background: var(--black-stone);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
}
.igo-icon::after {
    content: '';
    position: absolute; top: 20%; left: 20%; width: 30%; height: 30%;
    background: rgba(255,255,255,0.3); border-radius: 50%;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a:hover {
    color: #FF8C00;
}

/* メインコンテナ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 5%;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #006400;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    color: #888;
}

/* 共通カード/セクション */
.card-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* テーブルスタイル */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #fff;
}

.info-table th, .info-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.info-table th {
    background: var(--bg-table-header);
    width: 30%;
    font-weight: 700;
    color: #666;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-yellow);
    color: #696969;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(249, 194, 60, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    box-shadow: none;
}

/* ---------------------------------
   インデックス固有
--------------------------------- */
.hero {
    padding: 80px 5% 40px;
    text-align: center;
}
.hero h1 { font-size: 3rem; color: #006400; margin-bottom: 20px; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.course-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); background: #fff; }

/* ---------------------------------
   講師紹介固有
--------------------------------- */
.profile-image-container {
    width: 180px; height: 180px; margin: 0 auto 30px;
    background: var(--soft-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 5px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 4rem;
}
.profile-message {
    text-align: left; background: #fff; padding: 30px; border-radius: 20px; margin-bottom: 40px; position: relative;
}
.profile-message::after {
    content: ''; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 15px solid #fff;
}
.sns-links { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.sns-item {
    background: #fff; padding: 10px 20px; border-radius: 50px; border: 1px solid var(--border-color); font-weight: 700;
}
.sns-item:hover { background: var(--primary-yellow); color: #fff; }

/* ---------------------------------
   お問い合わせ固有
--------------------------------- */
.email-display {
    font-size: 1.2rem; background: #f8f9fa; padding: 15px; border-radius: 12px;
    display: inline-block; margin: 20px 0; border: 1px solid var(--border-color);
}
#toast {
    visibility: hidden; min-width: 200px; background: #333; color: #fff; text-align: center;
    border-radius: 30px; padding: 10px 20px; position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2000;
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }

/* ---------------------------------
   カルチャー/宇宙棋院
--------------------------------- */
.trial-box { background: var(--soft-pink); border: 2px dashed #ffafcc; padding: 25px; border-radius: 20px; text-align: center; margin-bottom: 30px; }
.textbook-card { display: flex; align-items: center; gap: 20px; background: var(--soft-green); padding: 20px; border-radius: 15px; margin-top: 30px; text-align: left;}
.badge { background: var(--primary-yellow); color: #696969; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-left: 10px;}

/* フッター */
footer {
    background: #f8f9fa; padding: 40px 5%; text-align: center; margin-top: 60px; border-top: 1px solid var(--border-color);
}

@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* レスポンシブ */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav ul { font-size: 0.85rem; gap: 10px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    .card-section { padding: 30px 20px; }
    .info-table th, .info-table td { display: block; width: 100%; }
    .info-table th { border-bottom: none; padding-bottom: 5px; }
}