/*=========================
  Common
=========================*/
/* font import */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDMincho:wght@400;700&display=swap');
.font-biz-regular {
  font-family: 'BIZ UDMincho', serif;
  font-weight: 400;
  font-style: normal;
}
.font-biz-bold {
  font-family: 'BIZ UDMincho', serif;
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Palatino Linotype';
  src: url(../font/pala.ttf) format('truetype');
}
.font-palatino {
  font-family: 'Palatino Linotype';
}
@font-face {
  font-family: 'Times New Roman';
  src: url(../font/times.ttf) format('truetype');
}
.font-times {
  font-family: 'Times New Roman';
}

/* color */
:root {
  --gold: #ab903c;
  --black: #040f1e;
  /* --gradient: linear-gradient(90deg, #ab903c 10%, #fee9a0 50%, #ab903c 90%); */
  --gradient: linear-gradient(to right, #ab903c 0%, #ab903c 9%, #b29845 15%, #c6ac5d 25%, #eed88e 43%, #f8e299 49%, #fee9a0 56%, #fee9a0 61%, #fae59c 66%, #ecd68b 75%, #d9c175 84%, #c0a757 89%, #b09643 94%, #ab8f3c 97%, #ab903c 100%);
}

.color-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.color-gold {
  color: var(--gold);
}

html {
  scroll-behavior: smooth;
  /* scroll-padding-top: 100px;  */
}
@media screen and (max-width: 960px) {
  html {
    scroll-padding-top: 70px;
  }
}
body {
  font-family: 'BIZ UDMincho', serif;
  color: #333333;
  max-width: 1920px;
  margin: auto;
  position: relative;
}
a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
  &:hover {
    opacity: 0.75;
  }
}

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

.pc-only {
  display: initial;
}
.sp-only {
  display: none;
}
@media screen and (max-width: 960px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: initial;
  }
}

/* button */
.button {
  /* background: var(--main); */
  /* color: #fff; */
  padding: 0.5rem 1rem;
  width: fit-content;
  /* margin: 0 auto; */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* font-size: 1.25rem; */
  /* font-weight: bold; */
  position: relative;
  .icon {
    margin-right: 0.5rem;
  }
}
.button::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.button:hover {
  opacity: 1;
}
.button:hover::before {
  opacity: 0.25;
}

/*=========================
  header
=========================*/
header {
  position: absolute;
  z-index: 99;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  .logo h1 {
    display: flex;
    flex-direction: column;
    padding: 1rem 0 0 1rem;
    .jp {
      position: relative;
      font-size: 2.5rem;
      font-weight: normal;
      text-shadow: 0px 2px 6px rgb(0 0 0 / 0.2);
      &::before {
        position: absolute;
        z-index: 1;
        content: '株式会社 プロスパーアイ';
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    .en {
      /* color: var(--gold); */
      font-size: 2rem;
      font-weight: normal;
      text-shadow: 0px 3px 4px rgb(0 0 0 / 0.5);
    }
  }
  .buttons {
    display: flex;
    .button {
      padding: 0.5rem 1.25rem;
      .icon {
        width: 25px;
        margin-right: 0.75rem;
      }
    }
    .tel {
      background-color: var(--black);
      font-size: 2rem;
      color: var(--gold);
    }
    .mail {
      background-color: #ab903c;
      background: var(--gradient);
      font-size: 1.25rem;
      margin: 0;
    }
  }
  .sp-hamburger {
    display: none;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
    width: min(15vw, 70px);
    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%;
      transform: rotate(-45deg);
    }
    .line:nth-child(2) {
      opacity: 0;
    }
    .line:nth-child(3) {
      position: absolute;
      top: 50%;
      bottom: 50%;
      width: 40%;
      transform: rotate(45deg);
    }
  }
  .sp-nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -120%;
    width: 80vw;
    height: 100vh;
    background-color: var(--black);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    .nav-links {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3rem;
      .nav-links__item {
        font-size: 1.2rem;
      }
    }
  }
  .sp-nav.active {
    right: 0;
  }
  .overlay {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.75;
  }
  .overlay.active {
    display: block;
  }
}
body.no-scroll {
  overflow: hidden;
  height: 100%;
}
@media screen and (max-width: 960px) {
  header {
    height: 70px;
    align-items: center;
    position: fixed;
    background-color: var(--black);
    .logo h1 {
      padding: 0.5rem;
      .jp {
        font-size: clamp(1.1rem, 1.025rem + 0.375vw, 1.25rem);
      }
      .en {
        font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
      }
    }
    .buttons {
      display: none;
    }
    .sp-hamburger {
      display: flex;
    }
  }
}

