/*=========================
  Common
=========================*/
/* font define */
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap');

/* color */
:root {
  --navy: #1f2f54;
  --orange: #ee7800;
  --light-orange: #fde5ce;
  --text-color: #333333;
}
.navy {
  color: var(--navy);
}
.orange {
  color: var(--orange);
}

/* common variables */
:root {
  --section-padding: 5rem 0;
}
@media (max-width: 960px) {
  :root {
    --section-padding: 3rem 0;
  }
}

html {
  scroll-behavior: smooth;
  /* scroll-padding-top: 100px;  */
}
/* @media screen and (max-width: 960px) {
  html {
    scroll-padding-top: 0px;
  }
} */
body {
  font-family: 'Zen Old Mincho', system-ui, serif;
  font-style: normal;
  color: var(--text-color);
  overflow-wrap: anywhere; /* 収まらない場合に折り返す */
  word-break: normal; /* 単語の分割はデフォルトに依存 */
  line-break: strict; /* 禁則処理を厳格に適用 */
  max-width: 1920px;
  margin-inline: auto;
  position: relative;
}
a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
  &:hover {
    @media (any-hover: hover) {
      opacity: 0.5;
    }
  }
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
p {
  line-height: 2;
  text-align: justify;
  @media (max-width: 960px) {
    font-size: 0.9rem;
  }
}

.pc-only {
  display: initial;
}
.sp-only {
  display: none !important;
}
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: initial !important;
  }
}

.container {
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin-inline: auto;
}

/* button */
.button {
  border-radius: 100px;
  background-color: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1rem;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  @media (max-width: 960px) {
    font-size: 1rem;
  }
  .icon {
    width: 25px;
    margin-right: 0.5rem;
  }
  .arrow {
    position: relative;
    top: 4px;
    display: inline-block;
    background-color: #ffffff;
    height: 1px;
    width: 60px;
    margin-left: 1rem;
    &::after {
      content: '';
      display: block;
      position: relative;
      top: -6px;
      right: -35px;
      /* translate: 0% -50%; */
      background-color: #ffffff;
      clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      height: 6px;
      width: 25px;
    }
  }
  @media (any-hover: hover) {
    /* &:hover {
      opacity: 1;
      background-color: color-mix(in srgb, var(--bg-color), white 25%);
      color: color-mix(in srgb, var(--color), white 25%);
    } */
    &::before {
      border-radius: 100px;
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
      background-color: #fff;
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }
    &:hover {
      opacity: 1;
    }
    &:hover::before {
      opacity: 0.25;
    }
  }
}

/*=========================
  header
=========================*/
header {
  position: fixed;
  z-index: 10;
  top: 0;
  background-color: rgb(255 255 255 / 0.7);
  width: 100%;
  max-width: 1920px;
  height: 100px;
  display: flex;
  justify-content: space-between;
  padding-left: 1rem;
  .flex-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    .logo-img1 {
      max-width: 120px;
    }
    .logo-img2 {
      max-width: 200px;
    }
  }
  .company-name {
    .name {
      font-size: 1.5rem;
      text-align: center;
    }
    .adress {
      font-size: 0.9rem;
    }
    @media (max-width: 1280px) {
      display: none;
    }
  }
  .flex-right {
    .row1 {
      height: 50%;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      /* margin-right: 1rem; */
    }
    .row2 {
      height: 50%;
      display: flex;
      justify-content: flex-end;
      /* align-items: flex-end; */
      gap: 0.5rem;
      margin-top: auto;
    }
  }
  .pc-nav {
    .nav-items {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      /* gap: 1rem; */
      font-size: 0.9rem;
    }
    .nav-items__item {
      a {
        padding-inline: 0.75rem;
        border-right: 1px solid var(--text-color);
      }
      &:last-of-type a {
        border: none;
      }
    }
  }
  .header-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0.5rem 1rem;
    .icon {
      margin-right: 1rem;
      width: 25px;
    }
    &:is(.contact) {
      background-color: var(--orange);
      color: #ffffff;
      flex-grow: 1;
    }
  }

  .sp-hamburger {
    background-color: var(--navy);
    display: none;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
    height: 100%;
    width: 60px;
    aspect-ratio: 1/1;
    .line {
      height: 1px;
      width: 30%;
      background-color: #ffffff;
      content: '';
      transition: 0.3s;
    }
  }
  .sp-hamburger.active {
    .line {
      background-color: #ffffff;
    }
    .line:nth-child(1) {
      position: absolute;
      top: 50%;
      bottom: 50%;
      width: 40%;
      rotate: -45deg;
    }
    .line:nth-child(2) {
      opacity: 0;
    }
    .line:nth-child(3) {
      position: absolute;
      top: 50%;
      bottom: 50%;
      width: 40%;
      rotate: 45deg;
    }
  }
  .sp-nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -120%;
    width: 90vw;
    height: 100vh;
    background-color: var(--navy);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    .nav-items {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3rem;
      .nav-items__item a {
        text-align: center;
        text-wrap: balance;
        font-size: 1.2rem;
      }
    }
  }
  .sp-nav.active {
    right: 0;
  }
  .overlay {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: #000;
    opacity: 0.75;
  }
  .overlay.active {
    display: block;
  }
}
body.no-scroll {
  overflow: hidden;
  height: 100%;
}
@media (max-width: 1050px) {
  header {
    height: 60px;
    width: 100%;
    .logo {
      .logo-img1 {
        width: 60px;
        margin-bottom: 0.25rem;
      }
      .logo-img2 {
        width: 90px;
      }
    }
    .flex-right .row1,
    .flex-right .row2 {
      display: none;
    }
    .sp-hamburger {
      display: flex;
    }
  }
}

