.beginner-page {
    padding-bottom: 110px;
    background: #e3e9fd
}

.trial-video__player{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.trial-video__error{display:grid;position:absolute;inset:0;place-items:center;padding:20px;margin:0;color:#fff;text-align:center;background:#000}
.trial-video__error[hidden]{display:none}

/* 体験講座の動画プレースホルダー（将来iframeへ差し替え） */
.trial-video__placeholder,
.trial-video__placeholder img {
    display: block;
    width: 100%;
    height: 100%;
}

.trial-video__placeholder img {
    object-fit: cover;
}

@media (max-width: 767px) {
    .trial-video {
        padding: 0;
    }
}

/* Figma 4019:313 — 標準コースのモバイル用フロー */
@media (max-width: 767px) {
    .course-plan:not(.course-plan--custom) {
        min-height: 0;
        overflow: hidden;
        border-radius: 10px;
        background: #fff;
    }

    .course-plan:not(.course-plan--custom) ol {
        display: block;
        width: 100%;
        min-height: 246px;
        margin: 0;
        padding: 14px 19px 31px;
        background: #fff;
    }

    .course-plan:not(.course-plan--custom) li,
    .course-plan:not(.course-plan--custom) li:first-child,
    .course-plan:not(.course-plan--custom) li + li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 300px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 22px !important;
        color: #404040;
        font-size: 13px;
        line-height: 25px;
        text-align: center;
        background-color: transparent;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        clip-path: none;
    }

    .course-plan:not(.course-plan--custom) li:first-child {
        min-height: 53px;
        background-image: url("../images/course-flow-mobile-01.svg");
    }

    .course-plan:not(.course-plan--custom) li:nth-child(2) {
        min-height: 66px;
        margin-top: -16px;
        padding-top: 13px !important;
        background-image: url("../images/course-flow-mobile-02.svg");
    }

    .course-plan:not(.course-plan--custom) li:nth-child(3),
    .course-plan:not(.course-plan--custom) li:nth-child(4) {
        min-height: 67px;
        margin-top: -18px;
        padding-top: 15px !important;
        background-image: url("../images/course-flow-mobile-03.svg");
    }

    .course-plan:not(.course-plan--custom) li:nth-child(3) br {
        display: none;
    }

    .course-plan:not(.course-plan--custom) .course-plan__text {
        white-space: nowrap;
    }
}

/* カスタマイズコースも標準コースと同じ縦型フローに統一 */
@media (max-width: 767px) {
    .course-plan--custom {
        min-height: 0;
        overflow: hidden;
        border-radius: 10px;
        background: #fff;
    }

    .course-plan--custom ol {
        display: block;
        width: 100%;
        min-height: 246px;
        margin: 0;
        padding: 14px 19px 31px;
        background: #fff;
    }

    .course-plan--custom li,
    .course-plan--custom li:first-child,
    .course-plan--custom li + li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 300px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 22px !important;
        color: #404040;
        font-size: 13px;
        line-height: 20px;
        text-align: center;
        background-color: transparent;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        clip-path: none;
    }

    .course-plan--custom li:first-child {
        min-height: 53px;
        background-image: url("../images/course-flow-mobile-01.svg");
    }

    .course-plan--custom li:nth-child(2) {
        min-height: 66px;
        margin-top: -16px;
        padding-top: 13px !important;
        background-image: url("../images/course-flow-mobile-02.svg");
    }

    .course-plan--custom li:nth-child(3),
    .course-plan--custom li:nth-child(4) {
        min-height: 67px;
        margin-top: -18px;
        padding-top: 15px !important;
        background-image: url("../images/course-flow-mobile-03.svg");
    }

    .course-plan--custom .course-plan__text {
        display: block;
        white-space: normal;
    }
}

/* ページ内リンクはスマホの固定ヘッダー高に合わせる */
@media (max-width: 767px) {
    .beginner-section {
        scroll-margin-top: 60px;
    }
}

