/* =========================================================
   Calme - style.css (依存ライブラリなし)
   slick.css / slick-theme.css / magnific-popup.css は不要
   ========================================================= */

/* フォントは Google Fonts から読み込み (index.html参照) */

/* ---------- リセット・ベース ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
h1 {
  margin-top: 10%;
  filter: invert(1);
}
h2 {
  font-size: 3rem;
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
}
h3 {
  font-size: 1.8rem;
}

/* ---------- ローディングカバー ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(img/cover.webp) center / cover no-repeat;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
header img {
  width: 50%;
  height: auto;
  object-fit: cover;
  animation: blur 1s ease;
}
header .mincho {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  letter-spacing: 0.5rem;
  font-size: 2rem;
  margin-top: 1rem;
  text-align: center;
  animation: blur 1.5s ease;
}
header .mincho span {
  white-space: nowrap;
}

/* ローディング完了までコンテンツを隠す */
main,
.wrapper,
footer,
.hamburger-menu,
#scroll-to-top {
  visibility: hidden;
}
body.loaded main,
body.loaded .wrapper,
body.loaded footer,
body.loaded .hamburger-menu,
body.loaded #scroll-to-top {
  visibility: visible;
}

/* ---------- イントロ ---------- */
#intro {
  text-align: center;
}
#intro .scroll-box {
  padding-top: 2rem;
}
#intro .scroll-box p {
  padding-top: 20px;
  letter-spacing: 1px;
}
#intro .scroll-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}
#intro .scroll-icon::before,
#intro .scroll-icon::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: 15px;
  border-radius: 9999px;
  background: #000;
  transform-origin: 50% calc(100% - 1px);
}
#intro .scroll-icon::before {
  transform: rotate(45deg);
}
#intro .scroll-icon::after {
  transform: rotate(-45deg);
}
@keyframes scroll-iconAnimation {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}
.scroll-icon {
  animation: scroll-iconAnimation 2s infinite;
}

/* ---------- レイアウト ---------- */
.wrapper {
  display: flex;
}
.container-l,
.container-r {
  position: fixed;
  top: 0;
  width: 30%;
  height: 100%;
  background: #333;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  z-index: 1;
}
.container-l {
  left: 0;
}
.container-l ul {
  list-style-type: none;
  padding: 0;
}
.container-l ul li {
  position: relative;
  font-weight: 700;
}
.container-l ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 8% 0;
  position: relative;
  font-size: calc(1rem + 1vw);
}
.container-l ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease-in-out;
}
.container-l ul li a:hover::after {
  width: 100%;
}
.container-l .menu-footer {
  line-height: 2rem;
  padding-bottom: 5%;
  font-size: 1.2rem;
  text-align: right;
}
.container-r {
  right: 0;
}
.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.container-r p {
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(5rem + 2vw);
  animation: blur 4s ease-in-out forwards;
}
.container-r .logomark {
  width: calc(40% + 1vw);
  max-width: 256px;
  height: auto;
  margin: auto 0 0 auto;
  animation: blur 5s ease-in-out forwards;
}
@keyframes blur {
  from {
    filter: blur(10px);
    opacity: 0;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

main,
section {
  display: grid;
  grid-template-columns: 100%;
  grid-auto-rows: auto;
}
main {
  width: 40%;
  gap: 20rem;
  margin: 0 auto;
  z-index: 0;
}
section:last-of-type {
  padding-bottom: 150px;
}
main h2 {
  text-align: center;
}
.padding20 {
  padding: 0 20px;
}
main h2 span {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}
main h2 span:hover {
  transform: translateY(-5px);
}

/* ---------- 商品紹介 ---------- */
.product-box {
  display: flex;
  gap: 5%;
}
#product1,
#product2,
#product3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.caveat-line {
  text-align: center;
  margin-top: 5rem;
  font-family: "Caveat", cursive;
  font-size: 2rem;
  position: relative;
  color: #333;
}
.caveat-line:before {
  position: absolute;
  bottom: 3px;
  left: calc(50% - 40px);
  width: 80px;
  height: 0.5rem;
  content: "";
  border-radius: 3px;
  background-image: linear-gradient(to right, #d79614 0%, #fee140 100%);
  z-index: -1;
  transform: rotate(-2deg);
}
.subtitle {
  font-size: 1.4rem;
  padding-bottom: 4rem;
  text-align: center;
  font-family: sans-serif;
}

/* ---------- 商品詳細 ---------- */
#detail dl dd {
  padding: 0 0 1rem 1rem;
  font-size: 1.4rem;
}
.small {
  margin-top: 1rem;
  font-size: 1.2rem;
}
.lastlogo {
  width: 50%;
  height: auto;
  margin: 15rem auto 10rem;
}
#concept h3 {
  padding: 3rem 0 4rem;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}
.box-line {
  position: relative;
  margin: 40px 20px;
  padding: 1em 1em 5rem;
  text-align: center;
}
.box-line:before,
.box-line:after {
  position: absolute;
  content: "";
}
.box-line:after {
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-top: 1px solid #333;
  border-left: 1px solid #333;
}
.box-line:before {
  right: 0;
  bottom: 0;
  width: 50px;
  height: 50px;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
}
#detail .box-line h3 {
  margin-top: 3rem;
}
#detail .box-line p {
  margin-top: 1rem;
}
#brand h3 {
  padding: 8rem 0 2rem;
}

