@media screen and (min-width: 769px) {
  .sp {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
}

/* ================================================================
   Our Signature S Gentle Linen Collection — Style
   ================================================================ */

:root {
  /* Colors */
  --color-text: #000;
  --color-bg: #fff;
  --color-hover: #666;
  --color-muted: #9c9c9c;
  --color-border: #000;
  --color-hero-bg: #eee;

  /* Typography */
  --font-serif: "Adobe Caslon Pro", "Times New Roman", "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", serif;
  --font-sans: Montserrat, "Helvetica Neue", sans-serif;
  --font-display: "Marcellus", var(--font-serif);

  /* Layout */
  --max-width: 1000px;
  --container: 80%;
  --gallery-width: 70%;
  --gallery-width-sp: 80%;

  /* Spacing */
  --space-section: 80px;
  --space-section-sp: 40px;
}

/* ----------------------------------------------------------------
   Selection
----------------------------------------------------------------- */
::selection {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* ----------------------------------------------------------------
   Loading Cover
----------------------------------------------------------------- */
.cover {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 100;
}

/* ----------------------------------------------------------------
   Hero
----------------------------------------------------------------- */
.hero {
  width: 100%;
  background-color: var(--color-hero-bg);
  position: relative;
  isolation: isolate;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (min-width: 769px) {
  /* Ken Burns — default (zoom out) */
  .hero .swiper-slide img {
    transition: transform 10s linear 0.5s;
  }

  /* right: pan left→right */
  .hero .swiper-slide[data-kb="right"] img {
    transform: scale(1.2) translateX(-8%);
  }

  .hero .swiper-slide-active[data-kb="right"] img {
    transform: scale(1.2) translateX(0);
  }

  /* left: pan right→left */
  .hero .swiper-slide[data-kb="left"] img {
    transform: scale(1.2) translateX(5%);
  }

  .hero .swiper-slide-active[data-kb="left"] img {
    transform: scale(1.2) translateX(0);
  }
}

@media screen and (max-width: 768px) {
  /* Ken Burns — default (zoom out) */
  .hero .swiper-slide img {
    transition: transform 8s linear;
  }

  /* down: zoom out + pan down */
  .hero .swiper-slide[data-kb="down"] img {
    transform: scale(1.2) translateY(-1.5%);
  }

  .hero .swiper-slide-active[data-kb="down"] img {
    transform: scale(1) translateY(0);
  }

  /* right: pan left→right */
  .hero .swiper-slide[data-kb="right"] img {
    transform: scale(1.2) translateX(-8%);
  }

  .hero .swiper-slide-active[data-kb="right"] img {
    transform: scale(1.2) translateX(0);
  }

  /* left: pan right→left */
  .hero .swiper-slide[data-kb="left"] img {
    transform: scale(1.2) translateX(8%);
  }

  .hero .swiper-slide-active[data-kb="left"] img {
    transform: scale(1.2) translateX(0);
  }
}

/* Hero — PC layout */
.hero__desktop {
  display: flex;
}

.hero__left,
.hero__right {
  flex: 1;
  overflow: hidden;
  background: red;
}

.hero__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__mobile .swiper-slide {
  overflow: hidden;
}

/* Hero — Frame (white border) */
.hero__frame {
  background-color: #fff;
  padding: 5vw;
}

.hero__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero — SP layout */
.hero__mobile {
  display: none;
}

.hero__mobile .swiper-slide {
  position: relative;
}

.hero__slide-frame {
  position: absolute;
  inset: 0;
  border: 0 solid #fff;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .hero {
    background-color: var(--color-bg);
  }

  /* Hero — Frame (white border) */
  .hero__frame {
    background-color: #fff;
    padding: 80px;
  }

  .hero__desktop {
    display: none;
  }

  .hero__mobile {
    display: block;
  }
}

/* Hero — Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  color: #fff;
}

.hero__overlay .hero__logo img {
  filter: brightness(0);
}

/* Hero — Title */
.hero__title {
  position: absolute;
  top: calc(50% - 3.2%);
  left: 4%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 6rem);
  font-weight: normal;
  letter-spacing: 0.1rem;
  margin: 0;
}

.hero__title span {
  display: inline-block;
  opacity: 0;
}

.hero__title-space {
  margin-left: 10px;
}

.hero__subtitle {
  position: absolute;
  top: calc(50% + 3.5%);
  left: 4%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 2.4vw;
  font-weight: normal;
  letter-spacing: 0.1rem;
  opacity: 0;
}

.hero__logo {
  width: 10%;
  position: absolute;
  top: calc(50% - 50px);
  right: 2%;
}

@media screen and (max-width: 768px) {
  .hero__title {
    top: calc(50% + 35%);
    left: 7%;
    font-size: 9vw;
  }

  .hero__subtitle {
    top: calc(50% + 42%);
    left: 7.5%;
    font-size: 5.4vw;
  }

  .hero__logo {
    width: 28%;
    transform: translateX(-50%);
    position: absolute;
    top: 6%;
    left: 50%;
    right: auto;
  }

  .hero__overlay {
    transition: color 1s ease-out;
  }

  .hero__overlay .hero__logo img {
    filter: brightness(0) invert(1);
    transition: filter 1s ease-out;
  }

  .hero__overlay.is-dark {
    color: #000;
    mix-blend-mode: hard-light;
  }

  .hero__overlay.is-dark .hero__logo img {
    filter: brightness(0);
  }
}

/* ----------------------------------------------------------------
   Main Layout
----------------------------------------------------------------- */
.main {
  width: var(--container);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .main {
    width: auto;
    max-width: var(--container);
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }
}

/* ----------------------------------------------------------------
   Intro
----------------------------------------------------------------- */
.intro {
  margin: 90px auto 40px auto;
  text-align: center;
}

.intro__line {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.4rem;
  color: var(--color-text);
}

@media screen and (max-width: 768px) {
  .intro {
    margin: var(--space-section-sp) auto 20px auto;
  }

  .intro__line {
    font-size: 0.72rem;
    line-height: 1.4rem;
  }
}

/* ----------------------------------------------------------------
   Look (Content Block)
----------------------------------------------------------------- */
.look {
  position: relative;
  margin: 0 auto;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  border-bottom: none;
}

.look::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  transform: scaleX(var(--border-scale, 1));
  transform-origin: left center;
}

