/* ----- common ----- */
/* title */
.sub_title {
  background: #ecf7fa url("../images/lower/sub_title_bg.png") no-repeat top left;
  background-size: contain;
  position: relative;
  z-index: 0;
}
.sub_title .ttl_cotns {
  width: 80%;
  max-width: 980px;
  margin: 0 auto;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sub_title h2 {
  margin: 0 auto 0 0;
  font-size: 46px;
  line-height: 1.4;
  font-weight: 700;
  color: #062752;
  position: relative;
}
.sub_title h2 span {
  width: fit-content;
  font-size: 80%;
  font-family: "Zen Old Mincho", serif;
  font-weight: 300;
  color: #b0c7db;
  position: absolute;
  bottom: -0.75em;
  right: -1.2em;
  z-index: -1;
  transition: all 1s ease;
}

.sub_title .ttl_img,
.sub_title .ttl_img_shadow {
  width: 54%;
  max-width: 800px;
  height: 380px;
  --cut: 266px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
}
.sub_title .ttl_img {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  transition: all 0.3s ease 0s;
}
.sub_title .ttl_img_shadow {
  background: var(--sub-color);
  opacity: 0;
  box-shadow: -10px 0 0 var(--sub-color);
  position: absolute;
  top: 0;
  right: 60px;
  z-index: -1;
}
.sub_title .ttl_img img {
  object-fit: cover;
  object-position: center bottom;
  width: 100%;
  height: 100%;
}

/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  .sub_title h2 {
    font-size: calc(100vw / 20);
  }
  .sub_title,
  .sub_title .ttl_cotns,
  .sub_title .ttl_img,
  .sub_title .ttl_img_shadow {
    height: 240px;
  }
  .sub_title .ttl_img,
  .sub_title .ttl_img_shadow {
    width: 40%;
    --cut: 170px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  .sub_title,
  .sub_title .ttl_cotns,
  .sub_title .ttl_img,
  .sub_title .ttl_img_shadow {
    height: 240px;
  }
  .sub_title .ttl_img,
  .sub_title .ttl_img_shadow {
    width: 50%;
    --cut: 170px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
  }
  .sub_title .ttl_img_shadow {
    right: 30px;
  }
  .sub_title h2 {
    margin-bottom: 0;
    font-size: calc(100vw / 20);
  }
  .sub_title h2 span {
    bottom: -1em;
    right: -1em;
  }
  #contact .sub_title h2 span {
    bottom: -1em;
    right: 0.2em;
  }
}
@media screen and (max-width: 431px) {
  .sub_title,
  .sub_title .ttl_cotns,
  .sub_title .ttl_img,
  .sub_title .ttl_img_shadow {
    height: 140px;
  }
  .sub_title .ttl_img,
  .sub_title .ttl_img_shadow {
    --cut: 90px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
  }
  .sub_title h2 {
    margin-bottom: 0;
    font-size: calc(100vw / 16);
  }
}

