/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: #111;
  font-family: 'DM Sans', sans-serif;
}

img {
  width:100%;
  height:auto;
}
.brand-logo-main img {
  width:44vw;
}
@media only screen and (min-width: 751px) {
  .brand-logo-main img {
    width:180px;
  }
}

/* ===========================
   Fixed Background Canvas
=========================== */
#waveCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===========================
   Site Header
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.site-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

/* ===========================
   Slider
=========================== */
#slider {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: perspective(1200px) translateY(60px) rotateX(6deg) scale(0.97);
  transform-origin: center bottom;
  transition:
    opacity 0.85s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.85s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0.85s;
  pointer-events: none;
  will-change: transform, opacity;
}

.slide.above {
  opacity: 0;
  visibility: hidden;
  transform: perspective(1200px) translateY(-60px) rotateX(-6deg) scale(0.97);
  transform-origin: center top;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: perspective(1200px) translateY(0) rotateX(0deg) scale(1);
  pointer-events: auto;
  transition:
    opacity 0.85s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.85s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0s;
}
@media only screen and (min-width: 751px) {
  .slide.active {
    min-height:700px;
  }
}

/* ===========================
   Slide 1: MV
=========================== */
.mv-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mv-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  margin: 0;
  color: #111;
  font-style: normal;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
}

.mv-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: charIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mv-char.rested {
  opacity: 1;
  transform: translateY(0);
  animation: none;
  transition: none;
}

@keyframes nudge {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-5px); }
  70%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

.mv-char.nudging {
  animation: nudge 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
  opacity: 1 !important;
}

.mv-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: #666;
  line-height: 3;
  max-width: 340px;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: "Noto Serif JP", serif;
}

.mv-subtitle span {
  display:block;
  font-size:14px;
}

.mv-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mv-scroll-track {
  position: relative;
  width: 20px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mv-scroll-track::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: #bbb;
}

.mv-scroll-arrow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 6px;
}

.mv-scroll-arrow::before,
.mv-scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 7px; height: 1px;
  background: #bbb;
}

.mv-scroll-arrow::before {
  left: 0;
  transform-origin: left bottom;
  transform: rotate(40deg);
}

.mv-scroll-arrow::after {
  right: 0;
  transform-origin: right bottom;
  transform: rotate(-40deg);
}

.mv-scroll-dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #555;
  animation: dotTravel 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===========================
   Slides 2 & 3: Brand Cards
=========================== */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  max-width: 480px;
  width: 90%;
  padding: 2rem 1rem;
  padding-top: 3.5rem; /* clear header */
  background: transparent;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.brand-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0.02em;
  color: #111;
  line-height: 1;
}

.brand-logo-main em { font-style: italic; font-weight: 300; }

.brand-logo-main.bebe {
  font-size: clamp(22px, 4vw, 38px);
  letter-spacing: 0.06em;
  font-family: 'Playfair Display', serif;
}

.brand-logo-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #333;
  font-weight: 300;
  /*text-transform: uppercase;*/
}

/* Image Slider */
.img-slider { width: 100%; position: relative; }
.img-slider-track-wrap { width: 100%; overflow: hidden; }
.img-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}
.img-slide { flex: 0 0 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.img-slide-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.img-slide-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-style: italic;
  font-size: 18px; color: rgba(255,255,255,0.7); letter-spacing: 0.1em;
}

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: none; border: none; outline: none;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; opacity: 0.4;
  transition: opacity 0.2s;
}
.slider-btn:hover { opacity: 1; }
.slider-btn.prev { left: 6px; }
.slider-btn.next { right: 6px; }
.slider-btn svg {
  width: 14px; height: 14px;
  stroke: #111; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

.slider-dots {
  display: flex; justify-content: center;
  gap: 7px; margin-top: 10px;
}
.slider-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #ccc; border: none; outline: none;
  padding: 0; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  appearance: none; -webkit-appearance: none;
}
.slider-dot.on { background: #333; transform: scale(1.5); }

.brand-desc {
  font-size: 13px; font-weight: 300;
  color: #444; line-height: 2; text-align: center;
  font-family: "Noto Serif JP", serif;
}

.brand-link {
  font-size: 12px; letter-spacing: 0.12em;
  color: #111; text-decoration: none;
  border-bottom: 1px solid #ccc; padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.brand-link:hover { color: #555; border-color: #888; }

/* ===========================
   Slides 4 & 5: Shared Card
=========================== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 480px;
  width: 90%;
  padding: 2rem .5rem;
  padding-top: 3.5rem; /* clear header */
  background: transparent;
}

.card-heading {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
}

.card-heading-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: 0.04em; color: #111; line-height: 1;
}
.-web .card-heading-main {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
}
.-web.-production .card-heading-main {
  font-size: clamp(24px, 4.5vw, 24px);
}
.-beauty .card-heading-main {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
}

