/* ========== TOP ========== */
.front-page {
}
/* =========================
  FV
========================= */
.fv {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 720px;
  overflow: hidden;
  background: #ddd;
}
.fv-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.fv-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.fv-slide picture,
.fv-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.fv-slide img {
  object-fit: cover;
  object-position: center center;
}
.fv-copy-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.fv-copy {
  position: absolute;
  display: contents;
}
.top .catch .ttl {
  position: absolute;
  background-color: #fff;
  padding: 15px 30px;
}
.top .catch .ttl01 {
  left: 5%;
  bottom: 25%;
}
.top .catch .ttl02 {
  left: 11%;
  bottom: 14%;
}

/* =========================
  FV Responsive
========================= */
@media screen and (max-width: 992px) {
  .fv {
    min-height: 620px;
  }
}

@media screen and (max-width: 830px) {
  .fv {
    height: 100svh;
    min-height: 560px;
    padding-top: var(--header-height);
  }

  .fv-slide img {
    object-position: center center;
  }
}

@media screen and (max-width: 480px) {
  .fv {
    min-height: 520px;
  }
}

/* message01 */
.message01 {
  overflow-x: hidden;
}
.message01 .container {
  position: relative;
}
.message01 .illust-box01 {
  display: inline-block;
  position: absolute;
  top: 18%;
  right: -10%;
  z-index: 0;
}
.message01 .illust-box01 img {
  width: 250px;
  height: auto;
}
.message01 .illust-box02 {
  display: inline-block;
  position: absolute;
  top: 1%;
  left: -15%;
  z-index: 0;
}
.message01 .illust-box02 img {
  width: 300px;
  height: auto;
}
.message01 .area {
  position: relative;
  z-index: 1;
}
.message01 .area .box {
}
.message01 .area .box01 {
  margin-bottom: 150px;
}
.message01 .area .box01 .txt_box {
}
.message01 .area .box01 .txt_box .ttl {
  text-align: center;
  line-height: 1.8;
  padding-bottom: 25px;
}
.message01 .area .box01 .txt_box .ttl span {
  color: var(--color03);
}
.message01 .area .box01 .txt_box .lead_box {
  text-align: center;
  width: 60%;
  margin: 0 auto;
}
.message01 .area .box01 .txt_box .lead_box .lead {
  text-align: center;
}
.message01 .area .box01 .txt_box .lead_box .lead span {
  font-weight: 700;
}
.message01 .area .box02 {
}
.message01 .area .box02 .txt_box {
}
.message01 .area .box02 .txt_box .ttl_box {
  align-items: flex-start;
}
.message01 .area .box02 .txt_box .ttl_box .sub_ttl {
  line-height: 1;
}
.message01 .area .box02 .txt_box .ttl_box .sub_ttl span {
}
.hr {
  border: 2px solid var(--color03);
  width: 50px;
  margin: 25px 0;
}
.message01 .area .box02 .txt_box .ttl_box .lead_box {
  width: 85%;
}
.message01 .area .box02 .txt_box .ttl_box .lead_box .lead_ttl {
  margin-bottom: 18px;
}
.message01 .area .box02 .txt_box .ttl_box .lead_box .ex {
}

.message01 .area .box02 .img-box {
}
.message01 .area .box02 .img-box img {
  border-radius: var(--radius);
}
.works {
  background-color: var(--color06);
  position: relative;
}
.works .container {
  width: 1000px;
  margin: 0 auto;
}
.section .ttl_box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section .ttl_box .ttl {
}
.section .ttl_box .ex {
}
.section .ttl_box .ex02 {
}
.works .area {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 16px;
}
.works .container .area .card {
  display: flex;
  flex-direction: column;
  padding: 5px 35px 15px 35px;
  border-radius: 10px 10px 0 0;
  border: 1px solid #000;
  position: relative;
  cursor: pointer;
  margin-top: -0.75rem;
  z-index: 0;
}
.works .card {
  position: relative;
  cursor: pointer;
  margin-top: -0.75rem;
  padding: 0;
  z-index: 0;
}
.works .card:nth-child(1) {
  z-index: 5;
}
.works .card:nth-child(2) {
  z-index: 4;
}
.works .card:nth-child(3) {
  z-index: 3;
}
.works .card:nth-child(4) {
  z-index: 2;
}
.works .card:nth-child(5) {
  z-index: 1;
}
.works .container .area .card:nth-of-type(even) {
  background-color: var(--color03);
  color: #fff;
}
.works .container .area .card:nth-of-type(odd) {
  background-color: var(--color02);
}
.works .container .area .card .sub_box {
}
.works .card:nth-child(1) {
  z-index: 5;
}
.works .card:nth-child(2) {
  z-index: 4;
}
.works .card:nth-child(3) {
  z-index: 3;
}
.works .card:nth-child(4) {
  z-index: 2;
}
.works .card:nth-child(5) {
  z-index: 1;
}

