@charset "UTF-8";

/* ==========================================================
   Base (Mobile first)
   ========================================================== */
body {
  margin: 0;
  background: #efefef;
  color: #111;
  font-family: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

#by {
	width: 100%;
	font-size: 11px;
}

#by img {
  width: 100%;
}
#by a {
  color: #111;
}

#story {
  position: relative;
}

.story-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 0% 7% 0 0%;
  background: #efefef;
}

.story-left {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
}

.notebook {
  width: 100%;
  max-width: none;
  min-height: min(98vh, 180vw);
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 8% 0;
  position: relative;
}

.notebook-sheet {
  display: none;
}

.notebook-sheet.active {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sheet-photo {
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.sheet-photo a {
  position: relative;
	display: block;
}


.sheet-photo .sheet-photo-main {
  width: 84%;
  margin: 0 auto;
}

.sheet-photo .ttl {
    position: absolute;
    width: 84% !important;
    bottom: 6%;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.sheet-tagline {
  font-size: clamp(34px, 9.4vw, 48px);
}

#by .slider {
  width: 100%;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f2f2f2;
}

#by .slider img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f2f2f2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

#by .slider:not(.is-ready) img:first-child {
  opacity: 1;
}
#by .slider img.is-active {
  opacity: 1;
}

.index-tabs {
  position: absolute;
  top: 12px;
  right: -24px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-tabs li {
  width: 22px;
  height: 56.5px;
  border-radius: 0 8px 8px 0;
  background: #c2c2c2;
  font-size: 8.2px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  color: #fff;
  transition: background-color 0.28s ease;
  cursor: pointer;
  user-select: none;
}

.index-tabs li.active {
  background: #d15239;
}

/* ALL ITEM（SP・PC共通。PCでは右カラムに配置） */
.look-block {
  background: #e2e2e2;
  padding: 18px 14px 20px;
}

.look-block h2 {
  margin: 0;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 10vw, 44px);
  line-height: 1.1;
}

.look-block p {
  margin: 8px auto 0;
  text-align: center;
  width: min(520px, 100%);
  font-size: 11px;
}

.product-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 10px;
}

.product-card {
  color: #111;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
}
.product-image img {
  border-radius: 10px;
}
.product-image .slider {
  border-radius: 10px;
}

.product-card span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}

.product-card a {
  color: #111;
  font-size: 9px;
  text-decoration: underline;
}

.story-track {
  height: 420vh;
}

/* 背景レイヤーはPCのみ使用 */
.pin-bg {
  display: none;
}

#by section .midashi {
	position: absolute;
    width: 100%;
}
#by section .text {
	position: absolute;
    writing-mode: vertical-rl;
    font-size: 16px;
}
#by section .credit {
	position: absolute;
    width: 42%;
    line-height: 1.8;
    font-size: 12px;
}
#by section .credit .credit_link {
	display: block;
	font-family: "lust-didone", serif;
	font-weight: 400;
	font-style: normal;
	position: relative;
	margin-top: 10%;
	border-bottom: solid 1px #111;
}
#by section .credit .credit_link a {
	text-decoration: none;
	font-size: 14px;
	line-height: normal;
}
#by section .credit .credit_link::after {
	content: ">";
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    right: 2%;
    bottom: 16%;
}


/* 001 */
#by section:nth-of-type(odd) .pic_1 {
	position: absolute;
    width: 81%;
    top: 7.4%;
    left: 5%;
}
#by section:nth-of-type(odd) .pic_2 {
	position: absolute;
    width: 44%;
    bottom: 3%;
    right: 4%;
}
#by section:nth-of-type(odd) .text {
    top: 3%;
    right: 4%;
}
#by section:nth-of-type(3) .text {
	top: 11%;
}
#by section:nth-of-type(4) .text {
	top: 6% !important;
}
#by section:nth-of-type(6) .text {
	top: 6% !important;
}

#by section:nth-of-type(10) .text {
	top: 6% !important;
}
#by section:nth-of-type(odd) .midashi {
    top: 2.2%;
    left: 4%;
}
#by section:nth-of-type(odd) .credit {
    bottom: 6%;
    left: 6%;
}



/* 002 */
#by section:nth-of-type(even) .pic_1 {
	position: absolute;
    width: 79%;
    top: 6%;
    right: 5%;
	left: auto;
}
#by section:nth-of-type(even) .pic_2 {
	position: absolute;
    width: 44%;
    bottom: 3%;
    left: 4%;
}
#by section:nth-of-type(even) .text {
    top: 3%;
    left: 5%;
    right: auto;
}
#by section:nth-of-type(even) .midashi {
    top: 2%;
    right: 3%;
	left: auto;
}
#by section:nth-of-type(even) .credit {
    bottom: 7%;
    right: 5%;
    left: auto;
}

