/* =========================================================
   Harvest to Hands
   トーン参考：zperinatal.com（クリーム地 × こげ茶 × 差し色）
   余白は 8px 単位（--sp-*）で統一
   ========================================================= */

:root {
  /* color（Figma準拠） */
  --c-base: #fffcf1;      /* クリーム（背景） */
  --c-text: #000;         /* 文字 */
  --c-gray: #727272;      /* Service パネル */
  --c-primary: #00af87;   /* CTA・Contact */
  --c-mint: #00deab;      /* For Brand カード */
  --c-mint-light: #7df7d2;/* For Shop カードの文字 */
  --c-beige: #f3f0e5;     /* What we do パネル */
  --c-line: rgba(0, 0, 0, 0.4);

  /* font */
  --f-mincho: "ten-mincho", "Shippori Mincho", serif;               /* タイトル（Adobe Fonts） */
  --f-serif-en: "Times New Roman", Times, serif;                    /* 英字見出し */
  --f-sans: "Yu Gothic", "YuGothic", "Hiragino Sans", sans-serif;    /* 本文 */
  --f-mono: "Fira Mono", monospace;                                  /* ラベル・ナビ */

  /* spacing（8px 単位） */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* 動き：少し弾んで止まるイージング（参考サイトと同じ曲線） */
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
  --radius: 16px;
  --content: 960px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 500; /* Windows の游ゴシック細り対策 */
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- common parts ---------- */
.label {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* セクション見出し（ラベル＋タイトル＋リード） */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.section-head__title {
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 32px;
  line-height: 47px;
  letter-spacing: 0;
}
.section-head__lead {
  margin-top: 20px; /* gap16 + 20 = Figma 36px */
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
}

/* button */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .7; }
.btn--primary {
  min-height: 36px;
  padding: 0 20px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0;
}

/* ボタンのマウスオーバー（参考：thedrake.ca）
   四角が右へ伸びて丸を覆い、丸は左へ潜り込む。文字は右へずれる */
.view-btn {
  --btn-size: 40px;
  isolation: isolate; /* position は付けない（::after をカード全体に広げるため） */
  display: inline-flex;
  gap: 1px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.view-btn__label,
.view-btn__arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-size);
}
.view-btn__label {
  width: var(--btn-label-w, 72px);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}
.view-btn__arrow { width: var(--btn-size); }
/* 枠線は疑似要素に持たせて、形ごとアニメーションさせる */
.view-btn__label::before,
.view-btn__arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border: 1px solid currentColor;
  background: var(--btn-bg, var(--c-base)); /* 塗り＝置かれたカードの背景色（--btn-bg） */
}
.view-btn__label::before { width: 100%; z-index: -1; }
.view-btn__arrow::before { width: 100%; border-radius: 50%; z-index: -2; }
.view-btn__text { display: block; }

/* カード全体をクリック範囲にする：ボタンの透明な ::after を、
   position: relative の親（data-hover-parent）いっぱいに広げる */
[data-hover-parent] { position: relative; cursor: pointer; }
[data-hover-parent] .view-btn::after {
  content: "";
  position: absolute;
  inset: 0;
}

.view-btn__label::before { transition: width .8s var(--ease-spring); }
.view-btn__arrow::before,
.view-btn__text { transition: transform .8s var(--ease-spring); }

@media (hover: hover) {
  /* ボタン本体、またはカード全体のどこに乗せても同じ動き */
  .view-btn:hover .view-btn__label::before,
  [data-hover-parent]:hover .view-btn__label::before { width: calc(100% + 1px + var(--btn-size)); }
  .view-btn:hover .view-btn__arrow::before,
  [data-hover-parent]:hover .view-btn__arrow::before { transform: translateX(-30%); }
  .view-btn:hover .view-btn__text,
  [data-hover-parent]:hover .view-btn__text { transform: translateX(20px); }
}

/* EXPLORE（外部リンク）：ラベルを広げ、矢印を右上向きに */
.view-btn--explore { --btn-label-w: 87px; }
.view-btn--explore .view-btn__arrow img { transform: rotate(-45deg); }