/* Figma mobile frame 1768:547 — final precision overrides */
@media (max-width: 767px) {
    .beginner-page {
        padding-bottom: 0;
    }

    .beginner-hero {
        height: 265px;
    }

    .beginner-hero .course-hero__inner {
        width: 100%;
        padding: 148px 14px 0;
    }

    .beginner-hero__breadcrumb {
        font-size: 13px;
        line-height: 18px;
        white-space: nowrap;
    }

    .beginner-hero__title {
        margin-top: 7px;
        font-size: 26px;
        line-height: 30px;
    }

    .beginner-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .beginner-content {
        width: 100%;
        padding: 17px 0 0;
    }

    .beginner-lead {
        width: calc(100% - 58px);
        margin: 0 auto;
        font-size: 15px;
        line-height: 25px;
    }

    .beginner-lead br {
        display: none;
    }

    .beginner-anchor-nav {
        display: grid;
        gap: 13px;
        width: 100px;
        margin: 12px 0 25px 29px;
    }

    .beginner-anchor-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100px;
        min-height: 30px;
        padding: 0;
        font-size: 15px;
        line-height: 20px;
        text-align: left;
        text-decoration: underline;
        background: none;
        border: 0;
    }

    .beginner-section {
        width: 100%;
        margin: 0 0 30px;
    }

    .beginner-heading {
        margin: 0 0 14px;
        padding-left: 29px;
        font-size: 24px;
        line-height: 32px;
    }

    .beginner-heading::before {
        top: 4px;
        bottom: 4px;
        left: 14px;
        width: 6px;
    }

    .trial-video {
        position: relative;
        z-index: 0;
        width: 316px;
        height: 171px;
        margin: 0 auto 19px;
        aspect-ratio: auto;
        overflow: visible;
    }

    .trial-video iframe {
        display: block;
        width: 100%;
        height: 100%;
    }

    .trial-survey {
        display: grid;
        grid-template-rows: 78px 87px auto;
        width: 317px;
        min-height: 464px;
        margin: 0 auto;
        padding: 0 15px 43px;
        border-radius: 20px;
    }

    .trial-survey::before {
        top: 92px;
        right: 15px;
        left: 15px;
        height: 3px;
    }

    .trial-survey h3 {
        align-self: center;
        width: 277px;
        margin: 0 auto;
        font-size: 20px;
        line-height: 30px;
    }

    .trial-survey>picture {
        width: 78px;
        height: 78px;
        margin: 9px auto 0;
    }

    .trial-survey>picture img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .trial-survey__body {
        padding-top: 12px;
    }

    .trial-survey__body p {
        min-height: 0;
        margin: 0;
        font-size: 13px;
        line-height: 23px;
    }

    .trial-survey__button {
        width: 273px;
        min-height: 45px;
        margin: 10px auto 0;
        font-size: 13px;
        line-height: 20px;
    }

    .target-list {
        width: calc(100% - 44px);
        margin: 0 0 0 33px;
        padding: 0;
        font-size: 15px;
        line-height: 25px;
        list-style: none;
    }

    .target-list li {
        padding-left: 1em;
        text-indent: -1em;
    }

    .target-list li::before {
        content: "・";
    }

    .curriculum-list {
        width: 100%;
        padding: 0 24px 0 34px;
    }

    .curriculum-list::before {
        top: 58px;
        bottom: 82px;
        left: 63px;
        width: 4px;
    }

    .curriculum-list li {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 133px;
        padding: 18px 0;
        border-bottom: 3px dotted #1242d0;
    }

    .curriculum-list li:last-child {
        border-bottom: 0;
    }

    .curriculum-list__icon {
        width: 70px;
        height: 70px;
    }

    .curriculum-list__icon img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

    .curriculum-list h3 {
        margin: 0 0 8px;
        font-size: 20px;
        line-height: 27px;
    }

    .curriculum-list p {
        font-size: 13px;
        line-height: 23px;
    }

    .beginner-note {
        margin: 12px 29px 0;
        font-size: 13px;
        line-height: 23px;
    }

    .section-copy--indented {
        width: 317px;
        margin: 0 auto 18px;
        font-size: 15px;
        line-height: 25px;
    }

    .format-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 317px;
        margin: 0 auto;
    }

    .format-card {
        min-height: 60px;
        padding: 8px 18px;
        font-size: 15px;
        line-height: 22px;
    }

    .course-plans {
        display: grid;
        gap: 23px;
        width: 338px;
        margin: 0 auto;
    }

    .course-plan__header {
        grid-template-columns: 90px minmax(0, 1fr);
        min-height: 85px;
        padding: 12px 15px;
    }

    .course-plan__header h3 {
        font-size: 20px;
        line-height: 27px;
    }

    .course-plan__header p {
        padding-left: 14px;
        font-size: 15px;
        line-height: 25px;
        border-left: 1px solid #555;
    }

    .course-plan:not(.course-plan--custom) ol {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px 19px;
    }

    .course-plan:not(.course-plan--custom) li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 53px;
        padding: 8px 25px;
        font-size: 13px;
        line-height: 20px;
        text-align: center;
    }

    .course-plan--custom ol {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 30px 6px;
    }

    .course-plan--custom li {
        min-width: 0;
        min-height: 70px;
        padding: 6px 8px;
        font-size: 10px;
        line-height: 16px;
        text-align: left;
    }

    .course-plan__text {
        display: inline;
    }

    .price-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 21px;
        width: 350px;
        margin: 0 auto;
    }

    .price-card {
        min-height: 451px;
    }

    .price-card h3 {
        height: 55px;
        font-size: 20px;
        line-height: 28px;
    }

    .price-card__price {
        margin: 24px 0 14px;
        font-size: 26px;
        line-height: 34px;
    }

    .price-card__price small {
        font-size: 15px;
    }

    .price-card__meta {
        margin: 0 17px 16px;
        padding: 12px 0;
        font-size: 15px;
        line-height: 25px;
        background: none;
    }

    .price-card__reference {
        width: 315px;
        min-height: 70px;
        margin: 0 auto 14px;
        padding: 7px 14px;
        font-size: 15px;
        line-height: 28px;
    }

    .price-card__note {
        padding: 0 16px;
        font-size: 15px;
        line-height: 25px;
    }

    .price-card--custom {
        min-height: 449px;
    }

    .price-card--custom picture {
        display: block;
        width: 124px;
        margin: 72px auto 28px;
    }

    .price-card--custom picture img {
        width: 124px;
        height: auto;
    }

    .price-card--custom>p {
        margin: 0 auto;
        padding: 0 22px;
        color: #404040;
        font-size: 20px;
        line-height: 25px;
    }

    .beginner-layout__menu {
        order: 2;
        width: 100%;
        min-height: 267px;
        margin: 71px 0 0;
        padding: 59px 48px 78px;
    }

    .course-menu__toggle {
        font-size: 16px;
        line-height: 24px;
    }

    .course-menu__item a {
        font-size: 15px;
        line-height: 25px;
    }
}

