:root {
    --primary: #1a2a3a;
    --accent: #d4af37; /* ゴールド系でチケットの価値を演出 */
    --bg: #fdfaf6;
    --white: #ffffff;
    --text: #333;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
}
/* ==========================================================================
   追加：ナビゲーション遷移時の位置ズレ（ヘッダー被り）を防ぐ設定
   ========================================================================== */
html {
    /* 💡 ヘッダーの高さ分（約80px）だけ、スクロール位置を下にずらす */
    scroll-padding-top: 100px; 
    
    /* 💡 ついでにスクロールの動きをなめらか（スムーススクロール）にする */
    scroll-behavior: smooth; 
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ヘッダー */
header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Noto Serif JP', serif;
    color: var(--primary);
    line-height: 1;          /* 上の文字と離れすぎないように固定 */
}
nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-size: 0.9rem;
}

/* ヒーロー */
#hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.badge {
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

#hero h1 {
    font-size: 2.8rem;
    margin: 20px 0;
    font-family: 'Noto Serif JP', serif;
}

/* カード/グリッド */
h2 {
    text-align: center;
    font-size: 2rem;
    font-family: 'Noto Serif JP', serif;
}

.grid, .ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card, .ticket-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.highlight {
    border: 2px solid var(--accent);
    background: #fffdf0;
}

/* チケット */
.ticket-count {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
}

.note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

/* 流れ */
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    line-height: 40px;
    margin: 0 auto 20px;
    font-weight: bold;
}

/* CTA */
#cta {
    padding: 80px 0;
    text-align: center;
    background: #f0f2f5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); }

.btn:hover { opacity: 0.8; transform: translateY(-3px); }
    
    .comparison-table h2 {
        font-size: 22px;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto; /* 万が一スマホの画面からはみ出しても横スクロールできるようにする保険 */
        margin-top: 25px;
    }

    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        text-align: left;
        line-height: 1.5;
	padding: 50px 20px;
        background-color: var(--white);
        text-align: center;
    }

    /* ヘッダーの装飾 */
    .comparison-table th {
        padding: 12px 10px;
        background-color: #f1f2f6;
        color: #333;
        font-weight: bold;
        border-bottom: 2px solid #ced4da;
	text-align: center;
    }

    /* SideSeatの列（ヘッダー）を目立たせる */
    .comparison-table th.highlight-col {
        background-color: var(--accent); 
        color: var(--primary);
        text-align: center;
    }

    /* 各セルの基本設定 */
    .comparison-table td {
        padding: 15px 10px;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }
/* 💡 左上のセルを「透明」にして、存在を消すための設定 */
    .comparison-table th.empty-corner {
        background-color: var(--bg);
        border-bottom: none;
        width: 25%;
    }

    /* 左端の項目タイトル列 */
    .comparison-table td.feature-title {
        font-weight: bold;
        color: var(--white);
        background-color:  var(--primary);
        width: 25%;
    }

    /* 従来の塾の列 */
    .comparison-table td:nth-child(2) {
        color: #777;
        width: 37.5%;
    }

    /* SideSeatの列（ボディ）を強調して安心感を与える薄い緑/青系の背景 */
    .comparison-table td.highlight-cell {
        background-color: #fffdf0; 
        color: #e74c3c;
        font-weight: 500;
        width: 37.5%;
        border-left: 2px solid var(--accent);
        border-right: 2px solid var(--accent);
    }
    
    /* 最後の行のSideSeatのセルの下線を補強 */
    .comparison-table tr:last-child td.highlight-cell {
        border-bottom: 2px solid var(--accent);
    }

/* ==========================================================================
   追加：カード間の「＋」用スタイリング
   ========================================================================== */

/* 1. PC等の大画面でのグリッド幅調整 */
#concept .grid {
    /* 左カード(1fr) ＋ プラス(自動) ＋ 右カード(1fr) の3列に固定 */
    grid-template-columns: 1fr auto 1fr;
    align-items: center; /* 縦方向の中央揃え */
    gap: 20px;
}

/* 2. プラス記号自体のデザイン */
.card-plus {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    line-height: 1;
    opacity: 0.7; /* 主張しすぎない上品な存在感に */
    user-select: none;
}

/* 3. スマホ等の画面幅が狭い時（1カラム）のレスポンシブ制御 */
@media (max-width: 768px) {
    #concept .grid {
        /* スマホでは縦1列に並べる */
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-plus {
        font-size: 2rem;
        margin: 5px 0;
    }
}
/* ==========================================================================
   追加：セクション区切り線
   ========================================================================== */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26, 42, 58, 0.15), transparent);
    margin: 60px 0;
}

/* ==========================================================================
   追加：必要チケット枚数の表デザイン
   ========================================================================== */
.sub-section-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 5px;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.ticket-needed-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
}

.ticket-needed-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
}

.ticket-needed-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.ticket-needed-table tr:last-child td {
    border-bottom: none;
}

.problem-type {
    font-weight: bold;
    color: #444;
    text-align: left;
}

.ticket-amount {
    text-align: right;
    font-weight: bold;
    color: var(--primary);
}

.ticket-amount span {
    font-size: 1.5rem;
    color: var(--accent); /* 枚数の数字をゴールドに */
}

/* ==========================================================================
   追加：講師紹介セクションのデザイン
   ========================================================================== */