/* お問い合わせボタン：文字が左へずれ、右から矢印が入ってくる */
.btn--primary .btn__text { display: block; transition: transform .8s var(--ease-spring); }
.btn--primary .btn__arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10.5px;
  height: 7.36396px;
  margin-top: -3.68px;
  background: currentColor;
  -webkit-mask: url(../images/arrow-bk.svg) center / contain no-repeat;
  mask: url(../images/arrow-bk.svg) center / contain no-repeat;
  opacity: 0;
  transform: translateX(-12px);
  transition: transform .8s var(--ease-spring), opacity .4s;
}
@media (hover: hover) {
  .btn--primary:hover { opacity: 1; }
  .btn--primary:hover .btn__text { transform: translateX(-10px); }
  .btn--primary:hover .btn__arrow { opacity: 1; transform: none; }
}

/* [1] [2] [3] の番号付きリスト（Service・Our goal 共通）。文字サイズは親に合わせる */
.bracket-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: bracket;
}
.bracket-list li { position: relative; padding-left: 40px; counter-increment: bracket; }
.bracket-list li::before {
  content: "[" counter(bracket) "]";
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
}

.sp-only { display: none; }

/* 手書きSVG（なぞった線のマスクで描画する） */
.draw { display: block; overflow: visible; }
.draw.sp-only { display: none; }
.draw__strokes { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 18px var(--sp-3) 0;
  transition: padding .4s ease, background-color .4s ease;
}
/* 上部：左半分の中に「ナビ｜ロゴ｜ナビ」 */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: calc(50% - 20px);
}
.site-header__nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header__nav--right { align-items: flex-end; }
.site-header__nav a { display: inline-block; transition: opacity .2s; }
.site-header__nav a:hover { opacity: .6; }
.site-header__logo { display: block; }
.site-header__logo img { width: 80px; height: 34px; }
.site-header__cta { flex-shrink: 0; }

/* スクロール後：ロゴ左／ナビ横一列／CTA */
.site-header.is-scrolled {
  padding: 12px var(--sp-3);
  background: var(--c-base);
}
.site-header.is-scrolled .site-header__inner {
  flex: 1;
  justify-content: flex-end;
  width: auto;
}
.site-header.is-scrolled .site-header__logo { order: -1; margin-right: auto; }
.site-header.is-scrolled .site-header__nav { flex-direction: row; gap: var(--sp-3); }

/* ---------- KV ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  min-height: 640px;
  border-bottom: 1px solid var(--c-text);
}
.hero__text {
  display: flex;
  align-items: center;
  padding: 0 72px;
}
.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
/* 手書きの丸囲み・波線（タイトルの文字位置に合わせて配置） */
.hero__deco {
  position: absolute;
  left: -15px;
  top: 0;
  pointer-events: none;
}
.hero__deco .draw { width: 304px; height: auto; }
.hero__title {
  position: relative;
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 36px;
  line-height: 53px;
  letter-spacing: 0;
  white-space: nowrap;
}
.hero__lead {
  position: relative;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
}
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../images/kv.jpg) center / cover no-repeat;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}
.hero__logo {
  position: relative;
  width: min(352px, 50%);
  height: auto;
}

/* ---------- philosophy ---------- */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--sp-2);
  row-gap: 46px;
  margin-top: 100px;
  padding: 0 72px;
}
.philosophy__label { grid-column: 1; grid-row: 1; }
.philosophy__block {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.philosophy__title {
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 32px;
  line-height: 47px;
  letter-spacing: 0;
}
.body-text {
  display: grid;
  gap: 22px; /* 空行1行分 */
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
}
.philosophy__statement {
  font-family: var(--f-mincho);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}
/* 「収穫」の手書きアンダーライン */
.philosophy__mark { position: relative; isolation: isolate; white-space: nowrap; } /* ラインを文字の下に重ねる */
.philosophy__mark .draw {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 52px;
  height: 7px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}
.material-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.material-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.material-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}
.material-card__en,
.material-card__title { position: relative; z-index: 1; line-height: 1.2; letter-spacing: 0; }
.material-card__en { font-family: var(--f-mono); font-size: 11px; }
.material-card__title { font-size: 16px; font-weight: 500; }

