
:root {
  --navy: #02162e;
  --gold: #c89b3c;
  --ivory: #f7f4ed;
  --white: #ffffff;
  --text: #4b4b4b;
  --soft-bg: #faf8f2;
  --line: #dddddd;
}

/* ==================================================
   GALLERY HERO
================================================== */

.gallery-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(2, 22, 46, 0.45),
      rgba(2, 22, 46, 0.45)
    ),
    url("../images/gallery-hero.jpg") center center / cover no-repeat;
}

.gallery-hero .hero-text {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  color: var(--white);
}

.gallery-hero .hero-text h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.12em;
}

.gallery-hero .hero-text h2 {
  margin: 12px 0 24px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.5;
}

.gallery-hero .hero-text h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.gallery-hero .hero-text p {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}


/* ==================================================
   PHOTO GALLERY
================================================== */

.photo-gallery {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 100px 0 80px;
  text-align: center;
}

.section-en {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.24em;
}

.photo-gallery > h2 {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 60px;
  color: var(--navy);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(34px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.4;
}



/* ==================================================
   FILTER TABS
================================================== */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
}

.filter-tabs button {
  min-width: 120px;
  margin: 0;
  padding: 13px 24px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.filter-tabs button:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.filter-tabs .active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}


/* ==================================================
   GALLERY GRID
================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}


/* ==================================================
   写真提供・SNS
================================================== */

/*
   現在のHTMLでは photo-info が photo-gallery の中に入っているため、
   そのままでも崩れないように幅を100%で調整しています。
*/

.photo-info {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  width: 100%;
  margin: 70px auto 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
}


/* ---------- 左：写真提供のお願い ---------- */

.photo-request {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  min-width: 0;
  padding: 35px 40px;
  background: var(--white);
}

.camera-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: var(--navy);
  border-radius: 50%;
}

.camera-icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.photo-request-text {
  min-width: 0;
  text-align: center;
}

.photo-request-text h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.photo-request-text p {
  margin: 5px 0;
  color: #333333;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}


/* ---------- 右：SNS ---------- */

.sns-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 35px 25px;
  color: var(--gold);
  background: var(--soft-bg);
  border-left: 1px solid var(--line);
  text-align: center;
}

.sns-box h3 {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.sns-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.sns-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.sns-icons img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.sns-icons a:hover img {
  opacity: 0.75;
  transform: translateY(-4px) scale(1.08);
}


/* ==================================================
   タブレット：1024px以下
================================================== */

@media screen and (max-width: 1024px) {

  .gallery-hero .hero-text,
  .photo-gallery {
    width: min(100% - 56px, 960px);
  }

  .gallery-hero {
    min-height: 460px;
  }

  .photo-gallery {
    padding: 90px 0 70px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .gallery-item img {
    height: 260px;
  }

  .photo-info {
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  }

  .photo-request {
    gap: 30px;
    padding: 32px 28px;
  }

  .camera-icon {
    width: 80px;
    height: 80px;
  }

  .camera-icon img {
    width: 42px;
    height: 42px;
  }

  .photo-request-text h3 {
    font-size: 22px;
  }
}


/* ==================================================
   スマートフォン：768px以下
================================================== */

@media screen and (max-width: 768px) {

  .gallery-hero .hero-text,
  .photo-gallery {
    width: min(100% - 40px, 700px);
  }

  .gallery-hero {
    min-height: 420px;
    background-position: 55% center;
  }

  .gallery-hero .hero-text h1 {
    font-size: 42px;
  }

  .gallery-hero .hero-text h2 {
    font-size: 25px;
  }

  .gallery-hero .hero-text h3 {
    font-size: 20px;
  }

  .gallery-hero .hero-text p {
    font-size: 15px;
  }

  .photo-gallery {
    padding: 72px 0 60px;
  }

  .photo-gallery > h2 {
    font-size: 34px;
  }

  .lead {
    margin-bottom: 36px;
    font-size: 14px;
  }

  .filter-tabs {
    gap: 10px;
    margin-bottom: 42px;
  }

  .filter-tabs button {
    min-width: 0;
    padding: 11px 18px;
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-item img {
    height: 230px;
  }

  .photo-info {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .photo-request {
    align-items: center;
    gap: 24px;
    padding: 30px 24px;
  }

  .camera-icon {
    width: 70px;
    height: 70px;
  }

  .camera-icon img {
    width: 38px;
    height: 38px;
  }

  .photo-request-text h3 {
    font-size: 21px;
  }

  .photo-request-text p {
    font-size: 13px;
  }

  .sns-box {
    padding: 30px 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}


/* ==================================================
   小さいスマートフォン：480px以下
================================================== */

@media screen and (max-width: 480px) {

  .gallery-hero .hero-text,
  .photo-gallery {
    width: calc(100% - 32px);
  }

  .gallery-hero {
    min-height: 380px;
    background-position: 60% center;
  }

  .gallery-hero .hero-text h1 {
    font-size: 34px;
    letter-spacing: 0.08em;
  }

  .gallery-hero .hero-text h2 {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .gallery-hero .hero-text h3 {
    font-size: 18px;
  }

  .gallery-hero .hero-text p {
    font-size: 13px;
  }

  .photo-gallery {
    padding: 58px 0 50px;
  }

  .section-en {
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .photo-gallery > h2 {
    margin: 14px 0;
    font-size: 29px;
  }

  .lead {
    margin-bottom: 30px;
    font-size: 13px;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 34px;
  }

  .filter-tabs button {
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-item img {
    height: 270px;
  }

  .photo-info {
    margin-top: 42px;
  }

  .photo-request {
    flex-direction: column;
    gap: 18px;
    padding: 28px 18px;
  }

  .camera-icon {
    width: 64px;
    height: 64px;
  }

  .camera-icon img {
    width: 34px;
    height: 34px;
  }

  .photo-request-text h3 {
    font-size: 20px;
  }

  .photo-request-text p {
    font-size: 12px;
    line-height: 1.85;
  }

  .photo-request-text br {
    display: none;
  }

  .sns-box {
    padding: 26px 18px;
  }

  .sns-box h3 {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .sns-icons {
    gap: 24px;
  }

  .sns-icons img {
    width: 33px;
    height: 33px;
  }
}


/* ==================================================
   さらに小さいスマートフォン：360px以下
================================================== */

@media screen and (max-width: 360px) {

  .gallery-hero .hero-text,
  .photo-gallery {
    width: calc(100% - 26px);
  }

  .gallery-hero {
    min-height: 350px;
  }

  .gallery-hero .hero-text h1 {
    font-size: 30px;
  }

  .gallery-hero .hero-text h2 {
    font-size: 20px;
  }

  .gallery-hero .hero-text h3 {
    font-size: 16px;
  }

  .gallery-hero .hero-text p {
    font-size: 12px;
  }

  .photo-gallery {
    padding-top: 50px;
  }

  .photo-gallery > h2 {
    font-size: 26px;
  }

  .filter-tabs button {
    font-size: 11px;
  }

  .gallery-item img {
    height: 235px;
  }

  .photo-request {
    padding-right: 14px;
    padding-left: 14px;
  }

  .photo-request-text h3 {
    font-size: 18px;
  }

  .sns-box h3 {
    font-size: 15px;
  }
}