/* Mobile conflict cleanup: override the older high-specificity compact rules. */
@media (max-width: 767px) {
    .trial-survey {
        grid-template-columns: 1fr;
        grid-template-rows: 78px 87px auto;
        column-gap: 0;
    }

    .trial-survey h3 {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
        margin: 0 auto;
        padding: 0;
        font-size: 20px;
        line-height: 30px;
    }

    .trial-survey>picture {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        margin: 9px auto 0;
    }

    .trial-survey__body {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        padding-top: 12px;
    }

    .trial-survey p,
    .trial-survey__body p {
        min-height: 0;
        font-size: 13px;
        line-height: 23px;
    }

    .trial-survey .trial-survey__button {
        width: 273px;
        min-height: 45px;
        margin: 10px auto 0;
        font-size: 13px;
        line-height: 20px;
    }

    .course-plan header,
    .course-plan__header {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        min-height: 85px;
        padding: 12px 15px;
    }

    .course-plan header h3,
    .course-plan__header h3,
    .course-plan h3 {
        align-self: center;
        margin: 0;
        font-size: 20px;
        line-height: 27px;
    }

    .course-plan header p,
    .course-plan__header p {
        align-self: stretch;
        display: flex;
        align-items: center;
        margin: 0;
        padding-left: 14px;
        font-size: 15px;
        line-height: 25px;
        border-left: 1px solid #555;
    }

    .course-plan:not(.course-plan--custom) ol {
        padding: 14px 19px;
    }

    .course-plan:not(.course-plan--custom) li,
    .course-plan:not(.course-plan--custom) li:first-child,
    .course-plan:not(.course-plan--custom) li+li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 53px;
        padding: 8px 25px !important;
        font-size: 13px;
        line-height: 20px;
        text-align: center;
    }

    .course-plan--custom ol {
        padding: 30px 6px;
    }

    .course-plan--custom li,
    .course-plan--custom li:first-child,
    .course-plan--custom li+li {
        min-height: 70px;
        padding: 6px 8px !important;
        font-size: 10px;
        line-height: 16px;
    }

    .price-card>.price-card__price {
        margin: 24px 0 14px;
        padding: 0 0 14px;
        font-size: 26px;
        line-height: 34px;
    }

    .price-card>.price-card__price strong {
        font-size: 26px;
        line-height: inherit;
    }

    .price-card>.price-card__price small {
        font-size: 15px;
        line-height: inherit;
    }

    .price-card>.price-card__meta {
        margin: 0 17px 16px;
        padding: 12px 0;
        font-size: 15px;
        line-height: 25px;
        background: none;
    }

    .price-card>.price-card__reference {
        width: 315px;
        min-height: 70px;
        margin: 0 auto 14px;
        padding: 7px 14px;
        font-size: 15px;
        line-height: 28px;
    }

    .price-card>.price-card__note {
        padding: 0 16px;
        font-size: 15px;
        line-height: 25px;
    }

    .price-card.price-card--custom>p {
        margin: 0 auto;
        padding: 0 22px;
        color: #404040;
        font-size: 20px;
        line-height: 25px;
    }

    .price-card.price-card--custom>picture img {
        width: 124px;
        height: 124px;
    }
}

.beginner-hero {
    height: 280px
}

.beginner-hero .course-hero__inner {
    display: block;
    padding-left: 549px
}

.beginner-hero__breadcrumb {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.5
}

.beginner-hero__title {
    margin: 0;
    font-size: 48px;
    line-height: 1.25
}

.beginner-layout {
    width: min(calc(100% - 40px), 1449px);
    display: grid;
    grid-template-columns: 500px minmax(0, 940px);
    gap: 49px;
    margin: 0 auto
}

.beginner-layout__menu {
    margin-top: -77px
}

.beginner-content {
    padding-top: 69px
}

.beginner-lead {
    margin: 0;
    font-size: 26px;
    line-height: 45px
}

.beginner-anchor-nav {
    display: flex;
    margin: 40px 0 93px
}

.beginner-anchor-nav a {
    width: 155px;
    min-height: 49px;
    display: grid;
    place-items: center;
    color: #404040;
    font-size: 20px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px
}

.beginner-heading {
    position: relative;
    margin: 0 0 30px;
    padding-left: 23px;
    color: #404040;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.3
}

.beginner-heading::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 9px;
    background: #fa100e;
    content: ""
}

.beginner-section {
    margin-bottom: 68px;
    scroll-margin-top: 130px
}

.trial-video {
    width: 100%;
    aspect-ratio: 843/432;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0 auto 30px;
    padding: 0;
    background: rgba(255, 251, 142, .3);
    font-size: 40px
}

.trial-survey {
    width: 90%;
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 15px;
    margin: auto;
    padding: 27px 22px 23px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .4)
}

.trial-survey picture,
.trial-survey img {
    width: 108px;
    height: 108px
}

.trial-survey h3 {
    margin: 0 0 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid #777;
    font-size: 26px;
    text-align: center
}

.trial-survey p {
    margin: 0;
    font-size: 15px;
    line-height: 30px
}

.trial-survey__button {
    width: 397px;
    min-height: 60px;
    display: grid;
    place-items: center;
    margin: 11px auto 0;
    border: 2px solid #fa100e;
    border-radius: 100px;
    color: #fa100e;
    background: #fff;
    font-size: 20px
}

.trial-survey__button:hover {
    color: #fff;
    background-color: #6484f2;
    border-color: #fff;
}

/* Center the survey CTA across the full survey panel, outside the text column. */
.trial-survey > .trial-survey__button {
    grid-column: 1 / -1;
    justify-self: center;
}

.target-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 26px;
    line-height: 45px
}

.curriculum-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.curriculum-list li {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    min-height: 172px;
    border-bottom: 2px solid #91a8f6
}

.curriculum-list__icon {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 50%;
    color: #fff;
    background: #0d2c99;
    font: 700 28px/1 MazdaType, sans-serif
}