/* ---------- service（グレーパネル） ---------- */
.service { margin-top: 78px; padding: var(--sp-3) var(--sp-3) 0; }
.service__panel {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border-radius: 20px;
  background: var(--c-gray);
  color: #fff;
  overflow: hidden; /* 画像の下端をパネルで切る */
  letter-spacing: 0;
}
.service__main,
.service__side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.service__main { position: relative; align-self: flex-start; }
.service__side { position: relative; z-index: 1; }
.service__title {
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 24px;
  line-height: 35px;
}
.service__lead,
.service__text { font-size: 14px; line-height: 22px; }
/* 画像はパネルの高さに影響させず、下にはみ出した分はカット */
.service__image {
  position: absolute;
  left: 53px;
  top: 206px;
  width: 463px;
  height: 463px;
  max-width: none;
}
.service__heading {
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}
.service__text--list { display: flex; flex-direction: column; gap: 6px; }
.service__line { width: 100%; margin: 0; border: 0; border-top: 1px solid #fff; }
.place-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.place-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
}
.place-list__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
}

/* ---------- audience（For Brand / For Shop） ---------- */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px var(--sp-3) var(--sp-3);
}
.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 319px;
  padding: 0 var(--sp-6);
  border-radius: 20px;
  overflow: hidden;
}
.audience-card--brand { --btn-bg: var(--c-mint); background: var(--c-mint); color: var(--c-text); }
.audience-card--shop { --btn-bg: var(--c-text); background: var(--c-text); color: var(--c-mint-light); }
.audience-card__title {
  font-family: var(--f-serif-en);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}
.audience-card__for { font-size: 24px; }
.audience-card__sub {
  font-family: var(--f-mincho);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}
.audience-card__deco { position: absolute; pointer-events: none; }
.audience-card--brand .audience-card__deco { right: 43px; bottom: 57px; }
.audience-card--shop .audience-card__deco { right: 35px; bottom: 37px; }

/* ---------- modal（メリット5項目） ---------- */
.modal {
  width: min(640px, 100% - 32px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--c-base);
  color: var(--c-text);
}
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal[open] { animation: modal-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6);
}
.modal__title {
  margin-bottom: var(--sp-2);
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 24px;
  line-height: 35px;
  letter-spacing: 0;
}
.modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-text);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.modal__close:focus:not(:focus-visible) { outline: none; }
.modal__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--c-text);
}
.modal__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__cta { align-self: center; margin-top: var(--sp-3); }

/* 番号付きリスト（[1] 見出し＋本文） */
.num-list { counter-reset: num; }
.num-list li {
  position: relative;
  padding: var(--sp-2) 0 var(--sp-2) 40px;
  border-top: 1px solid var(--c-line);
  counter-increment: num;
}
.num-list li::before {
  content: "[" counter(num) "]";
  position: absolute;
  left: 0;
  top: 21px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
}
.num-list h3 {
  margin-bottom: 4px;
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}
.num-list p { font-size: 14px; line-height: 22px; letter-spacing: 0; }

/* ---------- brand logos（無限ループ） ---------- */
.logo-loop {
  overflow: hidden;
  padding: 43px 0 140px;
}
.logo-loop__track {
  display: flex;
  width: max-content;
  animation: logo-loop 60s linear infinite;
}
.logo-loop__list {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px; /* 2周目との間隔 */
}
.logo-loop__list img { width: 120px; height: 120px; object-fit: contain; }
@keyframes logo-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-loop__track { animation: none; }
  .view-btn *, .view-btn *::before, .btn--primary * { transition: none !important; }
}

/* ---------- what we do ---------- */
.what {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/* 画像は画面の高さで固定し、スクロールに合わせてついてくる */
.what__visual {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
}
.what__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.what__body {
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding: 72px;
  background: var(--c-beige);
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  counter-reset: step;
}
.step-list__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) 40px;
  border-top: 1px solid var(--c-line);
  counter-increment: step;
}
.step-list__item::before {
  content: "[" counter(step) "]";
  position: absolute;
  left: 0;
  top: 23px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
}
.step-list__title {
  font-family: var(--f-serif-en);
  font-weight: 400;
  font-size: 32px;
  line-height: 37px;
  letter-spacing: 0;
}
.step-list__item p { font-size: 14px; line-height: 22px; letter-spacing: 0; }

/* ---------- goal ---------- */
.goal {
  display: flex;
  align-items: center;
  margin-top: 63px;
  padding: 72px;
}
.goal__body,
.goal__visual { flex: 1; min-width: 0; }
.goal__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: 36px;
}
.goal__list { font-size: 14px; line-height: 22px; letter-spacing: 0; }
.goal__statement {
  font-family: var(--f-mincho);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}