/*  introduction   */
.introduction {
  padding: 120px 0;
  margin: 0 auto;
  background: #f7fcfd url(../images/index/about_bg.png) no-repeat top right;
  background-size: contain;
  position: relative;
  z-index: 1;
}
.introduction .intro_box h3 {
  font-size: 180%;
  font-weight: bold;
}
.introduction .intro_box .intro_txt {
  padding: 20px 0 60px;
  text-align: center;
  display: block;
  position: relative;
}
.introduction .intro_box .intro_txt::after {
  background: linear-gradient(to right, #ffffff00 0%, #362ae0 10%, #3b79cc 50%, #42d3ed 90%, #ffffff00 100%);
  content: "";
  display: block;
  height: 3px;
  width: 0;
  transform: translateX(-50%);
  transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  bottom: 0;
  left: 50%;
}
.introduction .intro_box .intro_txt.is-active::after {
  width: 100%;
}
.introduction .intro_box .intro_txt p {
  font-size: 1.2em;
  line-height: 1.8;
}
@media (max-width: 1081px) {
  .introduction {
    padding: 6svh 0;
  }
  .introduction .intro_box .intro_txt {
    padding: 0;
  }
}
@media (max-width: 768px) {
  .introduction {
    padding: 6vw 0;
  }
  .introduction .intro_box .intro_txt {
    padding: 6vw 0;
  }
  .introduction .intro_box .intro_txt p {
    font-size: 1em;
  }
}

/* ====== service ====== */
#service .service {
  padding: 0 0 120px;
  background-image: linear-gradient(180deg, #003365 10%, #1b79c5 60%, #003365 100%);
  position: relative;
}
#service .service .service_hl {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  font-family: "Zen Old Mincho";
  font-weight: bold;
  font-size: 2.4em;
  line-height: 1.4;
  color: #004384;
  position: relative;
  z-index: 1;
}
#service .service .service_hl::after {
  background: linear-gradient(to right, #3b79cc 50%, #42d3ed 80%, #362ae0 90%, #ffffff00 100%);
  content: "";
  display: block;
  height: 3px;
  width: 0;
  transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
}
#service .service .service_hl.is-active::after {
  width: 100vw;
}
#service .service .service_hl div {
  margin: 0 0 10px 0;
}
#service .service .service_hl div:last-child {
  margin-bottom: 0;
}
#service .service .service_hl span {
  display: inline-block;
  width: fit-content;
  padding: 1svh 2vw 1svh 8vw;
  background: #b9e8ff;
  line-height: 1;
  border-bottom: 6px solid var(--sub-color);
}
#service .service .service_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 120px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
#service .service .service_box:nth-of-type(even) {
  flex-direction: row-reverse;
}
#service .service .service_box::before {
  content: "";
  width: 100%;
  height: 42%;
  display: block;
  background-image: linear-gradient(60deg, #1b79c5 0%, #0058b6 20%);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.service .bgDUextend.is-active::before {
  background: #ecf7fa;
}
#service .service .service_box .service_img {
  width: 40%;
  overflow: hidden;
}
#service .service .service_box .service_img.sp {
  display: none;
}
#service .service .service_box .service_cntns {
  width: 60%;
  padding-top: min(7vw, 120px);
  padding-right: 8vw;
  padding-bottom: 3vw;
  padding-left: 10vw;
  position: relative;
}
#service .service .service_box:nth-of-type(even) .service_cntns {
  padding: 80px 10vw 30px 80px;
}
#service .service .service_box .service_cntns dt {
  margin-bottom: 40px;
  position: relative;
  display: block;
}
#service .service .service_box .service_cntns dt h3 {
  font-size: 2.4em;
  font-family: "Zen Antique Soft", serif;
  transition: 0.8s;
  position: relative;
  color: var(--point2-color);
}
#service .service .service_box .service_cntns dt h3::after {
  content: "";
  display: block;
  margin: auto;
  height: 0;
  width: 100%;
  background: var(--main-color);
  position: absolute;
  bottom: 0;
  left: 0;
}
#service .service .service_box .service_cntns dt h3.is-active::after {
  height: 3px;
  transition: all 1.5s ease;
}
#service .service .service_box .service_cntns dt h3 .ruby {
  font-family: "Zen Old Mincho", serif;
  font-weight: normal;
  font-size: 60%;
  color: #93d3f4;
  display: block;
  width: fit-content;
  margin: -10px 0 0 auto;
  padding-bottom: 5px;
}
#service .service .service_box .service_cntns dd {
  width: 90%;
  font-size: 120%;
  line-height: 1.8;
  color: #ffffff;
}

/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  #service .service .service_hl {
    font-size: clamp(1.4em, calc(100vw / 18), 2em);
  }
  #service .service .service_list_box {
    gap: 20px;
  }
  #service .service .service_box .service_cntns,
  #service .service .service_box:nth-of-type(even) .service_cntns {
    padding: 3svh 4vw 0 4vw;
    margin-bottom: 20px;
  }
  #service .service .service_box .service_cntns dd {
    margin-left: 2%;
    width: 90%;
    font-size: 100%;
  }
  #service .service .service_box .service_cntns dt {
    margin-bottom: 30px;
  }
  #service .service .service_box .service_cntns dt h3 {
    font-size: calc(90vw / 26);
    font-weight: bold;
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  #service .service {
  }
  #service .service .service_hl {
    align-items: center;
    font-size: clamp(1.5em, calc(100vw / 20), 2em);
  }
  #service .service .service_hl span {
    padding: 1svh 2vw 1svh 2vw;
  }
  #service .service .service_box {
    justify-content: center;
    margin-bottom: 6vw;
    padding-top: 3svh;
  }
  #service .service .service_box .service_cntns,
  #service .service .service_box:nth-of-type(2n) .service_cntns {
    width: 100%;
    padding: 0 5vw;
    margin-bottom: 20px;
  }
  #service .service .service_box .service_img.pc {
    display: none;
  }
  #service .service .service_box .service_img.sp {
    display: block;
    width: 90%;
    margin: 30px auto;
  }
  #service .service .service_box .service_cntns dt {
    margin-bottom: 8vw;
    position: relative;
  }
  #service .service .service_box .service_cntns dt h3 {
    font-size: calc(90vw / 14);
    font-weight: bold;
  }
  #service .service .service_box .service_cntns dd {
    font-size: 100%;
  }
}

