/* 共通CSS */
html {
    scroll-behavior: smooth;
}
html, body {
    overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
li{
    list-style:none;
}
a:link, a:visited, a:hover, a:active, a:focus {
    color: #000;
    text-decoration-color: #01346E;
}
.container {
    position: relative;
}
h2 {
    font-size: 48px;
    font-family: "Jomolhari";
}
.flex {
    display: flex;
    justify-content: center;
}
/* ヘッダー */
.header {
    background: var(--background-navbar);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #F1F3FF;
    z-index: 100;
  }
.header img {
    position: absolute;
    top: 18px;
    left: 15px;
}

/* 下スクロール時に付けるクラス */
.header.header-hidden {
    transform: translateY(-100%);
}
/* ハンバーガー */
.menu-btn {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    height: 100px;
    width: 100px;
    justify-content: center;
    align-items: center;
    z-index: 90;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 5px;
    width: 40px;
    border-radius: 3px;
    background-color: #000;
    position: absolute;
}
.menu-btn span:before {
    bottom: 12px;
}
.menu-btn span:after {
    top: 12px;
}
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}
#menu-btn-check {
    display: none;
}
/* ハンバーガー */
.header .menu-content {
    font-size: 32px;
    position: fixed;
    top: 0;
    right: -100%;
    padding-top: 100px;
    width: 551px;
    height: 100vh;
    background-color: #DDDEE3;
    transition: all 0.5s;/*アニメーション設定*/
    z-index: 80; /* ボタンの下に表示されないようにz-index調整 */
}
#menu-btn-check:checked ~ .menu-content {
    right: 0; /* メニューを表示する */
}
.header .menu-content li {
    margin-bottom: 32px;
    text-align: center;
}
.header .menu-content li a:link, a:visited, a:hover, a:active, a:focus {
    color: #000;
    text-decoration-color: #01346E;
    text-underline-offset: 0.3em;
}
/* mainコンテンツ */
.main_view_outline {
    margin-top: 95px;
    background-image: url(img/main_view.png);
    width: auto;
    background-size: cover;
    background-repeat: no-repeat;
    height: 587px;
}
.main_view {
    width: 660px;
    margin: 0 auto;
    padding-top: 170px;
}
.main_view h2 {
    color: #fff;
    text-shadow: 1px 2px 3px #808080;
    font-family: 'Jomolhari';
}
.main_view h3 {
    font-size: 36px;
    color: #fff;
    font-family: 'Zen Old Mincho';
    padding-top: 25px;
    line-height: 1.5;
}
/* aboutコンテンツ */
.relative {
    position: relative;
}
.about_outline {
    display: flex;
}
.about_outline .bgr-left {
    width: 75%;
    height: 494px;
    background-color: #01346E;
}
.about_outline .bgr-right {
    width: 25%;
    height: 494px;
    background-color: #E7EFFF;
}
.about {
    position: absolute;
    top: 20px;
    left: 15%;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 10;
}
.about img {
    max-width: 500px;
    height: 446px;
}
.about .about_detail {
    width: 500px;
    background-color: #fff;
    padding: 0 66px;
    height: 446px;
}
.about .about_detail h2 {
    padding-top: 60px;
    padding-bottom: 10px;
}
.about .about_detail h3 {
    padding: 0 0 30px;
}
.about .about_detail p {
    line-height: 2em;
}
/* companyコンテンツ */
.company_outline {
    background-image: url(img/company.png);
    width: auto;
    background-size: cover;
    background-repeat: no-repeat;
}
.company_detail {
    width: 620px;
    margin: 0 auto;
    padding-top: 46px;
}
.company_outline h3 {
    font-size: 20px;
    padding: 20px 0 45px 65px;
}
.company_detail .map {
    margin: 30px 0 0;
    justify-content: space-between;
    padding-bottom: 50px;

}
/* ========== 共通情報テーブル (company / recruit) ========== */

.info-table {
  max-width: 980px;
  margin: 0 auto 30px;
}

.info-table .row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.info-table .th {
  width: 140px;        /* 左のラベル幅はお好みで調整OK */
  flex-shrink: 0;
  font-weight: 600;
}