/*=========================
  mv
=========================*/
section.mv {
  position: relative;
  .splide {
    .splide__track {
    }
    .splide__list {
    }
    .splide__slide {
      img {
        min-height: 580px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 7s 1s ease-out;
        transform: scale(1.1);
      }
      &.is-active img {
        transition-delay: 0s;
        transform: scale(1.05);
      }
    }
  }
  .copy {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 90%;
    text-align: center;
    font-size: clamp(1.75rem, 0.4763rem + 2.103vw, 3rem);
    line-height: 1.5;
    text-shadow: 0px 0px 2px #ffffff, 0px 0px 4px #ffffff, 0px 0px 6px #ffffff, 0px 0px 8px #ffffff, 0px 0px 8px #ffffff, 0px 0px 10px #ffffff;
  }
}
@media screen and (max-width: 960px) {
  section.mv {
    margin-top: 70px;
    .splide {
      .splide__track {
      }
      .splide__list {
      }
      .splide__slide {
        img {
          min-height: 460px;
        }
        .img03 {
          object-position: 65% 50%;
        }
      }
    }
    .copy {
      top: 60%;
      font-size: clamp(1.25rem, 0.875rem + 1.875vw, 2rem);
    }
  }
}

/*=========================
  global nav
=========================*/
section.grobal-nav {
  .pc-nav {
    background: var(--gradient);
    color: #333333;
    position: relative;
    &::before {
      position: absolute;
      top: -20px;
      left: 0;
      right: 0;
      content: '';
      width: 100%;
      height: 10px;
      background: var(--gradient);
    }
    .nav-links {
      height: 90px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      .nav-links__item a {
        font-size: 1.2rem;
        position: relative;
        &::before {
          position: absolute;
          left: 50%;
          bottom: -100%;
          translate: -50% -0%;
          content: '';
          clip-path: polygon(100% 0, 0 0, 49% 100%);
          width: 20px;
          height: 12px;
          background-color: #333333;
          opacity: 0;
          transition: 0.5s;
        }
        &:hover::before {
          opacity: 1;
        }
        &:hover {
          opacity: 1;
        }
      }
    }
  }
}
@media screen and (max-width: 960px) {
  section.grobal-nav {
    .pc-nav {
      display: none;
    }
  }
}

/*=========================
  news
=========================*/
section.news {
  padding: 5rem 0;
  background-color: var(--black);
  color: #ffffff;
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
  }
  .section-title {
    width: max-content;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    h2 {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      flex-direction: column;
      .en {
        font-size: 3.5rem;
        font-weight: normal;
        line-height: 1;
      }
      .jp {
        font-size: 1.5rem;
        font-weight: normal;
      }
    }
  }
  .section-body {
    box-shadow: -10px 10px 0 #ffffff;
    border: 1px solid #ffffff;
    padding: 2rem;
  }
  .news-items {
    width: 100%;
    height: 100%;
    max-height: 400px;
    overflow-y: auto;
    .news-item {
      width: 100%;
      display: flex;
      gap: 2rem;
      margin-bottom: 2rem;
      &:last-of-type {
        margin-bottom: 0;
      }
      .date {
        width: max-content;
      }
      .text {
        /* width: 80%; */
      }
    }
  }
}
@media screen and (max-width: 960px) {
  section.news {
    .container {
      flex-direction: column;
      gap: 2rem;
    }
    .section-title {
      margin: 0 auto;
      h2 {
        align-items: center;
        .en {
          font-size: 2.5rem;
        }
        .jp {
          font-size: 1.25rem;
        }
      }
    }
    .section-body {
      padding: 1rem;
    }
    .news-items {
      .news-item {
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 2rem;
        font-size: 0.9rem;
      }
    }
  }
}