#by #all-items {
	background: #d15239;
	color: #fff;
	padding: 10% 0;
}
#by #all-items .look-block {
	background: none;
	color: #fff;
}
#by #all-items .look-block a {
	color: #fff;
}
#by #all-items .all {
	display: block;
    width: 80%;
    margin: 5% auto 0;
    border: solid 1px #fff;
    color: #fff;
    font-size: 19px;
    text-align: center;
    text-decoration: none;
    position: relative;
    font-family: "lust-didone", serif;
    font-weight: 400;
    line-height: 2.8;
    border-radius: 8px;
}

#footer {
  padding: 18% 0 0%;
  text-align: center;
  background: #fff;
	border-top: solid 1px #111;
	font-family: "Playfair Display", serif;
}

#footer .logo {
	width: 62%;
    margin: 0 auto 5%;
}
#footer .links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

#footer .links a {
  color: #111;
  font-size: 10px;
  text-decoration: none;
}
#footer .copy {
	border-top: solid 1px #111;
	font-size: 8px;
	text-align: center;
	margin: 12% 0 0;
}
#by section .sheet-photo .more {
	position: absolute;
    width: 14%;
    bottom: 2%;
    line-height: 0;
}
#by section:nth-of-type(odd) .sheet-photo .more {
    left: 3%;
}
#by section:nth-of-type(even) .sheet-photo .more {
	left: auto;
    right: 3%;
}
/* ==========================================================
   PC
   ========================================================== */
@media only screen and (min-width: 769px) {
  #story {
	  
  }
  .story-pin {
    padding: 0;
    background: #000; /* 画像の下地。これで画像が透けて暗く見える */
  }

  /* 背景画像レイヤー（JSが各ステップ分を生成）。切り替え時にふわっとクロスフェード */
  .pin-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
  }
  .pin-bg.is-active {
    opacity: 0.7;
  }

  .pin-bg-00 { background-image: url(../img/back-00.webp); }
  .pin-bg-01 { background-image: url(../img/back-01.webp); }
  .pin-bg-02 { background-image: url(../img/back-02.webp); }
  .pin-bg-03 { background-image: url(../img/back-03.webp); }
  .pin-bg-04 { background-image: url(../img/back-04.webp); }
  .pin-bg-05 { background-image: url(../img/back-05.webp); }
  .pin-bg-06 { background-image: url(../img/back-06.webp); }
  .pin-bg-07 { background-image: url(../img/back-07.webp); }
  .pin-bg-08 { background-image: url(../img/back-08.webp); }
  .pin-bg-09 { background-image: url(../img/back-09.webp); }
  .pin-bg-10 { background-image: url(../img/back-10.webp); }

  .story-track {
    height: 770vh;
  }

  .story-left {
    width: min(100%, 500px);
    height: calc(100vh - 36px);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
  }

  .notebook {
	min-height: min(100vh, 180vw);
    min-width: 390px;
    margin: 0;
    padding: 14px 18px 20px;
  }

  .notebook-sheet.active {
    height: auto;
    display: block;
  }

  .sheet-photo {
    flex: none;
    aspect-ratio: 3 / 4;
  }
	.index-tabs {
    height: 100vw;
	}
  .index-tabs li {
	  width: 22px;
	  height: 70px;
	  font-size: 10px;    
	}

  .look-block {
    padding: 8%;
  }

  .look-block h2 {
    font-size: 40px;
  }

  .look-block p {
    font-size: 12px;
  }

  .product-grid {
    margin-top: 22px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px 24px;
  }
	#by #all-items {
		padding: 0 0 90px;
	}
	#by section .text {
    font-size: 18px;
	}
	#by section:nth-of-type(odd) .credit {
		bottom: 3%;
		right: 6%;
	}
	#by section:nth-of-type(odd) .text {
		
	}
	#by section:nth-of-type(3) .text {
		top: 8%;
	}
	#by section:nth-of-type(7) .text {
		top: 2%;
	}
	#by section:nth-of-type(8) .text {
		top: 3%;
	}
	#by section:nth-of-type(9) .text {
		top: 3%;
	}
	#by section:nth-of-type(even) .credit {
		width: 40%;
	}
	#by section:nth-of-type(10) .credit {
		width: 40%;
	}
	#footer {
		padding: 110px 0 0%;
	}
	#footer .logo {
		width: 34%;
		max-width: 340px;
		margin: 0 auto 30px;
	}
	#footer .links {
		margin-top: 10px;
		gap: 24px;
	}
	#footer .links a {
		font-size: 12px;
	}
	#footer .copy {
		font-size: 8px;
		margin: 70px 0 0;
	}
	#by section .sheet-photo .more {
		width: 48px;
	}
	.product-card span {
		font-size: 12px;
	}
	#by #all-items .all {
		width: 400px;
		margin: 0 auto;
		font-size: 20px;
	}
}



/* view 
**************************************************/
#by .spview {
	display: block;
}
#by .pcview {
	display: none;
}
@media only screen and (min-width: 768px)  {
     #by .spview {
		display: none;
	}	
	#by .pcview {
		display: block;
	}
}