/* ==========================================================================
   Top
   ========================================================================== */

/* --------------------------------------------------------------------------
   FV(SP〜)
   -------------------------------------------------------------------------- */
.p-top-fv {
  position: relative;
  /*padding: 10px 20px 0;*/
  padding: 10px 0 0;
}

.p-top-fv__inner {
  position: relative;
}

.p-top-fv__img img {
  width: 100%;
  /*border-radius: var(--radius-20);*/
}

.p-top-fv__catch {
  position: relative;
  z-index: 2;
  margin-top: -24.3px;
}

.p-top-fv__sub {
  display: flex;
  align-items: center;
  /*width: 141px;*/
  width: 150px;
  height: 42px;
  margin-left: -20px;
  /*padding-left: 35px;*/
  padding-left: 45px;
  font-family: var(--font-ttl);
  font-size: 2.2rem;
  font-weight: var(--fw-ttl);
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-white);
  background-color: var(--color-lime);
  border-radius: 0 var(--radius-50) var(--radius-50) 0;
}

.p-top-fv__main {
  margin-top: 10.5px;
  /*padding-left: 11.25px;*/
  padding-left: 20px;
  font-family: var(--font-ttl);
  font-size: min(3.8rem, calc(100vw * 38 / 393));
  font-weight: var(--fw-ttl);
  line-height: 53px;
  letter-spacing: 0;
  color: var(--color-key);
}

.p-top-fv__main span {
  display: block;
  white-space: nowrap;
}

/* 葉の装飾 */
.p-top-fv__leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.p-top-fv__leaf--left {
  /*top: 639.9px;*/
  top: 529.9px;
  left: 0;
  width: 120px;
}

.p-top-fv__leaf--right {
  top: 327.4px;
  /*top: 427.4px;*/
  right: 0;
  width: 125.5px;
}

/* --------------------------------------------------------------------------
   About(SP〜)
   -------------------------------------------------------------------------- */
.p-top-about {
  margin-top: 62.5px;
  padding-inline: 20px;
}

/* FVの葉(leaf_left_a)より前面に表示 */
.p-top-about__img {
  position: relative;
  z-index: 2;
}

.p-top-about__img img {
  width: 100%;
  aspect-ratio: 353 / 225;
  object-fit: cover;
  border-radius: var(--radius-20);
}

.p-top-about__body {
  margin-top: 25px;
  position: relative;
  z-index: 2;
}

.p-top-about__sub {
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--color-key);
}

.p-top-about__ttl {
  margin-top: 8.5px;
  font-family: var(--font-ttl);
  font-size: var(--fs-ttl);
  font-weight: var(--fw-ttl);
  line-height: var(--lh-ttl);
  letter-spacing: var(--ls-ttl);
  color: var(--color-brown);
}

.p-top-about__text {
  margin-top: 25px;
}

.p-top-about__btn {
  margin: 40px auto 0;
}

/* --------------------------------------------------------------------------
   PC(768px〜)
   FVのキャッチは1440px時のFigmaの値を上限に、写真の幅に合わせて縮小する
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .p-top-fv {
    /* 1u = FV写真幅1340px時の1px(写真の幅に比例して縮小) */
    --u: min(1px, calc((100vw - 100px) / 1340));

    padding: 10px 50px 0;
  }

  .p-top-fv__img img {
    border-radius: var(--radius-30);
  }

  .p-top-fv__catch {
    position: absolute;
    top: calc(346 / 720 * 100%);
    left: calc(715 / 1340 * 100%);
    margin-top: 0;
  }

  .p-top-fv__sub {
    display: inline-flex;
    width: auto;
    height: calc(70 * var(--u));
    margin-left: 0;
    padding: 0 calc(25 * var(--u));
    font-size: calc(35 * var(--u));
    border-radius: var(--radius-50);
  }

  .p-top-fv__main {
    margin-top: calc(15 * var(--u));
    padding-left: 0;
    font-size: calc(65 * var(--u));
    line-height: 1;
  }

  .p-top-fv__main span {
    display: flex;
    align-items: center;
    height: calc(100 * var(--u));
    padding-left: calc(26.33 * var(--u));
    white-space: nowrap;
    background-color: rgb(255 255 255 / 80%);
    border-radius: var(--radius-10);
  }

  .p-top-fv__main span:nth-child(1) {
    width: calc(411 * var(--u));
  }

  .p-top-fv__main span:nth-child(2) {
    width: calc(594 * var(--u));
    margin-top: calc(8 * var(--u));
  }

  /* FV写真の下端を基準に配置 */
  .p-top-fv__leaf--left {
    top: calc(100% - 53px);
    width: 291px;
  }

  .p-top-fv__leaf--right {
    top: calc(100% - 67.2px);
    width: 318px;
  }

  /* About */
  .p-top-about {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 139px;
    padding: 0;
  }

  .p-top-about__img {
    flex: 0 0 calc(726.3 / 1440 * 100%);
  }

  .p-top-about__img img {
    aspect-ratio: 726.3 / 460;
    border-radius: 0 var(--radius-30) var(--radius-30) 0;
  }

  .p-top-about__body {
    flex: 0 1 452px;
    margin-top: 0;
    padding-right: 20px;
  }

  .p-top-about__sub {
    font-size: 1.8rem;
  }

  .p-top-about__ttl {
    margin-top: 15px;
  }

  .p-top-about__btn {
    margin: 30px 0 0;
  }
}

