/* ==========================================================================
   Hero
   ========================================================================== */
main {
  padding-top: var(--header-height);
}

.hero {
  position: relative;
  background: var(--color-bg);
  padding: 48px 0 80px;
  overflow: hidden;
}

/* デスクトップ: Figma実測値通りの上下余白(上107px / 下72px @1440) */
@media (min-width: 861px) {
  .hero {
    padding-top: max(50px, 7.43vw);
    padding-bottom: max(36px, 5vw);
  }
}

/* 写真が左へ流れ続けるマーキー(無限スクロール)
   トラック内の各写真に「右マージン」を持たせることで、
   写真6枚(オリジナル3枚+複製3枚)が完全に等間隔の繰り返しになり、
   ちょうど50%移動したところで継ぎ目なくループする */
.hero__marquee {
  width: 100%;
  overflow: hidden;
  padding-left: max(24px, 7.57vw);
}

.hero__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  animation: hero-marquee 46s linear infinite;
  will-change: transform;
}

.hero__photo {
  position: relative;
  flex: none;
  width: max(320px, 49.1vw);
  aspect-ratio: 707 / 522;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-offwhite);
  margin-right: max(8px, 1.46vw);
}

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

/* Figma実測のトリミング位置(hero-3.jpg: 顔まわりを見せて足元を大きくカットする
   非対称なトリミングのため、汎用のobject-fit:cover(中央基準)では再現できない) */
.hero__photo--3 img {
  position: absolute;
  width: 109.19%;
  height: 221.65%;
  max-width: none;
  left: -9.19%;
  top: -34.67%;
}

@keyframes hero-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__track {
    animation: none;
  }
}

/* 背景の装飾レイヤーとして写真/テキストの下に重ねて配置。
   Figma実測値(180px / tracking18px / 上端46px / 左端-8px @1440)を
   すべて vw 単位に変換しているため、画面幅が変わっても常に
   同じ比率(=同じ見え方)を保つ。右側が大きく欠けて見えるのは
   Figmaの元デザイン通りの意図的なレイアウト。 */
.concept__watermark {
  position: absolute;
  top: 3.194vw;
  left: -0.556vw;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.concept__watermark-track {
  display: flex;
  width: max-content;
  animation: watermark-marquee 60s linear infinite;
  will-change: transform;
}

.concept__watermark-track span {
  flex: none;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5vw;
  letter-spacing: 1.25vw;
  line-height: normal;
  white-space: nowrap;
  margin-right: 8vw;
}

@keyframes watermark-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept__watermark-track {
    animation: none;
  }
}

/* ==========================================================================
   Concept
   ========================================================================== */
.concept {
  position: relative;
  background: var(--color-tan);
  padding: 40px 24px 96px;
}

.concept__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.concept__photo {
  flex: 0 0 340px;
  overflow: hidden;
  opacity: 0.85;
  background: rgba(245, 245, 245, 0.5);
}

.concept__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.concept__body {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.concept__lead,
.concept__text {
  font-family: var(--font-mincho);
  color: var(--color-text);
  font-size: clamp(14px, 2.2vw, 16px);
  letter-spacing: 0.1em;
  line-height: 2.75;
}

.concept__lead {
  margin-top: 32px;
}

.concept__text {
  margin-top: 24px;
}

@media (min-width: 861px) {
  .concept__lead {
    margin-top: 56px;
  }

  .concept__text {
    margin-top: 15px;
  }
}

/* デスクトップ: Figma実測値通りの配置(写真は左寄せ・上詰め、
   テキスト列は写真より少し下から始まる) */
@media (min-width: 861px) {
  .concept {
    padding-top: max(60px, 10.49vw);
    padding-bottom: max(48px, 5.49vw);
    padding-left: 0;
    padding-right: 0;
  }

  .concept__inner {
    max-width: none;
    margin: 0;
    align-items: flex-start;
    padding-left: max(24px, 15.76vw);
    gap: max(24px, 6.32vw);
  }

  .concept__photo {
    flex: none;
    width: max(240px, 28.96vw);
  }

  .concept__photo img {
    aspect-ratio: 417 / 435;
  }

  .concept__body {
    flex: none;
    width: max(280px, 39.375vw);
    padding-top: max(12px, 1.6vw);
  }
}

/* ==========================================================================
   Style
   ========================================================================== */
.style {
  position: relative;
  background: var(--color-bg);
  padding: 64px 0 0;
}

.style__heading {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.script-text {
  font-family: var(--font-script);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.08em;
  position: absolute;
  transform: rotate(-8deg);
  pointer-events: none;
  display: block;
}

.script-text--light {
  color: #d0c6bc;
  top: -20px;
  left: 5%;
}

.script-text--dark {
  color: var(--color-text-brown);
  top: 8px;
  left: 11%;
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-view-more);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--color-text-brown);
  margin-top: 20px;
}

