@charset "UTF-8";

/*
タブレット対応(768px以上 1199px以下)
----------------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1199px) {

/*
Common
----------------------------------------------------------- */
:root {
    --space-section: 70px;
}
.wrapper {
    padding: 0 30px;
}
.sec-ttl {
    font-size: 2.75rem; /* 44px相当 */
}
.lead {
    font-size: var(--fz-base);
    padding-bottom: 35px;
}
.btn-primary {
    background: #231815;      /* 最初から黒背景 */
    color: var(--color-white); /* 文字を白に */
    border: none;
    max-width: 90%; 
    height: 52px; 
    font-size: var(--fz-base); /* 16px */
    margin: 0 auto; /* 中央寄せ */
    }

/* 右側の矢印アイコンの色も白にする */
.btn-primary::after {
    color: var(--color-white);
}
/*
header
----------------------------------------------------------- */
.header {
    height: 85px;
    background-color: var(--color-white);
    background-image: none;
}
.header .wrapper {
    padding: 0 30px;
}
.logo img {
    width: 180px;
}
.pc-only {
    display: none;
}
.sp-only {
    display: block;
}

/* ヘッダーボタンを非表示にしてハンバーガーメニュー内に配置 */
.header-btns {
    display: flex;
    gap: 15px;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
}
.btn-header {
    width: 100%;
}

/* ハンバーガーメニュー表示 */
.menu {
    display: block;
    position: relative;
    z-index: 1100; /* グロナビより上 */
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    transition: 0.3s;
}
.menu span:nth-child(1) { top: 0; }
.menu span:nth-child(2) { top: 10px; }
.menu span:nth-child(3) { top: 20px; }

/* ×印のアニメーション */
.menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu.active span:nth-child(2) { opacity: 0; }
.menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ナビゲーション(右からスライド) */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%; /* タブレットは40% */
    height: 100vh;
    background-color: var(--color-white);
    z-index: 1000; /* オーバーレイより上 */
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: block !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* メニューが開いた時 */
.nav.open {
    transform: translateX(0);
}

/* メニューリスト */
.nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.nav-list li {
    width: 100%;
    border-bottom: 1px solid #eee;
}
.nav-link {
    display: block;
    padding: 20px 0;
    font-size: 1.125rem;
    color: var(--color-text);
    text-align: left;
}

/* 背景を暗くする幕（グロナビ以外の部分） */
body.noscroll::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50; /* 全ての固定要素より下 */
    pointer-events: auto; /* クリック可能にする */
}

/* 追従バナー */
.sp-fixed-banner {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40%;
    max-width: 600px;
    margin: 0 auto;
    z-index: 500;
    line-height: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.sp-fixed-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/*
Main Visual
----------------------------------------------------------- */
.mv-content {
    height: 70vh;
    min-height: 500px;
    padding: 0 30px 120px;
}
.mv-catch-01 {
    height: 45px;
}
.mv-catch-02 {
    height: 45px;
}
.mv-grade {
    font-size: 1.125rem;
}
.mv-class {
    font-size: 1.375rem;
}
.btn-mv-trial {
    width: 140px;
    height: 140px;
    bottom: 30px;
    right: 30px;
}

/*
sec01 About
----------------------------------------------------------- */
.sec01 {
    background-color: var(--color-white);
}
.gear-large {
    top: 0px;
    left: calc(50% + 0px);
}
.gear-small {
    bottom: 550px;
    left: calc(50% - 380px);
}

/*
sec02 Course
----------------------------------------------------------- */
.course-robot {
    top: 50px;
    right: calc(50% - 370px);
}

/*
sec03 outreach
----------------------------------------------------------- */
.outreach-robot {
    bottom: -100px;
    left: calc(50% - 350px);
}



/*
sec04 QA
----------------------------------------------------------- */
.sec04 {
    position: relative; 
    background-image: none; 
    background-attachment: scroll; 
    clip-path: inset(0);
}

.sec04::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65)), 
    url(../img/sec04-01.webp);
    background-position: center; 
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1; 
}
.accordion-q button {
    font-size: var(--fz-base);
}
.accordion-a-content {
    font-size: var(--fz-s);
}