#profile {
    padding: 0 0 80px 0; 
}
.profile-card {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.profile-image-area {
    flex: 1;
    text-align: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-info-area {
    flex: 2;
}

.profile-info-area h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.profile-history {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.profile-history dt {
    font-weight: bold;
    color: var(--accent);
    margin-top: 8px;
}

.profile-history dd {
    margin-left: 0;
    color: var(--text);
    margin-bottom: 5px;
}

.profile-message {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* 講師紹介のスマホ対応（縦並びにする） */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    .profile-img {
        width: 140px;
        height: 140px;
    }
    .profile-info-area {
        text-align: center;
    }
    .profile-history dt {
        margin-top: 12px;
    }
}

/* ヘッダーセルの右側に縦線を追加 */
.ticket-needed-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 薄い縦線 */
}

/* データセルの右側に縦線を追加 */
.ticket-needed-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef; /* 薄いグレーの縦線 */
}

/* どちらの表も、一番右端の列の縦線はすっきりさせるために非表示にします */
.ticket-needed-table th:last-child,
.ticket-needed-table td:last-child {
    border-right: none;
}
.ticket-table-margin {
    margin-bottom: 60px !important; /* 表と、その下の「ステップ1」との間にしっかり余白を確保 */
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    line-height: 1.1;        /* 💡 さらに行間を詰めてSideSeatとの一体感を強化 */
}

/* 「オンデマンド個別指導」の部分 */
.logo-sub {
    font-size: 0.65rem;       /* 💡 わずかに小さくして主役のSideSeatを引き立てる */
    font-weight: 500;         /* 💡 文字の太さを「細め」にして、スマートで上品な印象に */
    color: #556270;           /* 💡 真っ黒や原色ではなく、少し柔らかいニュアンスグレーに */
    letter-spacing: 0.12em;   /* 💡 文字の間隔を広げることで、高級感とモダンさを演出 */
    margin-bottom: 4px;       /* 下のSideSeatとの絶妙な隙間 */
    font-family: 'Noto Sans JP', sans-serif; /* すっきりしたゴシック体で可読性を担保 */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Noto Serif JP', serif; /* 美しい明朝体 */
    color: var(--primary);
    line-height: 1;
    letter-spacing: 0.02em;   /* 💡 SideSeat側もわずかに文字間を広げて美しく */
}
/* ==========================================================================
   調整：ロケーションを一番上にした際の余白最適化
   ========================================================================== */

.hero-location {
    font-size: 1rem;          /* 洗練された読みやすいサイズ */
    font-weight: 500;         /* 文字を細めにして、知的で洗練された印象に */
    color: var(--white);     /* チケットの価値を演出するゴールド系（--accent） */
    letter-spacing: 0.15em;   /* 文字の間隔を広げて、ゆったりとした高級感を出す */
    margin-top: 10px;         /* 💡 一番上に来たため、ヘッダーとの間隔を程よく調整 */
    margin-bottom: 15px;      /* 💡 下のバッジとの間に心地よい隙間を確保 */
    font-family: 'Noto Sans JP', sans-serif;
    opacity: 0.95;
}

/* スマホ表示の際の微調整 */
@media (max-width: 768px) {
    .hero-location {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   スマホ・タブレット用のレスポンシブ表示調整（完全修正・決定版）
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. ヘッダー全体の上下余白を薄くしてコンパクトに */
    header {
        padding: 12px 0 !important;
    }
    
    /* 2. 横並びの配置を維持（ナビが消えるのでロゴだけが左上に残ります） */
    header .container.flex-between {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0 20px !important;
    }

    /* 3. 左上のロゴエリアのスマホ向けサイズ調整 */
    .logo-wrapper {
        align-items: flex-start !important;
    }
    .logo-sub {
        font-size: 0.6rem !important;
        margin-bottom: 3px !important;
    }
    .logo {
        font-size: 1.5rem !important;
    }

    /* 4. スマホの時はナビゲーションメニューを完全に非表示 */
    nav {
        display: none !important;
    }

    /* 5. 「授業」と「SideSeat」をスマホでも左右横並びにキープ */
    .flow-steps {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .step {
        width: 50% !important;
        padding: 15px 10px !important;
    }
    .step h3 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    .step-arrow {
        font-size: 1.5rem !important;
        margin: 5px 0 !important;
    }

    /* 6. ヒーローのH1、各セクションのH2のサイズ調整 */
    #hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.4;
    }
    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 20px;
    }

    /* 7. 💡 【ここを修正】スマホの時「だけ」表の文字サイズと余白をスマートにします */
    .comparison-table, .ticket-needed-table {
        font-size: 0.76rem !important;  /* 💡 スマホのみ適用。パソコンには影響しません */
    }
    .comparison-table th, .comparison-table td,
    .ticket-needed-table th, .ticket-needed-table td {
        padding: 8px 3px !important;    /* 💡 左右の余白を極限まで削り、文字幅を確保 */
        word-break: normal !important;   /* どこでも強制改行するのをやめる */
        overflow-wrap: anywhere !important; /* 基本は単語単位で折り返し */
    }

    /* 表の中の太字（strong）もスマホで綺麗に中央寄せ */
    .comparison-table td strong {
        display: inline-block;
        text-align: center;
        width: 100%;
    }
} /* ⚠️ この「}」がスマホ用の終わりを示す大事な閉じタグです。これがパソコンへの影響を防ぎます */