.curriculum-list h3 {
    margin: 0 0 8px;
    color: #0d2c99;
    font-size: 26px
}

.curriculum-list p {
    margin: 0;
    font-size: 18px;
    line-height: 30px
}

.beginner-note {
    margin: 18px 0 0 145px;
    font-size: 18px;
    line-height: 20px
}

.section-copy {
    font-size: 26px;
    line-height: 45px
}

.format-grid,
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 42px
}

.format-card {
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 10px;
    border-radius: 15px;
    background: #fff;
    font-size: 30px
}

.format-card picture {
    width: 95px;
    height: 95px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0d2c99
}

.format-card img {
    width: 70px;
    height: 68px;
    object-fit: contain
}

.course-plans {
    display: grid;
    gap: 24px
}

.course-plan {
    overflow: hidden;
    border-radius: 10px;
    background: #fff
}

.course-plan header {
    min-height: 70px;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    padding: 8px 30px;
    background: #d1dafb
}

.course-plan--custom header {
    background: #acbdf8
}

.course-plan h3,
.course-plan header p {
    margin: 0
}

.course-plan h3 {
    font-size: 26px;
    font-weight: 400
}

.course-plan header p {
    font-size: 20px
}

.course-plan ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 26px 18px;
    list-style: none;
    counter-reset: plan
}

.course-plan li {
    min-height: 100px;
    display: grid;
    place-items: center;
    padding: 12px;
    text-align: center;
    background: #f1f1f1;
    font-size: 15px;
    line-height: 26px
}

.course-plan li+li {
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%, 8% 50%);
    margin-left: -12px
}

.price-card {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    text-align: center
}

.price-card h3 {
    margin: 0;
    padding: 18px;
    background: #d1dafb;
    font-size: 24px;
    font-weight: 400
}

.price-card--custom h3 {
    background: #acbdf8
}

.price-card__price {
    margin: 20px 50px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #404040;
    color: #0d2c99;
    font-size: 30px;
    font-weight: 700
}

.price-card__price small {
    font-size: 15px
}

.price-card__meta {
    margin: 10px 50px;
    padding: 8px;
    background: #f1f1f1;
    font-weight: 700
}

.price-card>p {
    font-size: 15px;
    line-height: 25px
}

.price-card strong {
    color: #0d2c99
}

.price-card__note {
    padding: 0 50px 24px;
    text-align: left
}

.price-card--custom {
    display: flex;
    flex-direction: column;
    align-items: center
}

.price-card--custom picture {
    margin-top: 80px
}

.price-card--custom img {
    width: 124px;
    height: 124px
}

.price-card--custom>p {
    margin-top: 22px;
    font-size: 20px
}


@media(max-width:1279px) and (min-width:768px) {
    .beginner-hero .course-hero__inner {
        padding-left: calc(34% + 40px)
    }

    .beginner-layout {
        grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
        gap: 40px
    }

    .beginner-lead {
        font-size: 21px;
        line-height: 1.8
    }

    .course-plan header {
        grid-template-columns: 210px 1fr
    }

    .course-plan header p {
        font-size: 16px
    }
}

@media(max-width:767px) {
    .beginner-page {
        padding-bottom: 0
    }

    .beginner-hero {
        height: 116px
    }

    .beginner-hero .course-hero__inner {
        padding: 36px 10px 0
    }

    .beginner-hero__breadcrumb {
        margin: 0;
        font-size: 11px;
        line-height: 25px
    }

    .beginner-hero__title {
        font-size: 26px;
        line-height: 36px
    }

    .beginner-layout {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0
    }

    .beginner-content {
        padding: 24px 14px 0
    }

    .beginner-layout__menu {
        order: 2;
        width: 100%;
        margin: 45px 0 0;
        border-radius: 0
    }

    .beginner-content {
        order: 1
    }

    .beginner-lead {
        font-size: 12px;
        line-height: 20px
    }

    .beginner-lead br {
        display: none
    }

    .beginner-anchor-nav {
        display: none
    }

    .beginner-section {
        margin-bottom: 29px
    }

    .beginner-heading {
        margin-bottom: 14px;
        padding-left: 9px;
        font-size: 18px;
        line-height: 26px
    }

    .beginner-heading::before {
        top: 3px;
        bottom: 3px;
        width: 4px
    }

    .trial-video {
        width: 100%;
        aspect-ratio: 345/161;
        margin-bottom: 16px;
        padding: 9px;
        font-size: 15px
    }

    .trial-survey {
        width: 100%;
        grid-template-columns: 45px 1fr;
        gap: 7px;
        padding: 10px 8px;
        border-radius: 8px
    }

    .trial-survey picture,
    .trial-survey img {
        width: 45px;
        height: 45px
    }

    .trial-survey h3 {
        margin-bottom: 4px;
        padding-bottom: 6px;
        font-size: 10px
    }

    .trial-survey p {
        font-size: 8px;
        line-height: 13px
    }

    .trial-survey__button {
        width: min(100%, 190px);
        min-height: 27px;
        margin-top: 7px;
        font-size: 8px
    }

    .target-list {
        font-size: 12px;
        line-height: 20px
    }

    .curriculum-list li {
        grid-template-columns: 60px 1fr;
        min-height: 100px
    }

    .curriculum-list__icon {
        width: 50px;
        height: 50px;
        font-size: 14px
    }

    .curriculum-list h3 {
        margin-bottom: 3px;
        font-size: 13px
    }

    .curriculum-list p {
        font-size: 8px;
        line-height: 13px
    }

    .beginner-note {
        margin: 10px 0 0 60px;
        font-size: 7px;
        line-height: 10px
    }

    .section-copy {
        font-size: 12px;
        line-height: 20px
    }

    .format-grid,
    .price-grid {
        gap: 10px
    }

    .format-card {
        min-height: 52px;
        gap: 8px;
        padding: 5px;
        font-size: 12px
    }

    .format-card picture {
        width: 42px;
        height: 42px
    }

    .format-card img {
        width: 31px;
        height: 30px
    }

    .course-plans {
        gap: 12px
    }

    .course-plan header {
        min-height: 30px;
        grid-template-columns: 100px 1fr;
        padding: 4px 8px
    }

    .course-plan h3 {
        font-size: 11px
    }

    .course-plan header p {
        font-size: 8px
    }

    .course-plan ol {
        padding: 10px 5px
    }

    .course-plan li {
        min-height: 48px;
        padding: 4px;
        font-size: 7px;
        line-height: 10px
    }

    .price-card h3 {
        padding: 7px;
        font-size: 11px
    }

    .price-card__price {
        margin: 8px 10px 0;
        padding-bottom: 6px;
        font-size: 15px
    }

    .price-card__price small {
        font-size: 7px
    }

    .price-card__meta {
        margin: 5px 10px;
        padding: 4px
    }

    .price-card>p {
        font-size: 7px;
        line-height: 11px
    }

    .price-card__note {
        padding: 0 10px 10px
    }

    .price-card--custom picture {
        margin-top: 30px
    }

    .price-card--custom img {
        width: 55px;
        height: 55px
    }

    .price-card--custom>p {
        margin: 10px 6px;
        font-size: 8px
    }

}

