@charset "UTF-8";

:root {
  --color-wine: #892d30;
  --color-gold: #a28e3a;
  --color-gray: #787c7f;
  --color-white: #fff;
}

/* common */
* {
  background: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: unset;
  list-style: none;
  border: none;
}

html {
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  /* value min 16px - max 24px | viewport 375px - 1440px */
  font-size: clamp(1rem, 0.824rem + 0.75vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: var(--num-96);
}

body {
  background: var(--color-white);
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--color-gray);
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  text-spacing-trim: trim-auto;
  /* font-feature-settings: "palt"; */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  position: relative;
}

body:has(#gnav-checkbox:checked) {
  overflow: hidden;
}
body:has([popover]:popover-open) {
  pointer-events: none;
  overflow: hidden;
}
[popover]:popover-open {
  pointer-events: auto;
}

img {
  width: inherit;
  height: auto;
  max-width: 100%;
  display: block;
}

a {
  transition: all 0.3s;
  &:hover {
    opacity: 0.8;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadein-down {
  from {
    opacity: 0;
    translate: 0 -20px;
  }
  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes fadein-slide {
  from {
    opacity: 0;
    translate: -20px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

#header {
  position: fixed;
  top: 0;
  display: flex;
  z-index: 10;
  width: 100%;
  animation: fadein-down 0.5s ease-out;
  align-items: center;
  @media (width >= 768px) {
    align-items: start;
  }
  .site-title {
    margin: 1rem auto 0 1rem;
    width: 30.76%;
    max-width: 177px;
    img {
      width: 100%;
    }
    @media (width >= 768px) {
      margin: 1rem auto 0 1.67rem;
    }
  }
  .icn-shopping {
    position: absolute;
    right: 0;
    top: 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    @media (width >= 768px) {
      display: none;
    }
  }
}

/* Navigation */
#gnav {
  gap: 1rem;
  align-items: center;
  /* ハンバーガーメニュークローズ */
  display: none;
  /* ハンバーガーメニューオープン */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100vw;
  /* height: calc(100dvh - var(--num-114)); */
  height: 100dvh;
  background: var(--color-gray);
  @media (width >= 768px) {
    display: flex;
    position: unset;
    width: unset;
    height: unset;
    background: none;
    color: inherit;
  }
  a {
    padding: 1rem;
    display: block;
    &.official-store {
      margin-top: 0.5rem;
      padding: 0.8rem 1rem 1.1rem;
      background: var(--color-gold);
      display: block;
      border-radius: 0.5rem;
      @media (width >= 768px) {
        margin-top: 0;
        border-radius: 0 0 0 0.67rem;
      }
    }
    img {
      filter: drop-shadow(0 0 4px var(--color-gray));
    }
  }
}
#gnav-checkbox:checked ~ #gnav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#gnav-toggle {
  width: 64px;
  height: 64px;
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1010;
  div {
    background: var(--color-gray);
    border-radius: 2px;
    width: 32px;
    height: 2px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    transform-origin: center center;
    transition: all 0.3s;
    &:nth-of-type(1) {
      translate: -50% calc((50% + 10px) * -1);
    }
    &:nth-of-type(3) {
      translate: -50% calc((50% + 8px));
    }
  }
}
#gnav-checkbox {
  display: none;
  &:checked ~ #gnav-toggle {
    background: none;
    div {
      background: var(--color-white);
      &:nth-of-type(1) {
        width: 24px;
        translate: -50% -50%;
        rotate: 45deg;
      }
      &:nth-of-type(2) {
        display: none;
      }
      &:nth-of-type(3) {
        width: 24px;
        translate: -50% -50%;
        rotate: -45deg;
      }
    }
  }
}
@media (width >= 768px) {
  #gnav-toggle,
  #gnav-checkbox {
    display: none;
  }
}

.sec {
  padding: 2.5rem;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  @media (width >= 768px) {
    padding: 6.67rem;
  }
}

.sec-title {
  width: 0.5rem;
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  z-index: 10;
  @media (width >= 768px) {
    width: 0.67rem;
    top: 3rem;
    left: 1.67rem;
  }
}

#kv {
  position: relative;
  width: 100vw;
  height: 100svh;
  .kv-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 16.4%;
    opacity: 0;
    animation: fadein-slide 0.5s ease-out 1s forwards;
    @media (width >= 960px) {
      bottom: 50%;
      left: 1.67rem;
      width: 29.4%;
    }
    img {
      width: 100%;
    }
  }
  .kv-img {
    width: 100%;
    animation: fadein 0.5s ease-out;
    img {
      width: 100vw;
      height: 100svh;
      object-fit: cover;
    }
  }
  .kv-mg {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 24.6%;
    opacity: 0;
    animation: fadein-slide 0.5s ease-out 1s forwards;
    @media (width >= 960px) {
      bottom: 1.58rem;
      right: 1.58rem;
      width: 14%;
    }
    img {
      width: 100%;
    }
  }
}

