/* Home-page overrides; loaded after the shared responsive styles only on the home page. */
.responsive-home-category-head, #responsive-home-more { display: contents; }

@media (width > 1024px) {
  .front-page #main .top02 .box.st { display: flex; flex-direction: column; height: auto; min-height: 360px; padding: 230px 25px 25px; }
  .front-page #main .top02 .box.st .sub { position: static; width: auto; white-space: normal; word-break: normal; }
  .front-page #main .top02 .box.st .sub > br:first-child { display: none; }
  .front-page #main .top02 .box.st .box_cv { position: static; width: auto; margin-top: 16px; }
  .front-page #main .top02 .box.st .box_cv a { height: auto; min-height: 50px; padding: 12px 10px; white-space: normal; word-break: normal; line-height: 1.5; text-align: center; }
}

@media (min-width: 1025px) and (max-width: 1319px) {
  .front-page #main .top01 > ul,
  .front-page #main .top02,
  .front-page #main .blogArea > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .front-page #main .top01 > ul > li { display: flex; width: auto; min-width: 0; height: auto; min-height: 75px; margin: 0; }
  .front-page #main .top01 > ul > li::before { left: 12px; }
  .front-page #main .top01 > ul > li > a { flex: 1; height: auto; min-height: 75px; padding: 15px 12px 15px 85px; white-space: normal; overflow-wrap: anywhere; }
  .front-page #main .top01 > ul > li > a > br { display: none; }
  .front-page #main .top01 > ul > li > a > span { display: block; word-break: normal; }
  .front-page #main .top02 > h2 { grid-column: 1 / -1; margin-bottom: 10px; }
  .front-page #main .top02 .box { width: auto; min-width: 0; height: auto; min-height: 360px; margin: 0; word-break: normal; overflow-wrap: anywhere; }
  .front-page #main .top02 .box:not(.small) { padding: 180px 20px 20px; }
  .front-page #main .top02 .box :is(h3, .sub, ul, .box_cv),
  .front-page #main .top02 .box.small :is(h3, .sub, ul, .box_cv) { position: static; width: auto; height: auto; }
  .front-page #main .top02 .box h3 { line-height: 1.4; word-break: normal; }
  .front-page #main .top02 .box .sub,
  .front-page #main .top02 .box .sub.lsn,
  .front-page #main .top02 .box.small .sub { margin-top: 12px; white-space: normal; word-break: normal; }
  .front-page #main .top02 .box > ul,
  .front-page #main .top02 .box.small > div > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 16px; }
  .front-page #main .top02 .box ul li { float: none; width: auto; min-width: 0; }
  .front-page #main .top02 .box ul li a { display: block; white-space: normal; word-break: normal; }
  .front-page #main .top02 .box .box_cv { margin-top: 16px; }
  .front-page #main .top02 .box .box_cv a { height: auto; min-height: 50px; padding: 12px 10px; white-space: normal; word-break: normal; line-height: 1.5; text-align: center; }
  .front-page #main .top02 .box .more { top: 50px; right: 15px; }
  .front-page #main .top02 .box.small { display: grid; gap: 10px; align-content: start; }
  .front-page #main .top02 .box.small > div { width: 100%; height: auto; min-height: 175px; margin: 0; padding: 20px; }
  .front-page #main .top02 .box.small > div > ul { display: flex; flex-wrap: wrap; }
  .front-page #main .top02 .box.small > div > ul > li { max-width: 100%; }
  .front-page #main .blogArea > ul > li { min-width: 0; }
  .front-page #main .blogArea ul .postBox { display: grid; grid-template-columns: clamp(90px, 9vw, 120px) minmax(0, 1fr); gap: 4px 15px; align-content: start; width: 100%; height: auto; min-height: 100px; }
  .front-page #main .blogArea ul .thumb { grid-row: span 2; float: none; width: 100%; height: auto; margin: 0; }
  .front-page #main .blogArea ul h3 { min-width: 0; word-break: normal; overflow-wrap: anywhere; }
  .front-page #main .home-ranking__category-title,
  .front-page #main .home-ranking__list a { word-break: normal; }
}