/* Figma精密調整 */
.beginner-page {
    position: relative
}

.target-list {
    padding-left: 1.25em;
    list-style: disc
}

.target-list li {
    padding-left: .15em
}

.curriculum-list {
    position: relative
}

.curriculum-list::before {
    position: absolute;
    top: 55px;
    bottom: 55px;
    left: 79px;
    width: 8px;
    background: #0d2c99;
    content: ""
}

.curriculum-list li {
    position: relative;
    border-bottom: 3px dotted #1037BD
}

.curriculum-list__icon {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 50%;
    background: #0d2c99;
    overflow: hidden
}

.curriculum-list__icon img {
    width: 70px;
    height: 70px;
    display: block;
    object-fit: contain
}

.course-plan header p {
    position: relative;
    padding-left: 25px
}

.course-plan header p::before {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: 0;
    width: 1px;
    height: 50px;
    background: #777;
    transform: translateY(-50%);
    content: ""
}

.course-plan ol {
    gap: 0
}

.course-plan li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 28px 12px 36px;
    text-align: left;
    clip-path: none !important;
}

.course-plan li::after {
    position: absolute;
    z-index: 2;
    top: 0;
    right: -24px;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 24px solid #f1f1f1;
    content: ""
}

.course-plan li+li::before {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 24px solid #fff;
    content: ""
}

.course-plan li:last-child::after {
    display: none
}

.course-plan li:first-child {
    padding-left: 18px
}

.course-plan li:first-child .mazda-type {
    white-space: nowrap
}

.price-card {
    height: 100%;
    min-height: 510px
}

.price-card__price {
    font-size: 30px;
    line-height: 45px
}

.price-card__price strong {
    font-size: 30px
}

.price-card__meta {
    background: transparent
}

.price-card__reference {
    margin: 0 50px;
    padding: 10px 8px;
    background: #f1f1f1
}

.price-card--custom {
    background: #fff
}

@media(max-width:767px) {
    .target-list {
        padding-left: 1.4em
    }

    .curriculum-list::before {
        top: 25px;
        bottom: 25px;
        left: 29px;
        width: 4px
    }

    .curriculum-list li {
        border-bottom-width: 2px
    }

    .curriculum-list__icon {
        width: 50px;
        height: 50px
    }

    .curriculum-list__icon img {
        width: 32px;
        height: 32px
    }

    .section-copy--indented {
        margin-left: 9px
    }

    .course-plan header p {
        padding-left: 9px
    }

    .course-plan header p::before {
        height: 22px;
        display: none;
    }

    .course-plan li {
        padding: 4px 9px 4px 16px;
        text-align: left
    }

    .course-plan li::after {
        right: -8px;
        border-top-width: 24px;
        border-bottom-width: 24px;
        border-left-width: 8px
    }

    .course-plan li+li::before {
        border-top-width: 24px;
        border-bottom-width: 24px;
        border-left-width: 8px
    }

    .course-plan li:first-child {
        padding-left: 6px
    }

    .price-card {
        min-height: 230px
    }

    .price-card__price,
    .price-card__price strong {
        font-size: 15px;
        line-height: 22px
    }

    .price-card__reference {
        margin: 0 10px;
        padding: 5px 4px
    }

}

/* アンケート見出しとFigma指定ライン */
.trial-survey {
    position: relative
}

.trial-survey::before {
    position: absolute;
    top: 80px;
    right: 22px;
    left: 22px;
    height: 3px;
    background: url("../images/survey-divider.svg") center/100% 3px no-repeat;
    content: ""
}

.trial-survey h3 {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 19px;
    padding: 0;
    border: 0;
    color: #404040;
    font-size: 26px;
    line-height: 30px
}

/* Figma書き出しのフロー図形を使用 */
.course-plan ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 26px 18px;
    background: #fff
}

