@charset "UTF-8";

/* ------------------------------------------------------------
   基本設定
   白地に濃紺の文字。色は作品のサムネイル（濃紺のCG）に任せ、
   文字は大きく・少なく・コントラスト高く。
   書体は和文・欧文とも1系統。太さは 400 と 600 の2段階。
   ------------------------------------------------------------ */
:root {
  --ink: #0c1a2b;
  --text: #17232f;
  --muted: #526070;
  --accent: #2a5aa6;
  --line: #e2e6eb;
  --line-input: #c5cdd6;
  --soft: #f3f5f8;
  --thumb: #0f2340;
  --selected: #e8eef7;
  --required: #8a5a1f;
  --error: #a33a32;
  --radius: 14px;
  --shell: 1200px;
  --gutter: 48px;
  --header: 76px;
  color-scheme: light;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--text);
  background: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  word-break: auto-phrase;
}
a { color: inherit; text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }
.narrow-only { display: none; }
[id] { scroll-margin-top: calc(var(--header) + 8px); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; background: #fff; border: 1px solid var(--line); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------
   共通部品
   ------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--accent); }
.button-outline { border-color: var(--line-input); color: var(--ink); background: #fff; }
.button-outline:hover { border-color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}
.text-link:hover { color: var(--accent); }

.arrow-link { display: inline-flex; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
.arrow-link span { transition: transform .15s; }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; flex-shrink: 0; border-radius: 7px; }
.brand-name { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: .1em; }
.site-nav { display: flex; align-items: center; gap: 36px; color: var(--ink); font-size: 15px; }
.site-nav a:not(.nav-contact):hover { color: var(--accent); }
.site-nav .nav-contact {
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: background-color .15s;
}
.site-nav .nav-contact:hover { background: var(--accent); }

/* ------------------------------------------------------------
   ファーストビュー
   左に見出し、右に作品のサムネイル3枚（hero: true）。
   横長の動画（heroVideo.src）を設定すると、サムネイルの代わりに動画が入る。
   ------------------------------------------------------------ */
.hero { padding: 88px 0 128px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.hero-no-media .hero-inner { grid-template-columns: 1fr; }
.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.hero h1 { margin-top: 20px; font-size: clamp(34px, 5vw, 72px); line-height: 1.25; }
/* 見出しは「難しい技術を」の後ろで折り返し、2行に収める */
.hero h1 span { display: inline-block; }
.hero-lead { margin-top: 28px; color: var(--muted); font-size: 18px; line-height: 1.9; word-break: auto-phrase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding: 0; list-style: none; }
.hero-uses li { padding: 4px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; }

.hero-reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 48px; }
.reel-item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--thumb); }
.reel-item:nth-child(2) { transform: translateY(-48px); }
.reel-item img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .4s ease; }
.reel-item:hover img { transform: scale(1.04); }

.hero-with-media .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.hero-with-media h1 { font-size: clamp(34px, 4.4vw, 64px); }
/* PC：左の列の幅に合わせ、「3分でわかる動画に」（9字）が1行に入る大きさにする */
.hero-with-media .hero-copy { container-type: inline-size; }
.hero-with-media h1 { font-size: clamp(34px, calc(100cqi / 9.4), 64px); }
.hero-media { position: relative; }
.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--thumb);
}
.hero-media figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
/* 配置サンプルの目印（heroVideo.sample）。公開設定ではビルドが止まる */
.sample-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   セクション共通
   ------------------------------------------------------------ */
.section { padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 48px; }
.section-label { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .16em; }
.section-head h2, .contact-intro h2 { margin-top: 8px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.4; }
/* 句読点のない見出しは、span の切れ目でだけ折り返す */
.section-head h2 span { display: inline-block; }
.section-lead { color: var(--muted); text-align: right; word-break: auto-phrase; }
.section-note { margin-top: 8px; color: var(--muted); word-break: auto-phrase; }
.more-links { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.works-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 56px; }

/* 作品：縦型動画のサムネイルを並べる */
.works {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px 20px;
  padding: 0;
  list-style: none;
}
.work-link { position: relative; display: block; }
.work-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--thumb); aspect-ratio: 9 / 16; }
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-link:hover .work-thumb img { transform: scale(1.04); }
.work-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.work-category { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; }
.work-title { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; word-break: auto-phrase; }
.work-link:hover .work-title { color: var(--accent); }
.work-note { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; word-break: auto-phrase; }