#service .service_list2 {
  max-width: 1400px;
  margin: 60px auto 160px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
}
#service .service_list2_box {
  width: calc((100% / 2) - 80px);
  max-width: 580px;
  padding: 20px 30px 30px 30px;
  background: #679bd4 url(../images/lower/works_list2.jpg) no-repeat top right;
  background-size: contain;
  position: relative;
}
#service .service_list2_box::after {
  content: "";
  display: block;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border: 2px solid var(--sub-color);
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: -1;
}
#service .service_list2_box dl {
  background: #ffffff55;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /*! align-content: space-between; */
  height: 100%;
}
#service .service_list2_box dt h4 {
  font-weight: bold;
  font-size: 1.4em;
  color: var(--main-color);
  display: block;
  line-height: 1.6;
}
#service .service_list2_box dt h4 .ruby {
  font-family: "Zen Old Mincho", serif;
  font-weight: normal;
  font-size: 60%;
  color: #666666;
  display: block;
  width: fit-content;
  margin: -10px 0 0 auto;
  padding-bottom: 5px;
}
#service .service_list2_box .service_list2_txt {
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: auto;
}
#service .service_list2_box .service_list2_img {
  margin-top: 20px;
  align-self: flex-end;
}

/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  #service .service_list2 {
    margin: 4svh auto 14svh;
    gap: 4vw;
  }
  #service .service_list2_box {
    width: calc((100% / 2) - 6vw);
    padding: 2svh 3vw 3svh 3vw;
  }
  #service .service_list2_box dl {
    padding: 2vw;
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  #service .service_list2_box {
    width: 80%;
    max-width: none;
    margin: auto;
    padding: 6vw;
  }
  #service .service_list2_box dl {
    padding: 4vw;
  }
  #service .service_list2_box dt h4 .ruby {
    margin: 0 0 0 auto;
  }
  #service .service_list2_box .service_list2_img {
    margin-top: 10px;
  }
  #service .service_list2 {
    max-width: 1400px;
    margin: 4svh auto 10svh;
    gap: 6svh;
  }
}

#service .service_list3_box {
  max-width: 1400px;
  margin: 60px auto 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
#service .service_list3_items {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  width: calc((100% / 4) - 20px);
  padding: 20px;
  border-top: 3px solid var(--sub-color);
  border-right: 4px solid var(--main-color);
  border-bottom: 4px solid var(--main-color);
  border-left: 3px solid var(--sub-color);
  position: relative;
  z-index: 0;
}
#service .service_list3_items dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.4;
  color: var(--sub-color);
  min-height: 2.4em;
  margin-bottom: 10px;
}
#service .service_list3_items .service_list3_img {
  line-height: 0;
  padding-bottom: 5px;
}
#service .service_list3_items .service_list3_txt {
  display: flex;
  flex-direction: column;
  align-content: space-between;
  background-color: #fff;
  background-image: linear-gradient(90deg, transparent 0%, transparent 50%, #fff 50%, #fff 100%), linear-gradient(0deg, #ccc 1px, transparent 1px);
  background-size:
    8px 100%,
    100% 1.7em;
  line-height: 1.72em;
  padding-bottom: 5px;
  flex-grow: 2;
}
#service .main_btn {
  margin: 30px auto 10px;
}

.area_contact {
  background: url(../images/lower/service-contact.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70svh;
}
.area_contact .area_box {
  background: #ffffffcc;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  width: 800px;
  margin: 0 auto;
  padding: 30px 60px;
  border-radius: 20px;
  box-shadow: 1px 0 6px #66666666;
}
.area_contact .area_box h3 {
  font-size: 1.6em;
  font-weight: bold;
  padding: 0 0 10px 0;
  margin-bottom: 20px;
  border-bottom: 4px dotted var(--sub-color);
  position: relative;
  color: var(--point-color);
  font-family: "Zen Antique Soft", serif;
}
.area_contact .area_box h3 small {
  display: block;
  font-weight: normal;
  color: var(--text-color);
  font-family: "Zen Antique Soft", serif;
  margin-bottom: 10px;
}

/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  .area_contact {
    background-attachment: scroll;
    background-size: cover;
    height: 50svh;
  }
  .area_contact .area_box {
    width: 70%;
    margin: 0 auto;
  }
  #service .service_list3_items {
    width: calc((100% / 2) - 20px);
    max-width: 36%;
  }
}

