:root {
  --brown: #5f5953;
  --brown-soft: #625d57;
  --ink: #403b37;
  --rose-deep: #a64f7a;
  --line: rgba(64, 59, 55, 0.16);
  --content: 1080px;
  --photo-radius: 12px;
}

body {
  color: var(--brown-soft);
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.brand-name,
h1,
h2,
.feature-card h3,
.curriculum-card h3,
.support-card h3,
.voice-card h3,
.profile-copy h3,
.faq-item h3,
.card h3 {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.nav {
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 600;
}

.hero {
  min-height: min(760px, calc(100svh - 76px));
  background:
    linear-gradient(90deg, rgba(255, 252, 249, 0.94) 0%, rgba(255, 250, 246, 0.78) 43%, rgba(255, 250, 246, 0.16) 68%, rgba(255, 255, 255, 0) 100%),
    url("hero-daifuku-portrait.png") center right / cover no-repeat;
}

.hero-inner {
  padding: clamp(88px, 8vw, 116px) 0 clamp(96px, 9vw, 128px);
}

.hero .eyebrow,
.hero h1 {
  position: static;
  width: auto;
  height: auto;
  margin-left: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  opacity: 1;
  pointer-events: auto;
}

.hero .eyebrow {
  margin-bottom: 18px;
  color: var(--rose-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h1 .line {
  color: var(--ink);
}

.hero h1 {
  max-width: 620px;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: clamp(48px, 5vw, 66px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero h1::after {
  content: "";
  width: min(240px, 42%);
  height: 1px;
  display: block;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--rose-deep), rgba(166, 79, 122, 0));
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.7;
}

.hero-copy {
  max-width: 580px;
  margin-top: 12px;
  color: var(--brown-soft);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .button:not(.secondary) {
  border-color: var(--rose-deep);
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(166, 79, 122, 0.2);
}

.section {
  padding: clamp(88px, 7.5vw, 108px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 4.5vw, 52px);
}

.section-head h2,
.story-copy h2 {
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.section-text,
.story-copy > p:not(.section-label),
.feature-card p,
.support-layout .support-list p,
.voice-card p,
.profile-copy p,
.faq-item p {
  color: var(--brown-soft);
}

.section-text {
  max-width: 680px;
  margin-top: 16px;
  line-height: 1.85;
}

.feature-grid,
.curriculum-grid,
.voice-grid,
.grid,
.two-grid {
  gap: clamp(16px, 2.2vw, 24px);
}

.feature-card:nth-child(2) {
  transform: none;
}

.feature-card,
.curriculum-card,
.support-card,
.voice-card,
.faq-item,
.detail-card,
.result-card,
.timeline-card,
.card,
.step {
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(64, 59, 55, 0.08);
}

.story-photo img,
.story-photo::after,
.visual-stack img,
.support-photo-main,
.support-photo-small,
.profile-portrait,
.curriculum-map {
  border-radius: var(--photo-radius);
}

.story-photo img,
.support-photo-main img,
.support-photo-small img {
  filter: saturate(0.92) contrast(0.98);
}

.support-photo-main img,
.support-photo-small img {
  object-fit: cover;
}

.support-photo-main figcaption,
.support-photo-small figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(64, 59, 55, 0.12);
  backdrop-filter: blur(8px);
}

.support-layout .support-list h3 {
  font-size: 18px;
}

.support-layout .support-list p {
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 920px) {
  .hero {
    min-height: 700px;
    background-position: 62% center;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --photo-radius: 10px;
  }

  body {
    font-size: 16px;
    line-height: 1.78;
  }

  .hero {
    --hero-mobile-image-height: min(82vw, 320px);
    min-height: 0;
    display: block;
    padding-top: var(--hero-mobile-image-height);
    background:
      linear-gradient(90deg, rgba(255, 252, 249, 0.68) 0%, rgba(255, 252, 249, 0.24) 56%, rgba(255, 255, 255, 0) 78%),
      url("hero-daifuku-portrait.png") 58% 0 / auto var(--hero-mobile-image-height) no-repeat,
      var(--cream);
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    height: 30px;
  }

  .hero-inner {
    position: relative;
    width: min(100% - 32px, var(--content));
    padding: 0 0 60px;
  }

  .hero .eyebrow {
    position: absolute;
    top: calc(-1 * var(--hero-mobile-image-height) + 30px);
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: #8d4667;
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .hero .eyebrow::before {
    width: 24px;
  }

  .hero h1 {
    position: absolute;
    top: calc(-1 * var(--hero-mobile-image-height) + 67px);
    left: 0;
    width: 58%;
    max-width: 220px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: #56313e;
    font-size: clamp(31px, 9.4vw, 38px);
    line-height: 1.28;
    letter-spacing: 0.01em;
    white-space: normal;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.72);
  }

  .hero h1 .line {
    max-width: none;
    color: #56313e;
    white-space: nowrap;
  }

  .hero h1::after {
    width: min(164px, 86%);
    margin-top: 12px;
  }

  .hero-lead {
    order: 1;
    max-width: 100%;
    margin-top: 22px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-copy {
    order: 2;
    max-width: 100%;
    margin-top: 10px;
    color: var(--brown-soft);
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    order: 3;
    margin-top: 24px;
  }

  .hero-actions .button:not(.secondary) {
    width: 100%;
  }

  .hero-actions .button.secondary,
  .hero-keywords {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    width: min(100% - 32px, var(--content));
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2,
  .story-copy h2 {
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.4;
  }

  .section-label {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .section-text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.85;
  }

  .feature-grid,
  .voice-grid {
    gap: 14px;
  }

  .feature-card {
    min-height: 0;
    gap: 12px;
    padding: 22px;
  }

  .feature-no {
    width: 48px;
    height: 48px;
  }

  .feature-card h3,
  .voice-card h3,
  .profile-copy h3,
  .faq-item h3 {
    font-size: 19px;
    line-height: 1.5;
  }

  .feature-card p,
  .profile-copy p,
  .faq-item p {
    font-size: 14px;
    line-height: 1.85;
  }

  .story-layout {
    gap: 24px;
  }

  .story-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .story-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }

  .support-layout {
    gap: 28px;
  }

  .support-gallery {
    gap: 10px;
  }

  .support-photo-row {
    gap: 10px;
  }

  .support-photo-main figcaption,
  .support-photo-small figcaption {
    right: 8px;
    bottom: 8px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .support-layout .support-list li {
    padding: 16px 0;
  }

  .support-layout .support-list h3 {
    font-size: 17px;
  }

  .support-layout .support-list p {
    font-size: 14px;
  }
}