/*=========================
  mv
=========================*/
section.mv {
  position: relative;
  .copy {
    position: absolute;
    top: 55%;
    left: 50%;
    translate: -50% -50%;
    width: max-content;
    color: var(--navy);
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgb(255 255 255 / 0.7), 2px 2px 4px rgb(255 255 255 / 0.7), 2px 2px 4px rgb(255 255 255 / 0.7);
  }
}
@media (max-width: 960px) {
  section.mv {
    .splide__slide {
      .slide-img {
        height: 380px;
        width: 100%;
        object-fit: cover;
      }
      .img1 {
        object-position: 80% 50%;
      }
    }
    .copy {
      font-size: clamp(1.75rem, 0.9487rem + 3.4188vw, 3rem);
    }
  }
}

/*=========================
  about
=========================*/
section.about {
  padding: var(--section-padding);
  background: url(../img/index/business-bg.png) no-repeat;
  background-color: var(--light-orange);
  background-position: 135% 110%;
  background-size: 80%;
  .textbox {
    position: relative;
    font-weight: 700;
    width: calc(100% - 2rem);
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: 6rem;
    &::before {
      content: '';
      position: absolute;
      top: 20px;
      left: -20px;
      width: 100%;
      height: 100%;
      background-color: var(--navy);
    }
    .inner {
      position: relative;
      z-index: 2;
      padding: 3rem 1rem;
      background-color: var(--orange);
      color: #ffffff;
    }
    .title {
      text-align: center;
      text-wrap: balance;
      font-size: 2rem;
      line-height: 1;
      margin-bottom: 2rem;
    }
    .text {
      text-align: center;
      text-wrap: balance;
    }
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    .grid-item {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      background-color: #ffffff;
      &:hover {
        opacity: 1;
      }
      .title {
        text-align: center;
        color: var(--navy);
        font-size: 1.5rem;
        font-weight: 700;
        padding-top: 1rem;
        margin-bottom: 1rem;
      }
      .text {
        width: fit-content;
        margin-inline: auto;
        padding-inline: 1rem;
        margin-bottom: 1rem;
      }
      .img {
        position: relative;
        width: 100%;
        height: fit-content;
        aspect-ratio: 500/540;
        overflow: hidden;
        img {
          transition: transform 0.6s ease;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      @media (any-hover: hover) {
        &:hover {
          .img {
            img {
              transform: scale(1.1);
            }
          }
        }
      }
    }
    .grid-item:nth-of-type(2) {
      .comingsoon {
        position: absolute;
        inset: 0;
        display: grid;
        place-content: center;
        background-color: rgb(0 0 0 / 0.4);
        color: #ffffff;
      }
    }
  }
}
@media (max-width: 960px) {
  section.about {
    .textbox {
      margin-bottom: 3rem;
      &::before {
        top: 10px;
        left: -7px;
      }
      .inner {
        right: -3px;
      }
      .title {
        font-size: 1.25rem;
      }
    }
    .grid {
      grid-template-columns: 1fr;
      .grid-item {
        grid-row: span 3;
        margin-bottom: 3rem;
        .title {
          /* font-size: 1.5rem; */
        }
        .text {
        }
        .img {
          width: 100%;
          height: 300px;
          margin-inline: auto;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
    }
  }
}

/*=========================
  business area
=========================*/
section.business-area {
  padding: var(--section-padding);
  .container {
    position: relative;
    padding-top: 4rem;
    .section-title {
      position: absolute;
      top: 0%;
      left: 57%;
      color: var(--navy);
      font-size: 3rem;
      font-weight: 700;
      line-height: 1.25;
    }
    .text {
      position: absolute;
      top: 20%;
      left: 57%;
    }
  }
  .map-img {
  }
}
@media (max-width: 960px) {
  section.business-area {
    .container {
      padding-top: 0;
      .section-title {
        position: initial;
        font-size: 2rem;
        margin-bottom: 2rem;
      }
      .text {
        position: initial;
        margin-bottom: 2rem;
      }
    }
  }
}

/*=========================
  flow
=========================*/
section.flow {
  padding: var(--section-padding);
  background: url(../img/index/flow-bg.png) no-repeat;
  background-position: 0% 85%;
  background-size: 150%;
  background-color: var(--light-orange);
  .section-title {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 3rem;
    .jp {
      font-size: 3rem;
      font-weight: 700;
    }
    .en {
      color: var(--orange);
      font-size: 2rem;
    }
  }
  .flow-groupe {
    --color1: var(--navy);
    --color2: var(--orange);
    background-color: #fef2e6;
    padding: 2rem;
    padding-right: 4rem;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    .title {
      width: fit-content;
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 4rem;
      border-bottom: var(--navy) 3px solid;
      border-left: var(--navy) 15px solid;
      padding: 0.5rem 1rem;
    }
    .flow-items {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      column-gap: 5rem;
      row-gap: 5rem;
    }
    .flow-item {
      position: relative;
      .number {
        position: absolute;
        z-index: 3;
        top: -25px;
        left: -15px;
        color: var(--color2);
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
      }
      .bg-navy {
        position: absolute;
        z-index: 1;
        bottom: -10px;
        right: -10px;
        width: 100%;
        height: 100%;
        background-color: var(--color1);
        &::before {
          content: '';
          position: absolute;
          top: 0;
          right: -24px;
          width: 25px;
          height: 100%;
          background-color: var(--color1);
          clip-path: polygon(0 0, 0% 100%, 100% 50%);
        }
      }
      .content {
        position: relative;
        z-index: 2;
        background-color: #ffffff;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1rem;
        .text {
        }
        .icon {
          width: 80px;
          display: grid;
          place-content: center;
          img {
            width: 80%;
            margin: auto;
          }
        }
      }
    }
  }
  .flow-groupe.flow2 {
    --color1: var(--orange);
    --color2: var(--navy);
  }
  .button {
    margin-inline: auto;
    background-color: var(--navy);
    width: min(240px, 80%);
  }
}
@media (max-width: 960px) {
  section.flow {
    .section-title {
      margin-bottom: 3rem;
      .jp {
        font-size: 2rem;
      }
      .en {
        font-size: 1.25rem;
      }
    }
    .flow-groupe {
      padding-inline: 1.5rem;
      .title {
        font-size: 1.5rem;
        width: 100%;
      }
      .flow-items {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        column-gap: 5rem;
        row-gap: 5rem;
      }
      .flow-item {
        .number {
          top: -25px;
          left: -15px;
          font-size: 2.5rem;
        }
        .bg-navy {
          &::before {
            top: initial;
            bottom: -14px;
            right: 0;
            left: 0;
            width: 100%;
            height: 15px;
            clip-path: polygon(100% 0, 0 0, 50% 100%);
          }
        }
        .content {
          min-height: 85px;
          .text {
          }
          .icon {
          }
        }
      }
    }
    .flow-groupe.flow2 {
      .title {
        font-size: 1.25rem;
      }
    }
  }
}

/*=========================
  company
=========================*/
section.company {
  padding: var(--section-padding);
  background: url(../img/index/company-bg.png) no-repeat;
  background-position: 0% 100%;
  background-size: 80%;
  background-color: #ffffff;
  .section-title {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 3rem;
    .jp {
      font-size: 3rem;
      font-weight: 700;
    }
    .en {
      color: var(--orange);
      font-size: 2rem;
    }
  }
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    .flex-left {
      width: 50%;
    }
    .flex-right {
      width: 50%;
    }
  }
  .table {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10%;
    font-size: 1.15rem;
    .row {
      display: grid;
      grid-template-columns: subgrid;
      grid-column: 1/-1;
      border-bottom: 1px solid var(--text-color);
      padding-bottom: 0.5rem;
      margin-bottom: 0.5rem;
      .th {
        font-weight: 800;
      }
      .td {
        font-weight: 600;
      }
    }
  }
  .button {
    margin-inline: auto;
    background-color: var(--navy);
    width: min(240px, 80%);
  }
}
@media (max-width: 960px) {
  section.company {
    .section-title {
      margin-bottom: 3rem;
      .jp {
        font-size: 2rem;
      }
      .en {
        font-size: 1.25rem;
      }
    }
    .flex {
      flex-direction: column-reverse;
      gap: 2rem;
      margin-bottom: 3rem;
      .flex-left {
        width: 100%;
      }
      .flex-right {
        width: 100%;
      }
    }
    .table {
      display: grid;
      grid-template-columns: 1fr;
      font-size: 1rem;
      margin-bottom: 2rem;
      .row {
        grid-template-columns: 1fr;
        .th {
        }
        .td {
        }
      }
    }
    .button.sp-only {
      display: flex !important;
      background-color: var(--navy);
      width: min(240px, 80%);
      margin-inline: auto;
    }
    .button.pc-only {
      display: none;
    }
    .company-img {
      width: 100%;
      max-width: 500px;
      margin-inline: auto;
    }
  }
}

/*=========================
  contact
=========================*/
section.contact {
  padding: var(--section-padding);
  background: url(../img/index/contact-bg.jpg);
  color: #ffffff;
  position: relative;
  &::before {
    content: '';
    position: absolute;
    /* z-index: 1; */
    inset: 0;
    background-color: rgb(0 0 0 / 0.6);
  }
  .inner {
    position: relative;
    z-index: 1;
  }
  .section-title {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 3rem;
    .jp {
      color: #ffffff;
      font-size: 3rem;
      font-weight: 700;
    }
    .en {
      color: var(--orange);
      font-size: 2rem;
    }
  }
  .text {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 3rem;
  }
  .buttons {
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    .button {
      background-color: var(--orange);
      width: 40%;
    }
  }
}
@media (max-width: 960px) {
  section.contact {
    background-position: 50% 50%;
    .section-title {
      margin-bottom: 3rem;
      .jp {
        font-size: 2rem;
      }
      .en {
        font-size: 1.25rem;
      }
    }
    .buttons {
      flex-direction: column;
      gap: 2rem;
      margin-bottom: 3rem;
      .button {
        width: 80%;
        max-width: 280px;
        font-size: 1.2rem;
      }
    }
  }
}

/*=========================
  map
=========================*/
section.map {
  .wrapper {
    width: 100%;
    height: 400px;
    iframe {
      width: 100%;
      height: 100%;
    }
  }
}

/*=========================
  footer
=========================*/
footer {
  padding: var(--section-padding);
  background: url(../img/footer-bg.png) no-repeat;
  background-position: 100% 50%;
  background-size: 100%;
  background-color: #ffffff;
  @media (max-width: 960px) {
    background-size: 180%;
  }
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    @media (max-width: 960px) {
      flex-direction: column;
    }
  }
  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    .logo-img1 {
      max-width: 160px;
      margin-bottom: 1rem;
    }
    .logo-img2 {
      max-width: 240px;
    }
  }
  .company-name {
    margin-bottom: 1rem;
    .name {
      font-size: 1.5rem;
      text-align: center;
    }
    .adress {
      font-size: 0.9rem;
      text-align: center;
      text-wrap: balance;
    }
  }
  .footer-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0.5rem 1rem;
    .icon {
      margin-right: 1rem;
      width: 25px;
    }
  }
  .footer-nav {
    .nav-items {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      /* gap: 1rem; */
      font-size: 0.9rem;
    }
    .nav-items__item {
      a {
        padding-inline: 0.75rem;
        border-right: 1px solid var(--text-color);
      }
      &:last-of-type a {
        border: none;
      }
    }
    @media (max-width: 960px) {
      width: calc(100% - 2rem);
      margin-inline: auto;
      .nav-items {
        flex-wrap: wrap;
        row-gap: 1rem;
      }
      .nav-items__item {
        width: fit-content;
      }
    }
  }
}

.copyright {
  background-color: var(--navy);
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* scroll top button */
.scroll-top {
  position: fixed;
  bottom: 5%;
  right: 5%;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  a {
    --radius: 8px;
    .block {
      border-radius: var(--radius);
      width: 50px;
      height: 50px;
      background: var(--navy);
      display: flex;
      justify-content: center;
      align-items: center;
      .triangle {
        display: block;
        width: 40%;
        height: 30%;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        background: #fff;
      }
    }
  }
  a::before {
    border-radius: var(--radius);
    content: '';
    position: absolute;
    inset: 0;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  a:hover {
    opacity: 1;
  }
  @media (any-hover: hover) {
    a:hover::before {
      opacity: 0.25;
    }
  }
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
@media screen and (max-width: 768px) {
  .scroll-top {
    bottom: 5%;
    right: 5%;
    a::before {
      display: none;
    }
  }
}
