@charset "utf-8";

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --header-height: 130px;
  /* グローバルヘッダーの高さ（JSで動的に上書き） */
}

/* =============================================
   1. Reset & Base
   ============================================= */

/* ブラウザの初期余白（8px）をリセット */
body {
  margin: 0;
}

/* box-sizing: inheritパターンで #tokusyu 内だけに限定 */
#tokusyu,
#tokusyu *,
#tokusyu *::before,
#tokusyu *::after {
  box-sizing: inherit;
}

#tokusyu {
  box-sizing: border-box;
}

/* margin/padding: ブラウザデフォルトがある要素を個別にリセット */
#tokusyu p,
#tokusyu h1,
#tokusyu h2,
#tokusyu h3,
#tokusyu h4,
#tokusyu h5,
#tokusyu h6,
#tokusyu ul,
#tokusyu ol,
#tokusyu li,
#tokusyu figure,
#tokusyu figcaption,
#tokusyu blockquote {
  margin: 0;
  padding: 0;
}

#tokusyu ol,
#tokusyu ul,
#tokusyu a {
  list-style: none;
  text-decoration: none;
  color: inherit;
}

#tokusyu img {
  max-width: 100%;
  height: auto;
}

#tokusyu html {
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
}

#tokusyu {
  font-family: "Noto Serif JP", "shippori-mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
}


/* =============================================
   2. Layout
   ============================================= */

#tokusyu #wrapper {
  max-width: 980px;
  margin: 0 auto;
}

/* Split Layout（PC時は左側に固定画像） */
.split-left {
  display: none;
}


/* =============================================
   3. Typography & Common Components
   ============================================= */

.style_font {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: normal;
  font-size: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.sp_only {
  margin-bottom: 20px;
}

.sp_only img {
  display: block;
  width: 100%;
}

.pc_only {
  display: none;
}

.sec_ttl {
  text-align: center;
  margin: 60px 0;
  font-size: 16px;
}

.sec_text {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 5em;
  text-align: center;
}


/* =============================================
   4. Multi-Column Layouts（double / triple）
   ============================================= */

.slider-double,
.double,
.triple {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 0 20px;
}

.slider-double,
.double {
  padding: 0;
}

.slider-double .slider,
.double>div {
  width: calc(50% - 5px);
}

.double img,
.triple img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ：左右余白と隙間を狭くして画像を大きくする */
.triple {
  padding: 0 10px;
  gap: 5px;
}

.triple>div {
  width: calc(33.333% - 3.333px);
}


/* =============================================
   5. Grid Layout（container）
   ============================================= */

#tokusyu .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 10px;
  padding-left: 20px;
}

#tokusyu .container>div {
  display: flex;
}

#tokusyu .container>div:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
}

#tokusyu .container>div:first-child img {
  object-position: right center;
}

#tokusyu .container>div:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

#tokusyu .container>div:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

#tokusyu .container>div:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

#tokusyu .container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 逆パターン（左側に縦3段、右側に大画像） */
#tokusyu .container.reverse>div:first-child {
  grid-column: 2 / 4;
  grid-row: 1 / 4;
}

#tokusyu .container.reverse>div:first-child img {
  object-position: left center;
}

#tokusyu .container.reverse>div:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

#tokusyu .container.reverse>div:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

#tokusyu .container.reverse>div:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}


/* =============================================
   6. Slick Slider — 共通
   ============================================= */

/* スライダーの横幅 */
.slider {
  width: 70%;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  /* slick初期化前の縦並び防止 */
}

/* slick未初期化時：2枚目以降のスライドを非表示にして縦積みを防ぐ */
.slider:not(.slick-initialized)>div+div {
  display: none;
}

/* スライダー画像 */
.slider img {
  width: 100%;
}

/* 高さ調整 */
.slider .slick-slide {
  height: auto !important;
}

/* Slider loading */
.slick-loading .slick-list {
  background: #fff url('./ajax-loader.gif') center center no-repeat;
}

