:root {
  --cream: #fffcf7;
  --cream-deep: #fff6ec;
  --white: #ffffff;
  --ink: #402f27;
  --sub: #6b5e58;
  --muted: #9e948f;
  --orange: #ff8d4a;
  --orange-btn: #f4883f;
  --peach: #ffd6af;
  --yellow: #ffde82;
  --brown: #3d3127;
  --brown-card: #3d3127;
  --patent: #f2713c;
  --footer: #3b2e28;
  --shadow: 0 6px 16px rgba(217, 140, 77, 0.22);
  --radius: 28px;
  --wrap: 1120px;
  --font: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
  --en: "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* ヘッダーが fixed なので、ページ内リンクの着地点を帯の分だけ下げる */
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
}

.section-white {
  background: var(--white);
}

.section-cream {
  background: var(--cream-deep);
}

/* ----- Header ----- */
.site-header {
  /* fixed にしてヒーローの上に重ねる。sticky だと帯の分だけ場所を取り、
     背景を透明にしても「下に何もない白い帯」になってしまう */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  /* 白ベタではなくクリーム寄りの半透明。下の色がそのまま透けて「被せている」感じにする */
  background: rgba(255, 250, 242, 0.52);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: none;
  transition: transform 0.32s ease, opacity 0.32s ease, background-color 0.45s ease,
    backdrop-filter 0.45s ease, -webkit-backdrop-filter 0.45s ease;
}

/* 最上部ではほぼ透明にしてヒーローと地続きに見せる。
   ごく薄いぼかしだけ残すのは、写真に重なったときの文字の読みやすさのため */
body.is-top .site-header {
  background: rgba(255, 250, 242, 0.18);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 14px 20px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 134px;
  height: auto;
}

.nav-pc {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #6b5e58;
}

.nav-pc a {
  position: relative;
  padding-bottom: 5px;
  text-decoration: none;
  transition: color 0.24s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ホバーで下線が左から伸び、文字がわずかに浮く */
.nav-pc a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pc a:hover,
.nav-pc a:focus-visible {
  color: var(--orange);
  transform: translateY(-2px);
}

.nav-pc a:hover::after,
.nav-pc a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
  gap: 10px;
}

.menu-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 38px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #ff8d4a;
}

.menu-btn svg {
  display: block;
}

.nav-sp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 24px 24px;
  font-weight: 700;
}

.nav-sp[hidden] {
  display: none;
}

.nav-sp a {
  text-decoration: none;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-sm {
  padding: 13px 22px;
  font-size: 14px;
  box-shadow: none;
}

.header-cta .btn-ghost {
  border-width: 1.5px;
}

.header-cta .btn-fill {
  background: #ff8d4a;
  box-shadow: 0 6px 16px rgba(255, 115, 38, 0.32);
}

.btn-fill {
  background: var(--orange-btn);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--orange-btn);
  border: 2px solid var(--orange-btn);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.btn-yellow {
  background: #ffca3c;
  color: var(--ink);
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(244, 136, 63, 0.28);
}

/* ----- Hero（Figma B案 2797:3257 / 2805:3344） ----- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fef7e8;
  /* SP の縦位置。ヘッダー(68px)の下端から下部固定 CTA(92px)の上端までを使い、
     写真とコピーをその真ん中に置く。必要な高さの合計は約 900px。
     写真は 1.075 倍にしているぶん、見た目の上端が指定位置より 16px 上に出るので、
     画面が低いときも最低 64px は下げてヘッダーに潜らせない */
  --sp-shift: max(64px, calc(56px + (100vh - 900px) / 2));
  --sp-shift: max(64px, calc(56px + (100svh - 900px) / 2));
  min-height: 760px;
  min-height: 100svh;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 中央から広がる水玉。読み込み後もうっすら残して背景の質感にする */
.hero-dots {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 176, 118, 0.34) 1.7px, transparent 1.8px);
  background-size: 20px 20px;
}

.hero-visual {
  position: absolute;
  left: 9.73%;
  top: calc(28px + var(--sp-shift));
  width: min(382px, 101.9vw);
  pointer-events: none;
  z-index: 0;
}

