/* Hand-maintained Excel/PowerPoint overrides, loaded after the shared responsive styles. */
#lp_powerpoint .study .heading > :is(.top, .btm) { display: contents; }
/* Native tabs retain the existing course layout and expose a visible keyboard focus. */
:is(#lp-excel, #lp_powerpoint) #tabMiddle .tab_content[hidden] { display: none !important; }
:is(#lp-excel, #lp_powerpoint) #tabMiddle [role="tab"]:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
:is(#lp-excel, #lp_powerpoint) #tabMiddle .tab_content > .title { pointer-events: none; }
:where(:root:not([data-tab-focus="false"])) :is(#lp-excel, #lp_powerpoint) #tabMiddle:has([role="tab"]:focus-visible) > .tab_content:not([hidden]) > .title { outline: 3px solid #f1d600; outline-offset: -5px; }

@media (min-width: 1025px) and (max-width: 1319px) {
  #lp_powerpoint .skill_container > .title { height: auto; min-height: 60px; padding: 12px 20px; line-height: 1.5; }
  #lp_powerpoint .skill_container-content { gap: 30px; padding-inline: 24px; }
  #lp_powerpoint .skill_container-content > div { flex: 0 1 540px; min-width: 0; }
  #lp_powerpoint .skill_container-content :is(.desc, .sheet) { width: 100%; }
  #lp_powerpoint .skill_container-content > .image { flex-basis: 443px; max-width: 443px; width: 100%; height: auto; margin-left: 0; }
  #lp_powerpoint .skill_container.bottom .skill_container-content > .image { flex-basis: 509px; max-width: 509px; }
  #lp_powerpoint .skill_container-content > .image img { width: 100%; height: auto; }
  #lp_powerpoint .skill_container.bottom .desc { left: 0; }
  #lp_powerpoint .skill_container-content .sheet .button { left: 10%; width: 80%; }
  :is(#lp-excel, #lp_powerpoint) .mos { width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .mos .box-bg { max-width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .mos_container .inner .button { width: 100%; max-width: 500px; height: auto; min-height: 58px; padding: 12px 36px; line-height: 1.6; }
  /* Course names broke mid-word once the course grid narrowed below 1200px. */
  #lp-excel .top_content .curriculum-card em:not(.small) { font-size: clamp(20px, calc(21px + (100vw - 1033px) * 0.03), 26px); }
  /* Draw the axis connector between the two labels instead of at a fixed offset. */
  #lp-excel .top_content .curriculum-axis-row { position: relative; }
  #lp-excel .top_content .curriculum-axis.curriculum-axis-right { position: static; }
  #lp-excel .top_content .curriculum-axis.curriculum-axis-right::after { left: 228px; right: 228px; width: auto; }
  #lp-excel .excel-modify-date .inner { max-width: calc(100% - 40px); margin-inline: auto; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  /* The original small-PC rule shifted the right satisfaction medal 29px past the edge. Keep both medals at one scale. */
  #lp-excel .choice .bottom { padding-inline: 20px; }
  #lp-excel .choice .bottom > picture { flex: none; }
  #lp-excel .choice .bottom .img-left { width: 260px; }
  #lp-excel .choice .bottom .img-right { left: 0; width: 337px; }
}

@media (width < 768px) {
  /* Keep the presenter and the right side of the slide in the phone crop. */
  #lp_powerpoint .hero_background-image { object-position: 67% center; }
}

@media (max-width: 1024px) {
  #lp-excel { margin-bottom: 0; }
  :is(#lp-excel, #lp_powerpoint) .hero_x { max-width: none; height: 100vw; }
  #lp_powerpoint .qa_bottom li, #lp_powerpoint .qa_bottom h3 { width: 100%; max-width: 100%; }
  #lp-excel .top_content-section { padding: 30px 0; }
  :is(#lp-excel, #lp_powerpoint) .c-heading { left: 0; display: block; width: 100%; height: auto; transform: none; }
  #lp-excel .top_content { width: calc(100% - 40px); max-width: 760px; padding: 0; margin: 0 auto; }
  #lp-excel .top_content .top_content-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "note" "legacy" "curriculum" "modern" "modern-courses";
    gap: 12px;
    width: 100%;
    padding: 16px;
  }
  #lp-excel .top_content :is(.top_content-headings, .top_content-layout) { display: contents; }
  #lp-excel .top_content .cap { grid-area: note; text-align: left; }
  #lp-excel .top_content .cap-desktop { display: none; }
  #lp-excel .top_content .legacy { grid-area: legacy; }
  #lp-excel .top_content .modern { grid-area: modern; margin-top: 8px; }
  #lp-excel .top_content .modern_excel-panel { grid-area: modern-courses; width: 100%; height: auto; margin: 0; }
  #lp-excel .top_content .curriculum-area { grid-area: curriculum; display: block; min-width: 0; }
  #lp-excel .top_content .curriculum-rail { display: none; }
  #lp-excel .top_content .curriculum-grid {
    grid-template-areas: "basic" "c01" "c02" "c04" "applied" "c03" "c06" "c05" "c07";
    row-gap: 8px;
  }
  #lp-excel .top_content .curriculum-group-heading { color: #fff; font-size: 14px; font-weight: bold; }
  #lp-excel .top_content .curriculum-group-heading--basic { grid-area: basic; }
  #lp-excel .top_content .curriculum-group-heading--applied { grid-area: applied; margin-top: 8px; }
  #lp-excel .top_content .curriculum-card { min-height: 0; padding: 12px 32px 12px 12px; text-align: left; }
  #lp-excel .top_content .curriculum-card::after { right: 12px; }
  #lp-excel .top_content .curriculum-card :is(em, em.small, strong span) { font-size: 17px; }
  #lp-excel .top_content .curriculum-axis-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #lp-excel .top_content .curriculum-axis { display: grid; place-items: center; width: 100%; height: auto; min-height: 44px; padding: 6px 8px; line-height: 1.5; }
  #lp-excel .top_content .modern_excel-card { padding: 12px; }
  #lp-excel .top_content .modern_excel-card strong { font-size: 15px; }
  :is(#lp-excel, #lp_powerpoint) .curriculum { padding: 60px 20px 50px; }
  #lp-excel > .curriculum { margin-top: 0; }
  :is(#lp-excel, #lp_powerpoint) .curriculum > .heading { font-size: 25px; line-height: 1.5; }
  :is(#lp-excel, #lp_powerpoint) .curriculum > .intro { width: 100%; margin: 20px 0 0; text-align: left; font-size: 15px; }
  :is(#lp-excel, #lp_powerpoint) .curriculum .tab { width: 100%; max-width: 800px; margin: 30px auto 0; }
  :is(#lp-excel, #lp_powerpoint) .curriculum .tab_middle-wrapper { transform: none; margin: 20px 0 0; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_middle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; height: auto; overflow: visible; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_middle .button { position: static; inset: auto; width: auto; min-width: 0; height: auto; margin: 0; padding: 0; border: 1px solid #ddd; border-radius: 5px; font-size: 13px; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_middle .button::after { display: none; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_middle .button a { height: 100%; padding: 12px 8px; line-height: 1.6; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_middle .ui-tabs-active { background: #eee; border-color: currentColor; box-shadow: inset 0 -3px currentColor; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_content { padding: 20px 12px; margin-top: 20px; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_content .title { position: static; inset: auto; width: 100%; height: auto; padding: 0 0 20px; border-radius: 0; font-size: 18px; line-height: 1.5; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_content .title h3 { font-size: inherit; line-height: inherit; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .tab_content .list { width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list > div,
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list .inline,
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list .inline > div { display: block; width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list dt,
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list dd { display: block; width: 100%; max-width: none; padding: 12px; font-size: 14px; line-height: 1.8; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list dt { font-weight: bold; background: #f3f3f3; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list dd { background: #fff; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .list .row { display: flex; flex-wrap: wrap; gap: 6px 12px; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .dd-table { width: 100%; margin: 0; table-layout: fixed; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .dd-table :is(th, td) {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .dd-table th { padding-bottom: 4px; font-weight: bold; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .dd-table tr + tr th { padding-top: 12px; border-top: 1px solid #ddd; }
  :is(#lp-excel, #lp_powerpoint) .curriculum #tabMiddle .dd-table tr:not(:last-child) td { padding-bottom: 12px; }
  #lp-excel .curriculum .tab_top { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; height: auto; }
  #lp-excel .curriculum .tab_top li:nth-child(n) { position: static; inset: auto; transform: none; flex: 1 1 90px; width: auto; height: auto; margin: 0; padding: 10px; font-size: 15px; border-radius: 4px; }
  #lp-excel .kensyu :is(.list, .item, .caption), #lp-excel .heiyou > .intro,
  #lp-excel .qa_bottom li, #lp-excel .qa_bottom h3 { max-width: 100%; }
  #lp-excel .skill-note .level-descriptions { flex-wrap: wrap; }
  #lp-excel .skill-note .level-descriptions .level-desc { flex-basis: 180px; }
  #lp-excel .skill-matrix-table > .responsive-table { margin-top: 0; }
  #lp_powerpoint .ba_power { max-width: 100%; }
  /* Preserve the SP section spacing around the shared course tabs and diagrams. */
  :is(#lp-excel, #lp_powerpoint) > section:not(.hero) h2,
  :is(#lp-excel, #lp_powerpoint) > .cta_container > h2 { font-size: var(--responsive-training-heading-size) !important; font-weight: 900 !important; line-height: 1.5 !important; }
  :is(#lp-excel, #lp_powerpoint) > section:not(.hero) > h2 { margin-top: 0; }
  :is(#lp-excel, #lp_powerpoint) > .skill > .skill_container:first-child { padding-top: 0; }
  #lp_powerpoint > section.threepoints { padding-bottom: 24px; }
  #lp_powerpoint .threepoints_list { margin-bottom: 0; padding-bottom: 16.267vw; }
  #lp_powerpoint .threepoints_list .item:last-child { margin-bottom: 0; }
  #lp_powerpoint > section.lineup_content { padding-block: 0; }
  #lp_powerpoint > .lineup_content > .lineup_content-inner { padding-block: 60px 40px; }
  #lp_powerpoint .lineup_content .heading { display: block; width: 100%; left: auto; transform: none; padding-inline: 20px; }
  #lp_powerpoint .lineup_content-label { display: inline-block; }
  #lp_powerpoint .lineup_content :is(.desc, .genre, .list) { width: calc(100% - 40px); max-width: 760px; }
  #lp_powerpoint .lineup_content .desc br { display: none; }
  #lp_powerpoint .lineup_content .genre { gap: 8px; margin-top: 24px; }
  #lp_powerpoint .lineup_content .genre::before { content: none; }
  #lp_powerpoint .lineup_content .genre li { margin: 0; }
  #lp_powerpoint .lineup_content .list { display: grid; gap: 12px; margin-top: 24px; }
  #lp_powerpoint .lineup_content .list li {
    display: grid;
    justify-content: stretch;
    justify-items: start;
    gap: 8px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px 36px 14px 16px;
  }
  #lp_powerpoint .lineup_content .list li .mark {
    position: static;
    width: auto;
    height: auto;
    padding: 4px 10px;
    border-radius: 20px;
    background: #932f15;
  }
  #lp_powerpoint .lineup_content .list li .mark.green { background: #0c5d31; }
  #lp_powerpoint .lineup_content .list li h3 { min-width: 0; text-align: left; overflow-wrap: anywhere; }
  #lp_powerpoint .lineup_content .topAnchor02 .highlights { display: inline-block; white-space: nowrap; }
  #lp_powerpoint .lineup_content .list br { display: none; }
  #lp_powerpoint > .heiyou > .heiyou_top > h2 { margin-top: 0; }
  :is(#lp-excel, #lp_powerpoint) > .curriculum { background-color: #f8f8f8; }
  #lp_powerpoint > section.curriculum { margin-top: 40px; padding-bottom: 30px; }
  #lp_powerpoint .curriculum-heading-ending { display: inline-block; }
  #lp_powerpoint > .curriculum > .intro { margin-top: 16px; padding: 0; word-break: normal; }
  #lp_powerpoint > .curriculum > .tab { margin-top: 20px; }
  /* These shared Office templates lack the old SP-only animation and positioning wrappers. */
  :is(#lp-excel, #lp_powerpoint) :is(.choice, .heiyou_melit) > h2.heading :is(em, strong) { font-size: inherit; }
  #lp-excel .skill_container > .title::after { display: none; }
  #lp_powerpoint .skill_container { padding-inline: 20px; }
  #lp_powerpoint > .skill > .skill_container:first-child { padding-top: 32px; }
  #lp_powerpoint .skill_container-content .sheet {
    inset: auto;
    order: 1;
    width: auto;
    height: auto;
    margin: -12px -20px 0;
    padding: 36px 20px 24px;
  }
  #lp_powerpoint .skill_container-content .sheet p { padding-top: 0; }
  #lp_powerpoint .skill_container-content .sheet .button {
    position: relative;
    inset: auto;
    display: grid;
    place-content: center;
    width: 100%;
    height: auto;
    min-height: 100px;
    margin-top: 22px;
    padding: 16px 36px;
  }
  :is(#lp-excel, #lp_powerpoint) .skill_container.bottom .mieru {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    width: min(340px, calc(100% - 24px));
    height: auto;
    min-height: 129px;
    margin: -40px auto 32px;
    padding: 12px 14px;
  }
  :is(#lp-excel, #lp_powerpoint) .skill_container.bottom .mieru p { padding: 0; font-size: clamp(15px, 4.5vw, 19px); line-height: 1.6; }
  :is(#lp-excel, #lp_powerpoint) .skill_container-text,
  :is(#lp-excel, #lp_powerpoint) .skill_container.bottom .content { display: contents; }
  :is(#lp-excel, #lp_powerpoint) .skill_container-content .desc br { display: none; }
  :is(#lp-excel, #lp_powerpoint) .skill_container:not(.bottom) .image { width: min(295px, 100%); height: auto; margin: 20px auto 0; }
  :is(#lp-excel, #lp_powerpoint) .skill_container-content .image :is(picture, img) { display: block; width: 100%; height: auto; }
  :is(#lp-excel, #lp_powerpoint) .skill_container.bottom .desc { order: -1; }
  :is(#lp-excel, #lp_powerpoint) .skill_container.bottom .image { left: auto; width: min(293px, 100%); height: auto; margin-inline: auto; transform: none; }
  #lp-excel .skill_cta {
    order: 1;
    margin: -12px -20px 0;
    padding: 36px 20px 24px;
    background: #245f39;
    color: #fff;
  }
  #lp-excel .skill_cta .button {
    position: relative;
    display: grid;
    place-content: center;
    min-height: 100px;
    margin-top: 22px;
    padding: 16px 36px;
    border-radius: 5px;
    background: #fff;
    color: #0c5d31;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
  }
  #lp-excel .skill_cta .button::after {
    position: absolute;
    inset: 50% 16px auto auto;
    width: 10px;
    height: 20px;
    transform: translateY(-50%);
    background: url('../../mobile/lp_excel/common/image/icon/arrow_right-green.svg') center / contain no-repeat;
    content: '';
  }
  #lp-excel > section.doyouknow { padding-top: 0; }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container { width: calc(100% - 40px); max-width: 600px; }
  #lp_powerpoint .doyouknow_container { padding-top: 10.667vw; }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .top { position: relative; inset: auto; width: 100%; height: auto; padding: 20px 20px 24px; transform: none; }
  #lp-excel .doyouknow_container > .top { background: linear-gradient(#148d4b, #0c5d31); }
  #lp_powerpoint .doyouknow_container > .top { background: linear-gradient(#c43e1c, #932f15); }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .top::before,
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .top::after { height: 100%; }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .top .heading { left: 0; }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .top .intro { margin-top: 24px; }
  #lp_powerpoint .doyouknow_container > .top .intro em { display: inline-block; }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .top .desc { width: 100%; margin: 16px 0 0; padding: 0; word-break: normal; }
  :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .list { margin-top: 16px; }
  :is(#lp-excel, #lp_powerpoint) .cta_container .list > .item > .image { width: 88px; height: auto; }
  :is(#lp-excel, #lp_powerpoint) .cta_container .cta-heading-tail { display: inline-block; }
  :is(#lp-excel, #lp_powerpoint) .cta_container .item > .desc > br,
  :is(#lp-excel, #lp_powerpoint) .heiyou > :is(.heading, .intro) > br,
  #lp_powerpoint .heiyou_top > :is(.heading, .intro) > br,
  :is(#lp-excel, #lp_powerpoint) > :is(.choice, .mos, .spredsheet, .g-slider, .sample) > .intro > br,
  #lp-excel > .mos > .heading > br { display: none; }
  :is(#lp-excel, #lp_powerpoint) > :is(.choice, .mos, .g-slider, .sample) > .intro,
  :is(#lp-excel, #lp_powerpoint) > .mos > .heading,
  #lp-excel > .heiyou > .heading { width: 100%; padding-inline: 20px; overflow-wrap: anywhere; }
  #lp-excel > .mos > .heading :is(.mos__expansion, .mos__action) { display: inline-block; font: inherit; white-space: nowrap; transform: none; }
  #lp-excel > .mos > .heading .mos__expansion { font-size: 0.75em; font-weight: 400; }
  #lp-excel > .heiyou + section.choice { padding-top: 48px; }
  :is(#lp-excel, #lp_powerpoint) .heiyou_container .center .list li { height: auto; min-width: 0; }
  :is(#lp-excel, #lp_powerpoint) .heiyou_container .center .list li p { padding-inline: 20px; overflow-wrap: anywhere; }
  :is(#lp-excel, #lp_powerpoint) .heiyou_container { top: 0; }
  #lp-excel .heiyou .middle img { display: block; height: auto; }
  #lp-excel .heiyou .middle .content { position: absolute; top: 100%; left: 50%; width: min(335px, calc(100% - 40px)); margin: 0; padding-inline: 8px; transform: translate(-50%, -19px); }
  #lp-excel .heiyou .middle .content li { justify-content: center; align-items: center; gap: 6px; min-width: 0; }
  #lp-excel .heiyou .middle .content li:last-child { left: auto; }
  #lp-excel .heiyou .middle .content li em { top: auto; margin-left: 0; white-space: nowrap; }
  #lp-excel .heiyou .middle .content li:first-child::after { left: 100%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); }
  #lp_powerpoint > section.heiyou { padding-top: 0; }
  #lp_powerpoint .heiyou_top { padding-top: 28px; }
  #lp_powerpoint .heiyou_top > .heading,
  #lp_powerpoint .heiyou_melit > .heading { padding-inline: 20px; word-break: normal; }
  #lp_powerpoint .heiyou_melit > .heading > span { display: inline-block; font: inherit; }
  #lp_powerpoint .heiyou_melit > .heading > strong { word-break: keep-all; }
  #lp_powerpoint .heiyou_top > .intro { width: calc(100% - 40px); max-width: 760px; margin: 24px auto 28px; word-break: normal; }
  #lp_powerpoint .heiyou_container { align-items: center; gap: 24px; padding: 32px 20px; }
  #lp_powerpoint .heiyou_container > .item { width: 100%; max-width: 760px; margin-top: 0; }
  #lp_powerpoint .heiyou_container > :is(.left, .right) {
    display: grid;
    grid-template-columns: clamp(88px, 28vw, 112px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0;
  }
  #lp_powerpoint .heiyou_container > :is(.left, .right) > h3 span { display: block; white-space: nowrap; }
  #lp_powerpoint .heiyou_container > :is(.left, .right) > .desc { width: auto; margin: 0; }
  #lp_powerpoint .heiyou_container > .left > .desc,
  #lp_powerpoint .heiyou_container > .right > .desc span { padding: 12px 16px; }
  #lp_powerpoint .heiyou_container .right .desc span:first-child::after { width: calc(100% - 32px); }
  :is(#lp-excel, #lp_powerpoint) .choice > .bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: none; padding-inline: 20px; }
  :is(#lp-excel, #lp_powerpoint) .choice > .bottom > .desc { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; text-align: left; }
  :is(#lp-excel, #lp_powerpoint) .choice > .bottom :is(.img-left, .img-right) { position: static; inset: auto; width: 100%; max-width: 220px; height: auto; margin: 0; justify-self: center; transform: none; }
  #lp-excel .choice > .bottom { grid-template-columns: minmax(0, 172fr) minmax(0, 222fr); column-gap: 0; }
  #lp-excel .choice > .bottom > picture { display: block; grid-row: 1; width: 100%; max-width: 222px; justify-self: center; }
  #lp-excel .choice > .bottom > picture:first-of-type { max-width: 172px; }
  #lp-excel .choice > .bottom .img-right { max-width: 100%; }
  #lp-excel .choice > .bottom > .desc { left: auto; grid-row: 2; }
  #lp-excel .choice .list .item h3 { position: relative; width: min(355px, 100%); }
  #lp-excel .choice .list .item .melit { width: min(335px, calc(100% - 20px)); }
  #lp_powerpoint .choice .list .item h3 { display: inline-block; position: relative; max-width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .section-voice .inner .list { margin-top: 20px; }
  #lp_powerpoint > section.updown { padding: 70px 0 32px; }
  #lp_powerpoint .updown > .heading { padding-inline: 20px; word-break: normal; }
  #lp_powerpoint .updown > .heading br { display: none; }
  #lp_powerpoint .updown > .heading :is(em, span) { display: inline-block; white-space: nowrap; }
  #lp_powerpoint .updown .list { gap: 68px; margin-top: 90px; }
  #lp_powerpoint .updown .list .item { margin-block: 0; }
  #lp_powerpoint .updown .list .item.right .inner > img { position: static; }
  #lp_powerpoint .updown .list .item .title { top: -44px; width: min(54vw, 240px); height: 44px; padding: 10px 20px; }
  #lp_powerpoint .updown .contact > .cta_btn-orange { display: block; color: #fff; text-align: center; font-weight: bold; }
  /* Keep each diagram's background and labels in the SP artwork's coordinate system. */
  :is(#lp-excel, #lp_powerpoint) .ba :is(.ba_before, .ba_after) > .heading > .en { flex: 0 0 auto; white-space: nowrap; }
  :is(#lp-excel, #lp_powerpoint) .ba :is(.ba_before, .ba_after) > .heading > span:not(.en) { min-width: 0; }
  #lp-excel > section.ba { padding-block: 0; }
  #lp-excel .ba_panel { background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
  #lp-excel .ba_panel > .ba_panel-bg { display: none; }
  #lp-excel .ba_before { height: 149.333vw; background-image: url('../../mobile/lp_excel/common/image/before_bg.png'); }
  #lp-excel .ba_after { height: 154.133vw; margin-top: -12.533vw; background-image: url('../../mobile/lp_excel/common/image/after_bg.png'); }
  #lp-excel .ba_panel > .heading { left: 6.4vw; width: calc(100% - 12.8vw); }
  #lp-excel .ba_panel > .heading::after { left: -6.4vw; width: calc(100% + 12.8vw); transform: none; }
  #lp-excel .ba_panel > .heading > span { font-weight: 400; }
  #lp-excel .ba_panel > .heading > span:not(.en) { font-size: 15px; }
  #lp-excel .ba_before > .heading { top: 13.6vw; }
  #lp-excel .ba_after > .heading { top: 16.8vw; }
  #lp-excel .ba_before .list li:nth-child(1) { width: 33.867vw; top: 38.133vw; left: 3.467vw; }
  #lp-excel .ba_before .list li:nth-child(2) { width: 39.2vw; top: 37.6vw; right: 2.4vw; }
  #lp-excel .ba_before .list li:nth-child(3) { width: 49.6vw; top: 106.933vw; left: 3.467vw; }
  #lp-excel .ba_before .list li:nth-child(4) { width: 39.2vw; top: 106.933vw; right: 5.333vw; }
  #lp-excel .ba_after .list li:nth-child(1) { width: 39.2vw; top: 39.467vw; right: 10.933vw; }
  #lp-excel .ba_after .list li:nth-child(2) { width: 49.6vw; top: 99.2vw; left: 5.067vw; }
  #lp-excel .ba_after .list li:nth-child(3) { width: 39.2vw; top: 97.6vw; right: 5.067vw; }
  #lp-excel .ba_after .list li:nth-child(4) { width: 49.6vw; top: 118.933vw; left: 5.067vw; }
  #lp-excel .ba_after .list li:nth-child(5) { width: 39.2vw; top: 118.933vw; right: 5.067vw; }
  #lp_powerpoint > section.ba { padding-block: 0; }
  /* Join the panels along the transparent edges of the SP artwork. */
  #lp_powerpoint .ba_hikaku { width: 100%; min-width: 0; max-width: none; margin-top: -5.333vw; }
  #lp_powerpoint .ba_hikaku > div { background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
  #lp_powerpoint .ba_hikaku > div > :is(.ba_before-bg, .ba_after-bg) { display: none; }
  #lp_powerpoint .ba_before { height: 143.467vw; background-image: url('../../mobile/lp_powerpoint/common/image/04_ba_hikaku_b-bg.png'); }
  #lp_powerpoint .ba_after { height: 154.133vw; margin-top: -10.8vw; background-image: url('../../mobile/lp_powerpoint/common/image/04_ba_hikaku_a-bg.png'); }
  #lp_powerpoint .ba_hikaku .heading { width: calc(100% - 12.8vw); }
  #lp_powerpoint .ba_hikaku .heading > span { font-weight: 400; }
  #lp_powerpoint .ba_hikaku .heading > span:not(.en) { font-size: 15px; word-break: keep-all; }
  #lp_powerpoint .ba_power { margin-top: 40px; }
  #lp_powerpoint > section.study { padding-block: 17px 0; }
  #lp_powerpoint .study .heading > :is(.top, .btm) { display: block; }
  #lp_powerpoint .study .content .heading > .top { display: flex; justify-content: center; width: 100%; }
  #lp_powerpoint .study .content .heading .top > :is(.text, .text.right) { position: static; inset: auto; flex: 0 0 42.667vw; width: 42.667vw; height: 42.667vw; }
  #lp_powerpoint .study .content .heading { top: 0; height: auto; min-height: 0; padding-bottom: 40px; }
  #lp_powerpoint .study .content .heading .btm em { font-size: inherit; }
  #lp_powerpoint .study .content .desc { top: 0; height: auto; min-height: 0; padding: 24px 20px; background: #f7f2e6; }
  #lp_powerpoint .study .content .desc br { display: none; }
  #lp_powerpoint .study > .image { top: 0; background: url('../../mobile/lp_powerpoint/common/image/05_study_bg.jpg') center / cover no-repeat; }
  #lp_powerpoint .study > .image > img { visibility: hidden; }
  #lp-excel #tabMiddle .tab_middle > [hidden], #lp_powerpoint #tabMiddle > .tab_middle[hidden] { display: none !important; }
  #lp-excel .responsive-excel-group { display: grid; align-content: start; width: 100%; padding: 10px; border: 0; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
  #lp-excel .curriculum .tab_top { flex-wrap: nowrap; }
  #lp-excel .curriculum .tab_top li:nth-child(n) { flex: 1 1 0; min-width: 0; background: #d4e0da; color: #222; }
  #lp-excel .curriculum .tab_top > li:has(> .responsive-excel-group) { display: flex; padding: 0; }
  #lp-excel .curriculum .tab_top li.is-active { border-radius: 4px 4px 0 0; box-shadow: inset 0 -3px #0c5d31; }
  #lp-excel .curriculum #tabMiddle .tab_middle { display: flex; gap: 0; }
  #lp-excel .curriculum #tabMiddle .tab_middle .button { flex: 1 1 0; border: 0; border-radius: 8px 8px 0 0; }
  #lp-excel .curriculum #tabMiddle .tab_middle .ui-tabs-active { background: #235c35; color: #f1d600; box-shadow: none; }
  #lp-excel .curriculum #tabMiddle .tab_content { margin-top: 0; }
  #lp-excel .curriculum #tabMiddle .tab_content > .title { display: none; }
  #lp-excel .curriculum #tabMiddle .list dt { background: #d4e0da; }
  #lp-excel .curriculum #tabMiddle .list .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lp_powerpoint .responsive-lp-course { margin-bottom: 10px; border-radius: 8px; background: #932f15; overflow: hidden; }
  #lp_powerpoint .responsive-lp-course:last-child { margin-bottom: 0; }
  #lp_powerpoint .responsive-lp-course > summary { position: relative; display: flex; align-items: center; min-height: 80px; padding: 20px 50px 20px 20px; color: #f1d600; font-size: 14px; font-weight: bold; line-height: 1.6; list-style: none; cursor: pointer; }
  #lp_powerpoint .responsive-lp-course > summary::-webkit-details-marker { display: none; }
  #lp_powerpoint .responsive-lp-course > summary::after { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); content: '+'; color: #fff; font-size: 24px; font-weight: normal; }
  #lp_powerpoint .responsive-lp-course[open] > summary::after { content: '−'; }
  #lp_powerpoint .curriculum #tabMiddle .responsive-lp-course > .tab_content { margin-top: 0; }
  #lp_powerpoint .responsive-lp-course > .tab_content > .title { display: none; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka > .list.slick-initialized { display: block; width: 100%; min-width: 0; height: auto; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .slick-slide { margin: 0; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; z-index: 2; background: #0000001a; color: #333; opacity: 1; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .slide-arrow.slick-arrow::before, :is(#lp-excel, #lp_powerpoint) .mos_hyouka .slide-arrow.slick-arrow::after { content: none; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .prev-arrow { left: 0; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .next-arrow { right: 0; }
  :is(#lp-excel, #lp_powerpoint) .mos_container > .inner { max-width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .mos_container > .mos-image { left: 0; right: 0; max-width: calc(100% - 26px); margin-inline: auto; }
  #lp-excel .spredsheet_container > .image { inset-inline: 0; max-width: calc(100% - 22px); margin-inline: auto; }
  :is(#lp-excel, #lp_powerpoint) :is(.mos_container, .spredsheet_container, .g-slider_container) .inner .button { display: grid; place-content: center; height: auto; min-height: 79px; padding: 12px 36px; }
  :is(#lp-excel, #lp_powerpoint) :is(.mos_container, .spredsheet_container, .g-slider_container) .inner .button::after { top: 50%; transform: translateY(-50%); }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka {
    --mos-slide-width: min(335px, calc(100vw - 40px));
    width: var(--mos-slide-width);
  }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .slick-track { display: flex; }
  /* Match the slide width to the Slick viewport across narrow screen sizes. */
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .list :is(.item, .last) {
    position: relative;
    left: auto;
    flex: none;
    width: var(--mos-slide-width) !important;
    height: auto;
    padding: 28px 40px 24px;
    text-align: center;
  }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .list :is(.item, .last) h3 { height: auto; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .list :is(.item, .last) h3 img { position: static; display: block; width: 100%; max-width: 243px; height: auto; margin-inline: auto; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .list :is(.item, .last) p { position: static; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .list p br { display: none; }
  :is(#lp-excel, #lp_powerpoint) .mos_hyouka .list .last em { font-weight: 700; }
  :is(#lp-excel, #lp_powerpoint) > section.mos { padding-bottom: 0; }
  :is(#lp-excel, #lp_powerpoint) .mos_bottom img { display: block; height: auto; }
  #lp-excel .spredsheet_container > .inner { width: min(355px, calc(100% - 40px)); margin-inline: auto; padding-inline: 20px; border-radius: 10px; }
  #lp-excel .spredsheet_container > .inner > .button { padding-inline: 26px; font-size: clamp(14px, 4.2vw, 15px); }
  #lp-excel .spredsheet_container > .inner > .button::after { right: 10px; }
  #lp_powerpoint .g-slider_container > .inner { width: calc(100% - 40px); max-width: 760px; margin-inline: auto; padding-inline: 20px; border-radius: 10px; }
  :is(#lp-excel, #lp_powerpoint) .sample_slide-container { max-width: 100%; height: auto; aspect-ratio: 355 / 204; }
  #lp-excel .sample_slide-container { max-width: calc(100% - 32px); }
  #lp_powerpoint .sample_slide-container { width: calc(100% - 40px); max-width: 760px; }
  #lp_powerpoint .heiyou_movie { display: none; }
  #lp_powerpoint .heiyou_melit { top: 0; }
  @media (min-width: 768px) and (max-width: 1024px) {
    #lp-excel > .heiyou + section.choice { padding-top: 50px; }
    #lp_powerpoint > section.updown { padding-bottom: 50px; }
    #lp_powerpoint .heiyou_top { padding-top: 50px; }

    #lp-excel .top_content { max-width: 860px; }
    #lp-excel .top_content .top_content-inner {
      grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
      grid-template-areas: "note note" "legacy modern" "curriculum modern-courses";
    }
    #lp-excel .top_content .modern { margin-top: 0; }
    #lp-excel .top_content .curriculum-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-areas: "basic basic" "c01 c02" "c04 c04" "applied applied" "c03 c06" "c05 c07";
      gap: 8px;
    }
    #lp_powerpoint .lineup_content .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #lp_powerpoint .lineup_content .list li::after { right: 12px; width: 16px; height: 20px; }
    #lp_powerpoint .lineup_content .list li h3 .highlights::after { height: 14px; }

    :is(#lp-excel, #lp_powerpoint) .hero_x { height: 540px; }
    :is(#lp-excel, #lp_powerpoint) .hero_background-image { object-position: right center; }
    :is(#lp-excel, #lp_powerpoint) .hero_cta {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-width: 720px;
    }
    /* Each portrait panel scales its labels with its own artwork. */
    #lp-excel > section.ba,
    #lp_powerpoint .ba_hikaku {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      width: calc(100% - 40px);
      max-width: 860px;
      margin: 0 auto;
    }
    :is(#lp-excel, #lp_powerpoint) .ba :is(.ba_before, .ba_after) {
      container-type: inline-size;
      height: auto;
      margin: 0;
    }
    #lp-excel .ba_before { aspect-ratio: 375 / 560; }
    #lp_powerpoint .ba_before { aspect-ratio: 375 / 538; }
    :is(#lp-excel, #lp_powerpoint) .ba .ba_after { aspect-ratio: 375 / 578; }
    :is(#lp-excel, #lp_powerpoint) .ba :is(.ba_before, .ba_after) > .heading { left: 6.4cqw; width: 87.2cqw; }
    #lp-excel .ba_panel > .heading::after { left: -6.4cqw; width: 100cqw; }
    :is(#lp-excel, #lp_powerpoint) .ba_before > .heading { top: 13.6cqw; }
    :is(#lp-excel, #lp_powerpoint) .ba_after > .heading { top: 16.8cqw; }
    #lp_powerpoint .ba_hikaku .heading span:not(.en) { top: 1.067cqw; margin-left: 2.933cqw; }
    :is(#lp-excel, #lp_powerpoint) .ba_before .list li:first-child { width: 33.867cqw; top: 38.133cqw; left: 3.467cqw; }
    :is(#lp-excel, #lp_powerpoint) .ba_before .list li:nth-child(2) { width: 39.2cqw; top: 37.6cqw; right: 2.4cqw; }
    #lp-excel .ba_before .list li:nth-child(3) { width: 49.6cqw; top: 106.933cqw; left: 3.467cqw; }
    #lp-excel .ba_before .list li:nth-child(4) { width: 39.2cqw; top: 106.933cqw; right: 5.333cqw; }
    #lp_powerpoint .ba_before .list li:nth-child(3) { width: 33.6cqw; top: 106.933cqw; left: 3.467cqw; }
    #lp_powerpoint .ba_before .list li:nth-child(4) { width: 49.333cqw; top: 106.933cqw; right: 5.333cqw; }
    #lp-excel .ba_after .list li:nth-child(1) { width: 39.2cqw; top: 39.467cqw; right: 10.933cqw; }
    #lp-excel .ba_after .list li:nth-child(2) { width: 49.6cqw; top: 99.2cqw; left: 5.067cqw; }
    #lp-excel .ba_after .list li:nth-child(3) { width: 39.2cqw; top: 97.6cqw; right: 5.067cqw; }
    #lp-excel .ba_after .list li:nth-child(4) { width: 49.6cqw; top: 118.933cqw; left: 5.067cqw; }
    #lp-excel .ba_after .list li:nth-child(5) { width: 39.2cqw; top: 118.933cqw; right: 5.067cqw; }
    #lp_powerpoint .ba_after .list li:first-child { width: 39.2cqw; top: 39.467cqw; right: 5.067cqw; }
    #lp_powerpoint .ba_after .list li:nth-child(2) { width: 38.933cqw; top: 77.6cqw; left: 3.733cqw; }
    #lp_powerpoint .ba_after .list li:nth-child(3) { width: 39.2cqw; top: 98.667cqw; left: 3.733cqw; }
    #lp_powerpoint .ba_after .list li:nth-child(4) { width: 38.933cqw; top: 98.667cqw; right: 5.067cqw; }
    #lp_powerpoint .ba_after .list li:nth-child(5) { width: 33.6cqw; top: 120.267cqw; left: 5.067cqw; }
    #lp_powerpoint .ba_after .list li:nth-child(6) { width: 49.333cqw; top: 117.867cqw; right: 5.333cqw; }

    #lp_powerpoint .ba_power .list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      width: calc(100% - 40px);
      max-width: 600px;
      margin-top: 24px;
    }
    #lp_powerpoint .ba_power .list li { margin-top: 0; padding: 0; }
    #lp_powerpoint .study > .image { height: clamp(240px, 38vw, 340px); }
    #lp_powerpoint .study .content .heading .top > :is(.text, .text.right) { flex-basis: 200px; width: 200px; height: 200px; }
    #lp_powerpoint .updown .list .item .inner {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
      align-items: center;
      gap: 24px;
    }
    #lp_powerpoint .updown .list .item .desc { margin-top: 0; }
    #lp_powerpoint .updown .list .item.right .button {
      width: min(100%, 300px);
      height: auto;
      min-height: 52px;
      margin: 20px auto 0;
      padding: 12px;
      line-height: 1.5;
    }
    #lp_powerpoint .threepoints_list { padding-bottom: 0; }
    #lp_powerpoint .threepoints_list > ul {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      width: calc(100% - 40px);
      max-width: 860px;
      margin-inline: auto;
    }
    #lp_powerpoint .threepoints_list .item {
      display: flex;
      flex-direction: column;
      width: auto;
      height: auto;
      margin: 0;
      padding: 55px 14px 16px;
    }
    #lp_powerpoint .threepoints_list .item .fukidashi {
      top: -24px;
      width: min(100%, 285px);
      height: 66px;
      padding-top: 6px;
      font-size: 13px;
      line-height: 1.2;
    }
    #lp_powerpoint .threepoints_list .item .fukidashi em { font-size: 16px; }
    #lp_powerpoint .threepoints_list .item h3 { display: grid; min-height: 2lh; place-content: center; }
    #lp_powerpoint .threepoints_list .item h3::after { width: 100%; }
    #lp_powerpoint .threepoints_list .item .comment { margin-bottom: 16px; }
    #lp_powerpoint .threepoints_list .item .image { position: relative; inset: auto; width: 100%; height: auto; margin: auto auto 0; transform: none; }
    #lp_powerpoint .threepoints_list .item .image img { display: block; height: auto; }
    :is(#lp-excel, #lp_powerpoint) .doyouknow_container { max-width: 860px; }
    :is(#lp-excel, #lp_powerpoint) .doyouknow_container > .list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    :is(#lp-excel, #lp_powerpoint) .doyouknow_container .list > .item { width: 100%; margin: 0; }
    #lp_powerpoint .doyouknow_container .list > .item { padding-bottom: 20px; border-radius: 10px; }
    #lp_powerpoint .doyouknow_container .list .item .content { padding: 28px 16px 0; }
    #lp_powerpoint .doyouknow_container .list .item .content img { height: auto; }
    #lp_powerpoint .doyouknow_container .list .item .title { left: 0; height: auto; padding-inline: 12px; }
    #lp_powerpoint .doyouknow_container .list .item .title::after { left: 0; height: 20px; }
    #lp_powerpoint .heiyou_melit > .list,
    :is(#lp-excel, #lp_powerpoint) .choice > .list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 20px;
      width: calc(100% - 40px);
      max-width: 860px;
      margin: 32px auto 0;
    }
    #lp_powerpoint .heiyou_melit .list li,
    :is(#lp-excel, #lp_powerpoint) .choice .list :is(.item, .item.left) { width: 100%; height: auto; margin: 0; }
    #lp_powerpoint .heiyou_melit .list li { container-type: inline-size; }
    #lp_powerpoint .heiyou_melit .list li::after { top: calc(66.667cqw - 38px); right: -7px; width: 44px; height: 44px; }
    #lp_powerpoint .heiyou_melit .list li .num { top: -12px; left: -8px; width: 80px; height: 80px; }
    #lp_powerpoint .heiyou_melit .list li .image,
    :is(#lp-excel, #lp_powerpoint) .choice .list .item .image { position: static; z-index: auto; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
    :is(#lp-excel, #lp_powerpoint) .choice .list .item > div { display: grid; gap: 12px; padding: 0; }
    :is(#lp-excel, #lp_powerpoint) .choice .list .item h3 { top: auto; width: 100%; height: auto; }
    :is(#lp-excel, #lp_powerpoint) .choice .list .item .melit { left: auto; width: 100%; margin: 0; transform: none; }
    :is(#lp-excel, #lp_powerpoint) .choice .list .item .melit .head { height: auto; margin: 0; padding: 8px; line-height: 1.5; }
    :is(#lp-excel, #lp_powerpoint) .choice .list .item .melit dd { padding: 16px; }
    #lp_powerpoint .heiyou_container .center .list li { padding-block: 24px; }
    #lp_powerpoint .heiyou_container .center .list li h4 { margin-top: 16px; }
    #lp_powerpoint .heiyou_container .center .list li p { margin-top: 16px; }
    :is(#lp-excel, #lp_powerpoint) .qa_container { max-width: 760px; }
    :is(#lp-excel, #lp_powerpoint) .qa .intro { max-width: none; }
    :is(#lp-excel, #lp_powerpoint) .cta_container .heading { width: calc(100% - 40px); max-width: none; }
    :is(#lp-excel, #lp_powerpoint) .cta_container > .list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      width: calc(100% - 40px);
      max-width: 860px;
    }
    :is(#lp-excel, #lp_powerpoint) .cta_container .list .item {
      display: flex;
      flex-direction: column;
    }
    :is(#lp-excel, #lp_powerpoint) .cta_container .list .item:last-child {
      margin-top: 0;
      padding-top: 68px;
    }
    :is(#lp-excel, #lp_powerpoint) .cta_container .list .item .btn-area { margin-top: auto; padding-top: 28px; }
    #lp-excel :is(.mos_container, .spredsheet_container),
    #lp_powerpoint :is(.mos_container, .g-slider_container) { display: flex; flex-direction: column-reverse; gap: 24px; margin-top: 32px; }
    #lp-excel :is(.mos_container, .spredsheet_container) > .inner,
    #lp_powerpoint :is(.mos_container, .g-slider_container) > .inner { width: calc(100% - 40px); max-width: 760px; margin: 0 auto; padding: 32px; border-radius: 10px; }
    #lp-excel .mos_container > .mos-image,
    #lp-excel .spredsheet_container > .image,
    #lp_powerpoint .mos_container > .mos-image,
    #lp_powerpoint .g-slider_container > .image { position: static; width: calc(100% - 40px); max-width: 600px; margin: 0 auto; }
    :is(#lp-excel, #lp_powerpoint) .mos_container > .mos-image,
    #lp_powerpoint .g-slider_container > .image { max-width: 480px; }
    #lp-excel .kensyu > .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 100px 24px; width: calc(100% - 40px); }
    #lp-excel .kensyu > .list > .item { margin: 0; }
    #lp-excel .kensyu .list.bottom .item .caption { left: 0; width: 100%; }
    #lp-excel .choice .list .item .melit { width: calc(100% - 40px); max-width: 760px; }
    #lp-excel .sample_slide-container { width: calc(100% - 40px); max-width: 760px; }
    #lp-excel .qa_bottom li { width: calc(100% - 40px); max-width: 760px; }
    #lp-excel .qa_bottom li h3 { width: 100%; }
    #lp_powerpoint .mos_hyouka { margin-top: 29px; border-radius: 10px 10px 0 0; }
  }
  #lp-excel .heiyou > .heading { margin-top: 0; }
  #lp-excel > section.heiyou { padding-top: 60px; }
  #lp-excel > .skill-matrix + .skill { padding-top: 0; }
}

/* Rhythm fine-tuning: the copied SP LP sized blocks for a 375px screen (335px wide, 18px or 4-5% sides). Keep them on the site-wide 20px gutter. */
@media (max-width: 1024px) {
  :is(#lp-excel, #lp_powerpoint) :is(.qa, .cta_container),
  #lp-excel .skill-matrix,
  #lp_powerpoint .threepoints_list { padding-inline: 20px; }
  :is(#lp-excel, #lp_powerpoint) :is(.qa_container, .qa_container .item.cate-cv-area, .qa_bottom li, .qa_bottom li h3) { width: 100%; }
  :is(#lp-excel, #lp_powerpoint) .qa .intro { max-width: none; }
  #lp-excel .heiyou_container { padding-inline: 20px; }
  #lp_powerpoint .threepoints_container .desc { width: calc(100% - 40px); max-width: 860px; }
  #lp_powerpoint .updown .list .item { width: calc(100% - 40px); max-width: 760px; }
}
@media (max-width: 767px) {
  #lp-excel :is(.kensyu .list, .heiyou .intro, .sample_slide-container) { width: calc(100% - 40px); }
  :is(#lp-excel, #lp_powerpoint) :is(.qa_container, .cta_container .list) { max-width: none; }
  /* The MOS card bleeds to the right edge; keep its left edge on the 20px gutter like the PowerPoint LP. */
  #lp-excel .mos_container > .inner { width: calc(100% - 20px); margin-left: auto; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  :is(#lp-excel, #lp_powerpoint) .qa_bottom li { max-width: 760px; margin-inline: auto; }
  :is(#lp-excel, #lp_powerpoint) .cta_container > .list,
  #lp_powerpoint .threepoints_list > ul { width: 100%; }
}