#philosophy {
  .line {
    margin-block: 2.5rem;
    height: 1px;
    background: var(--color-gray);
    @media (width >= 768px) {
      margin-block: 3rem;
      width: 45%;
    }
  }
  p + p {
    margin-top: 1em;
  }
  .en {
    color: var(--color-wine);
    font-family: "Noto Serif JP", serif;
  }
  .ja {
    margin-top: 3rem;
    font-size: 0.75rem;
    @media (width >= 768px) {
      font-size: 0.67rem;
    }
  }
  .en,
  .ja {
    letter-spacing: 0.03em;
  }
  .philosophy-area {
    width: 100%;
    position: relative;
    aspect-ratio: 1 / 2.17;
    @media (width >= 768px) {
      aspect-ratio: 1 / 1.058;
    }
    .title {
      position: absolute;
      bottom: 10%;
      z-index: 1;
      img {
        width: 64%;
      }
      @media (width >= 768px) {
        position: unset;
        width: 42.8%;
        aspect-ratio: 1 / 1.13;
        display: grid;
        place-items: center;
        img {
          width: 50.83%;
        }
      }
    }
    .img {
      @media (width >= 768px) {
        width: 57.1%;
        position: absolute;
        top: 0;
        right: 0;
      }
      img {
        width: 100%;
      }
    }
    .text {
      position: absolute;
      right: -1.25rem;
      bottom: 0;
      width: 79.35%;
      z-index: -1;
      @media (width >= 768px) {
        width: 57.1%;
        right: unset;
        left: 0;
      }
      img {
        width: 100%;
      }
    }
  }
}

#items {
  background: var(--color-gray);
  color: var(--color-white);
  .items-list {
    margin-inline: -2.5rem;
    padding-inline: 2.5rem;
    display: flex;
    gap: 2.5rem;
    overflow-y: scroll;
    @media (width >= 768px) {
      margin-inline: none;
      padding-inline: none;
      gap: 6.67rem;
    }
  }
  .item {
    text-align: center;
    min-width: 240px;
  }
  .btn {
    margin: 1.67rem auto 0;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-white);
    border-radius: 9999px;
    position: relative;
    display: block;
    max-width: 200px;
    @media (width >= 768px) {
      font-size: 0.67rem;
      max-width: 240px;
    }
    &::after {
      content: "";
      width: 0.4rem;
      height: 0.4rem;
      background: transparent;
      border: 1px solid transparent;
      border-top-color: var(--color-white);
      border-right-color: var(--color-white);
      rotate: 45deg;
      display: block;
      position: absolute;
      top: 50%;
      right: 0.75rem;
      translate: 0 -50%;
    }
    &:hover {
      background: var(--color-white);
      color: var(--color-gray);
      &::after {
        border-top-color: var(--color-gray);
        border-right-color: var(--color-gray);
      }
    }
  }
}

.swiper-container {
  margin-inline: -2.5rem;
  margin-bottom: 2rem;
  @media (width >= 768px) {
    margin-inline: 0;
    margin-bottom: 0;
  }
}
.swiper-slide {
  width: auto; /* 中央寄せや可変幅スライドのため */
  display: inline-block; /* list-item のブロック特性を消す */
  img {
    max-height: calc(100dvh - 2.5rem * 2);
    @media (width >= 768px) {
      max-height: calc(100dvh - 6.67rem * 2);
    }
  }
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: unset;
}
.swiper-pagination-bullet-active {
  background: var(--color-gold);
}
.swiper-pagination-bullet {
  margin-inline: 0.5rem !important;
  width: 6px;
  height: 6px;
  @media (width >= 768px) {
    width: 8px;
    height: 8px;
  }
}
.swiper-pagination-horizontal {
  margin-top: 1.5rem;
  line-height: 0;
  @media (width >= 768px) {
    margin-top: 1.67rem;
  }
}
.swiper-button-next,
.swiper-button-prev {
  width: 2rem;
  height: 2rem;
  @media (width >= 768px) {
    width: 3.33rem;
    height: 3.33rem;
  }
  svg {
    display: none;
  }
  &::before {
    @media (width >= 768px) {
      content: "";
      width: 3.33rem;
      height: 3.33rem;
      display: block;
      border: 1px solid var(--color-gray);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      transition: all 0.3s;
    }
  }
  &::after {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border: 1px solid var(--color-gray);
    border-top-color: transparent;
    border-left-color: transparent;
    display: block;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
  }
  &:hover {
    &::before {
      background: var(--color-white);
    }
  }
}
.swiper-button-next {
  @media (width >= 768px) {
    right: 1rem !important;
  }
  &::after {
    rotate: -45deg;
    translate: -0.2rem -50%;
  }
}
.swiper-button-prev {
  @media (width >= 768px) {
    left: 1rem !important;
  }
  &::after {
    rotate: 135deg;
    translate: 0.2rem -50%;
  }
}

#link {
  background: #333;
  .link-list {
    padding-block: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    @media (width >= 768px) {
      padding-block: 0;
      flex-direction: row;
      justify-content: space-evenly;
    }
    .link {
      scale: 0.8;
      @media (width >= 768px) {
        scale: 1;
      }
      img {
        width: 100%;
      }
    }
  }
}

#footer {
  padding: 2rem;
  text-align: center;
  @media (width >= 768px) {
    padding: 2.5rem;
  }
  #copyright {
    letter-spacing: 0.03em;
    font-size: 0.625rem;
    @media (width >= 768px) {
      font-size: 0.583rem;
    }
  }
}