.view-more__circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #e0bbb9;
  background-image: url('../../assets/img/view-more-arrow.svg');
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 58% auto;
  position: relative;
  flex: none;
}

@media (min-width: 900px) {
  .script-text {
    display: block;
  }
}

.style__band {
  position: relative;
  margin-top: 40px;
  padding: 0 0 64px;
}

.style__band::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: var(--color-pink);
  z-index: 0;
}

.style__grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.style__grid li {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 258 / 316;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.style__grid li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* デスクトップ: Figma実測値通りの配置
   (見出し周りの装飾テキスト・view moreの位置、ピンク帯の範囲) */
@media (min-width: 861px) {
  .style {
    padding-top: max(64px, 7.84vw);
  }

  .style__heading {
    max-width: none;
    margin: 0;
    padding: 0;
    height: max(100px, 9.7vw);
  }

  .script-text {
    display: block;
    top: 0;
    font-size: max(28px, 3.33vw);
    letter-spacing: 0.1em;
    transform: rotate(-7.94deg);
  }

  .script-text--light {
    left: max(70px, 8.89vw);
    top: 0;
  }

  .script-text--dark {
    left: max(110px, 13.63vw);
    top: max(26px, 3.29vw);
  }

  .style__heading .section-title {
    position: absolute;
    top: max(20px, 2.51vw);
    left: 0;
    right: 0;
  }

  .style__heading .view-more {
    position: absolute;
    top: max(48px, 5.01vw);
    left: max(560px, 75.07vw);
    margin-top: 0;
    gap: max(10px, 1.6vw);
    font-size: max(16px, 1.67vw);
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: #8c8985;
  }

  .style__heading .view-more__circle {
    width: max(30px, 3.26vw);
    height: max(30px, 3.26vw);
  }

  .style__band {
    margin-top: max(16px, 1.7vw);
    padding: 0 0 max(48px, 10.14vw);
  }

  .style__band::before {
    top: max(60px, 10.49vw);
    bottom: auto;
    height: max(150px, 21.6vw);
  }

  .style__grid {
    max-width: none;
    margin: 0;
    padding: 0 max(24px, 12.08vw);
    gap: max(16px, 1.39vw);
  }

  .style__grid li {
    border-radius: 0;
    box-shadow: none;
  }
}

.style__grid img {
  position: absolute;
  max-width: none;
}

/* Figma実測のトリミング位置(各写真ごとに元画像内の見せる範囲が異なる) */
.style__grid li:nth-child(1) img {
  left: -5.04%;
  top: -7.28%;
  width: 105.04%;
  height: 114.24%;
}

.style__grid li:nth-child(2) img {
  left: 0;
  top: -10.13%;
  width: 105.04%;
  height: 114.24%;
}

.style__grid li:nth-child(3) img {
  left: -9.3%;
  top: -12.97%;
  width: 120.16%;
  height: 130.7%;
}

.style__grid li:nth-child(4) img {
  left: -0.77%;
  top: -7.6%;
  width: 111.58%;
  height: 121.52%;
}

/* ==========================================================================
   News
   ========================================================================== */
.news {
  background: var(--color-offwhite);
  padding: 80px 24px 96px;
}

.news__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.news__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.news-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-pink-border);
  border-radius: 30px;
  box-shadow: 5px 5px 7px 0 rgba(200, 172, 164, 0.6);
  padding: 130px 22px 52px;
  text-align: center;
}