.goal__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 500;
  object-fit: cover;
}

/* ---------- contact ---------- */
.contact { margin-top: 63px; padding: var(--sp-3); }
.contact__panel {
  display: flex;
  justify-content: center;
  padding: var(--sp-6);
  border-radius: 20px;
  background: url(../images/contact.jpg) center / cover no-repeat;
}
.contact__card {
  flex: 1;
  max-width: 720px;
  padding: var(--sp-2);
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
}
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 36px;
  border: 1px solid #fff;
  border-radius: 12px;
  text-align: center;
}
.contact__title {
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: 24px;
  line-height: 35px;
  letter-spacing: 0;
}
.contact__lead { font-size: 14px; line-height: 22px; letter-spacing: 0; }
.contact__form {
  height: 482px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.contact__form iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- footer ---------- */
.site-footer { padding: 108px var(--sp-3) var(--sp-3); }
.site-footer__logo {
  width: 522px;
  height: auto;
  margin: 0 auto 128px;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  gap: 43px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
}
.site-footer__bottom small { font-size: inherit; }
.site-footer__sns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity .2s;
}
.site-footer__sns:hover { opacity: .6; }

/* ---------- 追従バナー（左下に固定） ---------- */
.event-banner {
  position: fixed;
  left: 22px;
  bottom: 20px;
  z-index: 20;
  width: 460px;
}
.event-banner[hidden] { display: none; }
.event-banner__link {
  --btn-bg: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1); /* Figma指定（閉じるボタンには付けない） */
}
.event-banner__image { flex-shrink: 0; width: 160px; height: 200px; object-fit: cover; }
.event-banner__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-right: 20px;
  letter-spacing: 0;
}
.event-banner__title { font-size: 15px; line-height: 1.5; }
.event-banner__info { font-size: 14px; line-height: 25px; }
.event-banner__close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform .4s var(--ease-spring);
}
.event-banner__close:hover { transform: rotate(90deg); }
.event-banner__close img { display: block; }

