/* CSS Document */

/*-------------------------
    ヘッダー
-------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  max-width: 100vw; /* 追加 */
  box-sizing: border-box; /* 追加 */
  transition: all 0.3s ease;
}
.header__inner {
  margin: 0 43px 0 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1% 0;
}
.header__nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.header__nav li {
  margin-right: 30px;
}
.header__nav li span {
  line-height: 1.5;
}
.header__nav .contact__btn {
  width: 172px;
  height: 34px;
  margin-right: 0;
}

/* ヘッダーのスクロール時スタイル */
.header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header.scrolled .header__inner {
  padding: 4px 0; /* ヘッダーの高さを小さく */
}

.header.scrolled .txt_black {
  color: #000 !important;
}

.header.scrolled .header__logo img {
  width: 90px; /* ロゴを小さく */
}
.header.scrolled .hamburger span {
  background-color: #000 !important;
  z-index: 9999;
}

.header .txt_black,
.header .hamburger span {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* ハンバーガーメニューが開いているときのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 80px;
}
.mobile_menu.active {
  transform: translateX(0);
}

.mobile_menu ul {
  list-style: none;
  padding: 10% 2rem;
}

.mobile_menu li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #0e7174;
}
.mobile_menu li:last-child {
  margin-bottom: 1rem;
  padding-bottom: 0rem;
  border-bottom: none;
}
.mobile_menu a {
  font-size: 1.3rem;
  color: #232323;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 1rem 0;
}

.mobile_menu .nav_contact a {
  background: var(--link-color);
  color: white;
  padding: 1rem 2rem;
  margin-top: 1rem;
  display: inline-flex;
  font-size: 1.4rem;
  min-width: 300px;
}

.mobile_men .nav_contact a::after {
  width: 25px;
  height: 25px;
  background-size: 25px 25px;
}
@media screen and (max-width: 1000px) {
  .header {
    top: 0;
    position: fixed;
    width: 100%;
    width: 100% !important; /* 強制適用 */
    max-width: 100vw !important; /* 追加 */
  }
  .header__inner {
    width: 100%;
    max-width: 100%; /* 追加 */
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box; /* 追加 */
    display: flex; /* 念のため明示 */
  }
  /* スクロール時も同じレイアウトを維持 */
  .header.scrolled .header__inner {
    padding: 0 5%; /* 同じpadding値 */
    max-width: 100%; /* 追加 */
  }
  .header__inner .header__logo {
    width: 57px;
    margin-top: 16px;
  }
  .header__nav .contact__btn {
    width: 10em;
    height: 2.3em;
    font-size: 12px;
    margin-right: 55px;
    margin-top: 24px;
  }
  .hamburger {
    cursor: pointer;
    width: 76px;
    height: 76px;
    position: absolute;
    top: 0;
    right: 0;
  }
  .hamburger span {
    display: block;
    background-color: #000;
    width: 22px;
    height: 1px;
    position: absolute;
    left: 27px;
  }
  .hamburger span:nth-child(1) {
    top: 28px;
  }
  .hamburger span:nth-child(2) {
    top: 37px;
  }
  .hamburger span:nth-child(3) {
    top: 45px;
  }
  .header .sp {
    display: inherit;
  }
  .header .sp-none {
    display: none;
  }
  .header.scrolled {
    background: none;
    backdrop-filter: blur(0px);
    box-shadow: none;
  }
  .header.scrolled .header__inner {
    padding: 0 5%;
  }
  .header.scrolled .txt_black {
    color: #000 !important;
  }
  /* ハンバーガーメニューが開いているときのアニメーション */
  .hamburger.active span:nth-child(1) {
    background-color: #000000;
    z-index: 9999;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    background-color: #000000;
    z-index: 9999;
  }
}

/*-------------------------
    ページタイトル
-------------------------*/
.kv {
  position: relative;
}
.kv::before {
  content: "";
  width: 1300px;
  height: 1707px;
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
  background-color: #eef7fb;
  z-index: -1;
  position: absolute;
  top: -520px;
  left: 0;
  max-width: 95%;
  overflow: hidden; /* 追加 */
}