.news-card__link {
  display: block;
  color: inherit;
}

.news-card__photo {
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  width: auto;
  aspect-ratio: 312 / 211;
  border-radius: 30px;
  overflow: hidden;
}

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

.news-card__date {
  display: block;
  font-family: var(--font-maru);
  color: var(--color-pink);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.news-card__title {
  font-family: var(--font-maru);
  font-weight: 400;
  color: var(--color-text-brown);
  font-size: 21px;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.news-card__text {
  font-family: var(--font-maru);
  color: var(--color-text-brown);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin-top: 14px;
  text-align: left;
}

.news-card__tag {
  display: inline-block;
  margin-top: 20px;
  border: 1.5px solid var(--color-pink);
  border-radius: 20px;
  padding: 7px 20px;
  font-family: var(--font-sans-jp);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-text-brown);
  transition: background 0.2s ease, color 0.2s ease;
}

.news-card__tag:hover,
.news-card__tag:focus-visible {
  background: var(--color-pink);
  color: #fff;
}

.news__inner > .view-more {
  margin-top: 48px;
}

/* デスクトップ: Figma実測値通りの配置
   (カード幅・写真のはみ出し量・カード内の余白・view moreの位置) */
@media (min-width: 861px) {
  .news {
    padding-top: max(60px, 10.9vw);
    padding-bottom: max(36px, 4.72vw);
    padding-left: 0;
    padding-right: 0;
  }

  .news__inner {
    max-width: none;
    margin: 0;
  }

  .news__grid {
    max-width: none;
    margin: 0;
    margin-top: max(160px, 17.22vw);
    padding: 0 max(24px, 13.68vw);
    gap: max(24px, 4.9vw);
  }

  .news-card {
    padding: max(48px, 5.42vw) max(16px, 1.74vw) max(20px, 2.36vw);
  }

  .news-card__photo {
    top: calc(-1 * max(90px, 11.04vw));
  }

  .news-card__title {
    margin-top: max(2px, 0.21vw);
  }

  .news-card__text {
    margin-top: max(2px, 0.21vw);
    width: 83.4%;
    margin-left: auto;
    margin-right: auto;
  }

  .news-card__tag {
    margin-top: max(16px, 1.81vw);
    width: max(120px, 11.67vw);
    text-align: center;
  }

  .news__inner > .view-more {
    display: flex;
    width: fit-content;
    margin: max(40px, 4.79vw) max(24px, 13.68vw) 0 auto;
    gap: max(10px, 1.6vw);
    font-size: max(16px, 1.67vw);
    letter-spacing: 0.1em;
    color: #4a4d4f;
  }

  .news__inner > .view-more .view-more__circle {
    width: max(30px, 3.26vw);
    height: max(30px, 3.26vw);
  }
}


/* Responsive — Tablet (<=1024px): TOPページ固有分 */
@media (max-width: 1024px) {
  .concept__inner {
    gap: 36px;
  }

  .concept__photo {
    flex-basis: 260px;
  }
  .style__grid,
  .news__grid {
    gap: 16px;
  }
}

/* Responsive — Mobile (<=680px): TOPページ固有分 */
@media (max-width: 680px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero__photo {
    width: auto;
    height: min(399px, 101.9vw);
    aspect-ratio: 1 / 1;
    margin-right: 20px;
    border-radius: 24px;
  }

  .hero__track {
    animation-duration: 30s;
  }

  .concept {
    padding: 112px 16px 84px;
  }

  .concept__watermark-track span {
    font-size: 22vw;
    letter-spacing: 2.2vw;
    margin-right: 8vw;
  }

  .concept__watermark-track {
    animation-duration: 28s;
  }

  .concept__watermark {
    top: 13vw;
  }

  .concept__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .concept__photo {
    flex-basis: auto;
    width: min(280px, 70%);
  }

  .style {
    padding-top: 80px;
  }

  .style__band {
    padding-bottom: 80px;
  }

  .style__band::before {
    height: 37%;
  }

  .style__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news {
    padding: 80px 16px 88px;
  }

  .news-card {
    padding: 220px 18px 40px;
  }

  .news__grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 72px;
  }
}