@media screen and (max-width: 768px) {
  .look {
    margin: 0 auto 30px;
    padding-top: 30px;
    padding-bottom: 60px;
  }
}

/* ----------------------------------------------------------------
   Look — Number
----------------------------------------------------------------- */
.look__number {
  position: absolute;
  display: block;
  bottom: 14px;
  right: 6px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  line-height: 1.4rem;
  text-align: center;
  z-index: 2;
  overflow: hidden;
  height: 1.4rem;
  color: var(--color-text);
}

.look__digit {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

@media screen and (max-width: 768px) {
  .look__number {
    bottom: 10px;
    right: 1px;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    line-height: 0.9rem;
    height: 0.9rem;
  }
}

/* ----------------------------------------------------------------
   Look — Gallery
----------------------------------------------------------------- */
.look__gallery {
  display: block;
  width: 65%;
  margin: 0 auto;
  overflow: hidden;
}

.look__gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.look__gallery a:hover img {
  filter: brightness(1.1);
  transition: filter 0.3s ease-in-out;
}

.look__gallery a:not(:hover) img {
  filter: brightness(1);
  transition: filter 0.2s linear;
}

/* Gallery layout: side-by-side */
.look[data-layout="side"] .look__gallery {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
}

@media screen and (max-width: 768px) {
  .look__gallery {
    width: var(--gallery-width-sp);
  }
}

/* ----------------------------------------------------------------
   Look — Items (Product Credit)
----------------------------------------------------------------- */
.look__items {
  width: 65%;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  list-style: none;
  padding: 0;
}

.look__items li {
  width: 160px;
}

.look__items li:not(:last-child) {
  margin-bottom: 16px;
}

.look__items a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
  text-decoration: none;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

.look__items a:hover {
  color: var(--color-hover);
  border-bottom-color: var(--color-hover);
}

.look__item-name,
.look__item-price {
  font-family: var(--font-serif);
  font-size: 0.7rem;
}

@media screen and (max-width: 768px) {
  .look__items {
    width: 80%;
    justify-content: center;
    margin: 40px auto 0;
  }

  .look__items a {
    gap: 40px;
  }

  .look__items li:not(:last-child) {
    margin-bottom: 10px;
  }

  .look__item-name,
  .look__item-price {
    font-size: 0.7rem;
  }
}

/* ----------------------------------------------------------------
   Summer Banner
----------------------------------------------------------------- */
.summer-banner {
  position: relative;
  width: 90%;
  margin: 160px auto;
  padding: 40px;
}

.summer-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.summer-banner__border {
  position: absolute;
  background-color: #000;
}

.summer-banner__border--top {
  top: 0;
  right: 0;
  height: 1px;
  width: 0;
}

.summer-banner__border--right {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 0;
}

.summer-banner__border--bottom {
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
}

.summer-banner__border--left {
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
}

@media screen and (max-width: 768px) {
  .summer-banner {
    width: 100%;
    margin: 80px auto 0 auto;
    padding: 10px;
  }
}

/* ----------------------------------------------------------------
   Staff Credit
----------------------------------------------------------------- */
.staff-credit {
  margin-top: 120px;
  text-align: center;
}

.staff-credit ul {
  list-style: none;
  padding: 0;
}

.staff-credit ul li {
  margin-bottom: 40px;
}

.staff-credit__role {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  margin-bottom: 12px;
  color: var(--color-muted);
}

.staff-credit__name {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--color-text);
}