/* タイトル行（クリックターゲットに） */
.works .card .sub_box {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: normal;
}
.works .card .sub_box * {
  pointer-events: none;
}
/* コンテンツ（mini-box）開閉アニメ用 */
.works .card .mini-box {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
/* オープン状態 */
.works .card.is-open .mini-box {
  margin-bottom: 20px;
}
.works .card.is-open {
  z-index: 10;
  margin-top: 0; /* 開いた時は重なり解消（任意） */
}

.works .mini-box.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.works .w-50 {
}
.works .container .area .card .mini-box {
  align-items: center;
}
.works .container .area .card .mini-box .ex {
  width: 90%;
  margin-right: auto;
}
.works .container .area .card .mini-box .img-box img {
  border-radius: var(--radius);
  border: 1px solid #000;
}
.service {
  background-color: var(--color05);
}
.service .container {
}
.service .area {
}

.achievements_swiper {
  position: relative;
  padding: 50px 0;
  overflow: hidden;
}
.achievements_swiper .swiper-slide {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  border: 2px solid var(--color03);
  box-shadow: 0 6px 0 var(--color06);
  flex-shrink: 0;
}

.achievements_swiper .txt-box {
  padding: 10px;
  text-align: center;
  position: absolute;
  bottom: 2%;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.achievements_swiper .swiper-button-prev,
.achievements_swiper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  z-index: 999;
  pointer-events: auto;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.achievements_swiper .swiper-button-prev {
  left: 25px;
}
.achievements_swiper .swiper-button-next {
  right: 25px;
}
.achievements_swiper .swiper-button-prev img,
.achievements_swiper .swiper-button-next img {
  width: 40px;
  height: auto;
  display: block;
}
.achievements_swiper .swiper-slide img {
  height: auto;
  width: 100%;
  aspect-ratio: 3/4;
}
.achievements_swiper .swiper-button-next::after {
  display: none !important;
  content: "" !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.swiper-navigation-icon {
  display: none;
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: "prev";
  display: none;
}

.service .area {
}
.service .area .box {
  display: flex;
  justify-content: center;
}
.service .area .box a {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
}
.service .area .box a .ex {
}

.message02 {
  height: 800px;
  background-color: var(--color05);
}
.message02 .container {
  height: 100%;
}
.message02 .area {
  position: relative;
  height: 100%;
}
.message02 .img-box {
  position: absolute;
  left: 0;
  top: 15%;
}
.message02 .img-box img {
  width: 70%;
}
.message02 .catch {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 40%;
}
.message02 .catch .ttl {
  text-align: end;
  line-height: 2;
  font-size: clamp(1rem, 0.464rem + 1.79vw, 2.25rem);
}

/* ========== RESPONSIVE ========== */
/* ============== デスクトップ大型（1281px〜） ============== */
@media screen and (min-width: 1281px) and (max-width: 1600px) {
  .top .catch .ttl01 {
    bottom: 28%;
  }
}
/* ============== ノートPC 1025-1280px ============== */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
}
/* ============== タブレット共通 ============== */
@media screen and (max-width: 1024px) {
  .message01 .area .box01 .txt_box .ttl {
    text-align: left;
  }
  .message01 .area .box01 .txt_box .lead_box {
    text-align: left;
    width: 100%;
  }
  .message01 .illust-box02 {
    top: 5%;
    left: -20%;
  }
  .message01 .illust-box02 img {
    opacity: 0.5;
  }
  .message01 .illust-box01 {
    top: 10%;
    right: 0%;
  }
  .message01 .illust-box01 img {
    width: 235px;
    opacity: 0.5;
  }
  .message01 .area .box02 .txt_box .ttl_box {
    align-items: center;
  }
  .message01 .area .box02 .txt_box .ttl_box .sub_ttl {
    text-align: center;
  }
  .message01 .area .box02 .lead_box {
    width: 100%;
  }
  .message01 .area .box02 .lead_box .lead_ttl {
    line-height: 2;
    margin-top: 20px;
  }

  .works .area {
    margin-top: 20px;
  }
  .works .container .area .card .mini-box .img-box {
    order: 1;
    margin-top: 12px;
  }
  .works .w-50 {
    order: 2;
  }
  .works .container .area .card .mini-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .works .w-50 {
    width: 100%;
  }
  .works .card.is-open .mini-box {
    margin-bottom: 1.5rem;
  }
  .works .img-box img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid #000;
  }
  .message02 {
    height: 720px;
    padding: 60px 0;
  }
  .message02 .img-box img {
    width: 100%;
  }
  .message02 .catch {
    right: 50px;
    top: 41%;
  }
  .achievements_swiper .img-box img {
    height: 500px;
  }
  .swiper-button-next.custom-next {
    right: 28%;
  }
  .swiper-button-prev.custom-prev {
    left: 28%;
  }
  .works .container {
    width: 600px;
  }
}
/* ============== タブレット横 768-1024 landscape ============== */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
}
/* ============== タブレット縦 768-1024 portrait ============== */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
}
/* ============== スマホ（中〜大型）631-767 ============== */
@media screen and (min-width: 631px) and (max-width: 767px) {
}
/* ============== スマホ（小型）-630 ============== */
@media screen and (max-width: 630px) {
  .message01 .area .box01 .txt_box .lead_box .lead {
    text-align: left;
  }
  .top .catch .ttl {
    padding: 10px 15px;
  }
  .top .catch .ttl02 {
    left: 16%;
    bottom: 3%;
  }
  .top .catch .ttl01 {
    left: 8%;
    bottom: 13%;
  }
  .message01 .area .box02 .lead_box .lead_ttl {
    line-height: 1.8;
    margin-top: 14px;
    margin-bottom: 12px;
  }
  .works .container .area .card {
    padding: 2px 10px 10px 10px;
    border-radius: 8px 8px 0 0;
  }
  .works .card .sub_box {
    gap: 10px;
  }
  .works .container .area .card .mini-box .img-box {
    margin-top: 0;
  }
  .achievements_swiper .img-box img {
    height: 365px;
  }
  .swiper-button-next.custom-next {
    right: 14%;
  }
  .swiper-button-prev.custom-prev {
    left: 14%;
  }
  .achievements_swiper {
    padding: 20px 0px;
  }

  .message02 {
    height: 330px;
    padding: 0px 0 40px;
  }
  .message02 .catch {
    top: 38%;
    right: 50%;
    inset: 0;
    margin: auto;
  }
  .message02 .catch .ttl {
    display: grid;
    place-content: center;
    height: 100%;
    text-align: center;
  }
  .works .container {
    width: 90%;
  }
  .message01 .area .box01 {
    margin-bottom: 60px;
  }
  .message01 .illust-box01 {
    top: 11%;
    right: -8%;
  }
  .message01 .illust-box01 img {
    width: 140px;
  }
  .message01 .illust-box02 {
    top: 3%;
    left: -30%;
  }
  .message01 .illust-box02 img {
    width: 185px;
  }
  .message01 .area .box01 {
    width: 90%;
    margin: 0px auto 60px;
  }
  .message01 {
    position: relative;
    overflow: hidden;
  }
  .service {
    padding-bottom: 25px;
  }
  .swiper-navigation-icon {
    display: none;
  }
  .swiper-button-prev:after,
  .swiper-rtl .swiper-button-next:after {
    content: "prev";
    display: none;
  }
  .achievements_swiper .swiper-button-next {
    right: 50px;
  }
  .achievements_swiper .swiper-button-prev {
    left: 50px;
  }
  .achievements_swiper .swiper-button-prev,
  .achievements_swiper .swiper-button-next {
    width: 30px;
    height: 30px;
  }
}