/* Icons */
@font-face {
  font-family: 'slick';
  font-weight: normal;
  font-style: normal;
  src: url('./fonts/slick.eot');
  src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'),
    url('./fonts/slick.woff') format('woff'),
    url('./fonts/slick.ttf') format('truetype'),
    url('./fonts/slick.svg#slick') format('svg');
}

/* Arrows */
.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;
  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  cursor: pointer;
  color: transparent;
  border: none;
  outline: none;
  background: transparent;
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  color: transparent;
  outline: none;
  background: transparent;
}

.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
  opacity: 1;
}

.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
  opacity: .25;
}

.slick-prev:before,
.slick-next:before {
  font-family: 'slick';
  font-size: 20px;
  line-height: 1;
  opacity: .75;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
  left: -25px;
}

[dir='rtl'] .slick-prev {
  right: -25px;
  left: auto;
}

.slick-prev:before {
  content: '←';
}

[dir='rtl'] .slick-prev:before {
  content: '→';
}

.slick-next {
  right: -25px;
}

[dir='rtl'] .slick-next {
  right: auto;
  left: -25px;
}

.slick-next:before {
  content: '→';
}

[dir='rtl'] .slick-next:before {
  content: '←';
}

/* Dots */
.slick-dotted.slick-slider {
  margin-bottom: 30px;
}

.slick-dots {
  position: absolute;
  bottom: -25px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 20px;
  height: 20px;
  padding: 5px;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: transparent;
}

.slick-dots li button:hover,
.slick-dots li button:focus {
  outline: none;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
  opacity: 1;
}

.slick-dots li button:before {
  display: none;
  font-family: 'slick';
  font-size: 6px;
  line-height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  content: '•';
  text-align: center;
  opacity: .25;
  color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-dots li.slick-active button:before {
  opacity: .75;
  color: black;
}


/* =============================================
   7. センターモードスライダー（STYLE 04）
   ============================================= */

.slider-center {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
}

.slider-center .slick-slide {
  transform: scale(0.85);
  /* 左右の画像は少し小さく */
  transition: transform 0.3s ease;
  opacity: 0.6;
  /* 少し薄くする */
}

.slider-center .slick-slide img {
  width: 100%;
  display: block;
}

.slider-center .slick-center {
  transform: scale(1);
  /* 中央の画像はそのままのサイズ */
  opacity: 1;
}


/* =============================================
   8. メイン＋サムネイルナビ連動スライダー（STYLE 01, 09）
   ============================================= */

.slider-for {
  width: 80%;
  margin: 0 auto 8px;
  overflow: hidden;
  /* slick初期化前の縦並び防止 */
}

/* slick未初期化時：2枚目以降のスライドを非表示にして縦積みを防ぐ */
.slider-for:not(.slick-initialized)>div+div {
  display: none;
}

.slider-for img {
  width: 100%;
  display: block;
}

.slider-nav {
  width: 45%;
  margin: 0 auto;
}

.slider-nav .slick-slide {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  padding: 0 4px;
}

.slider-nav .slick-slide img {
  width: 100%;
  display: block;
}

.slider-nav .slick-current {
  opacity: 1;
}

/* STYLE 01：slider-nav を flexbox で横並びに */
#style1 .slider-nav {
  width: 45%;
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

#style1 .slider-nav div {
  flex: 1;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

#style1 .slider-nav div.is-active,
#style1 .slider-nav div:hover {
  opacity: 1;
}

#style1 .slider-nav div img {
  width: 100%;
  display: block;
}

/* STYLE 09：slider-nav を flexbox で単純横並びに */
#style9 .slider-nav {
  width: 80%;
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

#style9 .slider-nav div {
  flex: 1;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

#style9 .slider-nav div.is-active,
#style9 .slider-nav div:hover {
  opacity: 1;
}

#style9 .slider-nav div img {
  width: 100%;
  display: block;
}


/* =============================================
   9. スマホ / PC 表示切り替え（各スタイル）
   ============================================= */

/* STYLE 01：スマホはスライダー、PCは .double */
#style1 .double {
  display: none;
}

@media (min-width: 768px) {

  #style1 .slider-for,
  #style1 .slider-nav {
    display: none;
  }

  #style1 .double {
    display: flex;
  }
}

