/* ==========================================================================
   gacco-top.css
   トップページ（index.html）専用スタイル。
   共通の style.css の後に読み込む。
   ※ 元は index.html 内のインライン記述（style属性・<style>ブロック）。

   【構成】
   1) 既存クラスの上書き … style.css で定義済みのクラスをトップページ専用に上書き
   2) トップページ専用の新規クラス … 接頭語 gacco- を付与（style.css には存在しない）
   ========================================================================== */

/* ==========================================================================
   1) 既存クラスの上書き（style.css のクラスを上書き）
   ========================================================================== */

/* --- ヘッダー（JMOOCロゴ掲載に伴う調整）【上書き: .p-header】 --- */
@media (min-width: 960px) {
    .p-header::before {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 50vh;
        bottom: 0;
        /* background: #ffffff !important; */
        /* background: var(--cp-docomo-red); */
        transform-origin: 0;
        transform: skewY(-3.6442234317deg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
        z-index: 0;
        transition: .5s cubic-bezier(.165, .84, .44, 1);
        transition: .5s var(--ease-out-quart);
    }
}

@media not all and (min-width: 960px) {
    .p-header {
        display: flex;
        align-items: center;
        height: 3.125rem;
        width: 100%;
        padding: 0 .875rem;
        /* background: #ffffff !important; */
        /* background: var(--cp-docomo-red); */
        box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
    }
}

/* --- モバイルヘッダーUI【上書き: .p-header-ui-mobile__*】 --- */
.p-header-ui-mobile__list {
    display: flex;
    align-items: center;
    /* color: #fff;
    color: var(--cp-white); */
    /* color: rgb(178, 7, 7) !important;
    color: var(--cp-docomo-red) !important; */
}

.p-header-ui-mobile__nav-toggle>span {
    display: block;
    position: absolute;
    height: 2px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    /* background: #FFFFFF;
    background: var(--cp-white); */
    /* background: rgb(178, 7, 7) !important;
    background: var(--cp-docomo-red) !important; */
    transition: .3s;
    transform-origin: center;
}

/* --- セクション間の余白【上書き: .l-top__section】
   style.css の margin-top（SP: 2.5rem / PC: 4.25rem）を打ち消す --- */
.l-top__section+.l-top__section {
    margin-top: 1rem;
}

/* --- ファーストビュー【上書き: .p-top-feature__*】 --- */

/* 元: <div class="p-top-feature__bg" style="opacity: 0.85;"> */
.p-top-feature__bg {
    opacity: .85;
}

/* 元: <h2 class="p-top-feature__tagline" style="color: black;"> */
.p-top-feature__tagline {
    color: #000;
}

/* 元: <span style="text-shadow: unset !important;">（main / sub 両方） */
.p-top-feature__tagline>span[data-tagline-main],
.p-top-feature__tagline>span[data-tagline-sub] {
    text-shadow: none !important;
}

/* --- お知らせ【上書き: .p-information*】 --- */
.p-information {
    background: #FFFFFF;
    background: var(--cp-white);
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05)
}

.p-information__list-row dt {
    border-bottom: 1px dotted #e8e8e8;
    padding-bottom: .625rem
}

.p-information__list-row:last-child dt {
    border-bottom: 0;
    padding-bottom: 0
}

.p-information__title>span.ft-icon {
    color: #9b9b9b;
    background: #FFFFFF;
    background: var(--cp-white);
    border-radius: 50%
}

/* --- フッター【上書き: .p-footer】 元: style="background-color: #f5f5f5;" --- */
.p-footer {
    background-color: #f5f5f5;
}

/* --- おすすめ講座カルーセル【上書き: .p-card-carousel* / .p-recommend* / .p-section__container】 --- */
.p-card-carousel__label {
    border-left: 7px solid #f2bcbc
}