/* ---------- 無限マーキー (旧 item-slider / Slick) ---------- */
.item-marquee {
  overflow: hidden;
  margin-top: 5rem;
}
.item-slider.is-marquee {
  display: flex;
  animation: marquee linear infinite;
  will-change: transform;
}
.item-slider.is-marquee li {
  flex: 1;
  min-width: 0;
  padding: 0 5px;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- フェードスライダー (旧 brand-slider / Slick) ---------- */
.brand-slider.fade-slider {
  display: grid;
  margin-bottom: 30px;
}
.brand-slider.fade-slider > li {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1.5s linear;
}
.brand-slider.fade-slider > li.is-active {
  opacity: 1;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 1em;
}
.slider-dots button {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.slider-dots button::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  transition: all 1.5s ease;
}
.slider-dots button.is-active::before {
  background: #333;
}

/* ---------- ライトボックス (旧 Magnific Popup) ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  cursor: zoom-out;
}
.lightbox::backdrop {
  background: rgba(11, 11, 11, 0.8);
}
.lightbox img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.65;
  z-index: 1;
}
.lightbox-close:hover,
.lightbox-close:focus {
  opacity: 1;
}

/* ---------- ボタン ---------- */
.extra-btn {
  display: flex;
  justify-content: center;
  cursor: pointer;
  align-items: center;
}
.extra-btn a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #333;
  border: solid 1px #333;
  border-radius: 999px;
  display: flex;
  max-width: 300px;
  padding: 16px 64px;
  text-decoration: none;
  transition: all 0.3s;
}
.extra-btn svg {
  position: absolute;
  transform: translateX(6rem);
  transition: transform 0.3s;
}
.extra-btn a:hover svg {
  transform: translateX(7rem);
}

/* ---------- スクロール連動アニメーション ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-scale {
  transform: scale(1.2);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-scale.show {
  transform: scale(1);
}
.fade-in.delay1 {
  transition-delay: 0.5s;
}
.fade-in.delay2 {
  transition-delay: 0.7s;
}
.fade-in.delay3 {
  transition-delay: 0.9s;
}
.blur-in {
  opacity: 0;
}
.blur-in.show {
  animation: blur 1.5s ease forwards;
}
.fade-up-box {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
}
.fade-up {
  opacity: 0;
}
.fade-up.show {
  transform: translateY(20px);
  animation: fadeup 0.5s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }
.fade-up:nth-child(6) { animation-delay: 0.6s; }
.fade-up:nth-child(7) { animation-delay: 0.7s; }
.fade-up:nth-child(8) { animation-delay: 0.8s; }
.fade-up:nth-child(9) { animation-delay: 0.9s; }
.fade-up:nth-child(10) { animation-delay: 1s; }
@keyframes fadeup {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-scale-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.fade-scale-box img:hover {
  transform: scale(1.1);
}
.popup-link img {
  transition: all 0.3s ease;
  filter: brightness(1);
  border-radius: 10%;
}
.popup-link:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
  border-radius: 0%;
}

/* ---------- モバイル専用要素（デスクトップでは非表示） ---------- */
footer,
#scroll-to-top,
.hamburger-menu {
  display: none;
}

@media (max-width: 600px) {
  main {
    width: 100%;
  }
  .container-l,
  .container-r {
    display: none;
  }
  .container-l ul li a::after {
    display: none;
  }
  .container-l ul li a:hover {
    opacity: 0.7;
  }
  .product-box {
    flex-direction: column;
    text-align: center;
  }
  #product1,
  #product2,
  #product3 {
    gap: 5rem;
  }
  .product-box path {
    display: none;
  }
  .hamburger-menu {
    display: block;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 0;
    border-radius: 10%;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
  }
  .hamburger-menu span {
    width: 30px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
  }
  .hamburger-menu span:nth-child(1) {
    top: 15px;
  }
  .hamburger-menu span:nth-child(2) {
    top: 25px;
  }
  .hamburger-menu span:nth-child(3) {
    top: 35px;
  }
  .hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 25px;
  }
  .hamburger-menu.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 25px;
  }
  h1 img {
    margin: 0 auto;
  }
  .container-l {
    display: flex;
    width: 100%;
    z-index: 50;
    text-align: center;
    justify-content: space-evenly;
    transform: translateX(100%);
    transition: transform 0.5s ease;
  }
  .container-l.open {
    transform: translateX(0%);
  }
  .container-l ul li {
    border-top: 1px solid #fff;
  }
  .container-l ul li:last-of-type {
    border-bottom: 1px solid #fff;
  }
  .menu-footer {
    visibility: hidden;
  }
  .container-l a {
    padding: 5% 0;
  }
  #scroll-to-top {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  #scroll-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  #scroll-to-top:hover {
    background: #555;
  }
  footer {
    display: block;
  }
  footer .footer-text {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    line-height: 1.6rem;
    color: #fff;
    background: #000;
  }
  .footer-wave {
    margin-bottom: -1rem;
    overflow: hidden;
  }
  .footer-wave svg {
    width: 200%;
    animation: move-wave 10s ease-in-out infinite alternate;
  }
  @keyframes move-wave {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}