/*=========================
  greeting
=========================*/
section.greeting {
  background: url(../img/greeting-bg.jpg) no-repeat;
  background-size: cover;
  padding: 5rem 0;
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  .section-title {
    margin-bottom: 1rem;
    h2 {
      width: fit-content;
      display: flex;
      flex-direction: column;
      /* align-items: flex-end; */
    }
    .en {
      width: fit-content;
      font-size: 3rem;
      font-weight: normal;
      line-height: 1;
    }
    .jp {
      font-size: 1.75rem;
      font-weight: normal;
      line-height: 1;
    }
  }
  .textbox {
    width: 90%;
    max-width: 900px;
    margin: auto;
    background-color: #ffffff;
    padding: 2rem;
  }
}
@media screen and (max-width: 960px) {
  section.greeting {
    .section-title {
      margin-bottom: 2rem;
      h2 {
        margin: 0 auto;
        text-align: center;
        .en {
          font-size: 2.5rem;
        }
        .jp {
          font-size: 1.25rem;
        }
      }
    }
    .textbox {
      width: 100%;
      padding: 1rem;
    }
  }
}

/*=========================
  business
=========================*/
section.business {
  padding: 8rem 0;
  background-color: var(--black);
  color: #ffffff;
  .section-title {
    text-align: center;
    margin-bottom: 8rem;
    .en {
      width: fit-content;
      font-size: 3rem;
      font-weight: normal;
      line-height: 1;
    }
    .jp {
      font-size: 1.75rem;
      font-weight: normal;
      line-height: 1;
    }
  }
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  .business-item {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 8rem;
    .img {
      width: 50%;
    }
    .text {
      width: 50%;
      .title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        &::before {
          content: '';
          width: 8px;
          height: 35px;
          background-color: var(--gold);
          display: inline-block;
          margin-right: 1rem;
        }
      }
    }
    &:nth-of-type(2n) {
      flex-direction: row-reverse;
    }
    &:last-of-type {
      margin-bottom: 3rem;
    }
  }
}
@media screen and (max-width: 960px) {
  section.business {
    padding: 5rem 0;
    .section-title {
      margin-bottom: 2rem;
      h2 {
        .en {
          font-size: 2.5rem;
        }
        .jp {
          font-size: 1.25rem;
        }
      }
    }
    .business-item {
      flex-direction: column-reverse;
      &:nth-of-type(2n) {
        flex-direction: column-reverse;
      }
      .img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
      }
      .text {
        width: 100%;
      }
    }
  }
}