.kv .ttl-box {
  padding: 340px 0 190px;
}
.kv .ttl-box h2 {
  padding-left: 220px;
  position: relative;
  display: inline-block;
  margin-bottom: 70px;
  line-height: 1;
  max-width: 100%;
}
.kv .ttl-box h2::before {
  content: "";
  width: 261px;
  height: 235px;
  background-image: url("/assets/img/pagettl-triangle.svg");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 50px;
  top: -180px;
}
.kv .ttl-box h2 .txt-en {
  color: #057591;
  font-family: var(--font-futura);
  font-weight: 300;
  font-style: normal;
  display: block;
  font-size: 90px;
  line-height: 1.1;
}
.kv .ttl-box h2 .txt-jp {
  font-size: 16px;
  color: #057591;
  font-weight: 500;
  text-align: right;
  width: 100%;
  display: block;
  margin-top: 15px;
}
.kv .ttl-box h3 {
  color: #056780;
  font-size: 44px;
  font-weight: 500;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 30px;
  line-height: 1;
}
.kv .ttl-box h3 .sub-txt {
  font-size: 18px;
  color: #010101;
  display: block;
  margin-bottom: 15px;
}
.kv .ttl-box h3::after {
  content: "";
  width: 200%;
  height: 2px;
  background-color: #b0d6e7;
  position: absolute;
  bottom: 0;
  right: 0;
}
.kv .ttl-box p {
  font-size: 21px;
  line-height: 1.8;
}
.kv .lead-ttl {
  margin-left: 120px;
}
.kv .ttl-image {
  width: 48%;
  max-width: 800px;
  position: absolute;
  top: -40px;
  right: 0;
  z-index: -1;
}
.kv .ttl-image img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  html,
  body {
    overflow-x: hidden; /* より広い範囲で制御 */
    max-width: 100vw; /* 追加 */
  }
  .kv {
    max-width: 100vw; /* 追加 */
  }
  .kv::before {
    max-width: 100%;
    width: 100%;
    top: 5px;
    height: 500px;
  }
  .kv .ttl-box {
    width: 90%;
    padding: 75% 0 0;
    margin: 0 auto 50px;
  }
  .kv .ttl-box h2 {
    padding-left: 0;
    z-index: 1;
  }
  .kv .ttl-box h2::before {
    width: 140px;
    height: 235px;
    left: -30px;
    top: -170px;
  }
  .kv .ttl-box h2 .txt-en {
    font-size: 55px;
  }
  .kv .ttl-box h2 .txt-jp {
    text-align: left;
    font-size: 14px;
  }
  .kv .lead-ttl {
    width: 95%;
    margin: 0 auto;
  }
  .kv .ttl-box h3 {
    font-size: 25px;
    padding-bottom: 22px;
  }
  .kv .ttl-box h3 .sub-txt {
    font-size: 12px;
  }
  .kv .ttl-box p {
    font-size: 15px;
  }
  .kv .ttl-image {
    width: 65%;
    max-width: 500px;
    position: absolute;
    top: 0px;
    right: 0;
  }
}

/*-------------------------
    コンテンツ
-------------------------*/
.article__section {
  margin: 0 auto 100px;
  max-width: 1300px;
  width: 90%;
}
.article__section .flex-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.article__section .flex-item .img-area {
  flex-shrink: 1;
}
.article__section .flex-item .img-area img {
  min-height: 380px;
  object-fit: cover;
}
.article__section .flex-item .txt-area {
  max-width: 585px;
  flex-shrink: 2;
  padding-right: 2rem;
}
.article__section .flex-item .txt-area h4 {
  color: #057591;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 70px;
}
.article__section .flex-item .txt-area p {
  font-size: 18px;
  line-height: 1.8;
}
.article__section .box-list {
  display: flex;
  flex-wrap: wrap;
}
.article__section .box-list li {
  background-color: #004346;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  margin-bottom: 5px;
}
.article__section .box-list li:last-child {
  margin-right: 0;
}
.article__section .box-list li span {
  font-size: 15px;
}
.article__section .content-box .content-ttl {
  color: #005153;
  font-size: 14px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 15px;
}
.article__section .content-box .content-ttl::before {
  content: "■";
  color: #005153;
  display: inline-block;
}