/* STYLE 05：スマホは .container、PCは .slider-double */
#style5 .slider-double {
  display: none;
}

#style5 .container {
  width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  #style5 .container {
    display: none;
  }

  #style5 .slider-double {
    display: flex;
  }
}

/* STYLE 07：スマホは .fade、PCは .double */
#style7 .double {
  display: none;
}

#style7 .fade {
  width: 80%;
  margin: 0 auto 8px;
}

#style7 .fade img {
  width: 100%;
}

@media (min-width: 768px) {
  #style7 .fade {
    display: none;
  }

  #style7 .double {
    display: flex;
  }
}

/* STYLE 09：スマホはスライダー、PCは .double */
#style9 .double {
  display: none;
}

@media (min-width: 768px) {

  #style9 .slider-for,
  #style9 .slider-nav {
    display: none;
  }

  #style9 .double {
    display: flex;
  }
}


/* =============================================
   10. セクション別 特殊レイアウト
   ============================================= */

/* --- STYLE 03（左上・右下の斜め2ブロック） --- */
#style3 .slider-double {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  margin-bottom: 30px;
}

#style3 .slider-double .slider:nth-child(1) {
  width: calc(229 / 375 * 100%);
  margin: 0;
  padding: 0;
}

#style3 .slider-double .slider:nth-child(2) {
  width: calc(294 / 375 * 100%);
  margin-left: auto;
  margin-right: 0;
  margin-top: calc(20 / 375 * 100%);
}

#style3 .slider-double .slider:nth-child(1) img,
#style3 .slider-double .slider:nth-child(2) img {
  object-fit: cover;
}

@media (min-width: 768px) {
  #style3 .slider-double {
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 0;
  }

  #style3 .slider-double .slider:nth-child(1),
  #style3 .slider-double .slider:nth-child(2) {
    width: calc(50% - 10px);
    padding-left: 0;
    margin-bottom: 0;
    margin-top: 0;
  }

  #style3 .slider-double .slider:nth-child(1) img,
  #style3 .slider-double .slider:nth-child(2) img {
    aspect-ratio: auto;
  }
}

/* --- STYLE 08 & 10（3ブロック構成） --- */
#style8 .triple,
#style10 .triple {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  margin-bottom: 30px;
}

#style8 .triple>div:nth-child(1),
#style10 .triple>div:nth-child(1) {
  width: calc(229 / 375 * 100%);
  padding-left: 15px;
  margin-bottom: 20px;
}

#style8 .triple>div:nth-child(2),
#style10 .triple>div:nth-child(2) {
  width: calc(134 / 375 * 100%);
  margin-top: calc(180 / 375 * 100%);
  margin-bottom: 20px;
}

#style8 .triple>div:nth-child(3),
#style10 .triple>div:nth-child(3) {
  width: calc(294 / 375 * 100%);
  margin-left: auto;
  margin-right: 0;
  margin-top: calc(20 / 375 * 100%);
}

#style8 .triple>div:nth-child(1) img,
#style10 .triple>div:nth-child(1) img,
#style8 .triple>div:nth-child(2) img,
#style10 .triple>div:nth-child(2) img,
#style8 .triple>div:nth-child(3) img,
#style10 .triple>div:nth-child(3) img {
  object-fit: cover;
}


/* =============================================
   11. UI Components
   ============================================= */

/* 商品コード・購入ボタンエリア */
.itembox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding-top: 10px;
}

.itembox p {
  margin: 0;
  line-height: 1;
}

#tokusyu .itembox a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid #000;
  background-color: #000;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  line-height: 1;
  text-decoration: none;
}

#tokusyu .itembox a:hover {
  background-color: #fff;
  color: #000;
  opacity: 1;
}

/* 動画再生ボタン */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 30px;
  cursor: pointer;
  font-family: "Merriweather", serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-play:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  transform: translateY(-2px);
}

.play-icon {
  font-size: 10px;
}

.btn-pd {
  padding-top: 30px;
}