.course-plan li,
.course-plan li:first-child {
    min-width: 0;
    min-height: 100px;
    justify-content: flex-start;
    padding: 18px 24px 18px 14px !important;
    background: transparent url("../images/course-flow-first.svg") center/100% 100% no-repeat;
    clip-path: none !important;
    color: #404040;
    text-align: left
}

.course-plan li+li {
    padding-left: 35px !important;
    background-image: url("../images/course-flow-next.svg")
}

.course-plan li::before,
.course-plan li::after {
    display: none !important
}

.course-plan li:first-child,
.course-plan li:first-child .mazda-type {
    white-space: nowrap
}

.course-plan {
    min-height: 230px;
    background: #fff
}

.course-plan--custom {
    background: #fff
}

/* 料金カード */
.price-grid {
    align-items: stretch
}

.price-card {
    min-height: 510px;
    background: #fff
}

.price-card--custom {
    height: auto;
    min-height: 510px;
    background: #fff
}

.price-card--custom strong {
    color: #404040
}

.price-card--custom>p {
    color: #404040
}

.price-card__note {
    white-space: normal
}

@media(max-width:767px) {
    .trial-survey::before {
        top: 54px;
        right: 8px;
        left: 8px;
        height: 2px;
        background-size: 100% 2px
    }

    .trial-survey h3 {
        min-height: 39px;
        margin-bottom: 10px;
        font-size: 10px;
        line-height: 13px
    }

    .course-plan ol {
        padding: 10px 5px
    }

    .course-plan li,
    .course-plan li:first-child {
        min-height: 48px;
        padding: 5px 9px 5px 5px !important
    }

    .course-plan li+li {
        padding-left: 15px !important
    }

    .course-plan,
    .price-card,
    .price-card--custom {
        min-height: 230px
    }
}

/* 選択範囲 4018:309：アンケートカード */
.trial-survey {
    width: 100%;
    min-height: 350px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: 64px 1fr;
    column-gap: 15px;
    margin-inline: auto;
    padding: 17px 17px 23px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .4)
}

.trial-survey::before {
    top: 80px;
    right: 21px;
    left: 22px
}

.trial-survey h3 {
    grid-column: 1/-1;
    grid-row: 1;
    min-height: 55px;
    margin: 0;
    padding: 0;
    font-size: 26px;
    line-height: 30px
}

.trial-survey>picture {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 40px
}

.trial-survey__body {
    grid-column: 2;
    grid-row: 2;
    padding-top: 19px
}

.trial-survey__body p {
    min-height: 129px;
    margin: 0;
    color: #404040;
    font-size: 15px;
    line-height: 30px
}

.trial-survey__button {
    width: 397px;
    min-height: 60px;
    margin: 18px auto 0;
    font-size: 20px
}

/* 選択範囲 4018:310：見出しから一段下げたリスト */
.target-list {
    margin: 0 0 0 7px;
    padding-left: 1em;
    list-style-position: outside
}

.target-list li {
    padding: 0
}

/* フロー内の長い2行目は分割しない */
.course-plan li {
    display: grid;
    align-content: center;
    justify-content: left;
}

.course-plan li:nth-child(3) {
    white-space: nowrap
}

/* 選択範囲 4018:311：料金カード見出し */
.price-card h3 {
    height: 70px;
    width: 100%;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border-radius: 10px 10px 0 0;
    font-size: 24px;
    line-height: 31px
}

.price-card--custom h3 {
    color: #000;
    background: #acbdf8;
    font-weight: 400
}

@media(max-width:767px) {
    .trial-survey {
        min-height: 0;
        grid-template-columns: 45px minmax(0, 1fr);
        grid-template-rows: 39px auto;
        column-gap: 7px;
        padding: 10px 8px
    }

    .trial-survey::before {
        top: 54px;
        right: 8px;
        left: 8px
    }

    .trial-survey h3 {
        min-height: 39px;
        font-size: 10px;
        line-height: 13px
    }

    .trial-survey>picture {
        margin-top: 18px
    }

    .trial-survey__body {
        padding-top: 10px
    }

    .trial-survey__body p {
        min-height: 0;
        font-size: 8px;
        line-height: 13px
    }

    .trial-survey__button {
        width: min(190px, 100%);
        min-height: 27px;
        margin-top: 7px;
        font-size: 8px
    }

    .target-list {
        margin-left: 9px
    }

    .course-plan li:nth-child(3) {
        white-space: normal
    }

    .price-card h3 {
        height: 31px;
        font-size: 11px;
        line-height: 15px
    }
}

