/*
 * トップページ
 */

/* メインビジュアルを固定ヘッダーの下まで広げる */
.home .site-content {
  padding-top: 0;
}

/* ---------- メインビジュアル ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
  background: #888;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 9s infinite;
}

/* 3 枚を 3 秒ずつ (旧テーマと同じ間隔) */
.hero__slide:nth-child(1) { animation-delay: -0.5s; }
.hero__slide:nth-child(2) { animation-delay: 2.5s; }
.hero__slide:nth-child(3) { animation-delay: 5.5s; }

.hero__slide:only-child {
  opacity: 1;
  animation: none;
}

@keyframes hero-fade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  33% { opacity: 1; }
  39% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
  .hero__slide:first-child { opacity: 1; }
}

.hero__headline {
  position: relative;
  margin: 0;
  padding: 0 var(--gutter);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 3.875rem;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 0 10px #666;
}

.hero__next {
  position: absolute;
  bottom: 60px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin-left: -55px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -1px;
  text-decoration: none;
}

.hero__next:hover {
  text-decoration: none;
}

.hero__next .icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* ---------- こいのわプロジェクト ---------- */
.intro {
  padding: 5rem 0 6.25rem;
  text-align: center;
}

.intro__headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3rem;
  letter-spacing: -0.05em;
  line-height: 1.8;
}

.intro__text {
  margin: 0 0 2.5rem;
  line-height: 2.2;
}

.intro__image {
  width: 350px;
}

/* ---------- 見出しの帯 ---------- */
.band {
  display: flex;
  align-items: flex-end;
  min-height: 24rem;
  background: #888 var(--band-bg) center / cover no-repeat;
  background-attachment: fixed; /* 旧テーマのパララックスに近い見え方 */
}

.band__title {
  width: 100%;
  padding: 1.75rem 0 1.25rem;
  background: rgba(40, 40, 40, 0.5);
  color: #fff;
}

.band__heading {
  margin: 0 0 0.2rem;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.band__sub {
  margin: 0;
  font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
  font-size: 1.3125rem;
  font-weight: 300;
}

/* ---------- ここ惚れわんわんを知る ---------- */
.about {
  padding: 5rem 0 2rem;
}

.about__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.75rem;
  max-width: 65.625rem; /* 1050px */
}

.about__item {
  padding: 0 var(--gutter);
  text-align: center;
}

.about__headline {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.6;
  white-space: nowrap;
}

.about__text {
  margin: 1.25rem 0 0.625rem;
  line-height: 2.2;
  text-align: justify;
}

.about .button {
  margin-top: 0.9375rem;
}

/* ---------- 紹介動画 ---------- */
.movie {
  padding: 4.0625rem 0;
  text-align: center;
}

.section-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.5;
}

.section-sub {
  margin: 0 0 1.75rem;
  color: #777;
  letter-spacing: 0.08em;
}

.movie__frame {
  max-width: 53.125rem; /* 850px */
  margin: 0 auto;
}

.movie__frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 記事の一覧 ---------- */
.front-posts {
  padding: 5rem 0 6.25rem;
}

.front-posts--column {
  padding: 4.0625rem 0;
  background: #f8f8f8;
}

.front-posts__more {
  margin: 1.875rem 0 0;
  text-align: center;
}

.card-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5625rem;
}

.card-simple a {
  color: var(--color-link);
}

.card-simple img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.card-simple__title {
  margin: 0.75rem 0 0.4375rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.card-simple time {
  color: #777;
  font-size: 0.8125rem;
}

/* ---------- ご縁の写真 ---------- */
.weddings {
  padding: 4.375rem 0;
  overflow: hidden;
  background: #fffaf7;
}

.weddings__title {
  margin: 0 1.125rem 1.875rem;
  font-size: 1.625rem;
  line-height: 1.6;
  text-align: center;
}

.weddings__marquee {
  overflow: hidden;
}

.weddings__track {
  display: flex;
  width: max-content;
  animation: weddings-flow 45s linear infinite;
}

.weddings__marquee:hover .weddings__track,
.weddings__marquee:focus-within .weddings__track {
  animation-play-state: paused;
}

.weddings__set {
  display: flex;
  flex: none;
  gap: 1.125rem;
  padding-right: 1.125rem;
}

.weddings__photo {
  flex: none;
  width: 430px;
  margin: 0;
}

.weddings__photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

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

@media (prefers-reduced-motion: reduce) {
  .weddings__track { animation: none; }
  .weddings__marquee { overflow-x: auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .hero__headline {
    font-size: 1.375rem;
  }

  .hero__next {
    width: 80px;
    height: 80px;
    margin-left: -40px;
    font-size: 1rem;
  }

  .intro {
    padding: 1.5625rem 0 3rem;
  }

  .intro__headline {
    font-size: 1.375rem;
  }

  .intro__image {
    width: 250px;
  }

  .band {
    min-height: 11.25rem;
    background-attachment: scroll;
  }

  .band__title {
    padding: 0.625rem 0 1.25rem;
  }

  .band__heading {
    font-size: 1.125rem;
  }

  .band__sub {
    font-size: 0.75rem;
  }

  .about {
    padding: 2rem 0 0;
  }

  .about__items {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about__headline {
    font-size: 1.5rem;
  }

  .movie,
  .front-posts--column {
    padding: 2.8125rem 0;
  }

  .front-posts {
    padding: 2.5rem 0 3rem;
  }

  .card-simple-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.375rem;
  }

  .weddings {
    padding: 2.8125rem 0;
  }

  .weddings__title {
    font-size: 1.25rem;
  }

  .weddings__photo {
    width: 300px;
  }

  .weddings__photo img {
    height: 230px;
  }
}

/* タブレット (旧テーマは 768px 以上で 3 列) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__headline {
    font-size: 2.5rem;
  }

  .about__items {
    gap: 1.5rem;
  }

  .about__headline {
    font-size: 1.75rem;
  }
}