/*=========================
  properties
=========================*/
section.list-of-properties {
  background-color: #ffffff;
  padding: 5rem 0 8rem;
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  .section-title {
    margin-bottom: 4rem;
    .en {
      font-size: 3rem;
      font-weight: normal;
      line-height: 1;
      border-bottom: 1px solid var(--gold);
      padding-bottom: 4px;
      margin-bottom: 1rem;
    }
    .jp {
      font-size: 1.75rem;
      font-weight: normal;
      line-height: 1;
      margin-left: 20%;
    }
  }
  /* 準備中表示 */
  .coming-soon {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 100px;
  }
  .property-list {
    display: none !important;
  }

  .property-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    column-gap: 2rem;
    row-gap: 3rem;
    .property {
      border: 1px solid var(--black);
      padding: 1rem;
      .img {
        position: relative;
        background-color: #ccc;
        aspect-ratio: 4/3;
        width: 100%;
        margin-bottom: 0.5rem;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
        .tag {
          position: absolute;
          top: 0;
          left: 0;
          background-color: #0092e5;
          color: #ffffff;
          padding: 0.25rem 0.5rem;
          font-size: 0.9rem;
          font-family: sans-serif;
          font-weight: 500;
        }
      }
      .title {
        font-size: 1.25rem;
        line-height: 1;
        margin-bottom: 0.5rem;
      }
      .body {
        line-height: 1.8;
      }
    }
  }
}
@media screen and (max-width: 960px) {
  section.list-of-properties {
    .section-title {
      h2 {
        .en {
          font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
          text-align: center;
        }
        .jp {
          font-size: 1.25rem;
          text-align: center;
          margin: 0;
        }
      }
    }
    .property-list {
      display: grid;
      grid-template-columns: 100%;
      .property {
        width: 100%;
        display: grid;
        padding: 1rem;
        grid-template-columns: 40% auto;
        grid-template-rows: auto;
        column-gap: 1rem;
        .title {
          grid-column: 1/3;
          grid-row: 1/2;
          margin-bottom: 1rem;
          font-size: 1.2rem;
        }
        .img {
          grid-column: 1/2;
          grid-row: 2/3;
          aspect-ratio: 1/1;
          .tag {
            font-size: 0.7rem;
          }
        }
        .body {
          grid-column: 2/3;
          grid-row: 2/3;
        }
      }
    }
  }
}

/*=========================
  company
=========================*/
section.company {
  padding: 8rem 0;
  background-color: var(--black);
  color: #ffffff;
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  .section-title {
    margin-bottom: 4rem;
    h2 {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
    .en {
      font-size: 3rem;
      font-weight: normal;
      line-height: 1;
      margin-bottom: 1rem;
    }
    .jp {
      font-size: 1.75rem;
      font-weight: normal;
      line-height: 1;
    }
  }
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    .map {
      width: 50%;
      .wrapper {
        width: 100%;
        aspect-ratio: 4/3;
      }
      iframe {
        width: 100%;
        height: 100%;
      }
    }
    .info {
      width: 50%;
      .table {
        .row {
          display: flex;
          border-bottom: 1px solid #ffffff;
          padding-bottom: 0.5rem;
          margin-bottom: 1rem;
          .th {
            width: 30%;
          }
          .td {
            width: 70%;
          }
        }
      }
    }
  }
}
@media screen and (max-width: 960px) {
  section.company {
    padding: 5rem 0;
    .section-title {
      h2 {
        .en {
          font-size: 2.5rem;
        }
        .jp {
          font-size: 1.25rem;
        }
      }
    }
    .flex {
      flex-direction: column-reverse;
      .info {
        width: 100%;
        .table {
          font-size: 0.9rem;
          .row {
            flex-direction: column;
            .th,
            .td {
              width: 100%;
            }
          }
        }
      }
      .map {
        width: 100vw;
        max-width: 600px;
        margin: 0 -5%;
      }
    }
  }
}