.card-heading-sub {
  font-size: 11px; letter-spacing: 0.2em;
  color: #999; font-weight: 300;
}
.-web .card-heading-sub {
  font-size:15px;
  color:#333;
  font-family: "Noto Serif JP", serif;
  margin:1em 0 0;
  font-weight:700;
}

/* Slide 4: Business */
.biz-detail.-gads {
  padding:0 24vw;
}
.biz-title-desc,
.biz-detail-desc {
  font-family: "Noto Serif JP", serif;
  font-size:3.467vw;
  text-align: justify;
  line-height:1.8;
  font-weight:300;
}
.biz-title-img {
  margin:.5em 0 0;
}
.-web .biz-title-img {
  padding:0 16vw;
}

.biz-list {
  width: 100%;
  border-top: 1px solid #e8e8e8;
}

.biz-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8e8e8;
  align-items: start;
}

.biz-item-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: 10px;
  color: #bbb; letter-spacing: 0.1em;
  padding-top: 2px;
}

.biz-item-body {
  display: flex; flex-direction: column; gap: 0.2rem;
}

.biz-item-title {
  font-size: 12px; font-weight: 400;
  color: #111; letter-spacing: 0.04em; line-height: 1.5;
}

.biz-item-desc {
  font-size: 11px; font-weight: 300;
  color: #888; line-height: 1.7; letter-spacing: 0.02em;
}

.-production .img-slide a {
  color:#333;
  text-decoration: underline;
  font-family: "Noto Serif JP", serif;
  font-size:14px;
}
.-production .img-slide p span {
  font-size:13px;
  display:inline-block;
  padding:0 .5em;
  line-height:1.6;
  color:#999;
  border:1px solid #999;
  margin:0 0 0 1em;
  font-family: "Noto Serif JP", serif;
}
@media only screen and (min-width: 751px) {
  .biz-detail.-gads {
    padding:0 160px;
  }
  .-web .biz-title-img {
    padding:0 80px;
  }
  .biz-title-desc,
  .biz-detail-desc {
    font-size:13px;
  }
}

/* Slide 5: Company */
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr { border-bottom: 1px solid #e8e8e8; }
.company-table tr:first-child { border-top: 1px solid #e8e8e8; }
.company-table th {
  font-size: 11px; font-weight: 300; color: #aaa;
  letter-spacing: 0.12em; text-align: left;
  padding: 0.5rem 0; width: 70px; vertical-align: top;
}
.company-table td {
  font-size: 12px; font-weight: 300; color: #333;
  line-height: 1.8; padding: 0.5rem 0; letter-spacing: 0.04em;
}
.company-table ul {
  padding-left:1.5em;
  list-style-type: disc;
}

.contact-btn {
  display: inline-block;
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #111; text-decoration: none;
  border: 1px solid #bbb;
  padding: 0.75rem 2.4rem;
  background:#fff;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.contact-btn:hover { background: #111; color: #fff; border-color: #111; cursor: pointer; }

.copyright {
  position: absolute;
  bottom: 1.4rem; left: 0; right: 0;
  text-align: center;
  font-size: 10px; font-weight: 300;
  color: #bbb; letter-spacing: 0.12em;
  z-index: 2; pointer-events: none;
}

/* ===========================
   Progress dots
=========================== */
#slide-progress {
  position: fixed;
  right: .75rem; top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 10px;
}

.prog-item {
  display: block;
  width: 4px; height: 4px; border-radius: 50%;
  background: #ccc;
  transition: background 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}
.prog-item.active { background: #333; transform: scale(1.5); }

@media only screen and (min-width: 751px) {
  #slide-progress {
    right: 3rem;
    gap: 12px;
  }
  .prog-item {
    width: 6px;
    height: 6px;
  }
}

/* ===========================
   Keyframes
=========================== */
@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotTravel {
  0%   { top: 0;                opacity: 0; }
  15%  {                        opacity: 1; }
  80%  {                        opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* ===========================
   制作実績 自動スライダー
   style.css の末尾に追記してください
=========================== */

.works-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  isolation: isolate;
}

/* 高さは active なスライドが確保 */
.works-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: absolute;
  top: 0; left: 0;
  transform: translateX(110%); /* 100%だと端が滲むため少し多めに外へ */
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 0;
  visibility: hidden; /* 待機中は完全に非表示 */
}

.works-slide.active,
.works-slide.incoming {
  visibility: visible;
}

/* active: 表示中（手前） */
.works-slide.active {
  position: relative; /* 高さ確保 */
  transform: translateX(0);
  z-index: 3;
}

/* incoming: 右から手前にスライドイン */
.works-slide.incoming {
  position: absolute;
  transform: translateX(100%);
  z-index: 2; /* active より上 */
}

.works-slide.incoming.sliding {
  transform: translateX(0);
}

.works-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
