@charset "utf-8";

/* article header */
.article__header--mv {
    background-image: url(../images/gallery-top.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 70%;
    aspect-ratio: 375/392;
    display: flex;
    align-items: flex-end;
    padding: 0 0 100px 30px;
}

.article__header--title {
    font-size: 3rem;
    line-height: 1.2;
    font-family: 'Old Standard TT', serif;
    font-style: italic;
    color: var(--primary-white);
}

.article__header--title::after{
    content:"";
    display:block;
    width: 100px;
    height: 1px;
    background: var(--primary-white);
    margin-top: 10px;
}

/* ここから内容 */
.article {
  background-color: var(--primary-brown);
  display: flow-root;
}

.topic__white {
  padding: 30px 0;
  color: var(--primary-white);
  position: relative;
}

.topic__white::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 32px;
    bottom: 0;
    background-color: var(--primary-white);
    margin-right: 16px;
}

.section__gallery,
.photo__list {
  padding:0 var(--contentPadding);
}

.movie {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

/*ここから garelly　img */

.photo__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px var(--contentPadding);
}

.photo__item img {
  display: block;
  width: 160px;          /* 流れる時のサイズ */
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

/* ▼ 流れるときだけ flex に変更 */
.marquee .photo__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;

  will-change: transform;
  --duration: 35s;
  --distance: 1000px;
}

/* アニメ適用 */
.marquee .photo__list[data-direction="left"]{
  animation: marquee-left var(--duration) linear infinite;
}
.marquee .photo__list[data-direction="right"]{
  animation: marquee-right var(--duration) linear infinite;
}

@keyframes marquee-left{
  from { transform: translateX(calc(-1 * var(--distance))); }
  to   { transform: translateX(0); }
}
@keyframes marquee-right{
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--distance))); }
}

/* marquee内の画像サイズ（好みで調整OK） */
.marquee .photo__item img{
  width: 160px;
  aspect-ratio: 3/4;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

.marquee{
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 20px var(--contentPadding);
}


.btn__gallery {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 24px auto;
  padding: 14px 0;
  border-radius: 999px;
  background-color: var(--primary-white);
  color: var(--primary-green);
  font-size: 1.6rem;
  text-align: center;
}

/* スマホはタップ長押しで止めたい人向け（なくてもOK） */
.marquee .photo__list:active{
  animation-play-state: paused;
}

/* ===== 個別調整 ===== */

/* 引きで見せたい（少し上寄りにして余白を広げる） */
.photo__item img.photo05,
.photo__item img.photo08,
.photo__item img.photo11,
.photo__item img.photo18 {
  object-position: center 35%;
}

/* 右をもう少し見せたい */
.photo__item img.photo13 {
  object-position: 70% center;
}

/* 左をもう少し見せたい */
.photo__item img.photo15 {
  object-position: 25% center;
}

/*gallery pc　始 */
@media screen and (min-width: 769px) {
  .article__header--mv {
    aspect-ratio: auto;
    height: clamp(320px, 55vh, 550px);
    padding: 0 0 120px 100px;
  }
  .article__header--title {
    font-size: 6rem;
  }

  .article__header--title::after {
    content:"";
    display:block;
    width: 200px;
    height: 1px;
    background: var(--primary-white);
    margin-top: 15px;
  }

  .btn__gallery {
    font-size: 2rem;
  }
  .footer {
    margin-top: 0;
  }
}

@media screen and (min-width: 768px) {
  .photo__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px var(--contentPadding);
  }
  /* マウス乗せたら止まる */
  .marquee .photo__list:hover{
    animation-play-state: paused;
}

  
}
/*gallery pc　終 */