:root {
  --bg: #ececec;
  --text: #4a4a4a;
  --text-soft: #6a6a6a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.page {
  width: 100%;
}

.hero {
  position: relative;
  width: 100%;
}

.hero img {
  width: 100%;
  height: auto;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 29px;
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.intro {
  padding: 36px 28px 14px;
  text-align: center;
}

.intro p {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.16em;
}

.gallery {
  padding: 10px 28px 72px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;      /* ←高さを固定 */
  object-fit: cover;  /* はみ出しをトリミング */
}

.contact {
  padding: 0 28px 80px;
  text-align: center;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.instagram-icon {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 28px;
}

@media (min-width: 768px) {
  .page {
    max-width: 1024px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 52px;
    letter-spacing: 0.16em;
  }

  .intro {
    padding: 52px 72px 20px;
  }

  .intro p {
    font-size: 20px;
    line-height: 2.05;
    letter-spacing: 0.18em;
    margin-bottom: 34px;
  }

  .gallery {
    padding: 18px 54px 90px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr 1.8fr;
    gap: 16px;
    align-items: start;
  }

 .gallery-grid img {
  height: 300px;
}

  .contact {
    padding: 0 40px 110px;
  }

  .instagram-link {
    font-size: 18px;
    gap: 16px;
    letter-spacing: 0.2em;
  }

  .instagram-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}