/* Keep this block last: it supersedes the legacy narrow-screen reductions. */
@media (max-width: 767px) {
    .beginner-page {
        padding-bottom: 20vw;
    }

    .beginner-hero {
        height: 206px
    }

    .beginner-hero .course-hero__inner {
        width: 100%;
        padding: 84px 14px 0
    }

    .beginner-hero__breadcrumb {
        font-size: 13px;
        line-height: 18px;
        white-space: nowrap
    }

    .beginner-hero__title {
        margin-top: 7px;
        font-size: 26px;
        line-height: 30px
    }

    .beginner-layout {
        display: flex;
        flex-direction: column;
        width: 100%
    }

    .beginner-content {
        width: 100%;
        padding: 17px 0 0
    }

    .beginner-lead {
        width: calc(100% - 58px);
        margin: 0 auto;
        font-size: 15px;
        line-height: 25px
    }

    .beginner-lead br {
        display: none
    }

    .beginner-anchor-nav {
        display: grid;
        gap: 13px;
        width: 100px;
        margin: 12px 0 25px 29px
    }

    .beginner-anchor-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100px;
        min-height: 30px;
        padding: 0;
        font-size: 15px;
        line-height: 20px;
        text-align: left;
        text-decoration: underline;
        background: none;
        border: 0
    }

    .beginner-section {
        width: 100%;
        margin: 0 0 30px
    }

    .beginner-heading {
        margin: 0 0 14px;
        padding-left: 29px;
        font-size: 24px;
        line-height: 32px
    }

    .beginner-heading::before {
        top: 4px;
        bottom: 4px;
        left: 14px;
        width: 6px
    }

    .trial-video {
        position: relative;
        z-index: 0;
        width: 94%;
        height: auto;
        margin: 0 auto 19px;
        aspect-ratio: auto;
        overflow: visible
    }


    .trial-video iframe {
        display: block;
        width: 100%;
        height: 100%
    }

    .trial-survey {
        display: grid;
        grid-template-rows: 78px 87px auto;
        width: 94%;
        min-height: auto;
        margin: 0 auto;
        padding: 0 15px 43px;
        border-radius: 20px
    }

    .trial-survey::before {
        top: 92px;
        right: 15px;
        left: 15px;
        height: 3px
    }

    .trial-survey h3 {
        align-self: center;
        width: 277px;
        margin: 0 auto;
        font-size: 20px;
        line-height: 30px
    }

    .trial-survey>picture {
        width: 78px;
        height: 78px;
        margin: 9px auto 0
    }

    .trial-survey>picture img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

    .trial-survey__body {
        padding-top: 12px
    }

    .trial-survey__body p {
        min-height: 0;
        margin: 0;
        font-size: 13px;
        line-height: 23px
    }

    .trial-survey__button {
        width: 273px;
        min-height: 45px;
        margin: 10px auto 0;
        font-size: 13px;
        line-height: 20px
    }

    .target-list {
        width: calc(100% - 44px);
        margin: 0 0 0 33px;
        padding: 0;
        font-size: 15px;
        line-height: 25px;
        list-style: none
    }

    .target-list li {
        padding-left: 1em;
        text-indent: -1em
    }

    .target-list li::before {
        content: "\30FB"
    }

    .curriculum-list {
        width: 100%;
        padding: 0 2% 0 2%;
    }

    .curriculum-list::before {
        top: 58px;
        bottom: 82px;
        left: 51px;
        width: 4px
    }

    .curriculum-list li {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 133px;
        padding: 18px 0;
        border-bottom: 3px dotted #1242d0
    }

    .curriculum-list li:last-child {
        border-bottom: 0
    }

    .curriculum-list__icon {
        width: 70px;
        height: 70px
    }

    .curriculum-list__icon img {
        width: 50px;
        height: 50px;
        object-fit: contain
    }

    .curriculum-list h3 {
        margin: 0 0 8px;
        font-size: 20px;
        line-height: 27px
    }

    .curriculum-list p {
        font-size: 13px;
        line-height: 23px
    }

    .beginner-note {
        margin: 12px 29px 0;
        font-size: 13px;
        line-height: 23px
    }

    .section-copy--indented {
        width: 317px;
        margin: 0 auto 18px;
        font-size: 15px;
        line-height: 25px
    }

    .format-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 317px;
        margin: 0 auto
    }

    .format-card {
        min-height: 60px;
        padding: 8px 18px;
        font-size: 15px;
        line-height: 22px
    }

    .course-plans {
        display: grid;
        gap: 23px;
        width: 94%;
        margin: 0 auto
    }

    .course-plan__header {
        grid-template-columns: 90px minmax(0, 1fr);
        min-height: 85px;
        padding: 12px 15px
    }

    .course-plan__header h3 {
        font-size: 20px;
        line-height: 27px
    }

    .course-plan__header p {
        padding-left: 14px;
        font-size: 15px;
        line-height: 25px;
        border-left: 1px solid #555
    }

    .course-plan:not(.course-plan--custom) ol {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px 19px
    }

    .course-plan:not(.course-plan--custom) li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 53px;
        padding: 8px 25px;
        font-size: 13px;
        line-height: 20px;
        text-align: center
    }

    .course-plan--custom ol {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 30px 6px
    }

    .course-plan--custom li {
        min-width: 0;
        min-height: 70px;
        padding: 6px 8px;
        font-size: 10px;
        line-height: 16px;
        text-align: left
    }

    .course-plan__text {
        display: inline
    }

    .price-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 21px;
        width: 94%;
        margin: 0 auto
    }

    .price-card {
        min-height: 451px
    }

    .price-card h3 {
        height: 55px;
        font-size: 20px;
        line-height: 28px
    }

    .price-card__price {
        margin: 24px 0 14px;
        font-size: 26px;
        line-height: 34px
    }

    .price-card__price small {
        font-size: 15px
    }

    .price-card__meta {
        margin: 0 17px 16px;
        padding: 12px 0;
        font-size: 15px;
        line-height: 25px;
        background: none
    }

    .price-card__reference {
        width: 315px;
        min-height: 70px;
        margin: 0 auto 14px;
        padding: 7px 14px;
        font-size: 15px;
        line-height: 28px
    }

    .price-card__note {
        padding: 0 16px;
        font-size: 15px;
        line-height: 25px
    }

    .price-card--custom {
        min-height: 449px
    }

    .price-card--custom picture {
        display: block;
        width: 124px;
        margin: 72px auto 28px
    }

    .price-card--custom picture img {
        width: 124px;
        height: auto
    }

    .price-card--custom>p {
        margin: 0 auto;
        padding: 0 22px;
        color: #404040;
        font-size: 20px;
        line-height: 25px
    }

    .beginner-layout__menu {
        order: 2;
        width: 100%;
        min-height: 267px;
        margin: 71px 0 0;
        padding: 59px 48px 78px
    }

    .course-menu__toggle {
        font-size: 16px;
        line-height: 24px
    }

    .course-menu__item a {
        font-size: 15px;
        line-height: 25px
    }
}

