/* ===== 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;
}

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

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

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

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
}

.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;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

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

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

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

/* ===== Message ===== */
.message {
  background-color: #f7f7f7;
  text-align: center;
}

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

/* ===== 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;
}

/* ===== 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;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* ===== Responsive ===== */
@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;
  }
}
