@charset "UTF-8";

/* ==========================================================
   UNIWORDS ENGLISH
   START LEARNING｜専用CSS

   対象ページ：
   MAIN / LESSONS / INSTRUCTORS
   LESSON CURRICULUM / COURSES

   管理方針：
   ・共通CSSと画面幅別CSSを4区画で管理する
   ・既存ページのデザインと動作を維持する
   ・同一セレクタの重複定義を避ける
   ・後付け上書きや !important を使用しない
   ・site.css からの移動は検証・承認後に行う
   ========================================================== */

   /* ==========================================================
   【最終整理予定】ボタンCSS

   全ページのHTML・CSS調整完了後、
   ボタンの共通仕様を site.css に集約する。

   このファイルにはセクション固有の配置・余白のみ残す。
   現段階では既存のボタンCSSを変更しない。
   ========================================================== */


/* ==========================================================
   ① PC・スマートフォン共通CSS

   対象：すべての画面幅

   管理内容：
   ・START LEARNING全体の基本スタイル
   ・背景色、文字色、フォント
   ・見出し、説明文
   ・6つの学習項目
   ・ボタン、注意書き
   ・各ページ共通のデザイン
   ========================================================== */
.trial-goals {
    background: var(--navy);
    color: var(--color-white);
    padding: 32px clamp(24px, 4vw, 65px);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

/* ① PC・スマートフォン共通CSS */
/* START LEARNING：基本レイアウト */
.trial-goals__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0;
    max-width: 1250px;
    margin: auto;
    align-items: start;
}

.trial-goals__message,
.trial-goals__middle,
.trial-goals__menu-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* START LEARNING｜英語見出しの行間 */
.trial-goals__message h2 {
    line-height: 1.0;
}

.trial-goals__eyebrow {
    font-family: var(--font-en);
    color: var(--color-mint-bright);
    font-weight: 800;
    letter-spacing: .12em;
    font-size: 16px;
}

.trial-goals__tagline,
.trial-goals__welcome {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    margin: 1px 0;
}

/* MAIN専用｜アイコン上の案内文を中央揃え */
.trial-goals--main .trial-goals__menu-area>.trial-goals__welcome {
    text-align: center;
    margin-bottom: 28px;
}

/* START LEARNING｜左下の■模様（共通） */
.trial-goals::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 272px;
    height: 102px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Crect width='15' height='15' fill='%23164758'/%3E%3C/svg%3E") repeat left bottom;
    opacity: 0.82;
    pointer-events: none;
}

/* MAIN｜START LEARNING 左下の■模様 */
.trial-goals--main .trial-goals__squares {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 272px;
    height: 102px;
    z-index: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Crect width='15' height='15' fill='%23164758'/%3E%3C/svg%3E") repeat left bottom;
    opacity: 0.82;
}


.trial-goals::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 140px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140' viewBox='0 0 160 140'%3E%3Cg fill='none' stroke='%23368cc3' stroke-width='1.3'%3E%3Ccircle cx='165' cy='-5' r='42'/%3E%3Ccircle cx='165' cy='-5' r='78'/%3E%3Ccircle cx='165' cy='-5' r='114'/%3E%3C/g%3E%3C/svg%3E") no-repeat top right;
    pointer-events: none;
}

.trial-goals__guide {
    margin-top: 15px;
    max-width: 100%;
    position: relative;
    z-index: 1;
    top: -10px;
}

.trial-goals__guide-title {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.trial-goals__guide-copy {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 7px;
}

.trial-goals__guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: 0;
    border-radius: var(--action-radius);
    background: var(--color-learning);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--hover-duration) ease, color var(--hover-duration) ease;
}

.trial-goals__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.trial-goals__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.trial-goals__footer p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: var(--color-white);
}

.trial-goals__choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 80px;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #FFFFFF;
    border-radius: 7px;
}

.trial-goals__choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    gap: 6px;
    border-radius: 7px;
}

.trial-goals__icon-link {
    display: block;
    width: 50px;
    height: 50px;
}

.trial-goals__asset-icon {
    display: block;
    width: 100%;
    height: 100%;
    fill: white;
    color: white;
}

.trial-goals__label {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.trial-goals__actions .story-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 54px;
    padding: 0 26px;
    font-size: 16px;
}

/* .trial-goals__actions .story-button.uw-top-cta {
    box-sizing: border-box;
    gap: 12px;
    width: min(326px, 100%);
    max-width: 100%;
    min-width: 0;
    font-family: var(--font-ja, "Noto Sans JP", sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
} */

/* MAIN｜体験レッスンボタンのホバー */
.trial-goals--main .uw-action--trial:hover,
.trial-goals--main .uw-action--trial:focus-visible {
    background: #FFFFFF;
    color: #0B1726;
}

/* MAIN｜体験レッスンボタンの矢印 */
.trial-goals--main .uw-action--trial:hover .uw-top-cta__arrow,
.trial-goals--main .uw-action--trial:focus-visible .uw-top-cta__arrow {
    background-color: #087EA4;
    color: #FFFFFF;
}

/* 431?767px：既存の1列レイアウトを維持 */
@media (min-width: 431px) and (max-width: 767px) {
    .trial-goals {
        padding-top: clamp(52px, 5vw, 72px);
        padding-bottom: clamp(52px, 5vw, 72px);
    }

    .trial-goals__layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 12px;
    }

    .trial-goals__bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .trial-goals__guide {
        margin-top: 26px;
    }

    .trial-goals__choices {
        gap: clamp(12px, 1.5vw, 20px);
    }

    .trial-goals__choice {
        min-height: 140px;
        gap: 10px;
    }
}