/* 写真と同じ形の塗り。写真が届く前に「枠だけ」を見せるための下敷き */
.hero-shape-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #ffe6cd, #ffd9b4);
  -webkit-clip-path: url(#heroShapeSp);
  clip-path: url(#heroShapeSp);
  transform: scale(1.075);
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 382 / 442;
  background-image: url("/images/hero.jpg");
  background-size: cover;
  background-position: 48% 38%;
  -webkit-clip-path: url(#heroShapeSp);
  clip-path: url(#heroShapeSp);
  /* 写真は動かさない。1.075 倍は main.js の SHRINK(0.93) を打ち消す固定値 */
  transform: scale(1.075);
}

.lockup {
  position: absolute;
  /* fixed ヘッダー（約 56px）とぶつからない位置まで下げる */
  top: calc(74px + var(--sp-shift));
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 14px;
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b5e59;
}

.lockup img {
  width: 96px;
}

.lockup-bar {
  width: 1px;
  height: 17px;
  background: #d9c7b2;
}

.hero-copy {
  position: relative;
  z-index: 1;
  /* 下の余白は、画面下に固定した CTA バー（約 84px）にボタンが隠れないための分 */
  padding: calc(347px + var(--sp-shift)) 24px 88px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 20px;
  /* Figma SP は 38px。狭い端末では折り返さずに縮める */
  font-size: min(38px, 9.7vw);
  font-weight: 900;
  line-height: 1.74;
  color: #332924;
}

/* Figma の白い帯（画面左端から飛び出し、文字は左から 21px、帯の高さは 56px） */
.hero-line {
  display: block;
  width: max-content;
  margin-left: -24px;
  padding: 0 4px 0 45px;
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 56px;
  white-space: nowrap;
}

.hero-lead {
  margin: 0 0 24px;
  color: #6b5e59;
  font-size: 14px;
  line-height: 1.82;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-cta .btn {
  width: 100%;
  padding: 17px 24px;
  font-size: 15px;
}

.br-sp {
  display: inline;
}

.br-pc {
  display: none;
}

/* クリームから白セクションへ移るためのカーブ。白い楕円の上半分だけを覗かせる */
.wave-divider {
  height: 48px;
  overflow: hidden;
  background: #fef7e8;
  line-height: 0;
}

.wave-divider img {
  display: block;
  /* 楕円の左右端を画面端に合わせると、下の白セクションと段差なく繋がる */
  width: 100%;
  height: 96px;
}


/* ----- Section heading ----- */
.section-head {
  position: relative;
  min-height: 88px;
  margin-bottom: 28px;
}

.ghost {
  margin: 0;
  font-family: var(--en);
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 1.5px;
  color: var(--peach);
  opacity: 0.55;
  line-height: 1;
}

.ghost-sm {
  font-size: 42px;
}

.section-head h2 {
  position: relative;
  margin: -28px 0 0 14px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--orange);
}

.catch {
  position: relative;
  display: inline-block;
  margin: 0 0 16px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.75;
}

.hand-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  /* preserveAspectRatio='none' がないと縦横比が保たれて線が中央で短く縮む */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 12' preserveAspectRatio='none' fill='none'><path d='M2 8 C 80 2, 160 11, 240 6 S 360 10, 398 5' stroke='%23FFDE82' stroke-width='6' stroke-linecap='round'/></svg>")
    no-repeat center / 100% 100%;
  z-index: -1;
  /* 見出しが 2 行に折り返す幅では最終行だけに線が付いて不自然なので消す */
  display: none;
}

@media (min-width: 470px) {
  .hand-underline {
    display: block;
  }
}

.body-copy {
  margin: 0 0 28px;
  color: var(--sub);
  line-height: 2.1;
  font-size: 16px;
}

.about-photo {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
}

.about-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  /* 3 人の顔が切れないように上寄りでトリミング */
  object-position: 50% 26%;
}

.card-row {
  display: grid;
  gap: 20px;
}

.num-card {
  background: var(--white);
  border: 1.5px solid #ffe8d9;
  border-radius: var(--radius);
  padding: 28px 24px 32px;
}

.num {
  margin: 0;
  font-family: var(--en);
  font-weight: 900;
  font-size: 44px;
  color: var(--peach);
  line-height: 1;
}

.num-illust {
  position: relative;
  display: grid;
  place-items: center;
  height: 160px;
  margin: 12px 0 16px;
  background: var(--yellow);
  border-radius: 20px;
}

.num-illust img {
  width: min(70%, 160px);
  height: 120px;
  object-fit: contain;
}

/* プレゼント本体は黄色い枠の中央（Figma 276px 枠に対して 82px = 29.7%） */
.illust-gift {
  width: 29.7% !important;
  height: auto !important;
  max-width: 82px;
}

/* チョンチョンは「中央に置いたプレゼント」の右上。Figma の中心間距離 (+62.5, -50.3)px */
.illust-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13.5% !important;
  max-width: 37.4px;
  height: auto !important;
  transform: translate(calc(-50% + 62.5px), calc(-50% - 50.3px));
}

