/* =========================
ファーストビュー設定
========================= */
.fv {
  min-height: 100svh;
  padding:
    90px clamp(20px, 4vw, 60px) 30px;
  display: flex;
  flex-direction: column;
}

.fv-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.fv-item {
  position: relative;
  overflow: hidden;
}

.fv-img {
  position: absolute;
  inset: 0;
}

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

/* カラー画像 */
.fv-img.color {
  z-index: 1;
  transition: opacity .2s ease;
}

.fv-item.loaded .fv-img.color {
  opacity: 1;
}

.fv-img.mono {
  z-index: 2;
  --x: 50%;
  --y: 50%;

  --size: 160px;
  --blur: 145px;
  --edge: 160px;

  /* 初期状態 → 全面モノクロ */
  opacity: 1;

  mask-image:
    radial-gradient(circle var(--size) at var(--x) var(--y),
      transparent 0,
      transparent var(--blur),
      black var(--edge));

  -webkit-mask-image:
    radial-gradient(circle var(--size) at var(--x) var(--y),
      transparent 0,
      transparent var(--blur),
      black var(--edge));

  transition:
    --size .5s ease,
    --blur .5s ease,
    --edge .5s ease;

  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .35));
}


/* 左下文字 */
.fv-copy {
  position: absolute;
  left: 20px;
  bottom: 15px;
  z-index: 5;
  color: #fff;
  letter-spacing: .08em;
  font-size: var(--font-base-size);
  font-weight: 400;
}


/* 右下ナビ */
.fv-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.fv-nav ul {
  display: flex;
  gap: 2.5rem;
}

.fv-nav a {
  color: var(--en-color);
  letter-spacing: .12em;
}



/* =========================
お知らせ
========================= */
.top-news-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  margin-bottom: 20rem;
}

.news-box {
  display: flex;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--en-color);
  border-radius: 100vh;
  padding: clamp(0.8rem, 1.5vw, 1.2rem) clamp(2rem, 4vw, 6rem);
}

.news-box-left {
  padding-right: 2.5rem;
  border-right: 1px solid var(--en-color);
  display: flex;
  align-items: flex-start;
}

.news-label {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.news-box-right {
  padding-left: 2.5rem;
  flex: 1;
}



/* -------------------------
   NEWSリスト
--------------------------*/
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;

  transition:
    color .4s ease,
    transform .4s ease;
}

.news-main {
  display: grid;
  grid-template-columns: 10ch 1fr;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.news-item time {
  white-space: nowrap;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-variant-numeric: tabular-nums;
  opacity: .7;
  transition: opacity .4s ease;
}

.news-item p {
  margin: 0;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  transition: transform .4s ease;
}

.news-more {
  position: relative;
  white-space: nowrap;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.05em;
  transition: color .4s ease;
}

.news-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;

  transition: transform .4s ease;
}

.news-item a:hover {
  color: var(--sub-color);
}

.news-item a:hover time {
  opacity: 1;
}

.news-item a:hover .news-more::after {
  transform: scaleX(1);
}



/* -------------------------
   ABOUT
--------------------------*/
.top-about {
  position: relative;
  padding: 160px clamp(20px, 4vw, 40px);
  overflow: hidden;
}

.top-about-inner {
  width: 88.888%;
  max-width: 1200px;
  margin-inline: auto;
}

.top-about-content {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.top-about-content h2 {
  line-height: 1;
  letter-spacing: .05em;
}

/* 装飾画像 */
.top-about-deco {
  position: absolute;
}

.top-about-deco img {
  width: 100%;
  height: auto;
}

/* 左上 */
.deco-01 {
  top: 110px;
  left: 8%;
  width: clamp(220px, 24vw, 330px);
}

/* 左下 */
.deco-02 {
  left: -40px;
  bottom: 90px;
  width: clamp(180px, 20vw, 270px);
}

/* 右 */
.deco-03 {
  top: 0;
  right: -30px;
  width: clamp(320px, 34vw, 500px);
}



/* -------------------------
   WORKS
--------------------------*/
.top-works {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 88.888%;
}

/* 白背景エリア */
.top-works-slider-wrap {
  position: relative;
}

/* スライダー全体 */
.top-works-slider {
  position: relative;
}

.top-works-slides {
  position: relative;
  min-height: 770px;
}

/* スライド */
.top-works-slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
  pointer-events: none;
}