@media (max-width: 1024px) {
  .home-fv { position: relative; margin: 0 0 25px; }
  .home-fv .bxslider { transform: none !important; }
  .home-fv .bx-wrapper, .home-fv .bx-viewport { height: auto !important; border: 0; box-shadow: none; }
  .home-fv .bxslider__item { display: none !important; }
  .home-fv .bxslider__item-2:not(.bx-clone) { display: block !important; position: relative !important; width: 100% !important; float: none !important; }
  .home-fv .bxslider__bg { display: block; position: static; width: 100%; height: auto; }
  .home-fv .bxslider__inner, .home-fv .bx-nav, .home-fv .bx-pager, .home-fv .bx-controls, .home-fv .slide-tel, .home-fv .fvContact { display: none; }
  .responsive-home-link { display: block; }
  .homeinfoarea { padding: 20px 20px 5px; border: 1px solid #ddd; }
  .front-page #main .homeinfoarea h2 { font-size: 18px; margin: 0; }
  .front-page #main > .training-dm-general-banner { margin: 40px 0 0; }
  /* Keep the shared home content, with the SP theme's navigation and category cards. */
  .front-page #main > .home-quick-links,
  .front-page #main > .section02,
  .front-page #main > .home-ranking,
  .front-page #main > .blogArea,
  .front-page #main > .top02 { margin-left: -20px; margin-right: -20px; max-width: none; }
  .front-page #main .top01 { display: none; }
  .front-page #main .home-quick-links__title,
  .front-page #main .section02 > h2,
  .front-page #main .top02 > h2,
  .front-page #main .blogArea > h2 { padding: 2em 20px 25px; margin: 0; text-align: center; }
  .front-page .top02 > .box,
  .front-page #responsive-home-more > .box { border: 0; margin: 30px 0 0; }
  .front-page .top02 > .cost { margin-top: 0; }
  .front-page .top02 .responsive-home-category-head { display: block; min-height: 100px; padding: 0 10px 10px; background-position: center; background-size: cover; color: #fff; text-align: center; }
  .front-page .top02 .cost .responsive-home-category-head { background-image: url('../../mobile/common/image/boxBg-01.png'); }
  .front-page .top02 .up .responsive-home-category-head { background-image: url('../../mobile/common/image/boxBg-02.png'); }
  .front-page .top02 .st .responsive-home-category-head { background-image: url('../../mobile/common/image/boxBg-03.png'); }
  .front-page .top02 .small > div:first-child .responsive-home-category-head { background-image: url('../../mobile/common/image/boxBg-04.png'); }
  .front-page .top02 .small > div:last-child .responsive-home-category-head { background-image: url('../../mobile/common/image/boxBg-05.png'); }
  .front-page .top02 h3 { padding: 13px 0 5px; font-size: clamp(0px, 5.4vw, 23.22px); font-weight: bold; line-height: 1.5; }
  .front-page .top02 .sub { padding: 0; font-size: 13px; line-height: 1.5; }
  .front-page .top02 .sub a { color: #fff; text-decoration: underline; }
  .front-page .top02 .st .sub br:first-child { display: none; }
  .front-page .top02 ul, .front-page .top02 .box_cv { padding: 0 20px; background: #f7f7f7; }
  .front-page .top02 li a, .front-page .top02 .box_cv a { display: block; min-height: 55px; padding: 16px 18px 16px 0; line-height: 1.5; color: #333; border-bottom: 1px solid #eee; background: url('../../mobile/common/image/arrow.png') right center / 8px 8px no-repeat; }
  .front-page .top02 li:last-child a { border-bottom: 0; }
  .front-page .top02 .more { display: none; }
  .front-page .top02 .small > div + div { border-top: 0; margin-top: 30px; }
  .front-page #responsive-home-more { display: none; }
  .front-page #responsive-home-more.is-expanded { display: block; }
  .front-page .responsive-more-categories { display: block; width: 100%; min-height: 70px; padding: 20px 10px; border: 0; background: transparent; color: #007ac1; font: inherit; text-align: center; cursor: pointer; }
  .front-page .responsive-more-categories span { padding-right: 15px; background: url('../../mobile/common/image/arrow-y.png') right center / 10px 10px no-repeat; }
  .front-page .responsive-more-categories[aria-expanded="true"] span { background-image: url('../../mobile/common/image/arrow-y-active.png'); }
  .front-page .blogArea { margin-block: 0; padding: 0; border-top: 1px solid #ddd; }
  .front-page .blogArea > ul { padding-inline: 20px; }
  .front-page .blogArea .postBox { grid-template-columns: 25% minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 5%; border-bottom: 1px dotted #ddd; }
  .front-page .blogArea li:first-child .postBox { padding-top: 0; }
  .front-page .blogArea li:last-child .postBox { border-bottom: 0; }
  .front-page .blogArea .thumb img { display: block; width: 100%; border-radius: 4px; }
  .front-page .blogArea > .more { width: min(240px, 100%); min-height: 0; margin: 20px auto 40px; padding: 0.5em 0; color: #fff; background: #007ac1; border: 0; border-radius: 30px; }
  .front-page #main > .home-recruit { padding: 0; }
  .front-page #main .home-recruit :is(a, img) { display: block; }
  .front-page #main .home-recruit img { width: 100%; }
  .front-page #main .home-ranking > h2 { margin: 0; font-size: var(--responsive-training-heading-size); text-align: center; word-break: normal; overflow-wrap: normal; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .home-fv .bxslider__item-2:not(.bx-clone) {
    display: grid !important;
    align-items: center;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    padding: 32px 20px;
  }

  .home-fv .responsive-home-link { position: absolute; inset: 0; }
  .home-fv .responsive-home-link:focus-visible { outline: 3px solid #0068b7; outline-offset: -3px; }
  .home-fv .bxslider__bg { height: 100%; object-fit: cover; }
  .home-fv .responsive-home-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, 0.92) 54%, transparent 76%); }

  .home-fv .bxslider__inner { position: relative; display: grid; gap: 14px; max-width: 58%; }
  .home-fv .bxslider__logo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: bold; }
  .home-fv .bxslider__logo img { width: 28px; height: 28px; }
  .home-fv .label-bk { padding: 3px 9px; border-radius: 20px; background: #181818; color: #fff; font-size: 12px; }
  .home-fv .bxslider__h2 { font-size: clamp(30px, 4.3vw, 44px); font-weight: 900; line-height: 1.25; }
  .home-fv .bxslider__sub { max-width: 30em; line-height: 1.75; }
  .home-fv .bxslider__btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .home-fv .bxslider__btns a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #398413;
    border-radius: 24px;
    background: #fff;
    color: #317413;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
  }
  .home-fv .bxslider__btns li:first-child a { background: #398413; color: #fff; }

  .front-page #main > :is(.home-quick-links, .section02) { display: none; }
  .front-page #main .top01 { display: block; margin: 50px auto; }
  .front-page #main .top01 > h2 { margin-bottom: 16px; font-size: var(--responsive-training-heading-size); font-weight: 900; text-align: center; }
  .front-page #main .top01 > p { margin-bottom: 24px; line-height: 1.8; }
  .front-page #main .top01 > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 12px;
  }
  .front-page #main .top01 > ul > li > a {
    display: block;
    height: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    line-height: 1.5;
  }
  .front-page #main .top01 > ul > li > a > span { display: inline-block; margin-top: 4px; color: #007ac1; font-weight: bold; }

  .front-page #main > :is(.top02, .blogArea, .home-ranking) { margin-inline: 0; }
  .front-page #main :is(.top02, .blogArea > ul, .home-ranking) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .front-page #main :is(.top02, .home-ranking) > h2 { grid-column: 1 / -1; padding: 25px 0 8px; }
  .front-page #main #responsive-home-more { display: contents; }
  .front-page #main .responsive-more-categories { display: none; }
  .front-page #main .top02 .box { min-width: 0; margin: 0; }
  .front-page #main .top02 .box:not(.small) { display: flex; flex-direction: column; }
  .front-page #main .top02 .box:not(.small) > :is(ul, .box_cv) { flex: 1; }
  .front-page #main .top02 .small > div + div { margin-top: 16px; }
  .front-page #main .top02 .responsive-home-category-head { min-height: 105px; }
  .front-page #main .top02 .box li a { min-height: 44px; padding-block: 12px; }

  .front-page #main .blogArea { margin-top: 36px; }
  .front-page #main .blogArea > ul { padding: 0; }
  .front-page #main .blogArea .postBox {
    grid-template-columns: clamp(90px, 11vw, 120px) minmax(0, 1fr);
    align-content: start;
    height: 100%;
    padding: 12px 0;
    border-bottom: 1px dotted #ddd;
  }
  .front-page #main .home-ranking__category { margin-top: 0; }
}