.num-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.num-card p:last-child {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 2;
}

/* ----- Story ----- */
.story-grid {
  display: grid;
  gap: 40px;
}

.polaroid {
  position: relative;
  margin: 12px 0 16px;
  padding-bottom: 34px;
}

.polaroid-frame {
  width: 86%;
  padding: 12px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(115, 84, 51, 0.22);
  transform: rotate(-3deg);
}

.polaroid-frame img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 4px;
}

/* 写真の右下に少しだけ重なる位置（Figma より重なりを浅くしている） */
.polaroid-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66%;
  margin: 0;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(115, 84, 51, 0.18);
  font-size: 12px;
  color: var(--sub);
  transform: rotate(1.8deg);
}

.note {
  color: var(--muted);
  font-size: 12px;
}

/* Figma：「“」はテキストの左上、「”」はテキストの直後（SP は 2 行目の右下） */
.quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 28px;
}

.quote p {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.65;
}

.qmark {
  flex: 0 0 auto;
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 56px);
  line-height: 1.1;
  color: var(--yellow);
}

.qmark-end {
  align-self: flex-end;
  line-height: 1.6;
}

.story-punch {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
}

.mission {
  background: var(--white);
  border: 1.5px solid #ffe1cf;
  border-radius: 20px;
  padding: 24px 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--en);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.eyebrow.dark {
  color: #8c5214;
}

.mission p:last-child {
  margin: 0;
  font-weight: 700;
  line-height: 1.95;
}

/* ----- Name ----- */
.name-row {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.name-card {
  background: #fff8f1;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.name-card-result {
  background: var(--yellow);
}

.name-en,
.name-jp {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 30px;
  color: var(--orange);
}

.name-jp {
  color: #8c5214;
  font-size: 34px;
}

.name-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.name-card p:last-child {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.9;
}

.name-op {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: var(--orange);
}

/* ----- Patent ----- */
.section-patent {
  background: var(--patent);
  color: var(--white);
  overflow: hidden;
}

.section-patent h2 {
  margin: 8px 0 16px;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.2;
}

.patent-kicker {
  margin: 0;
  font-family: var(--en);
  font-weight: 900;
  letter-spacing: 0.28em;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.patent-grid {
  display: grid;
  gap: 40px;
}

.patent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.patent-list li {
  background: #3d3127;
  border-radius: 18px;
  padding: 20px 24px;
}

.patent-list span {
  color: var(--orange);
  font-family: var(--en);
  font-weight: 900;
  margin-right: 10px;
}

.patent-list p {
  margin: 0;
}

.patent-list p:last-child {
  margin-top: 8px;
  color: #e5dbd3;
  font-size: 13px;
  line-height: 1.9;
}

.presmakun-mark {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: min(280px, 55vw);
  opacity: 0.12;
  pointer-events: none;
}

/* ----- Parks / contact / faq ----- */
.parks-grid,
.contact-row {
  display: grid;
  gap: 20px;
}

.park-card,
.recruit-card,
.form-card {
  border-radius: 24px;
  padding: 20px;
}

.park-card {
  background: var(--white);
}

.park-photo {
  display: grid;
  place-items: center;
  height: 180px;
  margin-bottom: 16px;
  background: #ededed;
  border-radius: 16px;
  color: #a6a6a6;
  font-weight: 900;
}

.park-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.park-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.park-card .btn,
.recruit-card .btn {
  width: 100%;
}

.recruit-card {
  background: var(--yellow);
  border: 2px dashed var(--orange);
  text-align: center;
  padding: 40px 24px;
}

.recruit-card h3 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 6vw, 52px);
  color: #8c5214;
}