/* Final specificity corrections for the actual HTML structure. */
@media (max-width: 767px) {
    .trial-survey {
        grid-template-columns: 1fr;
        grid-template-rows: 27vw 24vw auto;
        column-gap: 0
    }

    .trial-survey h3 {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
        margin: 0 auto;
        padding: 0;
        font-size: 20px;
        line-height: 30px
    }

    .trial-survey>picture {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        margin: 9px auto 0
    }

    .trial-survey__body {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        padding-top: 12px
    }

    .trial-survey p,
    .trial-survey__body p {
        min-height: 0;
        font-size: 13px;
        line-height: 23px
    }

    .trial-survey .trial-survey__button {
        width: 273px;
        min-height: 45px;
        margin: 10px auto 0;
        font-size: 13px;
        line-height: 20px
    }

    .course-plan header {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        min-height: 85px;
        padding: 12px 15px
    }

    .course-plan header h3,
    .course-plan h3 {
        align-self: center;
        margin: 0;
        font-size: 4vw;
        line-height: 27px
    }

    .course-plan header p {
        align-self: stretch;
        display: flex;
        align-items: center;
        margin: 0;
        padding-left: 14px;
        font-size: 15px;
        line-height: 25px;
        border-left: 1px solid #555
    }

    .course-plan:not(.course-plan--custom) ol {
        padding: 14px 19px
    }

    .course-plan:not(.course-plan--custom) li,
    .course-plan:not(.course-plan--custom) li:first-child,
    .course-plan:not(.course-plan--custom) li+li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 53px;
        padding: 8px 25px !important;
        font-size: 13px;
        line-height: 20px;
        text-align: center
    }

    .course-plan--custom ol {
        padding: 30px 6px
    }

    .course-plan--custom li,
    .course-plan--custom li:first-child,
    .course-plan--custom li+li {
        min-height: 70px;
        padding: 6px 8px !important;
        font-size: 10px;
        line-height: 16px
    }

    .price-card>.price-card__price {
        margin: 24px 0 14px;
        padding: 0 0 14px;
        font-size: 26px;
        line-height: 34px
    }

    .price-card>.price-card__price strong {
        font-size: 26px;
        line-height: inherit
    }

    .price-card>.price-card__price small {
        font-size: 15px;
        line-height: inherit
    }

    .price-card>.price-card__meta {
        margin: 0 17px 16px;
        padding: 12px 0;
        font-size: 15px;
        line-height: 25px;
        background: none
    }

    .price-card>.price-card__reference {
        width: 94%;
        min-height: 70px;
        margin: 0 auto 14px;
        padding: 7px 14px;
        font-size: 15px;
        line-height: 28px
    }

    .price-card>.price-card__note {
        padding: 0 16px;
        font-size: 15px;
        line-height: 25px
    }

    .price-card.price-card--custom>p {
        margin: 0 auto;
        padding: 0 22px;
        color: #404040;
        font-size: 20px;
        line-height: 25px
    }

    .price-card.price-card--custom>picture img {
        width: 124px;
        height: 124px
    }
}

/* Keep the future video replacement area image-only at every viewport. */
.trial-video > .trial-video__placeholder,
.trial-video > .trial-video__placeholder > img {
    display: block;
    width: 100%;
    height: 100%;
}

.trial-video > .trial-video__placeholder > img {
    object-fit: cover;
}

@media (max-width: 767px) {
    .trial-video {
        padding: 0;
    }
}

/* Final mobile course flow: standard and custom courses */
@media (max-width: 767px) {
    .beginner-section {
        scroll-margin-top: 59px !important;
    }

    .course-plan,
    .course-plan--custom {
        min-height: 0;
        overflow: hidden;
        border-radius: 10px;
        background: #fff;
    }

    .course-plan ol,
    .course-plan--custom ol {
        display: block;
        width: 100%;
        min-height: 246px;
        margin: 0;
        padding: 14px 19px 31px;
        background: #fff;
    }

    .course-plan li,
    .course-plan li:first-child,
    .course-plan li + li,
    .course-plan--custom li,
    .course-plan--custom li:first-child,
    .course-plan--custom li + li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 300px;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding: 0 22px !important;
        color: #404040;
        font-size: 13px;
        line-height: 20px;
        text-align: center;
        background-color: transparent;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        clip-path: none;
    }

    .course-plan li:first-child,
    .course-plan--custom li:first-child {
        min-height: 53px;
        margin-top: 0;
        background-image: url("../images/course-flow-mobile-01.svg");
    }

    .course-plan li:nth-child(2),
    .course-plan--custom li:nth-child(2) {
        min-height: 66px;
        margin-top: -16px;
        padding-top: 13px !important;
        background-image: url("../images/course-flow-mobile-02.svg");
    }

    .course-plan li:nth-child(3),
    .course-plan li:nth-child(4),
    .course-plan--custom li:nth-child(3),
    .course-plan--custom li:nth-child(4) {
        min-height: 67px;
        margin-top: -18px;
        padding-top: 15px !important;
        background-image: url("../images/course-flow-mobile-03.svg");
    }

    .course-plan:not(.course-plan--custom) li:nth-child(3) br {
        display: none;
    }

    .course-plan:not(.course-plan--custom) li:first-child .course-plan__text {
        white-space: nowrap;
    }

    .course-plan--custom .course-plan__text {
        display: block;
        white-space: normal;
    }
}