/* 表示中 */
.top-works-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* 画像 */
.top-works-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--en-color);
  padding: .5rem;
}

/* テキスト */
.top-works-text {
  margin-top: 40px;
}

.works-category {
  color: var(--sub-color);
  font-weight: 600;
}

.top-works-text span {
  font-size: clamp(1.3rem, 1.5vw, 1.5rem);
  color: var(--sub-color);
}

.top-works-image {
  position: relative;
}

/* 矢印ボタン */
.top-works-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.top-works-arrow.prev {
  left: -80px;
}

.top-works-arrow.next {
  right: -80px;
}

/* 疑似要素で矢印 */
.top-works-arrow::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--en-color);
  border-right: 1px solid var(--en-color);
  position: absolute;
  top: 50%;
  left: 50%;
}

/* 左矢印 */
.top-works-arrow.prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

/* 右矢印 */
.top-works-arrow.next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}






/* =========================
   TABLET
====================== */
@media (max-width: 1260px) {
  .top-news-inner {
    margin-bottom: 8rem;
  }

}


/* =========================
   SP
========================= */
@media (max-width: 767px) {

  .content-width,
  .top-about-inner,
  .top-works {
    width: 85%;
    margin-inline: auto;
  }


  .fv {
    position: relative;
    height: 100vh;
    padding-top: 75px;
    overflow: hidden;
  }

  .fv-gallery {
    display: block;
    height: 100%;
  }

  .fv-item {
    width: 100%;
    height: 100%;
  }

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

  .fv-nav {
    display: none;
  }

  .top-news-inner {
    margin-bottom: 5rem;
  }

  .news-box {
    align-items: center;
  }

  .news-box-left {
    padding-right: 1.5rem;
  }

  .news-box-right {
    padding-left: 1.5rem;
  }

  .news-main {
    display: block;
    line-height: 1.5;
  }

  .news-more {
    display: none;
  }

  .sp-none {
    display: none;
  }

}



/* =========================
   TABLET  about
====================== */
@media (max-width: 1260px) {

  .top-about {
    padding-top: 10rem;
    padding-bottom: 10rem;
    margin-bottom: 5rem;
  }

  .deco-01 {
    display: none;
  }

  .deco-02 {
    width: 200px;
    bottom: 200px;
    left: -20px;
  }

  .deco-03 {
    width: 300px;
    top: 2px;
    right: -50px;
  }

}

/* ABOUTのspレイアウト */
@media (max-width: 767px) {

  .top-about {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 1rem;
    overflow: hidden;
  }

  .top-about-inner {
    position: relative;
    z-index: 2;
  }

  .top-about-content p {
    text-align: left;
    margin-bottom: 1rem;
  }

  .top-about-deco {
    position: absolute;
    z-index: 1;
  }

  .deco-01 {
    display: none;
  }

  .deco-02 {
    width: 85px;
    top: 90px;
    left: -20px;
  }

  .deco-03 {
    width: 140px;
    top: 25px;
    right: -30px;
  }

  .circle-link {
    margin-top: 2rem;
    justify-content: center;
  }

}



/* =========================
   TABLET  works
====================== */
@media (max-width: 1200px) {
  .top-works-slides {
    min-height: 555px;
  }
}



/* WORKS spレイアウト */
@media (max-width: 767px) {

  .top-works-slide {
    display: block;
  }

  .top-works-slides {
    min-height: 300px;
  }

  .top-works-text {
    margin-top: 1rem;
  }

  .top-works-note {
    line-height: 1.4;
  }

  .top-works-arrow {
    width: 40px;
    height: 40px;
  }

  .top-works-arrow::before {
    width: 16px;
    height: 16px;
  }

  .top-works-arrow.prev {
    left: -30px;
  }

  .top-works-arrow.next {
    right: -30px;
  }
}