@import url(common.css);
@import url("https://unpkg.com/scroll-hint@latest/css/scroll-hint.css");

.hero {
  padding: 0 5vw;
  position: relative;
  .swiper {
    height: calc(100vmin - var(--header-h));
    overflow: hidden;
    filter: contrast(0.9), opacity(.9);
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  h1 {
    position: absolute;
    inset: auto auto 4vw 10vw;
    z-index: 5;
    color: #fff;
    font-weight: 600;
    line-height: 1.6;
    font-size: max(4.4vw, 2.4em);
    align-self: center;
    text-shadow: 0 0 .2em rgba(104, 81, 42, 0.5);
  }
}
.swiper-slide-active img {
  animation: hero-scale 4s ease-out forwards;
}
@keyframes hero-scale {
  from {
    scale: 1.1;
  }
  to {
    scale: 1;
  }
}
.reservation-link {
  position: absolute;
  inset: auto 10vw 5vw auto;
  color: #fff;
  font-weight: 600;
  font-size: var(--fz);
  padding: 1em 1.6em;
  border-radius: 6px;
  background-color: var(--primary-c);
  border: 1px solid transparent;
  z-index: 1;
  transition-property: background-color, border-color;
  transition-duration: 0.4s;
  &:hover {
    background-color: transparent;
    border-color: currentColor;
  }
}

.about {
  .contents {
    display: flex;
    gap: 5vw;
    align-items: center;
  }
  .body {
    flex: 1;
    line-height: 2;
  }
  .img-box {
    width: 50vw;
    margin-left: -5vw;
    border-radius: 0 1em 1em 0;
    overflow: hidden;
    img {
      width: 100%;
      aspect-ratio: 7/5;
      object-fit: cover;
    }
  }
  ~ section {
    padding-top: 0;
  }
}

.specialty {
  display: flex;
  align-items: center;
  gap: 5vw;
  .common-title {
    display: grid;
    order: 1;
    width: 40%;
    aspect-ratio: 1;
    place-items: center;
    place-content: center;
    background-color: var(--bg-c);
    margin-bottom: 0;
    border-radius: 1em;
  }
  .contents {
    flex: 1;
    line-height: 2;
  }
}

.news {
  .contents {
    width: min(100%, 960px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 24% 1fr;
    gap: 1em 5vw;
  }
  .common-title {
    align-items: start;
  }
  ul {
    border-top: 2px solid var(--bg-c);
    grid-area: 1/2/3/3;
  }
  li {
    border-bottom: 2px solid var(--bg-c);
    position: relative;
    &::before {
      position: absolute;
      content: "";
      inset: auto 0 -1px;
      height: 1px;
      background-color: var(--primary-c);
      scale: 0 1;
      transform-origin: right;
      transition: scale 0.8s;
    }
    &:hover {
      &::before {
        scale: 1;
        transform-origin: left;
      }
      article {
        translate: 1em;
      }
    }
  }
  article {
    position: relative;
    display: flex;
    padding-block: 2em;
    transition: translate 0.4s;
    
    h3 {
      flex: 1;
      padding-right: 1.6em;
    }
    .arrow {
      font-variation-settings: "wght" 200;
      align-self: center;
    }
  }
  .link-cover {
    position: absolute;
    inset: 0;
  }
  time {
    width: max(26%, 120px);
  }
  .more-btn {
    grid-area: 2/1/3/2;
    place-self: start;
    margin: 0;
  }
}

/* ========== cursor stalker ========== */

#stalker {
  position: fixed;
  display: grid;
  place-items: center;
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.3);
  aspect-ratio: 8/5;
  pointer-events: none;
  inset: -100px auto auto 0;
  background-position: center;
  background-size: cover;
  translate: 0 0 0;
  transition: translate 0.5s, scale 0.3s;
  z-index: 999;
  scale: 0;
}
@media (hover: hover) {
  .in#stalker {
    scale: 1 1;
  }
}

@media (width < 768px) {
  .hero {
    /* .reservation-link がないときは以下をコメントアウトか0に */
    /* --reserve-h: 60px; */
    /* ↑↑↑ ここまで */

    padding: 0;
    margin-bottom: var(--reserve-h);
    .swiper {
      height: 100vmin;
    }
    h1 {
      inset: auto auto 7vw 5vw;
    }
  }

  .reservation-link {
    inset: auto 0 calc(var(--reserve-h) * -1);
    padding-block: 0;
    height: var(--reserve-h);
    border-radius: 0;
    display: grid;
    place-items: center;
  }

  .about {
    .contents {
      flex-direction: column;
      gap: 30px;
    }
    .img-box {
      width: 95vw;
    }
  }
  .specialty {
    flex-direction: column;
    .common-title {
      order: 0;
      width: 100%;
      aspect-ratio: auto;
      border-radius: 6px;
      padding-block: 1em;
    }
  }
  .news {
    .contents {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .common-title {
      align-items: center;
    }
    article {
      display: grid;
      grid-template-columns: 1fr auto;
      row-gap: .4em;
      h3 {
        grid-area: 2/1/3/2;
      }
      .arrow {
        grid-area: 1/2/3/3;
      }
    }
    time {
      width: auto;
    }
    .more-btn {
      margin: 50px 0 0 auto;
    }
  }
}