.info-table .td {
  flex: 1;
  line-height: 1.8;
}

/* SP 用（縦並びに） */
@media screen and (max-width: 768px) {
  .info-table {
    padding: 0 8px;
    box-sizing: border-box;
  }

  .info-table .row {
    display: block;
    margin-bottom: 16px;
  }

  .info-table .th {
    width: auto;
    margin-bottom: 4px;
  }

  .info-table .td {
    padding-left: 0;
  }
}
/* member */
.member {
    background-color: #CBD2DA;
}
.member h2 {
    text-align: center;
    padding: 30px 0;
    font-size: 32px;
}
.member .member_detail {
    width: 300px;
    text-align: center;
    margin: 0 60px 60px;
}
.member .member_detail img {
    width: 160px;
}
.member .member_detail p:nth-of-type(-n+3) {
    text-align: center;
    padding-top: 10px;
}
/* business */
.business_outline {
    background-color: #002B5C;
    padding-bottom: 70px;
}
.business_outline h2 {
    color: #fff;
    text-align: center;
    padding: 45px 0 15px;
}
.business_outline h3 {
    color: #fff;
    text-align: center;
    font-size: 20px;
    padding-bottom: 30px;
}
.business_detail {
    width: 980px;
    margin: 0 auto;
    padding: 40px 0;
    background-color: #D3D3D3;
    display: grid;
    grid-template-columns: repeat(2, 320px);    
    column-gap: 5em;
    row-gap: 30px; 
    justify-content: center;
}
.business_detail > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.business_detail > div > p:nth-of-type(1) {
    color: #fff;
    padding: 20px;
}
.business_detail .business_detail_1 .engineer_education {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px;
    background-image: url(img/trainingElement.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 320px;
    height: 180px;
}
.business_detail .business_detail_2 .ses {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px;
    background-image: url(img/sesElement.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 320px;
    height: 180px;
}
.business_detail .business_detail_3 .contract_production {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px;
    background-image: url(img/contractElement.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 320px;
    height: 180px;
}
.business_detail .business_detail_4 .dx {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px;
    background-image: url(img/DXElement.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 320px;
    height: 180px;
}
.business_detail > div p:nth-of-type(2) {
    width: 320px;
    text-align: left;
    margin-top: 16px;
}
/* recruit */
.recruit_outline {
    background-color: #CCD3DB;
    padding: 80px 0;
}
.recruit_detail {
    width: 980px;
    margin: 0 auto;
    position: relative;
    text-align: left;
    padding: 0 100px;
}
.recruit_detail::before {
    content: "";
    position: absolute;
    inset: 100px 100px auto;
    height: 1200px;
    background: url("img/recruitBackImage.png") no-repeat center/contain;
    pointer-events: none;
    z-index: 0;
}
.recruit_detail > * {
    position: relative;
    z-index: 1;
}
.recruit_detail h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 5px;
}
.recruit_detail h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
}
.recruit_detail > p:first-of-type {
    max-width: 780px;
    margin: 0 auto 30px;
    line-height: 1.8;
}
.recruit_detail .recruit-note {
    max-width: 780px;
    margin: 16px 0 0;
    line-height: 1.8;
}
.recruit_detail .point {
    display: inline-block;
    width: 200px;
    height: 175px;
    padding: 20px;
    margin: 40px 90px 0;
    background-color: #96B7FF;
    border-radius: 6px;
    text-align: center;
    border: 3px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15);
    vertical-align: top;
}
.recruit_detail .point:first-of-type {
    margin-left: 210px;
}
.recruit_detail .point h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}
.recruit_detail .point p {
    margin: 5px 0 0;
    font-size: 16px;
}
.recruit_detail button {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    background-color: #ffffff;
    border-radius: 999px;
    border: 1px solid #333;
    cursor: pointer;
}
.recruit_detail button a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.recruit_detail .recruit-note {
    padding-bottom: 20px;
}
.last_message {
    padding: 40px 0 30px 10%;
}
/* contact */
.contact {
    background-color: #002B5C;
    color: #fff;
    text-align: center;
    padding: 90px 0;
}
.contact h2 {
    font-size: 40px;
    margin-bottom: 8px;
    text-align: center;
}
.contact h3 {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}
.contact p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 450px;
    margin: 0 auto 40px;
}
.contact button {
    background-color: #E6E6E6;
    border: none;
    padding: 14px 38px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}
