:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --text: #1f2937;
  --muted: #5b6778;
  --primary: #3867d6;
  --primary-dark: #274dd6;
  --accent: #4f7ef4;
  --shadow: 0 24px 80px rgba(66, 82, 110, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(242, 199, 164, 0.18), transparent 30%),
              linear-gradient(180deg, #fbf7f1 0%, #f3ebe4 45%, #f6f2ed 100%);
  color: var(--text);
  line-height: 1.75;
  animation: background-glow 18s ease-in-out infinite;
}

@keyframes background-glow {
  0%, 100% { background-position: top center; }
  50% { background-position: calc(100% - 30px) calc(100% - 50px); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bounce-on-click {
  transition: transform 0.25s ease;
}

.bounce-on-click.bounce {
  animation: bounce 0.35s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(0.96); }
  60% { transform: scale(1.03); }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  font: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 36px rgba(193, 102, 93, 0.22);
}

.button-primary,
.button-secondary {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.button-primary:hover,
.button-secondary:hover {
  opacity: 0.98;
}

.button-secondary {
  border: 1px solid rgba(47, 43, 40, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 251, 246, 0.83);
  border-bottom: 1px solid rgba(47, 43, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 3rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 540px;
  animation: fade-up 0.9s ease-out 0.2s both;
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 1rem;
  color: var(--primary-dark);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 0.96;
}

.hero-copy p,
.section-copy,
.gallery-card p,
.contact-panel p {
  margin: 1.5rem 0 0;
  color: var(--muted);
  max-width: 45rem;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-graphic {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1.1;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(56, 103, 214, 0.9), rgba(79, 126, 244, 0.85));
  box-shadow: 0 46px 90px rgba(56, 103, 214, 0.16), inset 0 0 40px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  animation: float-y 7s ease-in-out infinite;
}

.hero-graphic::before,
.hero-graphic::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-graphic::before {
  top: 20%;
  left: 10%;
  width: 140px;
  height: 140px;
}

.hero-graphic::after {
  bottom: 14%;
  right: 12%;
  width: 90px;
  height: 90px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  filter: blur(1px);
}

.hero-orb.orb-1 {
  width: 92px;
  height: 92px;
  top: 8%;
  right: 14%;
  background: rgba(255, 255, 255, 0.22);
  animation: float-x 8s ease-in-out infinite;
}

.hero-orb.orb-2 {
  width: 60px;
  height: 60px;
  bottom: 18%;
  left: 10%;
  background: rgba(255, 255, 255, 0.18);
  animation: float-y 6s ease-in-out infinite;
}

.hero-orb.orb-3 {
  width: 34px;
  height: 34px;
  top: 48%;
  left: 22%;
  background: rgba(255, 255, 255, 0.16);
  animation: float-x 5.5s ease-in-out infinite;
}

.hero-orb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 720px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  line-height: 1.05;
}

.feature-grid,
.gallery-grid,
.about-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.gallery-card,
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  animation: fade-up 0.8s ease-out both;
}

.feature-card:hover,
.gallery-card:hover,
.profile-card:hover {
  transform: translateY(-6px);
}

.profile-card {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.profile-card figcaption {
  margin: 0;
  color: var(--muted);
}

.profile-img,
.gallery-img {
  width: 100%;
  display: block;
  border-radius: 1.5rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 190px;
  background: linear-gradient(135deg, rgba(56, 103, 214, 0.12), rgba(79, 126, 244, 0.08));
}

.profile-card,
.gallery-card {
  overflow: hidden;
}

.gallery-card p {
  margin: 1rem 0 0;
}

.feature-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  display: grid;
  gap: 1rem;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-1 { background-image: linear-gradient(135deg, #f7d3c7 0%, #f2b093 100%); }
.image-2 { background-image: linear-gradient(135deg, #e3c7b5 0%, #d09b85 100%); }
.image-3 { background-image: linear-gradient(135deg, #f0d8c9 0%, #d48f78 100%); }
.image-4 { background-image: linear-gradient(135deg, #f5d0ac 0%, #c16a5c 100%); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--surface-soft);
  border: 1px solid rgba(47, 43, 40, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 24px 54px rgba(47, 43, 40, 0.08);
  animation: fade-up 0.8s ease-out 0.3s both;
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .gallery-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .nav-links a {
    flex: 1 1 auto;
    padding: 0.8rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
  }

  .site-header {
    padding: 1rem 0 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-visual,
  .hero-copy {
    width: 100%;
  }

  .hero-graphic {
    min-height: 320px;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .contact-panel {
    padding: 1.8rem;
  }
}