@media screen and (max-width: 821px) {
  #service .service_list3_box {
    margin: 4svh auto 8svh;
    gap: 20px;
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  #service .service_list3_items {
    width: 75%;
    max-width: none;
  }
  #service .service_list3_items dt {
    font-size: 1.2em;
  }
  .area_contact {
    height: 70svh;
    padding: 8svh 0;
  }
  .area_contact .area_box {
    width: 80%;
    padding: 3svh 6vw;
  }
}

/* ====== works ====== */
#service .works {
  padding: 100px 0 120px;
  margin: 0 auto 0;
  background: linear-gradient(0deg, #2cb0ff 0%, #2780cd 10%, #1b79c5 15%, #0058b6 90%);
  position: relative;
  z-index: 1;
}
.works .works_img {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.works .works_img .works_img_items {
  width: calc((100% / 4 - 10px));
  margin-bottom: 30px;
  overflow: hidden;
  line-height: 0;
}
.works .works_img .works_img_items figcaption {
  text-align: center;
  font-weight: bold;
  background: var(--main-color);
  color: #ffffff;
  margin-bottom: 5px;
  padding: 10px 0;
}
.works .works_insta {
  margin: 60px auto 0;
}
.works .insta_box {
  width: fit-content;
  margin: auto;
  background: #ffffff;
  margin: 20px auto;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid var(--main-color);
  transition: all 0.5s;
}
.works .insta_box:hover {
  background: var(--main-color);
}
.works .insta_box:hover a {
  color: #ffffff;
}
.works .insta_box .insta_icon {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.1em;
  font-weight: bold;
}
.works .insta_box .insta_icon img {
  display: inline-block;
  width: 100%;
  max-width: 50px;
}
.works .insta_hl {
  width: fit-content;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1.2em;
  font-family: "Zen Antique Soft", serif;
  color: #ffffff;
  position: relative;
}
.works .insta_hl::before,
.works .insta_hl::after {
  content: "";
  display: block;
  width: 1.5em;
  height: 3px;
  background: var(--sub-color);
  transform: rotate(45deg);
  border-radius: 10px;
}
.works .insta_hl::before {
  position: absolute;
  bottom: 0;
  left: -1.5em;
}
.works .insta_hl::after {
  position: absolute;
  bottom: 0;
  right: -1.5em;
  transform: scale(-1, 1) rotate(45deg);
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  #service .works {
    padding: 8svh 4vw;
  }
  .works .works_insta {
    margin: 4svh auto 0;
  }
  .works .works_img {
    flex-wrap: wrap;
  }
  .works .works_img .works_img_items {
    width: 80%;
    margin: 0 auto 30px;
  }
}

/* works-collction (実績) */

/* ポップアップの初期状態 */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  padding: 20px;
}

/* クリック後の表示状態（:target 発火） */
.popup:target {
  opacity: 1;
  pointer-events: auto;
  z-index: 999;
}

.popup-wrap .thumb {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.popup-wrap .thumb:after {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.popup-wrap .thumb:hover::after {
  content: attr(data-nema);
  background: #00000055;
  color: #ffffff;
  text-align: center;
}
.popup-wrap .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.popup .img-wrap {
  width: fit-content;
  height: auto;
  max-width: 70vw;
  max-height: 70svh;
  position: relative;
}
@media screen and (max-width: 768px) {
  .popup .img-wrap {
    max-width: 90vw;
  }
}
.popup .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* キャプション */
.popup figcaption {
  max-width: 80vw;
  margin-top: 15px;
  color: #fff;
  line-height: 1.2;
}

/* 背景クリックで閉じる */
.popup .close {
  content: "";
  display: block;
  background: #000000cc;
  padding-bottom: 3px;
  font-size: 2em;
  text-align: center;
  color: #fff;
  position: absolute;
  bottom: -2em;
  right: 48%;
}

/* スマートフォン用のスタイル */
@media screen and (max-width: 821px) {
  .popup-wrap .thumb {
    height: 12svh;
  }
}
@media screen and (max-width: 768px) {
  .popup-wrap .thumb {
    height: 24svh;
  }
}