.contact button a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* footer */
.footer {
    background-color: #D6D6D6;
    text-align: center;
    padding: 15px 0;
    color: #333;
}
.footer p {
    margin: 6px 0;
    font-size: 14px;
    text-align: center;
}
/* SP画面 */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .about {
    position: absolute;
        top: 80px;
        left: 15px;
        max-width: 90%;
        margin: 0;
  }

  .about .about_detail {
    width: 100%;
    height: auto;
    padding: 24px 20px 24px;
    box-sizing: border-box;
  }

  .about .about_detail {
    width: 100%;
    margin: 0;
    padding: 0 16px; 
  }
  .about .about_detail h2 {
    padding-top: 30px;
  }

  .container {
    width: 100%;
  }

  .header {
    max-width: 768px;
    padding: 10px 16px;
    height: 70px;
  }

  .header img {
    width: 125px;
    height: auto;
    top: 15px;
    left: 5px;
  }

  .header .menu-content {
    width: 80vw; 
    right: -80vw;
    padding-top: 60px;
  }

  #menu-btn-check:checked ~ .menu-content {
    right: 0;
  }

  .menu-btn {
    height: 50px;
    width: 50px;
  }

  .main_view_outline {
    height: auto;
    margin-top: 67px;
  }

  .main_view {
    padding: 80px 16px 60px;
    text-align: center;
    background-position: center;
    background-size: cover;
    width: 100%;
  }

  .main_view h2 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .main_view h3 {
    font-size: 14px;
    line-height: 1.7;
  }

  .about .about_detail {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 23px 20px;
  }

  .about img {
    display: none;
  }

  .company_outline {
    padding: 40px 0;
  }

  .company_detail {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .company_detail .detail {
    width: 100%;
  }

  .company_detail .detail li {
    margin-bottom: 6px;
    line-height: 1.6;
  }

  .map.flex {
    display: block;
    width: 50%;
    margin: 24px auto;
  }

  .map iframe {
    width: 100%;
    height: 220px;
    margin-bottom: 16px;
  }

  .member {
    padding: 40px 16px;
  }

  .member .flex {
    display: block;
  }

  .member_detail {
    width: 100%;
    margin: 0 0 32px;
    text-align: center;
  }


.member .member_detail {
    margin: 0 auto 30px;
}

  .member_detail img {
    width: 70%;
    max-width: 260px;
    height: auto;
  }

  .business_outline {
    padding: 0;
  }

  .business_detail {
    width: 100%;
    padding: 20px 16px 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 24px;
    column-gap: 0;
  }

  .business_detail > div {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .business_detail .engineer_education,
  .business_detail .ses,
  .business_detail .contract_production,
  .business_detail .dx {
    width: 100%;
  }

  .recruit_outline {
    padding: 40px 0;
  }

  .recruit_detail {
    width: 100%;
    padding: 0 16px 40px;
    box-sizing: border-box;
  }

  .recruit_detail h2,
  .recruit_detail h3 {
    text-align: center;
  }

  .recruit_detail > p:first-of-type,
  .recruit_detail .recruit-note,
  .recruit_detail p.last_message {
    max-width: 100%;
  }

  .recruit_detail .detail {
    display: inline-block;
    margin-top: 10px;
  }

  .recruit_detail .detail {
    width: 66%;
  }

  .recruit_detail .detail li {
    margin-bottom: 6px;
    line-height: 1.5;
  }

    .recruit_detail .point {
    display: block;
    width: 80%;
    max-width: 260px;
    margin: 20px auto 0;
    }

  .recruit_detail .point:first-of-type {
    margin-left: auto;
}

.recruit_detail .point {
    height: 150px;
}

.last_message {
    padding-left: 0;
}

  .contact {
    padding: 60px 16px;
  }

  .contact p {
    max-width: 100%;
  }

  .footer {
    padding: 20px 10px;
  }
}