/* 出てくる・閉じるときの動き */
.event-banner { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.event-banner.is-hidden,
.event-banner.is-away { opacity: 0; transform: translateY(24px); pointer-events: none; }

/* =========================================================
   Responsive（〜900px）
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 58px; }

  /* header：上部は「ナビ｜ロゴ｜ナビ」を全幅、CTAは右下に固定 */
  .site-header { flex-wrap: wrap; gap: 0; padding: 12px var(--sp-2) 0; }
  .site-header__inner { flex: 1; flex-wrap: wrap; width: auto; }
  .site-header__cta {
    position: fixed;
    right: var(--sp-2);
    bottom: var(--sp-2);
  }

  /* スクロール後もファーストビューと同じ「ナビ｜ロゴ｜ナビ」。背景だけ付ける */
  .site-header.is-scrolled { padding: 12px var(--sp-2); }
  .site-header.is-scrolled .site-header__inner { justify-content: space-between; }
  .site-header.is-scrolled .site-header__logo { order: 0; margin-right: 0; }
  .site-header.is-scrolled .site-header__nav { flex-direction: column; gap: 7px; }

  /* KV */
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; border-bottom: 0; }
  .hero__text { padding: calc(var(--header-h) + var(--sp-6)) var(--sp-3) var(--sp-6); }
  .hero__deco { left: -13px; top: -4.5px; }
  .hero__deco .draw { width: 283px; }
  .hero__title { font-size: 32px; line-height: 47px; }
  .hero__visual { height: 500px; margin-top: 12px; }
  .hero__logo { width: 240px; }

  /* philosophy */
  .philosophy {
    grid-template-columns: 1fr 1fr;
    column-gap: 6px;
    row-gap: 36px;
    width: auto;
    margin: 24px 0 0;
    padding: var(--sp-3);
  }
  .philosophy__label { grid-column: 1 / -1; }
  .philosophy__block { grid-column: 1 / -1; display: contents; }
  .philosophy__block > * { grid-column: 1 / -1; }
  .philosophy__title { font-size: 24px; line-height: 35px; }
  .body-text { gap: 19px; font-size: 12px; line-height: 19px; }
  .philosophy__statement { font-size: 14px; line-height: 21px; }
  .material-cards { grid-template-columns: 1fr 1fr; gap: 6px; }
  .material-card { border-radius: 12px; }
  .pc-only { display: none; }

  /* service */
  .service { margin-top: 12px; padding: var(--sp-3) 6px 0; }
  .service__panel { flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-2); }
  /* 画像を文字に重ねず、パネルの一番下で右下に見切れさせる（PCの見せ方に合わせる） */
  .service__main { display: contents; }
  .service__side { margin-top: var(--sp-3); }
  .service__title { font-size: 16px; line-height: 24px; }
  .service__lead,
  .service__text { font-size: 12px; line-height: 19px; }
  .service__image {
    position: static;
    order: 1;
    align-self: flex-end;
    width: 280px;
    height: 280px;
    margin: 0 calc(var(--sp-2) * -1) -96px 0;
  }
  .service__heading { font-size: 14px; line-height: 21px; }
  .place-list li { font-size: 11px; line-height: 18px; }
  .place-list__circle { width: calc(100% - 8px); }

  .sp-only { display: inline; }
  br.sp-only { display: initial; }

  /* audience */
  .audience { gap: 6px; padding: 6px 6px var(--sp-3); }
  .audience-card { min-height: 243px; padding: 0 var(--sp-2); }
  .audience-card__title { font-size: 24px; line-height: 1.15; }
  .audience-card__for { display: block; font-size: 14px; }
  .audience-card__sub { font-size: 11px; }
  .audience-card--brand .audience-card__deco { top: 23px; right: 9.5px; bottom: auto; }
  .audience-card--shop .audience-card__deco { top: 18px; right: 10px; bottom: auto; }

  .modal__inner { padding: var(--sp-6) var(--sp-3) var(--sp-4); }
  .modal__close { top: var(--sp-2); right: var(--sp-2); }
  .modal__title { font-size: 20px; line-height: 30px; }
  .num-list h3 { font-size: 14px; line-height: 21px; }
  .num-list p { font-size: 12px; line-height: 19px; }

  /* logos */
  .logo-loop { padding: 12px 0 var(--sp-8); }
  .logo-loop__list { gap: 40px; padding-right: 40px; }
  .logo-loop__list img { width: 80px; height: 80px; }

  /* 以下、SPデザイン未作成のためPCを縦積みで推測実装 */
  .section-head__title { font-size: 24px; line-height: 35px; }
  .section-head__lead { font-size: 12px; line-height: 19px; }

  .what { grid-template-columns: 1fr; }
  .what__visual { position: relative; height: auto; aspect-ratio: 3 / 2; }
  .what__body { gap: 36px; padding: var(--sp-6) var(--sp-3); }
  .step-list__item { gap: var(--sp-1); padding-right: 0; }
  .step-list__item::before { top: 21px; }
  .step-list__title { font-size: 24px; line-height: 28px; }
  .step-list__item p { font-size: 12px; line-height: 19px; }

  .goal { flex-direction: column; align-items: stretch; gap: var(--sp-6); margin-top: var(--sp-6); padding: 0 var(--sp-3); }
  .goal__text { margin-top: 36px; }
  .goal__list { font-size: 12px; line-height: 19px; }
  .bracket-list li::before { top: 3px; }
  .goal__statement { font-size: 14px; line-height: 21px; }

  .contact { margin-top: var(--sp-8); padding: var(--sp-3) 6px; }
  .contact__panel { padding: var(--sp-6) var(--sp-2); }
  .contact__card { padding: var(--sp-1); }
  .contact__inner { gap: var(--sp-2); padding: var(--sp-4) var(--sp-2) var(--sp-2); }
  .contact__title { font-size: 20px; line-height: 30px; }
  .contact__lead { font-size: 12px; line-height: 19px; }
  .contact__form { height: 560px; }

  .site-footer { padding: var(--sp-8) var(--sp-3) 72px; } /* 下部は固定CTAとの重なり回避 */
  .site-footer__logo { width: min(240px, 60%); margin-bottom: var(--sp-8); }
  .draw.pc-only { display: none; }
  .draw.sp-only { display: block; }
  .site-footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: var(--sp-2); }

  /* 追従バナー：お問い合わせボタンの上に */
  .event-banner { left: 10px; bottom: 65px; width: min(372px, calc(100% - 21px)); }
  .event-banner__link { gap: 12px; }
  /* 画像の幅だけ縮めて（左右を少しトリミング）、375px幅でも文字を折り返さず収める（393px で 132px） */
  .event-banner__image { width: clamp(100px, calc(100vw - 261px), 132px); height: 165px; }
  .event-banner__body { gap: 12px; padding-right: 12px; }
  .event-banner__title { font-size: 13px; }
  .event-banner__info { font-size: 12px; line-height: 22px; }
  .event-banner__close { top: -20px; right: -8px; }
}

