/*共通CSS*/
.new-html_style {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    word-break: normal;
    -moz-tab-size: 4;
    tab-size: 4;
    font-size: 100%;
    letter-spacing: 0.05rem;
    overscroll-behavior: none;
    overflow-x: hidden;
    color: #333;   
    
}

.new-html_style body,
.new-html_style div,
.new-html_style span,
.new-html_style object,
.new-html_style iframe,
.new-html_style h1,
.new-html_style h2,
.new-html_style h3,
.new-html_style h4,
.new-html_style h5,
.new-html_style h6,
.new-html_style p,
.new-html_style blockquote,
.new-html_style pre,
.new-html_style abbr,
.new-html_style address,
.new-html_style cite,
.new-html_style code,
.new-html_style del,
.new-html_style dfn,
.new-html_style em,
.new-html_style img,
.new-html_style ins,
.new-html_style kbd,
.new-html_style q,
.new-html_style samp,
.new-html_style small,
.new-html_style strong,
.new-html_style sub,
.new-html_style sup,
.new-html_style var,
.new-html_style b,
.new-html_style i,
.new-html_style dl,
.new-html_style dt,
.new-html_style dd,
.new-html_style ol,
.new-html_style ul,
.new-html_style li,
.new-html_style fieldset,
.new-html_style form,
.new-html_style label,
.new-html_style legend,
.new-html_style table,
.new-html_style caption,
.new-html_style tbody,
.new-html_style tfoot,
.new-html_style thead,
.new-html_style tr,
.new-html_style th,
.new-html_style td,
.new-html_style article,
.new-html_style aside,
.new-html_style canvas,
.new-html_style details,
.new-html_style figcaption,
.new-html_style figure,
.new-html_style footer,
.new-html_style header,
.new-html_style hgroup,
.new-html_style main,
.new-html_style menu,
.new-html_style nav,
.new-html_style section,
.new-html_style summary,
.new-html_style time,
.new-html_style mark,
.new-html_style audio,
.new-html_style video {
  font-weight: inherit;
}

.new-body_style {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    overscroll-behavior: none;
    overflow-x: hidden;
    font-size: 100%;
    font-weight: inherit;
    scroll-behavior: auto;
}




.new-body_style li {
    list-style: none;
}

.new-body_style p {
    padding: 0;
    margin: 0;
    text-align: left;
}

.new-body_style p.en {
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
}

.new-body_style optgroup {
    font-weight: bold;
    /* Restore the font weight unset by the previous rule */
}

.new-body_style button {
    overflow: visible;
    /* Address `overflow` set to `hidden` in IE 8/9/10/11 */
}

.new-body_style button,
.new-body_style select {
    text-transform: none;
}

.new-body_style button,
[type='button'],
[type='reset'],
[type='submit'],
[role='button'] {
    cursor: pointer;
}

.new-body_style button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

.new-body_style button:-moz-focusring,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
    outline: 1px dotted ButtonText;
}


.new-body_style button {
    background-color: transparent;
    border-style: none;
}

.new-body_style a:focus,
.new-body_style button:focus,
.new-body_style select:focus {
    outline-width: 0;
}



.new-body_style li {
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    margin-left: 0px;
}

.new-body_style ul {
    padding-inline-start: 0px;
    margin-block-start: 0px;
}

.new-body_style a {
    text-decoration: none;
}

.new-body_style h2 {
    padding: 0;
    border-top: transparent;
    border-bottom: none;
    margin-bottom: 0;
   
}

.new-body_style h3 {
    background-color: transparent;
    border-left: transparent;
    padding: 0;
    margin: 0;
   
}

.new-body_style h4 {
    border-left: transparent;
    height: auto;
    color: #333;
    border-left: transparent;
    padding-left: 0px;
    margin-bottom: 0px;
   
}


.new-body_style h1,
.new-body_style h2,
.new-body_style h3,
.new-body_style h4,
.new-body_style h5,
.new-body_style h6 {
    font-weight: 600;
    line-height: 1.5;
}




.new-body_style th {
    padding: 0;
    vertical-align: top;
    background: transparent;
    text-align: left;
    border-bottom: none;
}

.new-body_style td {
    padding: 0px;
    text-align: left;
    border-bottom: transparent;
}

.new-body_style dd {
    margin-bottom: 0;
}

.new-body_style dt {
    margin-bottom: 0;
    border-bottom: transparent;
}






.new-body_style table {
    background: transparent;
}

/*フォントCSS*/