@media (min-width: 960px) {
    /* 【上書き: .p-information】見出し列の比率 */
    .p-information {
        grid-template-columns: 8% 1fr
    }

    .p-recommend .p-section__container:not(:first-child) {
        margin-top: 1rem
    }

    .p-recommend .p-card-carousel__wrapper.swiper {
        width: calc(100% - 8rem);
        margin: 0 auto;
        padding: .3125rem 0
    }

    .p-recommend .p-card-carousel {
        overflow-x: hidden
    }

    .p-recommend .p-card-carousel__btn {
        background: #333
    }

    .p-recommend .p-card-carousel__btn.-prev {
        left: 0;
        transform: translate3d(-50%, -50%, 0);
        text-align: right
    }

    .p-recommend .p-card-carousel__btn.-prev>span {
        margin-right: .4em
    }

    .p-recommend .p-card-carousel__btn.-next {
        right: 0;
        transform: translate3d(50%, -50%, 0)
    }

    .p-recommend .p-card-carousel__btn.-next>span {
        margin-left: .4em
    }

    .p-recommend .p-card-carousel__btn.swiper-button-lock {
        display: none
    }

    .p-recommend .p-card-carousel.-no-hem .p-card-carousel__list>li {
        box-sizing: border-box;
        flex: 0 0 auto;
        padding-right: 1.5rem;
        padding-left: 0.25rem
    }

    .p-recommend .p-card-carousel__list>li:not(:last-child) {
        margin-right: 0
    }
}

/* ==========================================================================
   2) トップページ専用の新規クラス（接頭語 gacco-）
   ========================================================================== */

/* --- ヘッダー内JMOOCロゴ【新規: .gacco-jmooc_logo_header】 --- */
.gacco-jmooc_logo_header {
    width: 60px;
    margin: 0 0.75rem;
}

@media (min-width: 960px) {
    .gacco-jmooc_logo_header {
        width: 80px;
        margin: 0 0.75rem;
        margin-top: 1rem;
    }
}

/* --- ファーストビューのJMOOCロゴ枠【新規: .gacco-top-feature__intro / .gacco-top-feature__jmooc】 --- */
.gacco-top-feature__intro {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(100%, 100vw);
    padding-inline: clamp(16px, 2.3vw, 40px);
}

.gacco-top-feature__intro .p-top-feature__tagline {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.gacco-top-feature__jmooc {
    box-sizing: border-box;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 64px;
    padding: 10px 14px;
    background: #fff;
}

.gacco-top-feature__jmooc img {
    display: block;
    width: 100%;
    height: auto;
}

.gacco-top-feature__jmooc:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

@media (max-width: 959px) {
    .gacco-top-feature__intro {
        gap: 12px;
        padding: 14px;
    }

    .gacco-top-feature__jmooc {
        width: 96px;
        height: 44px;
        padding: 8px;
    }
}

/* --- お知らせセクションの下余白【新規: .gacco-information】
   元: <section ... style="margin-bottom: 2rem;"> --- */
.l-top__section.gacco-information {
    margin-bottom: 2rem;
}

/* --- 重要なお知らせ（アラート）【新規: .gacco-important-notice*】 --- */
.gacco-important-notice {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.gacco-important-notice.is-dismissed {
    display: none;
}

.gacco-important-notice__box {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    border: 0.0625rem solid #e7b5bc;
    border-left: 0.25rem solid #b20727;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(53, 40, 43, 0.08);
    background-color: #fff5f6;
    padding: 0.75rem 1.25rem;
    color: #35282b;
    font-size: 0.875rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.gacco-important-notice__close {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #70525a;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
}

.gacco-important-notice__title {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #a00624;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.gacco-important-notice__icon {
    display: inline-flex;
    flex: 0 0 1.375rem;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.0625rem;
    border-radius: 50%;
    background-color: #b20727;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1;
}

.gacco-important-notice__title-text {
    min-width: 0;
}

.gacco-important-notice__date {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid #e7b5bc;
    color: #70525a;
    font-size: 0.8125rem;
}

.gacco-important-notice__greeting {
    margin-bottom: 0.5rem;
}

.gacco-important-notice__intro {
    margin-bottom: 0.75rem;
}

.gacco-important-notice__actions {
    position: relative;
    border-top: 0.0625rem solid #e7b5bc;
}

.gacco-important-notice__toggle {
    box-sizing: border-box;
    display: list-item;
    min-height: 3rem;
    margin-right: 7rem;
    padding: 0.75rem 0;
    color: #a00624;
    font-weight: 700;
    cursor: pointer;
}

.gacco-important-notice__content {
    padding-top: 0.5rem;
}

.gacco-important-notice__heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gacco-important-notice__heading--related {
    margin-top: 1.5rem;
}

.gacco-important-notice__paragraph {
    margin-bottom: 1.5rem;
}

.gacco-important-notice__content a {
    text-decoration: underline;
}

.gacco-important-notice__link {
    position: absolute;
    top: 0.5rem;
    right: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 6.25rem;
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border: 0.0625rem solid #b20727;
    border-radius: 0.25rem;
    background-color: #fff;
    color: #a00624;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}