.recruit-card p {
  color: #8c5214;
}

.form-card {
  padding: 40px 28px;
  box-shadow: 0 8px 20px rgba(77, 51, 26, 0.18);
}

.form-card-user {
  background: var(--yellow);
}

.form-card-biz {
  background: var(--brown);
  color: var(--white);
}

.chip {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fe9800;
  font-size: 12px;
  font-weight: 700;
}

.chip-dark {
  background: rgba(255, 255, 255, 0.16);
  color: #ffca3c;
}

.form-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.65;
}

.form-card p {
  margin: 0 0 20px;
  line-height: 2;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: 20px;
  padding: 8px 24px 16px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 16px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  color: var(--orange);
  font-family: var(--en);
  font-weight: 900;
  font-size: 22px;
}

.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--orange);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 8px 34px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.9;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--footer);
  color: #e5dbd3;
  padding: 64px 0 120px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 12px;
}

.footer-label {
  margin: 0 0 10px;
  font-family: var(--en);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
  font-size: 13px;
}

.copyright {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a69994;
  font-size: 12px;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  /* Figma 2808:3476：バー自体は背景なし。ボタンだけが浮いて見える */
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  background: none;
  box-shadow: none;
}

.bottom-bar .btn {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  font-size: 14px;
}

/* 背景がないので、ボタン自体の影で本文から浮かせる */
.bottom-bar .btn-ghost {
  background: var(--white);
  box-shadow: 0 4px 14px rgba(140, 89, 26, 0.18);
}

.bottom-bar .btn-fill {
  box-shadow: 0 5px 14px rgba(255, 115, 38, 0.3), 0 4px 14px rgba(140, 89, 26, 0.12);
}

/* SP：スクロール中に隠すのは上のメニューバーだけ。下部 CTA は常に出しておく */
body.is-scrolling .site-header {
  transform: translateY(-100%);
  opacity: 0;
}

/* メニューを開いているときは隠さない */
body.is-scrolling .site-header:has(.nav-sp:not([hidden])) {
  transform: none;
  opacity: 1;
}

/* ----- 初回読み込みのイントロ（水玉 → シェイプ → 写真 → コピー） -----
   .js-intro で初期状態を隠し、body.is-intro が付いた瞬間から順番に出す */
.js-intro .hero-dots {
  -webkit-clip-path: circle(0% at 50% 44%);
  clip-path: circle(0% at 50% 44%);
}

.js-intro .hero-visual {
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
}

.js-intro .hero-photo {
  opacity: 0;
}

.js-intro .intro-item {
  opacity: 0;
  transform: translateY(18px);
}