/*
sec05 Access
----------------------------------------------------------- */
.access-content {
    flex-direction: row;
    gap: 40px;
}
.access-img-wrapper {
    width: 50%;
}
.access-info {
    width: 50%;
    flex: unset;
}

/*
footer
----------------------------------------------------------- */
.footer {
    padding-top: 0;
}
.footer-main {
    padding: 60px 30px;
}
.footer-logo img {
    width: 180px;
}
.footer-nav ul {
    gap: 15px;
}
.footer-nav .nav-link {
    padding: 0;
}

    /* ---------- ABT-MV (下層MV) ---------- */
.abt-mv, .abt-sec01, .abt-sec02, .abt-sec03, .abt-sec04, .abt-sec05 {
    width: 100%;
    overflow: hidden; /* ★重要：これではみ出した水玉やギアをカットします */
    position: relative;
    }
    

.abt-mv {
    min-height: 500px; /* PCの640pxから少し下げる */
    padding: 120px 0 60px;
}

/* 装飾円サイズと位置をタブレット用に最適化 */
.circle-01 {display: none; }
.circle-02 { width: 220px; height: 220px; top: 10%; left: 10%; }
.circle-04 { width: 300px; height: 300px; right: -5%; }
.circle-05 { width: 120px; height: 120px; bottom: 10%; right: 5%; }

    /* ---------- ABT-SEC01 (3つのポイント) ---------- */
.abt-point-item {
    gap: 40px; /* 隙間を60pxから40pxへ */
}
.abt-point-img {
    flex: 0 0 45%; /* 画像の占有率を少し下げる */
}
.abt-point-content .card-ttl {
    font-size: 1.25rem; /* 20px相当に */
}
.abt-point-content .card-txt {
    font-size: 0.9375rem; /* 15px相当に */
}

/* ---------- ABT-SEC02 (身に付く3つの力) ---------- */
.abt-sec02-list {
    /* 3列を維持しつつ、隙間を調整 */
    gap: 15px; 
}
.abt-sec02-item {
    padding: 0 10px;
}
.abt-sec02-circle img {
    width: 85%; /* イラストを少し小さくして余白を作る */
}
.abt-sec02-item-ttl{
    font-size: var(--fz-ms);
}
.abt-sec02-txt {
    font-size: 0.875rem; /* 14px相当 */
    line-height: 1.6;
}
.abt-sec02-arrow {
    margin-top: 140px; /* イラストの縮小に合わせて矢印の位置も下げる */
    font-size: 12px;
}

    /* ---------- ABT-SEC03 (講師紹介) ---------- */
.abt-founder-container {
    gap: 40px;
}
.abt-founder-img {
    flex: 0 0 380px; /* 写真の幅を500pxから380pxへ */
}
.abt-founder-heading {
    font-size: 1.125rem; /* 18px */
}
.abt-founder-body p {
    font-size: 0.9375rem; /* 15px */
}

    /* ---------- ABT-SEC04 (チェックリスト) ---------- */
.abt-sec04 {
    padding-bottom: 150px; /* V字を少し浅くする */
}
    /* V字の形を再計算 */
.abt-triangle-bottom::after {
    border-top: 150px solid #fff; 
}
.abt-notebook-box {
    max-width: 650px; /* 画面幅に合わせて少し絞る */
}

    /* ---------- ABT-SEC05 (CTA・スライダー) ---------- */
.abt-sec05 {
    margin-top: -150px; /* 上のV字の高さと合わせる */
    padding: 180px 0 80px;
}
    /* ギアをタブレットの端に寄せる */
.cta-gear-left {
    width: 200px;
    left: calc(50% - 480px);
}
.cta-gear-right {
    width: 180px;
    left: calc(50% + 300px);
}
    /* スライダー画像サイズ */
.slide-contents li {
    width: 300px;
}
.slide-contents li img {
    height: 200px;
}

.course-item {
    padding: 40px; /* 少し余白を絞って中身を広げる */
    gap: 30px;     /* テキストと画像の隙間 */
}
.btn-yellow::after {
    color: var(--color-btn-text);
}

