@charset "UTF-8";

/* ===== common ===== */
:root {
  --primary-charcoalgray: #4E454A;
  --primary-yellow: #FAF7F3;

}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: #4E454A;
  background-color: var(--primary-yellow);


}

.Topics {
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.3;
}



/* ===== main ===== */
.sengendou-main {
  margin-top: 24px;
  padding: 0 14px;
}

.sengendou-title {
  font-family: "Noto Serif JP", serif;
  font-size: 3.6rem;
  line-height: 1.5;
}

.sengendou-mention {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
}

.sengendou-url {
  margin-top: 32px;
  position: relative;
  display: inline-block;
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
}


.sengendou-url::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: rgba(63, 59, 58, 0.4);

  /* 初期状態：見えない */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.sengendou-url:hover::after {
  transform: scaleX(1);
}

.sengendou-img {
  width: 100%;
  height: auto;
  margin-top: 32px;
}

.sengendou-img2 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  object-fit: contain;
}

.detail-row {
  display: flex;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  margin-top: 64px;
  margin-bottom: 104px;
}

.detail-row:first-of-type {
  margin-top: 64px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  margin-bottom: 104px;
}

.detail-label {
  min-width: 79px;
  /* ← 概要の幅を固定 */
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
}

.detail-body {
  flex: 1;
  /* ← 右側が可変で折り返す */
}

.detail-body p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.sengendou-txt1 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  line-height: 2;
  margin: 0;
  text-align: center;
}

.sengendou-txt {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== 全体中央 ===== */
.sp-mock {
  display: flex;
  position: relative;
  justify-content: center;
  margin: 80px 0;
}

.pc-mock {
  display: none;
}

.scllor {
  font-size: 2rem;
  position: absolute;
  top: -30px;
  left: 9px;
}

/* ===== PC外枠 ===== */
.sp-frame {
  display: block;
  width: 70%;
  padding: 12px;
  background: #d9d9d9;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pc-frame {
  display: none;
}

/* ===== 画面部分 ===== */
.pc-screen {
  width: 100%;
  height: 350px;
  /* ← 表示範囲 */
  overflow-y: auto;
  /* ← スクロール */
  border-radius: 20px;
  background: #fff;
  position: relative;
  overscroll-behavior: contain;
}

/* ===== 画像 ===== */
.pc-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== スクロールバー非表示（Mac風） ===== */
.pc-screen::-webkit-scrollbar {
  display: none;
}

/* ===== ホバー時だけスクロール ===== */
.pc-screen {
  overflow: hidden;
}

.pc-screen:hover {
  overflow-y: auto;
}



@keyframes scrollImg {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-40%);
  }
}

@media screen and (min-width:769px) {
  .pc-screen {
    width: 100%;
    height: 500px;
  }
}


/* otherworks */
/* ===== Other Works ===== */
.otherworks {
  padding: 64px 0;
  overflow: hidden;
}

/* 横スクロールレール */
.otherworks-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: otherworks-slide 30s linear infinite;
}

.otherworks-track:hover {
  animation-play-state: paused;
}

/* 共通カード */
.workslist {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.txt {
  padding: 0;
}

.workslist {
  border: none;
}

/* 画像 */
.mockup {
  width: 280px;
  height: auto;
  display: block;
}

/* テキスト */
.txt {
  text-align: center;
}

.mockup-txt,
.mockup-day {
  font-size: 12px;
  opacity: 0.6;
}

.otherworks .workslist:nth-of-type(5) .mockup {
  width: 350px;
  margin-bottom: 18px;
}

.title {
  font-size: 16px;
  margin-top: 4px;
}

.mention {
  font-size: 12px;
  opacity: 0.7;
}

.otherworks .workslist .mockup {
  width: 260px;
  /* ← 画像幅 */
  max-width: 100%;
  display: block;
}

/* txt を画像と同じ幅に */
.otherworks .workslist .txt {
  width: 260px;
  /* ← 画像と同じ */
}

/* ===== Koka 専用 ===== */
.koka-slider {
  position: relative;
  width: 200px;
  height: 200px;
  /* ← 画像エリアの高さを明示 */
  overflow: hidden;
}

/* フェード画像 */
.koka-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* or cover（好みで） */
  opacity: 0;
  animation: koka-fade 6s infinite;
}

/* 切り替えタイミング */
.koka-slider img:nth-child(1) {
  animation-delay: 0s;
}

.koka-slider img:nth-child(2) {
  animation-delay: 3s;
}

/* テキストは自然に下へ */
.workslist--koka .txt {
  margin-top: 12px;
}


/* フェード切り替え */
@keyframes koka-fade {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  55% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* 横流れ */
@keyframes otherworks-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.otherworks {
  cursor: grab;
}

.otherworks:active {
  cursor: grabbing;
}


.otherworks {
  overflow-x: scroll;
  scrollbar-width: none;
  /* Firefox */
}

.otherworks::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}





/* ===== header PC ===== */
@media screen and (min-width:769px) {
  .sengendou-main {
    margin-top: 24px;
    padding: 0 140px;
  }

  .sengendou-img {
    margin-top: 0px;
  }

  .sengendou-visual {
    margin-top: 160px;
  }

  .pc-mock {
    display: flex;
    position: relative;
    justify-content: center;
    margin: 80px 0;
  }

  .sp-mock {
    display: none;
  }

  .pc-frame {
    display: block;
    width: 100%;
    padding: 17px;
    background: #d9d9d9;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .sp-frame {
    display: none;
  }

}