.font_english {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.font_english02 {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}


/*CSS（ページごとのFV，背景の設定）*/

.top-img_section {
    position: relative;
    left: 0;
    width: 100%;
    overflow: hidden;
}

/*トップページ*/
.top-img_section.top_page {
    height: 100vh;
    background-color: transparent;
    color: #fff;
    position: fixed;
    top: 0;
    z-index: -2;
}

.top-slide-container {
    width: 100%;
    overflow: hidden;
}

.top-slide-content {
    display: flex;
    width: max-content;
}

.slide-item {
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*採用ページ*/
.top-img_section.recruit_page,
.top-img_section.recruit_page::after {
    height: 60vh;
    height: 60dvh;
}


.top-img_section.recruit_page::before,
.top-img_section.recruit_page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transform: scale(1.0);
    transition: opacity 4s ease-in-out, transform 4s ease-in-out;
}


.top-img_section.recruit_page::before {
    background-image: var(--bg-image-1);
    opacity: 1;
    transform: scale(1.05);
}

.top-img_section.recruit_page::after {
    background-image: var(--bg-image-2);
}

.top-img_section.recruit_page.show-next-image::after {
    opacity: 1;
    transform: scale(1.05);
}

.top-img_section.recruit_page.show-next-image::before {
    opacity: 0;
    transform: scale(1.0);
}

.recruit_page-before {
    width: 100%;
    height: 100%;
    position: relative;
}

.recruit_page-before::before {
    content: "";
    position: absolute;
    display: block;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right top, rgba(50 120 194 / 100%), rgba(255 0 0 / 0%) 100%);

}





.top_logo {
    position: fixed;
    top: 28px;
    left: 2rem;
    z-index: 1;
}

.logo {
    display: block;
    width: 12rem;
}

.new-page-header {
    background-color: #fff;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: flex-end;
    padding: 0em 2em;
    box-shadow: 0px 5px 10px rgba(51, 51, 51, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.new-page-header nav,
.grid_container {
    background: #fff !important;
    box-shadow: none;
    z-index: auto;
    width: auto;

}


.main_navi {
    display: flex;
}

.main_navi li:hover>a {
    background: transparent;
}

.main_navi li:hover>a:hover {
    background: transparent;
}

.main_navi li:hover:before,
.main_navi li:hover+li:before,
.main_navi li:last-child:hover:after,
.main_navi li li:before,
.main_navi li li:after {
    display: block;
}



.flex_center {
    display: flex;
    justify-content: center;
    align-items: center;
}




.menu_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.8em;
}

.menu_list li {
    width: 100%;
    background: transparent;
    border-bottom: transparent;
}

.menu_list li:first-child {
    width: 100%;
}

.menu_list li:last-child li {
    left: 0;
}

.menu_list li a {
    white-space: nowrap;
    display: block;
    padding: 0;
    font-size: 1rem;
    color: #333 !important;
    background: transparent;
}



.menu_list.right {
    justify-content: right;
    gap: 1em;
    margin-bottom: 7px;
    margin-top: 0.5em;
}

.menu_list.right li {
    width: auto;
}

.menu_list li::before {
    content: none;
}



.menu-icon {
    width: 20px;
    display: block;
}

.flex_end {
    display: flex;
    justify-content: center;
    align-items: end;
}



.search-field {
    width: 100px;
    height: 20px;
    border: #333 1px solid;
    border-radius: 10px;
    margin-right: 0.3em;
    font-size: 0.8rem;
    padding-left: 10px;
    background-color: #fff;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
}



.list_link {
    transition: 0.5s;
    position: relative;

}

.list_link::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.5px;
    background-color: #333;
    position: absolute;
    bottom: 0;
    transform: scale(0, 1);
    transform-origin: center;
    transition: transform .2s ease-in-out;
}

.list_link:hover::after {
    transform: scale(1, 1);
}



.entry_btn {
    background-color: #3278C2;
    width: 180px;
    height: 50px;
    color: #fff;
    text-align: center;
    margin-left: 2.5em;
    border-radius: 999px;
    margin-bottom: 15px;
}

.entry_btn span {
    line-height: 50px;
    font-size: 1.2rem;
    color: #fff !important;
}

.section-title-entry {
    background-color: #3278C2;
    width: 300px;
    height: 50px;
    color: #fff;
    text-align: left;
    margin-left: 0.5em;
    border-radius: 999px;
    margin-bottom: 15px;
}

.section-title-entry h2 {
    line-height: 50px;
    font-size: 1.2rem;
    color: #fff !important;
    text-align: center;
    padding-left: 20px;
    margin-left: 0;
}

.section-title-entry a {
    line-height: 50px;
    font-size: 1.2rem;
    color: #fff !important;
    padding-left: 0px;
    margin-left: 0;
}

.dropdown__lists {
    width: 100%;
    display: block !important;
    position: fixed;
    top: 90px;
    left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: rgba(51, 51, 51, 0.8);
    text-align: center;
}