/* ---------- CRS-SEC02 (CTA・スライダー) ---------- */
/* --- 左側のテキストエリア --- */
.course-body {
    flex: 1; /* 残りのスペースを埋める */
}

/* --- 右側の画像エリア（ここが重要！） --- */
.course-img {
    /* 横幅の占有率を 35% 程度から 48% 程度まで引き上げます */
    flex: 0 0 48%; 
}

.course-img img {
    width: 100%;
    height: auto;
    /* もし画像が縦に短すぎる場合は min-height を指定するのもアリです */
    object-fit: cover; 
}

/* 説明文のフォントサイズを微調整して高さを抑える */
.course-desc {
    font-size: 0.9375rem; /* 15px相当 */
    line-height: 1.8;
}

/* ---------- CRS-SEC05 (CTA・スライダー) ---------- */
.price-table-wrapper {
    padding-bottom: 30px;
}
.crs-sec04{
    padding: 0;
}
.course-card {
    padding: 30px;
    gap: 30px;
}
.course-img { flex: 0 0 35%; }

/* ---------- OUT (CTA・スライダー) ---------- */
.scene-item h4 {
    font-size: var(--fz-s);
}
.out-sec03 {
    padding-bottom: var(--space-section);
}
.flow-list {
    padding: 19px 0;
}
.out-sec05 {
    margin-top: 0;
    padding: 0;
}
.contact-container {
    /* ★ポイント1：横並びを諦めて縦並びに切り替える */
    /* 1200px以下ではメールアドレスが入り切らないための判断です */
    flex-direction: column;
    align-items: center;
    gap: 30px; /* ボックス同士の上下の隙間 */
}

.contact-card {
    /* ★ポイント2：縦並びにした分、幅を少し広げて安定感を出す */
    width: 100%;
    max-width: 600px; /* 横に長くなりすぎないよう制限 */
    padding: 40px;
}

.contact-info-inner {
    /* 縦並び時の中央揃えを再確認 */
    justify-content: center;
    gap: 30px;
}

.contact-main-text {
    /* ★ポイント3：文字サイズを一段階落として収まりを良くする */
    font-size: 1.75rem; /* 32pxから28px相当へ */
}

/* 点線の幅を調整 */
.contact-text-group .abt-point-separator {
    max-width: 100%;
}

/* ---------- TRIAL  ---------- */

    
    /* --- MV (メインビジュアル) の再調整 --- */
    .abt-mv.trial-page-mv {
        padding-top: 120px !important;
        min-height: 550px; /* 少し高さを出して画像が成長するスペースを作る */
    }

    .trial-page-mv .trial-mv-container {
        align-items: flex-end;
        gap: 0; /* 隙間を詰める */
    }

    /* 左側：テキストエリアの幅を絞る */
    .trial-page-mv .trial-mv-text {
        flex: 1; /* 比率を均等、あるいは少し小さめに */
        padding-bottom: px;
    }

    .trial-page-mv .trial-main-copy {
        font-size: var(--fz-l);
        line-height: 1.3;
        white-space: normal;
        /* テキストを無理に1行にせず、適度に改行させて画像のためのスペースを空ける */
        max-width: 380px; 
    }

    /* 右側：画像エリアを大胆に広げる */
    .trial-page-mv .trial-mv-img {
        flex: 1.6; /* 1.2から1.6に拡大して、画像に広い面積を与える */
        text-align: right;
    }

    .trial-page-mv .trial-mv-img img {
        width: 110%; /* 親要素(flex)を少しはみ出すくらい大きくする */
        max-width: 600px; /* 最大サイズをアップ */
        height: auto;
        transform: translateX(5%); /* 右側に少し逃がしてバランスをとる */
    }

    /* --- キャンペーンセクションの調整 (以前のまま維持) --- */
    .campaign-box {
        padding-top: 100px ;
    }
    .campaign-sticker {
        width: 130px;
        top: -45px;
        right: 10px;
    }
    .campaign-ttl img {
        max-width: 80%;
    }


/* 4. 特典カードがキツい場合は、少し隙間を詰める */
.benefit-container {
    gap: 15px;
}
}