.js-intro .hero-line {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.js-intro .site-header .header-inner {
  opacity: 0;
}

body.is-intro .hero-dots {
  animation: dotsSpread 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

body.is-intro .hero-visual {
  animation: shapeOpen 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards;
}

body.is-intro .hero-photo {
  animation: fadeIn 0.66s ease 0.78s forwards;
}

body.is-intro .site-header .header-inner {
  animation: fadeIn 0.7s ease 0.18s forwards;
}

body.is-intro .intro-item {
  animation: introUp 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-intro .lockup {
  animation-delay: 0.86s;
}

body.is-intro .hero-lead {
  animation-delay: 1.26s;
}

body.is-intro .hero-cta {
  animation-delay: 1.38s;
}

/* テロップのように左から流れて出る */
body.is-intro .hero-line {
  animation: telopIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.96s forwards;
}

body.is-intro .hero-line:nth-child(2) {
  animation-delay: 1.1s;
}

@keyframes dotsSpread {
  to {
    -webkit-clip-path: circle(78% at 50% 44%);
    clip-path: circle(78% at 50% 44%);
  }
}

@keyframes shapeOpen {
  to {
    -webkit-clip-path: inset(0 0 -3% 0);
    clip-path: inset(0 0 -3% 0);
  }
}

@keyframes telopIn {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes introUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ----- Motion ----- */
.blob-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  /* 形と位置の周期をずらすと、繰り返し感が出にくい */
  animation: blobMorph 13s ease-in-out infinite, floatBlob 9s ease-in-out infinite;
  will-change: border-radius, transform;
}

@keyframes blobMorph {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  25% {
    border-radius: 38% 62% 33% 67% / 66% 32% 68% 34%;
  }
  50% {
    border-radius: 60% 40% 68% 32% / 34% 65% 35% 66%;
  }
  75% {
    border-radius: 33% 67% 48% 52% / 55% 40% 60% 45%;
  }
}

.blob-deco-hero-a {
  width: 200px;
  height: 200px;
  left: -70px;
  bottom: 8%;
  background: rgba(255, 214, 175, 0.5);
  animation-duration: 11s, 8s;
}

.blob-deco-hero-b {
  width: 140px;
  height: 140px;
  right: 6%;
  top: 40px;
  background: rgba(255, 222, 130, 0.45);
  animation-delay: -3s;
  animation-duration: 15s, 10s;
}

.blob-deco-about {
  width: 320px;
  height: 320px;
  right: -110px;
  top: 80px;
  background: rgba(255, 214, 175, 0.42);
}

.blob-deco-about-b {
  width: 150px;
  height: 150px;
  left: -55px;
  bottom: 110px;
  background: rgba(255, 222, 130, 0.32);
  animation-delay: -6s;
  animation-duration: 16s, 12s;
}

.blob-deco-story {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: 40px;
  background: rgba(255, 222, 130, 0.4);
  animation-duration: 15s, 11s;
}

.blob-deco-name {
  width: 240px;
  height: 240px;
  left: -70px;
  top: 40px;
  background: rgba(244, 136, 63, 0.1);
  animation-duration: 12s, 15s;
  animation-direction: reverse;
}

.blob-deco-patent {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: rgba(255, 255, 255, 0.14);
}

.blob-deco-parks {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: 20px;
  background: rgba(255, 214, 175, 0.45);
  animation-delay: -4s;
}

.blob-deco-contact {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 80px;
  background: rgba(255, 222, 130, 0.36);
  animation-duration: 16s, 12s;
}

.blob-deco-faq {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 20px;
  background: rgba(244, 136, 63, 0.1);
  animation-direction: reverse;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(30px, -38px) rotate(7deg) scale(1.08);
  }
  66% {
    transform: translate(-22px, 24px) rotate(-6deg) scale(0.95);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* 最後にすっと減速する曲線。同一セクション内の遅延は JS 側で付ける */
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 860px) {
  .section {
    padding: 120px 0 130px;
  }

  .header-inner {
    padding: 10px 40px;
  }

  .brand img {
    width: 122px;
  }

  .header-cta .btn-sm {
    padding: 11px 20px;
    font-size: 14px;
  }

  /* 1120px 未満のノート PC では 6 項目＋ボタン 2 つが 1 行に収まらないので詰める */
  .nav-pc {
    gap: clamp(14px, 1.9vw, 28px);
    font-size: clamp(13px, 1.05vw, 14px);
    white-space: nowrap;
  }

  .header-inner {
    gap: clamp(12px, 1.6vw, 24px);
    padding-inline: clamp(20px, 2.8vw, 40px);
  }

  .header-cta {
    flex-shrink: 0;
  }

  .header-cta .btn-sm {
    padding: 11px clamp(12px, 1.4vw, 20px);
    font-size: clamp(13px, 1vw, 14px);
    white-space: nowrap;
  }

  /* ヘッダーを隠すのは SP だけ */
  body.is-scrolling .site-header {
    transform: none;
    opacity: 1;
  }

  .nav-pc,
  .header-cta {
    display: flex;
  }

  .menu-btn,
  .nav-sp,
  .bottom-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 56px;
  }

  .hero {
    display: block;
    height: auto;
    /* Figma は 736px。画面の高さに追従させ、低い画面でもヒーローが収まるようにする */
    --hero-h: clamp(560px, 100vh, 940px);
    --hero-h: clamp(560px, 100svh, 940px);
    /* 写真の高さは幅に比例して縮むのに、ヒーローの高さは画面に追従する。
       その差を上下に半分ずつ振り分けて、写真をヒーローの縦中央に置く */
    --hero-photo-h: min(46.65vw, 672px);
    --hero-shift: calc((var(--hero-h) - var(--hero-photo-h)) / 2 - 24px);
    /* コピーは Figma の「上 138 / 下 193」の比率を保ったまま上下に振り分ける */
    --text-shift: max(-70px, calc((var(--hero-h) - 736px) * 0.417));
    min-height: 736px;
    min-height: var(--hero-h);
    background: linear-gradient(140deg, #fef8e6 3.6%, #fff6ec 62%);
  }

  .hero-visual {
    left: 43.05%;
    top: calc(24px + var(--hero-shift));
    width: min(62vw, 893px);
    height: auto;
  }

  .hero-photo {
    aspect-ratio: 893 / 672;
    background-position: 50% 40%;
    -webkit-clip-path: url(#heroShapePc);
    clip-path: url(#heroShapePc);
  }

  .hero-shape-fill {
    -webkit-clip-path: url(#heroShapePc);
    clip-path: url(#heroShapePc);
  }

  .hero-copy {
    padding: calc(214px + var(--text-shift)) 0 0 11.1%;
    max-width: none;
  }

  .lockup {
    top: calc(138px + var(--text-shift));
    left: 11.1%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 15px;
    letter-spacing: 0.6px;
    gap: 18px;
  }

  .lockup img {
    width: 150px;
  }

  .lockup-bar {
    height: 23px;
  }

  .hero h1 {
    /* Figma PC は 1440px で 76px。それ未満は幅に比例して縮め、1行を保つ */
    font-size: clamp(46px, 5.28vw, 76px);
    line-height: 1.24;
    margin: 0 0 50px;
  }

  .hero-line {
    background-image: none;
    width: auto;
    margin-left: 0;
    padding: 0;
  }

  .hero-lead {
    font-size: 17px;
    line-height: 2;
    margin: 0 0 33px;
  }

  .hero-cta {
    flex-direction: row;
    gap: 16px;
  }

  .hero-cta .btn {
    width: auto;
    padding: 20px 34px;
    font-size: 17px;
  }

  .br-sp {
    display: none;
  }

  .br-pc {
    display: inline;
  }

  .wave-divider {
    height: 90px;
    background: #fff6ec;
  }

  .wave-divider img {
    height: 180px;
  }

  .ghost,
  .ghost-sm {
    font-size: 72px;
    letter-spacing: 2px;
    opacity: 0.5;
  }

  .section-head h2 {
    margin: -28px 0 0 24px;
    font-size: 38px;
  }

  .about-photo {
    border-radius: 40px;
  }

  .about-photo img {
    height: 420px;
    object-position: 50% 22%;
  }

  .card-row,
  .contact-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

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

  .story-grid {
    grid-template-columns: 360px 1fr;
    gap: 80px;
    align-items: start;
  }

  .polaroid-frame img {
    height: 216px;
  }

  .name-row {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
  }

  .name-op {
    display: grid;
    place-items: center;
  }

  .patent-grid,
  .parks-grid,
  .footer-grid {
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
  }

  .parks-grid {
    grid-template-columns: 364px 1fr;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: start;
    gap: 32px;
  }

  .presmakun-mark {
    width: 520px;
    right: -20px;
    bottom: -80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .hero-shape-fill,
  .hero-dots,
  .blob-deco,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