/*=========================
  parallax
=========================*/
section.parallax {
  width: 100%;
  height: 600px;
  /* aspect-ratio: 1920/800; */
  &::before {
    background-image: url(../img/parallax.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: -1;
  }
}
@media screen and (max-width: 960px) {
  section.parallax {
    height: 320px;
  }
}

/*=========================
  contact
=========================*/
section.contact {
  padding: 5rem 0;
  background-color: var(--black);
  color: #ffffff;
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  .section-title {
    margin-bottom: 4rem;
    h2 {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
    .en {
      font-size: 3rem;
      font-weight: normal;
      line-height: 1;
    }
    .jp {
      font-size: 1.75rem;
      font-weight: normal;
      line-height: 1;
    }
  }
  .flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
    .flex-left {
      width: 50%;
      .text {
        text-align: center;
        margin-bottom: 4rem;
      }
      .tel {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        .icon {
          margin-right: 0.5rem;
          width: 36px;
        }
      }
      .fax {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.75rem;
        .icon {
          margin-right: 0.5rem;
          width: 26px;
        }
      }
    }
    .flex-right {
      width: 50%;
      .red {
        color: red;
        font-size: 0.75rem;
      }
      .form-item {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
        .label-area {
          width: 40%;
        }
        .input-area {
          width: 60%;
          & input:not([type='radio']),
          & textarea {
            width: 100%;
            border-radius: 5px;
            padding: 0.25rem;
          }
        }
      }
      .button {
        margin: 0 auto;
        padding: 0.5rem 3rem;
        background-color: var(--gold);
        color: #ffffff;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: normal;
        transition: 0.3s;
        outline: none;
        border: none;
        &:hover {
          opacity: 0.75;
        }
      }
    }
  }
}
@media screen and (max-width: 960px) {
  section.contact {
    .section-title {
      margin-bottom: 3rem;
      .en {
        font-size: 2.5rem;
      }
      .jp {
        font-size: 1.25rem;
      }
    }
    .flex {
      flex-direction: column;
      .flex-left {
        width: 100%;
        .text {
          margin-bottom: 3rem;
        }
        .tel {
          font-size: 2rem;
          .icon {
            width: 26px;
          }
        }
        .fax {
          font-size: 1.5rem;
          .icon {
            width: 20px;
          }
        }
      }
      .flex-right {
        width: 100%;
        .form-item {
          flex-direction: column;
          gap: 0.25rem;
          .label-area {
            width: 100%;
          }
          .input-area {
            width: 100%;
          }
        }
      }
    }
  }
}

/*=========================
  footer
=========================*/
footer {
  background: url(../img/footer-bg.jpg) no-repeat;
  background-size: cover;
  padding: 5rem 0;
  .company-name {
    text-align: center;
    margin-bottom: 3rem;
    .jp {
      margin-bottom: 0.5rem;
      color: var(--gold);
      font-size: 2.5rem;
      font-weight: normal;
      position: relative;
      &::before {
        position: absolute;
        z-index: 1;
        content: '株式会社 プロスパーアイ';
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    .en {
      font-size: 2rem;
      font-weight: normal;
    }
  }
  .footer-nav {
    .nav-links {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      .nav-links__item a {
        font-size: 1rem;
        position: relative;
      }
    }
  }
}
@media screen and (max-width: 960px) {
  footer {
    .company-name {
      .jp {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
      }
      .en {
        font-size: 1rem;
      }
    }
    .footer-nav {
      width: 90%;
      margin: auto;
      .nav-links {
        flex-wrap: wrap;
      }
    }
  }
}

.copyright {
  padding: 1.5rem 0;
  background: var(--gradient);
  text-align: center;
  font-size: 0.8rem;
  position: relative;
  &::before {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    content: '';
    width: 100%;
    height: 10px;
    background: var(--gradient);
  }
}

/* scroll top button */
.scroll-top {
  position: fixed;
  bottom: 5%;
  right: 5%;
  z-index: 99;
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
  a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .block {
      border-radius: 100%;
      width: 70px;
      height: 70px;
      background: var(--gold);
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      position: relative;
      .text {
        position: absolute;
        bottom: 10%;
        left: 20%;
        color: #ffffff;
        font-size: 0.7rem;
        text-align: center;
      }
      .arrow {
        position: absolute;
        top: 20%;
        right: 25%;
        display: block;
        width: 15%;
        height: 50%;
        clip-path: polygon(100% 100%, 90% 100%, 90% 15%, 75% 30%, 70% 20%, 100% 0);
        background: #fff;
      }
    }
  }
  a:hover {
    opacity: 1;
  }
  a::before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  a:hover::before {
    opacity: 0.25;
  }
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
@media screen and (max-width: 960px) {
  .scroll-top {
    bottom: 5%;
    right: 5%;
  }
}