@media screen and (max-width: 767px) {
  .article__section {
    width: 100%;
  }
  .article__section > .container {
    padding: 0 5%;
  }
  .article__section .flex-item {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  .article__section .flex-item .img-area {
    margin: 0;
  }
  .article__section .flex-item .img-area img {
    width: 100%;
    height: auto;
    min-height: unset;
  }
  .article__section .flex-item .txt-area {
    width: 95%;
    max-width: none;
    padding: 0;
    margin: 30px auto 0;
  }
  .article__section .flex-item .txt-area h4 {
    font-size: 21px;
    margin-bottom: 30px;
  }
  .article__section .flex-item .txt-area p {
    font-size: 14px;
  }
  .article__section .box-list li span {
    font-size: 12px;
  }

  .article__section .content-box .content-ttl {
    font-size: 13px;
  }
}
/*-------------------------
    事業内容
-------------------------*/
.business__listbox {
  max-width: 900px;
  margin: 100px auto 20px;
}
.business__listbox ul {
  display: flex;
  align-items: center;
}
.business__listbox .listbox-ttl {
  color: #056780;
  font-size: 18px;
  position: relative;
  display: block;
  font-weight: 600;
  margin-bottom: 25px;
}
.business__listbox .listbox-ttl::after {
  content: "";
  width: calc(100% - 6em);
  height: 1px;
  background-color: #056780;
  position: absolute;
  top: 0.8em;
  right: 0;
}
.business__listbox ul a {
  color: #000000;
  display: block;
  width: 100%;
}
.business__listbox ul .txt-blue a {
  color: #056780;
  font-weight: 600;
}
.business__listbox .management-list {
  background: #ffffff;
  margin: 0;
  padding: 18px 36px;
  border-radius: 3px;
  justify-content: left;
}
.business__listbox .management-list li {
  position: relative;
  margin-right: 0;
  padding: 0 18px;
}
.business__listbox .management-list .txt-blue {
  padding: 0 36px 0 0;
}
.business__listbox .management-list li::after {
  content: "";
  width: 1px;
  height: 95%;
  background-color: #000000;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
.business__listbox .management-list li:last-child::after {
  content: normal;
}
.business__listbox .management-list li:last-child {
  margin-right: 0;
  padding-right: 0;
}
.business__listbox .management-list li a {
  font-size: 15px;
}
.business__listbox .service-list {
  margin: 10px 0 0;
  padding: 0;
  justify-content: space-between;
}
.business__listbox .service-list li {
  background: #ffffff;
  padding: 0;
  border-radius: 3px;
  font-size: 15px;
  width: 170px;
  height: 55px;
  text-align: center;
}
.business__listbox .service-list li {
  position: relative;
}
.business__listbox .service-list li::after {
  content: "";
  background-image: url("/assets/img/businesslist-arrow.svg");
  background-repeat: no-repeat;
  width: 8px;
  height: 8px;
  background-size: contain;
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
}
.business__listbox .service-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  height: 100%;
}
.business__listbox .service-list li:nth-child(4) span {
  line-height: 1.2;
}
.business__listbox .service-list li:nth-child(4) span,
.business__listbox .service-list li:nth-child(5) span {
  margin-left: -10px;
}
.business__listbox .service-list li:nth-child(2) span {
  letter-spacing: 0;
}

.business__listbox .service-list li a span {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .business__listbox {
    width: 90%;
    margin: 100px auto 20px auto;
  }
  .business__listbox .listbox-ttl {
    font-size: 15px;
  }
  .business__listbox .listbox-ttl::after {
    width: calc(100% - 5em);
    top: 0.5em;
  }
  .business__listbox ul {
    flex-wrap: wrap;
  }
  .business__listbox .listbox-ttl {
    margin-bottom: 20px;
  }
  .business__listbox .management-list {
    padding: 15px 20px;
  }
  .business__listbox .management-list li {
    margin-bottom: 13px;
    padding: 0 20px 0 0;
    margin-right: 20px;
  }
  .business__listbox .management-list .txt-blue {
    width: 100%;
    margin-bottom: 14px;
  }

  .business__listbox .management-list li:first-child::after {
    content: normal;
  }

  .business__listbox .management-list::after {
    content: "";
    width: 100%;
    order: 1;
  }
  .business__listbox .management-list li:nth-child(1) {
    order: 0;
  }
  .business__listbox .management-list li:nth-child(2),
  .business__listbox .management-list li:nth-child(3),
  .business__listbox .management-list li:nth-child(4),
  .business__listbox .management-list li:nth-child(5) {
    order: 1;
  }

  .business__listbox .management-list li:nth-child(6) {
    order: 2;
    margin-bottom: 0;
  }
  .business__listbox .service-list li {
    width: calc((100% - 10px) / 2);
    margin-bottom: 10px;
    font-size: 13px;
  }
  .business__listbox .service-list li a {
    text-align: center;
  }
  .business__listbox .service-list li::after {
    right: 15px;
  }
}

/*-------------------------
    フッター
-------------------------*/

.footer__content .container {
  max-width: 1170px;
  margin: 0 auto;
  padding-top: 120px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.footer__content .footer__Logo {
  width: 40%;
  padding-right: 50px;
}
.footer__content .footer__Right {
  width: 60%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
.footer__content .flex-item {
  flex: 1;
  min-width: 100px;
  color: var(--main-color);
}
.footer__content .footer__Right p {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 5px;
}
.footer__content .footer__Right li {
  font-size: 12px;
  margin: 15px 0;
  position: relative;
}
.footer__content .footer__Right li a {
  padding-left: 0.8rem;
  display: inline-block;
  line-height: 1.5;
}
.footer__content .footer__Right li a::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--main-color);
  border-right: 1px solid var(--main-color);
  transform: translateY(-50%) rotate(45deg);
}
.footer__content
  .footer__Right
  .flex-item:nth-child(2)
  .main-list:nth-child(1) {
  margin-bottom: 30px;
}
.footer__content .footer__Right .flex-item:nth-child(2),
.footer__content .footer__Right .flex-item:nth-child(3) {
  margin-right: -30px;
}
.footer__content .footer__Right li a:hover {
  color: #2c5f5d;
}
.footer__content .company-list {
  flex-shrink: 0;
}
.footer__content .company-list p {
  color: var(--main-color);
  font-size: 17px;
  margin-bottom: 16px;
}

.footer__content .company-banners {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.company-banner {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.footer__bottom {
  position: relative;
  padding: 50px 20px 35px;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 60px;
  z-index: 0;
  background-color: var(--main-color);
}
.footer__bottom .footer_bottom_box {
  margin: 0 auto;
  max-width: 1170px;
  display: grid;
  grid-template-columns: 2fr 1fr;
}
.footer__bottom .footer_bottom_box::before {
  content: "";
  width: 100%;
  max-width: 1170px;
  height: 1px;
  background-color: #fff;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%);
}
.footer__bottom .footer-sub-links {
  max-width: 600px;
}
.footer__bottom .sub-list {
  z-index: 1;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #fff;
}
.footer__bottom .sub-list li {
  font-size: 11px;
  position: relative;
  margin: 0 55px 0 0;
  color: #fff;
}
.footer__bottom .sub-list li a {
  display: inline-block;
  padding-left: 0.5rem;
  line-height: 1.3;
}
.footer__bottom .sub-list li a::before {
  content: "";
  width: 1px;
  height: 5px;
  color: #fff;
  background-color: #fff;
  position: absolute;
  left: 0px;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: rotate(90deg);
}
.footer-wrapper {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-wrapper .footer__pagetop {
  position: absolute;
  top: -20px;
  right: 0;
  z-index: 2;
}
.footer__bottom .copyright {
  font-size: 12px;
  font-family: "futura-pt", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: right;
  color: #fff;
}

@media screen and (max-width: 767px) {
  .footer__content .footer__Logo {
    width: 100%;
    margin-bottom: 50px;
  }
  .footer__content .footer__Logo img {
    width: 75%;
  }
  .footer__content .footer__Right {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    width: 100%;
  }
  .footer__content .container {
    padding: 45px 5% 50px;
  }

  .footer__content .footer__Right p {
    margin-bottom: 20px;
  }
  .footer__content .footer__Right li {
    margin: 15px 0;
    font-size: 11px;
  }
  .footer__content .flex-item {
    min-width: auto;
  }
  .footer__content .footer__Right .flex-item:nth-child(2),
  .footer__content .footer__Right .flex-item:nth-child(3) {
    margin-right: 0px;
  }
  .footer__content .company-list {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    grid-column: 1 / -1;
  }
  .footer__content .company-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer__content .company-banners img {
    width: 100%;
  }
  .footer__content .company-list p {
    display: none;
  }

  .footer__bottom {
    position: relative;
    padding: 10px 20px 13px;
    margin-top: 10px;
    z-index: 0;
    background-color: var(--main-color);
  }
  .footer__bottom .footer_bottom_box {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
  }
  .footer__bottom .footer_bottom_box::before {
    content: "";
    width: 90%;
    height: 1px;
    background-color: #fff;
    position: absolute;
    top: auto;
    bottom: 35px;
    left: 50%;
    transform: translate(-50%);
  }
  .footer__bottom .sub-list {
    position: static;
    flex-direction: column;
    margin: 20px 0;
  }
  .footer__bottom .sub-list li {
    margin-bottom: 1rem;
  }
  .footer-wrapper {
    padding: 0px;
  }
  .footer__bottom .sub-list li a {
    font-size: 10px;
  }
  .footer-wrapper .footer__pagetop {
    top: auto;
    bottom: -35px;
    right: 5%;
  }
  .footer__bottom .copyright {
    font-size: 10px;
    text-align: center;
    color: #fff;
  }
}
@media screen and (max-width: 429px) {
  .footer__content .footer__Right {
    grid-template-columns: 1fr 1fr;
  }
}

/*--リンクジャンプ設定--*/
*[id] {
  scroll-margin-top: 180px;
}