@media (min-width: 1280px) {
  .p-top-fv {
    padding-top: 100px;
  }
}

/* --------------------------------------------------------------------------
   Concept(SP〜)
   -------------------------------------------------------------------------- */
.p-top-concept {
  margin-top: 60px;
  padding: 110px 20px 104px;
  color: var(--color-white);
  background: url("../img/top/sp/bg.jpg") no-repeat center / cover;
}

.p-top-concept .c-ttl__ja {
  margin-top: 10px;
}

.p-top-concept__text {
  max-width: 780px;
  margin: 45px auto 0;
}

/* --------------------------------------------------------------------------
   Service(SP〜)
   -------------------------------------------------------------------------- */
.p-top-service {
  position: relative;
  padding: 80px 20px 0;
}

.p-top-service > :not(.p-top-service__leaf) {
  position: relative;
  z-index: 1;
}

.p-top-service__leaf {
  position: absolute;
  top: 0;
  right: 0;
  width: 246px;
  pointer-events: none;
  opacity: 0.6;
}

.p-top-service .c-service-list {
  margin-top: 35px;
}

/* --------------------------------------------------------------------------
   Concept / Service(PC 768px〜)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .p-top-concept {
    margin-top: 90px;
    padding: 118.7px 20px 139.7px;
    background-image: url("../img/top/section_concept.jpg");
  }

  .p-top-concept .c-ttl__ja {
    margin-top: 12.6px;
  }

  .p-top-concept__text {
    margin-top: 42.7px;
  }

  .p-top-service {
    padding-top: 70px;
  }

  .p-top-service__leaf {
    width: 471px;
  }

  .p-top-service .c-service-list {
    margin-top: 40px;
  }
}

/* --------------------------------------------------------------------------
   News(SP〜)
   -------------------------------------------------------------------------- */
.p-top-news {
  position: relative;
  padding: 80px 20px 0;
}

.p-top-news > :not(.p-top-news__leaf) {
  position: relative;
  z-index: 1;
}

/* ボタン下端を基準に配置 */
.p-top-news__leaf {
  position: absolute;
  top: calc(100% - 49px);
  left: 0;
  width: 246px;
  pointer-events: none;
  opacity: 0.6;
}

.p-top-news .c-news-list,
.p-top-news .c-news-empty {
  margin-top: 30px;
}

.p-top-news__btn {
  width: 260px;
  margin: 40px auto 0;
}

/* --------------------------------------------------------------------------
   Access(SP〜)
   -------------------------------------------------------------------------- */
.p-top-access {
  margin-top: 235px;
  padding: 0 20px 145px;
}

.p-top-access .c-ttl {
  text-align: center;
}

.p-top-access__table {
  margin-top: 25px;
  border-bottom: 1px solid #919191;
}

.p-top-access__row {
  padding: 20px 0 19px;
  font-size: 1.6rem;
  line-height: 1;
  border-top: 1px solid #919191;
}

.p-top-access__row dt {
  font-weight: var(--fw-bold);
}

.p-top-access__row dd {
  margin: 12px 0 0;
}

.p-top-access__map {
  margin-top: 35px;
}

.p-top-access__map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 353 / 215;
}

.p-top-access__btn {
  width: 230px;
  margin: 30px auto 0;
}

/* --------------------------------------------------------------------------
   News / Access(PC 768px〜)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .p-top-news {
    padding-top: 134px;
  }

  .p-top-news__leaf {
    top: calc(100% - 275.75px);
    width: 501.5px;
  }

  .p-top-news .c-news-list,
  .p-top-news .c-news-empty {
    margin-top: 35px;
  }

  .p-top-news__btn {
    margin-top: 35px;
  }

  .p-top-access {
    margin-top: 275.7px;
    padding-bottom: 96px;
  }

  .p-top-access__info,
  .p-top-access__map {
    max-width: 728px;
    margin-inline: auto;
  }

  .p-top-access__table {
    margin-top: 30px;
  }

  .p-top-access__row {
    display: flex;
    align-items: center;
    height: 68px;
    padding: 0 0 0 15px;
    font-size: 1.8rem;
  }

  .p-top-access__row dt {
    flex-shrink: 0;
    width: 103.25px;
    font-weight: var(--fw-medium);
  }

  .p-top-access__row dd {
    margin: 0;
  }

  .p-top-access__map iframe {
    aspect-ratio: 490 / 300;
  }

  .p-top-access__btn {
    margin-top: 20px;
  }
}

/* Access: 横並び(1024px〜) */
@media (min-width: 1024px) {
  .p-top-access {
    display: flex;
    justify-content: center;
    gap: 60px;
  }

  .p-top-access .c-ttl {
    text-align: left;
  }

  .p-top-access__info {
    flex: 0 1 430px;
    margin: 0;
  }

  .p-top-access__map {
    flex: 0 1 490px;
    margin: 0;
  }
}