.dropdown_btn:hover .dropdown__lists {
    max-height: 250px;
}

.flex_btw {
    display: flex;
    justify-content: start;
}

.flex_btw.gap_50 {
    gap: 2em;
    align-items: start;
    max-width: 300px;
    margin-inline: auto;
    margin-bottom: 30px;
    color: #fff;
}

.flex_btw.gap_50 ul {
    display: block !important;
    position: relative;
}

.flex_btw.gap_50 ul li {
    left: 0;
}

.flex_btw.gap_50 ul li a {
    color: #fff !important;
}

.dropdown__list_tx {
    margin: 35px auto;
}

.dropdown__list_title {
    font-size: 1rem;
    max-width: 300px;
    text-align: left;
    color: #fff;
    visibility: visible;
    margin: 1.5em auto 1rem;
}

.dropdown__list_tx p {
    margin: 1.5em auto 1rem;
}

.dropdown__list {
    font-size: 1rem;
    padding-top: 0.5em;
    text-align: left;
}

.dropdown__list a {
    color: #fff;
}

.visibi-sp {
    display: none;
}

.menu_btn-sp {
    visibility: hidden;
    cursor: none;

}

.entry_btn-sp {
    visibility: hidden;
    cursor: none;
}

/*トップイメージ*/
@media (max-width: 950px) {
    .new-html_style {
        font-size: 80%;

    }
}