/* エリアリンク */
.area-link {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.area-link:hover {
  opacity: 0.7;
}

/* カテゴリーページへ */
.cate {
  margin: 0 auto 120px;
  text-align: center;
}

#tokusyu h4 {
  position: relative;
  text-decoration: underline;
  transition: 0.3s;
  text-underline-offset: 2px;
  text-decoration-color: #8fa0f4;
}

#tokusyu h4::after {
  content: "";
  position: absolute;
  display: inline-block;
  border: 9px solid transparent;
  border-top: 10px solid #8fa0f4;
  top: .4rem;
  margin-left: .5rem;
}

.cate img {
  width: 750px;
  padding: 1rem;
}

.cate img:hover {
  opacity: 0.5;
  transition: 0.5s;
}


/* =============================================
   12. カスタムモーダルビデオプレイヤー
   ============================================= */

.custom-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  /* スマホのアドレスバー等の高さを考慮した動的ビューポート */
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-video-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 450px;
  /* 縦長（4:5）動画に合わせて横幅を狭く調整 */
}

.video-modal-ratio-box {
  position: relative;
  padding-top: 125%;
  /* 4:5 の比率 (5 / 4 = 1.25) */
  height: 0;
  background-color: #000;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.video-modal-ratio-box video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.video-modal-close:hover {
  color: #8fa0f4;
}


/* =============================================
   13. ページトップボタン
   ============================================= */

#page_top {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  background: #6f8282;
  opacity: 0.6;
  z-index: 999;
}

#page_top a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}

#page_top a::before {
  content: "";
  margin: auto;
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 14px;
  width: 18px;
  height: 20px;
  border: 2px solid;
  border-color: #fff #fff transparent transparent;
  transform: rotate(-45deg);
  text-align: center;
}




/* =============================================
   @media (min-width: 768px) — PC 全体
   ============================================= */

@media (min-width: 768px) {

  /* Split Layout */
  .split-container {
    width: 100%;
  }

  .split-left {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 40%;
    height: calc(100dvh - var(--header-height));
    background-image: url('https://ruirue-co-jp.prm-ssl.jp//img/casual/summerknit/imges/top.jpg');
    background-size: auto 100%;
    background-position: right;
    background-repeat: no-repeat;
    z-index: 10;
  }

  .split-container #tokusyu {
    width: 60%;
    margin-left: 40%;
  }

  /* PC時はトップ画像が消えるため、上部の余白を調整 */
  #ttl {
    padding-top: 100px;
  }

  /* Typography & Common */
  .sp_only {
    display: none;
  }

  .pc_only {
    display: inline;
  }

  .sec_ttl {
    font-size: 20px;
  }

  .sec_text {
    width: 60%;
    margin-bottom: 10em;
  }

  /* Multi-Column Layouts */
  .slider-double,
  .double {
    gap: 20px;
  }

  .slider-double .slider,
  .double>div {
    width: calc(50% - 10px);
  }

  .triple {
    padding: 0 20px;
    gap: 20px;
  }

  .triple>div {
    width: calc(33.333% - 13.333px);
  }

  /* Grid */
  #tokusyu .container {
    height: 80dvh;
    grid-template-rows: repeat(3, 1fr);
    overflow: hidden;
  }

  /* センターモードスライダー */
  .slider-center {
    height: 80dvh;
  }

  .slider-center .slick-track,
  .slider-center .slick-slide {
    height: 80dvh !important;
  }

  .slider-center .slick-slide>div {
    height: 100%;
  }

  .slider-center .slick-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* ページトップボタン */
  #page_top {
    width: 60px;
    height: 60px;
    right: 3rem;
    bottom: 5rem;
    background: #333;
  }

  #page_top a {
    width: 60px;
    height: 60px;
  }

  #page_top a::before {
    left: 18px;
    width: 20px;
    height: 20px;
  }

  /* PC時の動画モーダル：高さ60vh基準 */
  .video-modal-container {
    width: auto;
    max-width: none;
  }

  .video-modal-ratio-box {
    height: 60vh;
    padding-top: 0;
    /* スマホ用の比率paddingを無効化 */
    width: calc(60vh * 0.8);
    /* 4:5比率を維持 */
  }

}