/* 431?600px：既存のスマートフォン調整 */
@media (min-width: 431px) and (max-width: 600px) {
    .trial-goals {
        padding: 36px 20px 38px;
    }

    .trial-goals__layout {
        row-gap: 8px;
    }

    .trial-goals__guide {
        margin-top: 20px;
    }

    .trial-goals__actions {
        gap: 12px;
    }

    .trial-goals__footer {
        gap: 8px;
    }

    .trial-goals__choices {
        column-gap: 8px;
        row-gap: 4px;
    }

    .trial-goals__choice {
        min-height: 102px;
        gap: 7px;
    }

    .trial-goals__eyebrow {
        font-size: 14px;
    }
}

/* ==========================================================
   ② スマートフォン専用｜430px以下

   対象：画面幅430px以下

   管理内容：
   ・スマートフォンの基本レイアウト
   ・見出し、文章の配置と余白
   ・学習項目の配置
   ・ボタンの幅と間隔
   ========================================================== */
/* ② スマートフォン専用｜430px以下 */
@media (max-width: 430px) {
    .trial-goals {
        padding: 36px 20px 38px;
    }

    .trial-goals__layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }

    .trial-goals__bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .trial-goals__guide {
        margin-top: 20px;
    }

    .trial-goals__actions {
        gap: 12px;
    }

    .trial-goals__footer {
        gap: 8px;
    }

    .trial-goals__choices {
        column-gap: 0;
        row-gap: 12px;
    }

    .trial-goals__choice {
        min-height: 80px;
        gap: 16px;
    }

    .trial-goals__eyebrow {
        font-size: 14px;
    }
}


/* ==========================================================
   ③ スマートフォン専用｜390px以下

   対象：画面幅390px以下

   管理内容：
   ・390px以下で必要な調整のみ
   ・文字の折り返し
   ・余白や間隔の微調整

   注意：
   430px以下のCSSと同じ指定を繰り返さない
   ========================================================== */
@media (max-width: 390px) {}

/* ==========================================================
   ④ PC専用｜768px以上

   対象：画面幅768px以上

   管理内容：
   ・1025px以上：3カラム
   ・768?1024px：上段2カラム＋下段アイコン
   ・学習項目のグリッド
   ・見出し、文章、ボタンの配置
   ========================================================== */

@media (min-width: 768px) {

    .trial-goals--main {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    /* MAIN専用｜2カラムレイアウト */
    .trial-goals--main .trial-goals__layout {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        column-gap: 40px;
        align-items: center;
        width: 100%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .trial-goals--main .trial-goals__message {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding-top: 8px;
        justify-content: flex-start;
    }

    .trial-goals--main .trial-goals__message .trial-goals__middle {
        margin-top: 0;
    }

    .trial-goals--main .trial-goals__menu-area {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        border-left: 1px solid #FFFFFF;
        padding-left: 24px;
        transform: translateY(0);
    }

    /* 6つの学習項目：3列×2段 */
    .trial-goals--text-menu .trial-goals__choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* PC専用｜SVGアイコンの配置を維持 */
    .trial-goals--main .trial-goals__choice {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        border: 0;
        gap: 6px;
    }


    /* MAIN専用｜PCのCTAボタンを横並び */
    .trial-goals--main .trial-goals__actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
    }


    /* MAIN PC｜2つのCTAを180px・文字12pxに統一 */
    .trial-goals--main .trial-goals__actions>a.uw-top-cta {
        box-sizing: border-box;
        width: 180px;
        min-width: 0;
        max-width: 180px;
        flex: 0 0 180px;
        height: 54px;
        padding-left: 2px;
        padding-right: 2px;
        gap: 4px;
        font-size: 12px;
    }

    .trial-goals--main .trial-goals__actions>a.uw-top-cta .uw-top-cta__label {
        font-size: 12px;
        white-space: nowrap;
    }

    .trial-goals--main .trial-goals__actions>a.uw-top-cta .uw-top-cta__arrow {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
    }

    /* MAIN｜START LEARNING 背景グラデーション
    .trial-goals--main.trial-goals--text-menu {
        background: linear-gradient(120deg,
                #0B1726 0%,
                #142B46 30%,
                #20547A 50%,
                #142B46 70%,
                #0B1726 100%);
        background-size: 250% 250%;
        animation: uw-learning-gradient 12s ease-in-out infinite;
        border-radius: 0;
    }
} */

    /* ==========================================================
   ④ MAIN専用｜768?1024px
   上段2カラム＋下段アイコン
   ========================================================== */

    @media (min-width: 768px) and (max-width: 1024px) {

        .trial-goals--main .trial-goals__layout {
            grid-template-columns: minmax(0, 1fr);
            column-gap: 0;
            row-gap: 28px;
            transform: translateY(-15px);
        }

        /* MAIN｜768〜1024px：文章エリアを中央配置 */
        .trial-goals--main .trial-goals__message {
            grid-column: 1 / -1;
            grid-row: 1;
            min-width: 0;
            padding-top: 8px;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        /* 右カラムを下段全幅に配置 */
        .trial-goals--main .trial-goals__menu-area {
            grid-column: 1 / -1;
            grid-row: 2;
            border-left: 0;
            padding-left: 0;
            transform: translateY(-10px);
        }

        /* SVGアイコンは3列×2段を維持 */
        .trial-goals--main .trial-goals__choices {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        /* MAIN｜768〜1024px：CTAボタンを中央配置 */
        .trial-goals--main .trial-goals__actions {
            justify-content: center;
        }
    }
}