/* 対象 */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.audience { display: flex; flex-direction: column; padding: 40px 36px 36px; border-radius: 20px; background: var(--soft); }
.audience-name { color: var(--accent); font-size: 15px; font-weight: 600; }
.audience h3 { margin-top: 14px; font-size: 22px; line-height: 1.6; word-break: auto-phrase; }
/* 見出しは「〇〇が伝わり」の後ろでだけ折り返す */
.audience h3 span { display: inline-block; }
.audience > p:not(.audience-name) { margin-top: 16px; color: var(--muted); font-size: 16px; word-break: auto-phrase; }
.outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.outcomes li { padding: 4px 16px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.audience .arrow-link { margin-top: auto; padding-top: 40px; }

.license-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: 20px;
  padding: 28px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.license-note p { color: var(--ink); font-size: 17px; word-break: auto-phrase; }
.license-note .arrow-link { flex-shrink: 0; }

/* 形式：横型と縦型。枠の高さをそろえて比率の違いを見せる */
.formats { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.format { padding: 40px 40px 36px; border-radius: 20px; background: var(--soft); }
.format-frame {
  display: grid;
  place-items: center;
  height: 220px;
  border-radius: 12px;
  background: var(--thumb);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.format-frame { position: relative; overflow: hidden; }
.format-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.format-frame img + span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  font-size: 13px;
}
.format-wide .format-frame { aspect-ratio: 16 / 9; max-width: 100%; }
.format-tall .format-frame { aspect-ratio: 9 / 16; }
.format-goal { margin-top: 28px; color: var(--accent); font-size: 14px; font-weight: 600; }
.format h3 { margin-top: 4px; font-size: 26px; line-height: 1.45; }
.format h3 + p { margin-top: 8px; color: var(--ink); font-size: 16px; word-break: auto-phrase; }

.format-benefit { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-input); color: var(--ink); font-size: 16px; word-break: auto-phrase; }
.section-head .x-stats { flex: 0 1 420px; }
.x-stats dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.x-stats dt { color: var(--muted); font-size: 13px; }
.x-stats dd { margin: 2px 0 0; color: var(--ink); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; word-break: keep-all; }
.x-stats-source { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* 制作する人 */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 48px; align-items: start; }
.careers { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; list-style: none; }
.careers li { padding: 20px 0; border-top: 1px solid var(--line); }
.careers li:first-child { border-top: 2px solid var(--ink); }
.careers h3 { font-size: 21px; line-height: 1.5; }
.careers p { margin-top: 8px; color: var(--muted); font-size: 15px; word-break: auto-phrase; }
.facts { margin: 0; padding: 12px 32px; border-radius: 20px; background: var(--soft); }
.facts div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.facts a { text-decoration: underline; text-underline-offset: 4px; }

/* 制作の流れ */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.process li { padding-top: 28px; border-top: 2px solid var(--ink); }
.step { color: var(--accent); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.process h3 { margin-top: 12px; font-size: 21px; line-height: 1.5; }
.process p { margin-top: 8px; color: var(--muted); font-size: 15px; word-break: auto-phrase; }

/* 料金：初年度限定の価格と、期限後の価格 */
.price {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 8px 32px;
  margin-top: 48px;
  padding: 28px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.price-label { color: var(--muted); font-size: 14px; line-height: 42px; }
.price-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--ink); }
.price-item { font-size: 17px; }
.price-amount { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-tax { color: var(--muted); font-size: 15px; font-weight: 400; }
.price-badge { padding: 4px 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.price-note { margin-top: 8px; color: var(--muted); font-size: 15px; word-break: auto-phrase; }

/* ------------------------------------------------------------
   相談フォーム
   ------------------------------------------------------------ */
.contact { padding-top: 0; }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 48px 72px;
  align-items: start;
  padding: 72px;
  border-radius: 28px;
  background: var(--soft);
}
.contact-intro > p:not(.section-label) { margin-top: 20px; color: var(--ink); font-size: 17px; word-break: auto-phrase; }
.reply-time { display: inline-block; margin-top: 20px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; }
.contact-intro .direct-contact { margin-top: 40px; font-size: 16px; }
.contact-intro .direct-contact + .direct-contact { margin-top: 24px; }
.direct-contact span { display: block; color: var(--muted); font-size: 14px; }
.direct-contact a { color: var(--ink); font-weight: 600; text-decoration: underline; word-break: break-all; }
/* 単独のリンクは、見た目を変えずに押せる範囲を上下へ広げる */
.direct-contact a, .facts a, .footer-links a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.direct-contact a:hover { color: var(--accent); }

.consultation { padding: 40px 40px 32px; border-radius: 20px; background: #fff; }
.consultation fieldset { min-inline-size: 0; margin: 0 0 28px; padding: 0; border: 0; }
.consultation legend { margin-bottom: 12px; padding: 0; color: var(--ink); font-weight: 600; }
.consultation legend > span, .field > span { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.field > span.required { color: var(--required); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choices label > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line-input);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color .15s, background-color .15s;
}
.choices label:hover > span { border-color: var(--ink); }
.choices label > span::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #93a0ad;
  border-radius: 50%;
  background: #fff;
}
.choices input:checked + span { background: var(--selected); border-color: var(--ink); color: var(--ink); }
.choices input:checked + span::before {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6 2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: block; margin-top: 22px; color: var(--ink); font-weight: 600; word-break: auto-phrase; }
.field input, .optional-fields textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  padding: 13px 16px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.field input:focus, .optional-fields textarea:focus { border-color: var(--ink); }
.field input::placeholder, .optional-fields textarea::placeholder { color: #8692a0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.optional-fields { margin-top: 22px; }
.optional-fields summary { color: var(--muted); font-size: 15px; cursor: pointer; }
.optional-fields summary > span { margin-left: 8px; font-size: 13px; white-space: nowrap; }
.optional-fields textarea { resize: vertical; }

.form-privacy { margin-top: 24px; color: var(--muted); font-size: 14px; }
.form-privacy a { color: var(--ink); text-decoration: underline; }
.submit-button { width: 100%; margin-top: 16px; min-height: 60px; word-break: auto-phrase; }
.submit-button:disabled { opacity: .6; cursor: wait; }
.form-help { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.form-status { margin-top: 12px; }
.form-status.error { color: var(--error); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#mail-fallback { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#mail-fallback p { color: var(--muted); font-size: 15px; }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.fallback-actions .text-link { font-size: 15px; }

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-inner > p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.footer-brand { color: var(--ink); font-weight: 600; letter-spacing: .1em; }
.footer-inner > p > span { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------
   個人情報の取り扱い
   ------------------------------------------------------------ */
.privacy-page { max-width: 760px; padding: 88px 0 120px; }
.privacy-page h1 { font-size: 32px; line-height: 1.5; margin-bottom: 32px; }
.privacy-page h2 { margin: 44px 0 12px; font-size: 19px; }
.privacy-page p a { color: var(--ink); text-decoration: underline; word-break: break-all; }
.privacy-page .button { margin-top: 56px; }

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero-lead .wide-only { display: none; }
  .works { gap: 40px 14px; }
  .work-title { font-size: 15px; }
  .audience { padding: 32px 28px 28px; }
  .audience h3 { font-size: 21px; }
  .contact-panel { padding: 56px 48px; gap: 40px 48px; }
  .about { grid-template-columns: 1fr; }
  .careers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .careers li { padding: 28px 0 0; border-top: 2px solid var(--ink); }
}

@media (max-width: 900px) {
  .careers { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .careers li { padding: 20px 0; border-top: 1px solid var(--line); }
  .careers li:first-child { border-top: 2px solid var(--ink); }
  .hero { padding: 64px 0 72px; }
  .hero-inner, .hero-with-media .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero h1, .hero-with-media h1 { font-size: clamp(34px, 10vw, 64px); }
  .format-frame { height: 180px; }
  .hero-reel { max-width: 560px; padding-top: 32px; }
  .reel-item:nth-child(2) { transform: translateY(-32px); }
  .section { padding: 80px 0; }

  /* 作品は横にスクロールして見る */
  .works {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }
  .work { flex: 0 0 clamp(150px, 42vw, 220px); scroll-snap-align: start; }

  .audiences { grid-template-columns: 1fr; }
  .audience { padding: 32px 28px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .contact-panel { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
}

/* 横向きのスマホ：固定ヘッダーが画面の多くを占めないようにする */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header: 56px; }
  .site-header { position: static; }
  .hero { padding: 40px 0 64px; }
  .hero h1, .hero-with-media h1 { font-size: 44px; }
}

@media (max-width: 760px) {
  .site-nav a:not(.nav-contact) { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header: 64px; }
  .brand { gap: 10px; }
  .brand img { width: 28px; height: 28px; border-radius: 6px; }
  .brand-name { font-size: 17px; }
  .site-nav .nav-contact { padding: 8px 18px; font-size: 14px; }

  .hero { padding: 48px 0 40px; }
  .eyebrow { font-size: 14px; }
  .hero h1 { margin-top: 14px; line-height: 1.3; }
  .hero-lead { margin-top: 20px; font-size: 16px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .button { flex: 1 1 auto; padding-inline: 20px; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .hero-inner { gap: 40px; }
  .hero-reel { gap: 10px; padding-top: 24px; }
  .reel-item:nth-child(2) { transform: translateY(-24px); }
  .reel-item { border-radius: 10px; }

  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .section-head h2, .contact-intro h2 { font-size: 28px; }
  .section-lead { text-align: left; }
  .section-head .x-stats { flex-basis: auto; width: 100%; }
  .works-actions { margin-top: 32px; }

  .work-thumb { border-radius: 12px; }
  .hero-uses { margin-top: 24px; }
  /* スマホの最初の画面：見出し → 動画 → ボタンの順にして、動画とボタンまで見せる。説明文と用途はその下 */
  .hero-with-media { padding-top: 28px; }
  .hero-with-media .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-with-media .hero-copy { display: contents; }
  .hero-with-media .eyebrow { order: 1; }
  .hero-with-media h1 { order: 2; margin-top: 10px; font-size: clamp(30px, 9vw, 40px); }
  .hero-with-media .hero-media { order: 3; margin-top: 18px; }
  .hero-with-media .hero-media figcaption { display: none; }
  .hero-with-media .hero-actions { order: 4; margin-top: 16px; }
  .hero-with-media .hero-lead { order: 5; margin-top: 28px; }
  .hero-with-media .hero-uses { order: 6; }
  .format { padding: 24px 20px; }
  .format-frame { height: 136px; }
  .format-wide .format-frame { width: 100%; height: auto; }
  .format-goal { margin-top: 20px; }
  .format h3 { font-size: 22px; }
  .x-stats dl { gap: 8px; }
  .x-stats dt { font-size: 12px; }
  .x-stats dd { font-size: clamp(15px, 4.6vw, 18px); }
  .x-stats-source { margin-top: 8px; }
  .audience h3 { font-size: 21px; }
  .license-note p, .contact-intro > p:not(.section-label) { font-size: 16px; }
  .audiences { gap: 12px; }
  .audience { padding: 24px 20px; }
  .audience > p:not(.audience-name) { margin-top: 8px; }
  .outcomes { margin-top: 16px; }
  .audience .arrow-link { padding-top: 20px; }
  .license-note { flex-direction: column; align-items: flex-start; margin-top: 12px; padding: 20px; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .facts { padding: 4px 20px; }
  .facts div { grid-template-columns: 4em minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .facts dd { overflow-wrap: normal; font-size: 15px; }
  .process li { display: grid; grid-template-columns: 3em minmax(0, 1fr); padding: 20px 0; border-top: 1px solid var(--line); }
  .process li:first-child { border-top: 2px solid var(--ink); }
  .step { grid-row: span 2; line-height: 2; }
  .process h3 { margin-top: 0; font-size: 18px; }
  .process p { margin-top: 0; }
  .price { grid-template-columns: 1fr; gap: 4px; margin-top: 24px; padding: 20px; }
  .price-label { line-height: 1.8; }
  .price-main { gap: 4px 12px; }
  .price-amount { font-size: 24px; }

  .contact-panel { padding: 32px 16px 16px; border-radius: 20px; }
  .contact-intro .direct-contact { margin-top: 28px; }
  .consultation { padding: 24px 16px 20px; border-radius: 14px; }
  .consultation fieldset { margin-bottom: 22px; }
  .choices { gap: 6px; }
  .choices label > span { gap: 8px; padding: 8px 14px 8px 10px; font-size: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .privacy-page { padding: 48px 0 72px; }
  .privacy-page h1 { font-size: 25px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 16px; letter-spacing: .06em; }
  .contact-panel { padding-inline: 14px; }
  .consultation { padding: 24px 14px 20px; }
}

/* 運営者の欄：メールアドレスが1行に入らない幅では、項目名と値を縦に並べる */
@media (max-width: 374px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