/* ----------------------------------------------------------------
   EC Store
----------------------------------------------------------------- */
.ec {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 200px auto 160px auto;
  padding: 0;
}

.ec p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6rem;
  letter-spacing: 0.1rem;
  font-style: italic;
  text-align: center;
  margin: 0 10px;
  padding: 0;
}

.ec p a {
  max-width: 640px;
  width: 70%;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 0 20px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.ec p a:hover {
  background-color: var(--color-text);
  border: 1px solid var(--color-text);
  color: var(--color-bg);
  -webkit-tap-highlight-color: transparent;
}

@media screen and (max-width: 768px) {
  .ec {
    margin: 90px auto;
  }

  .ec p {
    margin: 0 auto;
  }

  .ec p a {
    width: 80%;
    min-height: 60px;
  }
}

/* ----------------------------------------------------------------
   Footer
----------------------------------------------------------------- */
.footer__logo {
  width: 100%;
  text-align: center;
  margin: 70px auto 0;
}

.footer__logo p {
  margin: 0 auto;
}

.footer__logo img {
  width: 160px;
  height: auto;
  margin: 0 auto;
}

.footer__logo a:hover {
  opacity: 0.7;
}

.footer__copyright {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  padding: 20px 0 35px;
}

.footer__copyright p {
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.1rem;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .footer__logo img {
    width: 120px;
  }

  .footer__copyright p {
    font-size: 0.44rem;
  }
}

/* ----------------------------------------------------------------
   Floating Button
----------------------------------------------------------------- */
#floating-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity 0.4s ease-out,
    filter 0.4s ease-out;
}

#floating-btn.is-visible {
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

#floating-btn a {
  display: block;
  color: #fff;
  background: #000;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1rem;
  padding: 16px 60px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid #000;
  white-space: nowrap;
  transition:
    border-radius 0.2s ease-out,
    color 0.2s ease-out,
    background 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
}

#floating-btn a:hover {
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
}

@media screen and (max-width: 768px) {
  #floating-btn {
    width: 80%;
  }

  #floating-btn a {
    font-size: 0.8rem;
    text-align: center;
    padding: 15px 5px;
    white-space: normal;
  }
}

/* ----------------------------------------------------------------
   Reduced Motion
----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__title span {
    opacity: 1 !important;
  }

  .hero__subtitle {
    opacity: 1 !important;
  }

  .look__digit {
    opacity: 1 !important;
    transform: none !important;
  }

  .look,
  .intro__line,
  .summer-banner {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .summer-banner__border {
    width: 100% !important;
    height: 100% !important;
  }

  .look::after {
    transform: none !important;
  }

  #floating-btn {
    transition: none;
    filter: none;
  }
}