@media (max-width: 800px) {


    .new-page-header {
        background-color: transparent;
        box-shadow: none;
        height: 100vh;
        padding-top: 15%;
        left: 50%;
        transform: translateX(-50%);
        visibility: hidden;
    }


    .new-page-header::after {
        content: "";
        visibility: hidden;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 100vw;
        right: 0;
        opacity: 0;
        background: linear-gradient(to bottom, rgba(50 120 194 / 95%), rgba(198, 221, 244) 70%);
        transition: visibility 0.2s ease-in, left 0.2s ease-in, opacity 0.2s ease-in;
        z-index: -1;

    }

    .logo {
        width: 12rem;
        visibility: visible;
    }


    .main_navi {
        display: grid;
        margin-inline: auto;
        position: fixed;
        top: 0;
        left: 150%;
        transform: translateX(-50%);
        height: 100%;
        overflow-y: scroll;
        overflow-x: auto;
        padding: 10vh 0;
        scrollbar-width: none;
        opacity: 0;
        -ms-overflow-style: none;
        width: 90%;
        z-index: 2;
        transition: left 0.3s ease-out, opacity 0.3s ease-out;
    }

    .main_navi::-webkit-scrollbar {
        display: none;
    }



    .menu_list_column-re {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
    }

    .menu_list.right {
        justify-content: center;
        gap: 1.5em;
        margin-bottom: 2em;
        margin-top: 5em;

    }


    .menu_list.right a {
        position: relative;
    }


    .visibi-sp {
        display: inline-block;
        position: absolute;
        top: 0;
        left: 30px;
        color: #333;
        font-size: 1rem;
    }


    .dropdown__list_tx {
        margin: 0px auto;
    }

    .list_link.dropdown_btn a {
        color: #fff !important;
    }

    .dropdown__list_title {
        visibility: hidden;
        display: contents;
    }


    .menu_list {
        display: grid;
        justify-content: center;
        gap: 3em;
    }


    .menu_list a {
        color: #fff;
    }

    .dropdown__lists {
        position: relative;
        top: 0px;
        left: 0;
        max-height: 250px;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background-color: rgba(51, 51, 51, 0);
        text-align: center;
    }

    .flex_btw.gap_50 {
        gap: 2.5em;
        max-width: 350px;
        margin-top: 0px;
    }


    .list_link::after {
        visibility: hidden;
    }

    .entry_btn {
        margin-left: 0;
    }

    .flex_end {
        align-items: start;
    }

    .list_title-link {
        cursor: none;
    }



    .menu_btn-sp {
        visibility: visible;
        display: block;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        width: 4rem;
        height: 4rem;
        background-image: url(../images/rnew/hamburger.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 70%;
        border-radius: 999px;
        border: none;
        z-index: 3;
    }

    .new-page-header button {
        background-color: #3278C2;
        border: #fff 1px solid;
    }


    .new-page-header.menu-open {
        visibility: visible;
        background-color: transparent;

    }



    .new-page-header.menu-open::after {
        opacity: 1;
        visibility: visible;
        left: 0;
    }

    .new-page-header.menu-open .main_navi {
        left: 50%;
        opacity: 1;
        background: transparent !important;
    }

    .new-page-header.menu-open .menu_btn-sp {
        background-image: url(../images/rnew/cancel.svg);
        width: 3rem;
        height: 3rem;
        top: 20px;
        right: 25px;
        background-color: transparent;
        border: transparent;
    }


    .entry_btn-sp {
        visibility: visible;
        cursor: pointer;
        background-color: #3278C2;
        width: 100px;
        height: 50px;
        color: #fff;
        text-align: center;
        margin-left: 2.5em;
        border-radius: 999px;
        margin-bottom: 15px;
        position: absolute;
        top: 90px;
        border: #fff 1px solid;
    }

    .entry_btn-sp span {
        line-height: 50px;
        font-size: 0.7rem;
        color: #fff !important;
    }

    .new-page-header.menu-open .entry_btn-sp {
        visibility: hidden;
        cursor: none;
    }


    .menu_list button {
        background-color: transparent;
        border: transparent;
    }

}


.main_section02 button {
    background-color: #fff;
    border: 2px #3278C2 solid;
}

.back-to-top-btn {
    position: fixed;
    right: 50px;
    bottom: 70px;
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}


/*トップへ戻るボタン*/
.back-to-top-btn_area button {
    background-color: #fff;
    border: 2px #3278C2 solid;
}

.back-to-top-btn::after {
    content: "TOP";
    color: #3278C2;
    font-size: 1rem;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}


.back-to-top-btn img {
    width: 50%;
    height: auto;
    display: block;
    margin-left: 12px;
    transform: rotate(-180deg) translateY(0px);
    transition: transform 0.3s ease-in-out;
}

.back-to-top-btn:hover.back-to-top-btn img {
    transform: rotate(-180deg) translateY(5px);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {

    .back-to-top-btn {
        right: 20px;
        bottom: 30px;
        width: 50px;
        height: 50px;
    }

    .back-to-top-btn::after {
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
    }


    .back-to-top-btn img {
        margin-left: 9px;
    }
}

/*コンテンツの調整*/
.row {
    margin-top:40px;
}

.row.no-margin {
  margin-top: 0 !important;
}

/* new-body_style クラスが付いているページでは margin-top を無効化 */
body.new-body_style .row {
    margin-top:0px;
}

/* ===== スマホ：ロゴ｜ENTRY｜メニュー ===== */
@media (max-width: 800px) {

  /* ヘッダーを横並び */
  .new-page-header {
    visibility: visible;
    height: 80px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    background-color: #fff;
  }

  /* ロゴ（左） */
  .top_logo {
    position: static;
    order: 1;
  }

  .logo {
    width: 10rem; /* 必要なら調整 */
  }

  /* ENTRY（中央） */
  .entry_btn-sp {
    position: static;
    order: 2;
    margin: 0;
    width: 100px;
    height: 40px;
  }

  .entry_btn-sp span {
    line-height: 40px;
  }

  /* メニューボタン（右） */
  .menu_btn-sp {
    position: static;
    order: 3;
    width: 3.5rem;
    height: 3.5rem;
  }
}

.top-img_section.top_page p {
    color: #3278C2; /* 青文字 */
    text-shadow:
        1px 1px 0 #fff,
       -1px -1px 0 #fff,
       -1px 1px 0 #fff,
        1px -1px 0 #fff; /* 白の縁取りを控えめに */
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* スクロール誘導インジケーター */
.scroll-indicator {
  position: fixed;
  right: 60px;
  bottom: 200px;
  width: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

/* 縦ライン */
.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* SCROLL テキスト */
.scroll-indicator span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #fff;
  margin-left: 6px;
  opacity: 0.85;
}

/* ラインが上下に動くアニメーション */
@keyframes scrollLine {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

/* =========================
   【最小パッチ】縦スクロール復活
   ========================= */

/* スクロール主体を明示 */
html.new-html_style {
  height: auto !important;
  min-height: 100%;
  overflow-y: auto !important;
}

/* body がスクロールを邪魔しないようにする */
body.new-body_style {
  height: auto !important;
  min-height: 100%;
  overflow-y: visible !important;
}

/* FVでページ全体の高さを潰さない */
.top-img_section.top_page {
  height: 100vh;
  min-height: 100vh;
}

/* 横スライドが縦スクロールを奪わない */
.top-slide-content {
  width: 100%;
}

/* これが無いと「見えてるけど動かない」 */
.slide-item {
  overflow-x: hidden;
  overflow-y: visible;
}

/* 念のため：fixed要素がスクロールをブロックしない */
.new-page-header,
.top_logo {
  pointer-events: auto;
}

/* WordPress管理バー対策（PC） */
#wpadminbar {
  pointer-events: auto;
}

/* html と body だけ overscroll を解除 */
html.new-html_style,
body.new-body_style {
  overscroll-behavior: auto !important;
}