/* =========================================================
   Animation
   html.js-anim のときだけ有効（JSオフ・動きを減らす設定では常に表示）
   data-anim="fade-up | fade-in | lines | reveal | scale | line | draw"
   表示されたら .is-inview が付く。遅延は data-delay（秒）→ --delay
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.25, .6, .3, 1); /* ふわっと止まる（zperinatal寄り） */
  --anim-duration: 1s;
}

/* ふわっと浮き上がる */
.js-anim [data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--anim-duration) var(--ease-out), transform var(--anim-duration) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js-anim [data-anim="fade-in"] {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out) var(--delay, 0s);
}
.js-anim [data-anim].is-inview { opacity: 1; transform: none; }

/* 見出し：1行ずつ浮き上がる（行は JS で .anim-line に分割） */
.js-anim [data-anim="lines"] .anim-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--anim-duration) var(--ease-out), transform var(--anim-duration) var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + var(--line, 0) * .12s);
}
.js-anim [data-anim="lines"].is-inview .anim-line { opacity: 1; transform: none; }

/* 写真：下から幕が上がる＋少し寄りから引く */
.js-anim [data-anim="reveal"] {
  overflow: hidden; /* 拡大中の画像でページ幅が広がらないように */
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-spring) var(--delay, 0s);
}
.js-anim [data-anim="reveal"] img {
  transform: scale(1.15);
  transition: transform 1.6s var(--ease-spring) var(--delay, 0s);
}
.js-anim [data-anim="reveal"].is-inview { clip-path: inset(0); }
.js-anim [data-anim="reveal"].is-inview img { transform: none; }
.js-anim .material-card[data-anim="reveal"] { clip-path: inset(100% 0 0 0 round 24px); }
.js-anim .material-card[data-anim="reveal"].is-inview { clip-path: inset(0 round 24px); }

/* 丸：ふくらむ */
.js-anim [data-anim="scale"] {
  opacity: 0;
  transform: scale(.6);
  transition: transform 1s var(--ease-spring) var(--delay, 0s), opacity .6s var(--ease-out) var(--delay, 0s);
}

/* 区切り線：左から伸びる＋中身が浮き上がる */
.js-anim [data-anim="line"] {
  border-top-color: transparent;
  background: linear-gradient(var(--c-line), var(--c-line)) 0 0 / 0 1px no-repeat border-box;
  transition: background-size 1.2s var(--ease-spring) var(--delay, 0s);
}
.js-anim [data-anim="line"].is-inview { background-size: 100% 1px; }
.js-anim [data-anim="line"] > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--delay, 0s) + .2s);
}
.js-anim [data-anim="line"].is-inview > * { opacity: 1; transform: none; }
.js-anim [data-anim="line"].is-inview > p { transition-delay: calc(var(--delay, 0s) + .3s); }

/* 手書き：描く前の線は隠しておく（JS で順に表示） */
.js-anim [data-anim="draw"] .draw__strokes path,
.js-anim .loader .draw__strokes path { visibility: hidden; }

/* ---------- loading ---------- */
.loader { display: none; }
.is-loading .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-base);
  transition: background-color .8s var(--ease-out);
}
.is-loading body { overflow: hidden; }
.is-loading .hero__logo { opacity: 0; }
.loader__logo { width: min(352px, 50vw); height: auto; }
.loader__white { opacity: 0; transition: opacity .8s var(--ease-out); }
.loader.is-leaving { background-color: transparent; }
.loader__logo image:first-child { transition: opacity .8s var(--ease-out); }
.loader.is-leaving .loader__white { opacity: 1; }
.loader.is-leaving .loader__logo image:first-child { opacity: 0; }

