/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

body {
  font-family: "source-han-sans-vf", sans-serif;
  font-variation-settings: 'wght';
  color: #222;
  background-color: #fff;
  line-height: 1.7;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

html,
body {
  overflow-x: hidden;
}

/* ===== Common ===== */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

p {
  letter-spacing: 0.07em;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: 0.2em;
}

h2 {
  margin-bottom: 40px;
  font-size: 1.6rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;

  text-decoration: none;
  border-radius: 999px;

  transition:
    opacity 0.3s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn--pill {
  border-radius: 999px;
}

.btn--icon {
  width: 18em;
  padding: 14px 16px;
}
.btn--primary {
  background: #222;
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.8;
}

.btn--line {
  background: #6a915d;
  color: #fff;
}

.btn--line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn--instagram {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}

.btn--instagram:hover {
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border: 1px dashed #ccc;
  color: #555;
}

.btn--ghost:hover {
  transform: translateY(-2px);
}
/* ===== Hero ===== */
.hero {
  height: 100vh;
  margin-bottom: 50px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: center;
  text-shadow: 0.4px 0.4px 0.4px #757575;
  padding: 20px;
}

.hero-overlay h1 {
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.4em;
  margin-bottom: 12px;
}

.hero-overlay p {
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ===== About ===== */
#about {
  /* height: 90vh; */
}

/* ===== Portfolio ===== */

.portfolio-message {
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-grid>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 正方形 */
  overflow: hidden;
  /* はみ出た部分を切る */
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 中央トリミング */
  display: block;
}

/* ★ 横長写真用 */
.stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 100%;
}

.stack img:nth-child(2) {
  /* margin-top: 2px; */
}


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

/* ===== Message ===== */
.message {
  text-align: center;
  padding: 20px;
  padding-top: 0;
  padding-bottom: 70px;

}

.message-background {
  padding: 60px 20px;
  text-align: center;
  background-color: #f7f7f7;

}

.message p {
  font-size: 1rem;
}

.message-photo {
  padding: 80px 20px;

}

.photo-wrap {
  position: relative;
  /* ← 基準点 */
  max-width: 900px;
  margin: 0 auto;
  left: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrap img {
  width: 80%;
  height: auto;
  display: block;
}

.photo-text-right {
  display: flex;
  justify-content: right;
  align-items: right;
}

/* ===== Flow ===== */
.flow ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow li {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.flow-title {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.2em;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
}

.cta p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact {
  max-width: 800px;
}

.contact-note {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #555;
}

#contact-form {
  padding-top: 80px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}
/* ===== Footer ===== */
.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* ===== Responsive ===== */

/* PCでは改行しない */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow ol {
    grid-template-columns: 1fr;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .sp-only {
    display: inline;
  }

}

/* ===== fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 1.2s ease;

}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Scroll Down Button ===== */
.flow,
.hero,
.message-photo,
.message {
  position: relative;
}

.scroll-down {
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
  text-decoration: none;
  opacity: 7;
}

.scroll-down span {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  animation: arrowDown 1s infinite;
}

.scroll-down--light {
  border: 1px solid #fff;
  color: #fff;
}

.scroll-down--light span {
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.scroll-down--dark {
  border: 1px solid #555;
  color: #555;
}

.scroll-down--dark span {
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
}

.scroll-down--hero {
  bottom: 4.5em;
}

.scroll-down--about {
  bottom: 0;
}

.scroll-down--flow {
  margin-top:2em;
}


@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

@keyframes arrowDown {
  0% {
    transform: rotate(45deg) translateY(0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 0;
  }
}

.photo img {
  transition: transform 0.4s ease;
}

.photo:hover img {
  transform: scale(1.05);
}
/* ===== Detail Page ===== */

/* KV */
.scene-hero {
  position: relative;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scene-hero img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.scene-hero-text {
  position: absolute;
  bottom: 30px;
  left: 20px;
  color: #fff;
  text-shadow: 0.25px 0.25px 2px rgba(0,0,0,0.5);
}

.scene-hero-text h1 {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
}

.scene-hero-text p {
  font-size: 0.9rem;
}

/* Intro */
.scene-intro {
  max-width: 600px;
  text-align: left;
}

/* Gallery */
.scene-gallery {
  max-width: 800px;
}

.scene-photo {
  margin-bottom: 40px;
}

.scene-photo img {
  width: 100%;
}

/* 横並び */
.scene-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

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

/* Message */
.scene-message {
  text-align: center;
  background: #f7f7f7;
  padding: 60px 20px;
}

/* Back */
.scene-back {
  text-align: center;
}