/* ==========================================================================
   ECプランニング株式会社 トップページ 未公開プレビュー
   採用案：01（エディトリアル）ベース ＋ 02の入口カード ＋ 03の質問フォーム
   フォント：Shippori Mincho B1 / Zen Kaku Gothic New（SIL OFL・サブセット同梱）
   ========================================================================== */

@font-face {
  font-family: "Shippori Mincho B1";
  src: url("/ecp-top/assets/fonts/ShipporiMinchoB1-Bold.subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/ecp-top/assets/fonts/ZenKakuGothicNew-Regular.subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/ecp-top/assets/fonts/ZenKakuGothicNew-Bold.subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.ecp-top{
  --paper: #f8f4ee;
  --paper-deep: #f1ebe2;
  --white: #fffdfa;
  --ink: #16243a;
  --ink-soft: #3a4456;
  --muted: #687080;
  --line: #e3dacb;
  --line-strong: #cbbfad;
  --field-border: #8f8170;
  --orange: #f05a24;
  --orange-hover: #d94c18;
  --orange-btn: #cc4a15;
  --orange-btn-hover: #b13f10;
  --orange-text: #c4470f;
  --orange-tint: #fdeee6;
  --check: #b98400;
  --check-bg: #fff3c4;

  --font-serif: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 4px;
}
.ecp-top *,
.ecp-top *::before,
.ecp-top *::after{ box-sizing: border-box; }
html.ecp-design-active{
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
html.ecp-design-active{ scroll-behavior: smooth; }
}
.ecp-top{
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
  line-break: strict;
}
.ecp-top img{ display: block; max-width: 100%; height: auto; }
.ecp-top figure{ margin: 0; }
.ecp-top ul,
.ecp-top ol{ margin: 0; padding: 0; list-style: none; }
.ecp-top p{ margin: 0; }
.ecp-top h1,
.ecp-top h2,
.ecp-top h3{ margin: 0; color: var(--ink); font-weight: 700; word-break: auto-phrase; }/* 日本語の見出しを文節で折り返す（auto-phrase 非対応ブラウザ向けの補助） */
.ecp-top .nw{ display: inline-block; }
.ecp-top a{ color: inherit; }
.ecp-top button,
.ecp-top input,
.ecp-top textarea{ font: inherit; letter-spacing: inherit; }
.ecp-top [hidden]{ display: none !important; }
.ecp-top .sr-only{
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ecp-top :focus-visible{ outline: 3px solid var(--orange); outline-offset: 3px; }
.ecp-top .container{
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ecp-top .icon{ width: 1.15em; height: 1.15em; flex: none; }/* ---------- Buttons & links ---------- */
.ecp-top .btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.6em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; line-height: 1.4; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}/* ボタンは白文字の読みやすさ（4.5:1以上）のため一段濃いオレンジ */
.ecp-top .btn--primary{ background: var(--orange-btn); color: #fff; }
.ecp-top .btn--primary:hover{ background: var(--orange-btn-hover); }
.ecp-top .btn--light{ background: #fff; color: var(--orange-text); }
.ecp-top .btn--light:hover{ background: var(--ink); color: #fff; }
.ecp-top .btn--outline{ background: #fff; color: var(--ink); border-color: var(--ink); }
.ecp-top .btn--ghost{ background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ecp-top .btn--ghost:hover{ border-color: var(--ink); }
.ecp-top .btn--sm{ min-height: 42px; padding: 0.5em 1.3em; font-size: 15px; }
.ecp-top .btn--lg{ min-height: 58px; padding: 0.8em 2em; font-size: 18px; }
.ecp-top .btn--block{ width: 100%; }
.ecp-top .text-link{
  color: var(--ink); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 0.45em;
  text-decoration-color: var(--orange);
}
.ecp-top .text-link:hover{ color: var(--orange-text); }
.ecp-top .text-link--quiet{ font-weight: 500; text-decoration-color: var(--line-strong); }/* ---------- Preview bar ---------- */
.ecp-top .preview-bar{
  display: flex; align-items: center; gap: 4px 16px;
  padding: 6px var(--gutter);
  background: var(--ink); color: #e9edf3;
  font-size: 12.5px; line-height: 1.6; letter-spacing: 0.04em;
}
.ecp-top .preview-bar__label{ color: #fff; flex: none; }
.ecp-top .preview-bar__text{ min-width: 0; }
.ecp-top .preview-bar__toggle{
  flex: none; margin-left: auto; padding: 3px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  background: transparent; color: #fff; font-size: 12px; cursor: pointer;
}
.ecp-top .preview-bar__toggle[aria-pressed="true"]{ background: var(--check-bg); color: var(--ink); border-color: var(--check-bg); }
.ecp-top .preview-bar :focus-visible{ outline-color: #fff; }/* ---------- Header ---------- */
.ecp-top .site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 238, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ecp-top .site-header.is-scrolled{ border-bottom-color: var(--line); }
.ecp-top .header-inner{ display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.ecp-top .brand{ display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.ecp-top .brand img{ width: 40px; height: 40px; }
.ecp-top .brand__name{ font-weight: 700; font-size: 17px; letter-spacing: 0.06em; white-space: nowrap; }
.ecp-top .global-nav{ display: flex; align-items: center; gap: 28px; }
.ecp-top .global-nav__list{ display: flex; gap: 26px; }
.ecp-top .global-nav__list a{
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.ecp-top .global-nav__list a:hover{ border-bottom-color: var(--orange); }
.ecp-top .nav-toggle{
  display: none; align-items: center; gap: 8px;
  padding: 8px 4px; border: 0; background: none; color: var(--ink); cursor: pointer;
  font-size: 12px; font-weight: 700;
}
.ecp-top .nav-toggle__bars{ display: grid; gap: 5px; width: 22px; }
.ecp-top .nav-toggle__bars span{ display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.ecp-top .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.ecp-top .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2){ opacity: 0; }
.ecp-top .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }/* ---------- Placeholder figures ---------- */
.ecp-top .ph{ position: relative; overflow: hidden; background: var(--paper-deep); }/* 画像の元サイズで枠が伸びないよう、枠いっぱいに敷く（枠の大きさはレイアウト側で決める） */
.ecp-top .ph img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecp-top .ph-badge{
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 2px;
  background: rgba(22, 36, 58, 0.82); color: #fff;
  font-size: 11.5px; line-height: 1.5; letter-spacing: 0.04em; font-weight: 500;
}/* ---------- Hero：全面の背景動画 ---------- */
.ecp-top .hero{
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(600px, calc(100vh - var(--header-h) - 44px), 820px);
  background: var(--ink); color: #fff;
}
.ecp-top .hero__media{ position: absolute; inset: 0; z-index: -1; }
.ecp-top .hero__video{ width: 100%; height: 100%; object-fit: cover; display: block; }/* 文字を読ませるための影：左を濃く、右は映像を見せる */
.ecp-top .hero__shade{
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,24,40,.92) 0%, rgba(14,24,40,.78) 38%, rgba(14,24,40,.35) 70%, rgba(14,24,40,.15) 100%),
    linear-gradient(0deg, rgba(14,24,40,.55) 0%, rgba(14,24,40,0) 35%);
}
.ecp-top .hero__inner{ position: relative; padding-block: 72px 96px; }
.ecp-top .hero__text{ max-width: 640px; }
.ecp-top .hero__eyebrow{ margin-bottom: 18px; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
.ecp-top .hero__title{
  font-family: var(--font-serif); color: #fff;
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 1.26; letter-spacing: 0.02em;
}
.ecp-top .hero__line{ display: block; white-space: nowrap; }
.ecp-top .hero__title em{ font-style: normal; color: #ff7a45; }
.ecp-top .hero__lead{ margin-top: 26px; font-size: clamp(16px, 1.35vw, 19px); line-height: 2; color: #eef1f5; }
.ecp-top .hero__actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 34px; }
.ecp-top .hero__facts{ display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 22px; font-size: 14.5px; font-weight: 500; color: #fff; }
.ecp-top .hero__facts li{ display: inline-flex; align-items: center; gap: 8px; }
.ecp-top .hero__facts li::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff7a45; }
.ecp-top .hero__entries{ margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); }
.ecp-top .hero__entries-label{ font-size: 13px; color: #c9d1dc; }
.ecp-top .hero__entries ul{ display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 4px; }
.ecp-top .hero__entries li + li{ border-left: 1px solid rgba(255,255,255,.35); margin-left: 22px; padding-left: 22px; }
.ecp-top .hero__entries a{
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-weight: 700; font-size: 15px; color: #fff; text-decoration: none;
}
.ecp-top .hero__entries a::after{
  content: ""; width: 7px; height: 7px; margin-top: 1px;
  border-right: 1.8px solid #ff7a45; border-bottom: 1.8px solid #ff7a45;
  transform: rotate(-45deg);
}
.ecp-top .hero__entries a:hover{ color: #ffd2bd; }
.ecp-top .hero :focus-visible{ outline-color: #fff; }
.ecp-top .hero__controls{
  position: absolute; right: 20px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.ecp-top .hero__badge{
  padding: 3px 9px; border-radius: 2px; background: rgba(255,255,255,.14);
  font-size: 11.5px; line-height: 1.6; color: #e9edf3;
}
.ecp-top .hero__toggle{
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(14,24,40,.45);
  color: #fff; font-size: 12.5px; cursor: pointer;
}
.ecp-top .hero__toggle .icon{ width: 14px; height: 14px; }
.ecp-top .hero__toggle .icon--play{ display: none; }
.ecp-top .hero__toggle[aria-pressed="true"] .icon--play{ display: inline; }
.ecp-top .hero__toggle[aria-pressed="true"] .icon--pause{ display: none; }

/* 読み込み時の一度だけの演出：文字が順に浮かび上がる */
@media (prefers-reduced-motion: no-preference) {
.ecp-top .hero__text > *{ animation: hero-text .8s ease-out both; }
.ecp-top .hero__text > *:nth-child(2){ animation-delay: .12s; }
.ecp-top .hero__text > *:nth-child(3){ animation-delay: .24s; }
.ecp-top .hero__text > *:nth-child(4){ animation-delay: .34s; }
.ecp-top .hero__text > *:nth-child(5){ animation-delay: .42s; }
.ecp-top .hero__text > *:nth-child(6){ animation-delay: .5s; }
}
@keyframes hero-text { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }/* ---------- Sections ---------- */
.ecp-top .section{ padding-block: clamp(72px, 9vw, 120px); }
.ecp-top .section-title{
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.45; letter-spacing: 0.04em;
}
.ecp-top .section-title--sm{ font-size: clamp(24px, 2.4vw, 32px); }
.ecp-top .section-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: 48px; }
.ecp-top .section-head__note{ max-width: 30em; font-size: 15px; color: var(--ink-soft); }/* ---------- Services ---------- */
.ecp-top .services{ background: var(--white); }
.ecp-top .service-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ecp-top .service-card{
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  min-height: 380px;
  background: var(--paper); border: 1px solid var(--line);
}
.ecp-top .service-card:target{ border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.ecp-top .service-card__body{ display: flex; flex-direction: column; padding: 36px 32px 32px; }
.ecp-top .service-card__name{ font-size: 13.5px; font-weight: 700; color: var(--orange-text); letter-spacing: 0.08em; }
.ecp-top .service-card__title{ margin-top: 10px; font-family: var(--font-serif); font-size: clamp(23px, 1.95vw, 28px); line-height: 1.45; letter-spacing: 0.03em; }
.ecp-top .service-card__text{ margin-top: 16px; font-size: 15px; line-height: 1.95; }
.ecp-top .task-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ecp-top .task-tags li{ padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); font-size: 13px; color: var(--ink); line-height: 1.7; }
.ecp-top .service-card__links{ display: grid; gap: 10px; margin-top: auto; padding-top: 28px; font-size: 15px; }
.ecp-top .service-card__photo{ min-height: 100%; }/* ---------- Flow ---------- */
.ecp-top .flow{ background: var(--paper); }
.ecp-top .flow__inner{ display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: 56px; align-items: start; }
.ecp-top .flow__intro p{ margin-top: 20px; font-size: 15.5px; }
.ecp-top .flow__intro .btn{ margin-top: 32px; }
.ecp-top .steps{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ecp-top .step{ position: relative; }
.ecp-top .step:not(:last-child)::after{
  /* 写真（16:9）の縦中央に矢印を置く：margin-top の%は幅基準 */
  content: ""; position: absolute; top: 0; margin-top: calc(28.125% - 7px); right: -27px;
  width: 14px; height: 14px; border-right: 1.8px solid var(--orange); border-bottom: 1.8px solid var(--orange);
  transform: rotate(-45deg);
}
.ecp-top .step__photo{ aspect-ratio: 16 / 9; }
.ecp-top .step__num{ margin-top: 18px; font-family: var(--font-serif); font-weight: 700; font-size: 22px; line-height: 1; color: var(--orange-text); letter-spacing: 0.06em; }
.ecp-top .step__title{ margin-top: 8px; font-size: 18px; line-height: 1.5; }
.ecp-top .step__text{ margin-top: 8px; font-size: 14.5px; line-height: 1.9; }/* ---------- Message (navy band) ---------- */
.ecp-top .message{ background: var(--ink); color: #dfe4ec; }
.ecp-top .message .section-title{ color: #fff; }
.ecp-top .message__inner{ display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ecp-top .message__text > p{ margin-top: 18px; font-size: 15.5px; }
.ecp-top .rep-card{ display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; margin-top: 36px; align-items: start; }
.ecp-top .rep-card__photo{ aspect-ratio: 4 / 5; }
.ecp-top .rep-card__photo img{ object-position: 45% 25%; }
.ecp-top .rep-card__role{ font-size: 13px; color: #aeb7c5; letter-spacing: 0.08em; }
.ecp-top .rep-card__name{ font-family: var(--font-serif); font-size: 26px; line-height: 1.4; color: #fff; letter-spacing: 0.14em; }
.ecp-top .rep-card__message{ margin-top: 12px; font-size: 14.5px; line-height: 1.9; color: #e6eaf0; }
.ecp-top .ai-draft-note{ display: inline-block; margin-top: 8px; padding: 2px 8px; border: 1px solid #f3b08f; border-radius: 2px; font-size: 12.5px; font-weight: 700; color: #ffd9c6; }
.ecp-top .message :focus-visible{ outline-color: #fff; }
.ecp-top .video-slot{
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #0d1828; border: 1px solid rgba(255,255,255,.14);
}
.ecp-top .video-slot__poster{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.42); }
.ecp-top .video-slot__status{
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; color: #fff;
}
.ecp-top .video-slot__icon{ width: 36px; height: 36px; opacity: .85; }
.ecp-top .video-slot__title{ font-size: 19px; font-weight: 700; letter-spacing: 0.12em; }
.ecp-top .video-slot__text{ max-width: 24em; font-size: 13.5px; line-height: 1.8; color: #d3dae4; }
.ecp-top .video-slot .ph-badge{ background: rgba(255,255,255,.14); }/* ---------- Ask / contact ---------- */
.ecp-top .ask{ background: var(--white); }
.ecp-top .ask__inner{ display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.ecp-top .ask__intro > p{ margin-top: 20px; font-size: 15.5px; }
@media (min-width: 1024px) {
.ecp-top .ask__intro{ position: sticky; top: calc(var(--header-h) + 40px); }
}
.ecp-top .ask__notes{ display: grid; gap: 8px; margin-top: 24px; font-size: 15px; color: var(--ink); }
.ecp-top .ask__notes li{ display: flex; gap: 10px; align-items: baseline; }
.ecp-top .ask__notes li::before{
  content: ""; flex: none; width: 10px; height: 6px; margin-bottom: 2px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg) translateY(-2px);
}
.ecp-top .ask__mail{ margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.ecp-top .ask__mail a{ font-size: 17px; font-weight: 700; color: var(--ink); text-underline-offset: 0.3em; }
.ecp-top .ask__panel{ background: var(--paper); border: 1px solid var(--line); padding: 32px; }
.ecp-top .ask-form{ display: grid; gap: 22px; }
.ecp-top fieldset{ margin: 0; padding: 0; border: 0; min-width: 0; }
.ecp-top .seg{ display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.ecp-top .seg__opt{ position: relative; }
.ecp-top .seg__opt input,
.ecp-top .chip input{ position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ecp-top .seg__opt span{
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px;
  font-weight: 700; font-size: 15px; text-align: center; line-height: 1.4; color: var(--ink); background: #fff; cursor: pointer;
}
.ecp-top .seg__opt + .seg__opt span{ border-left: 1.5px solid var(--ink); }
.ecp-top .seg__opt input:checked + span{ background: var(--ink); color: #fff; }
.ecp-top .seg__opt input:focus-visible + span{ outline: 3px solid var(--orange); outline-offset: -5px; }
.ecp-top .field{ display: grid; gap: 8px; }
.ecp-top .field__label{ display: flex; align-items: center; gap: 10px; padding: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ecp-top .req,
.ecp-top .opt{ padding: 1px 7px; border-radius: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
.ecp-top .req{ background: var(--orange-tint); color: #b13f10; }
.ecp-top .opt{ background: #ece6dc; color: #5c6372; }
.ecp-top .field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ecp-top .chips{ display: flex; flex-wrap: wrap; gap: 10px; }
.ecp-top .chip{ position: relative; }
.ecp-top .chip span{
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px;
  border: 1.5px solid var(--field-border); border-radius: var(--radius); background: #fff;
  font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.3;
}
.ecp-top .chip .icon{ color: var(--orange); width: 20px; height: 20px; }
.ecp-top .chip input:checked + span{ border-color: var(--orange); background: var(--orange-tint); box-shadow: inset 0 0 0 1px var(--orange); }
.ecp-top .chip input:focus-visible + span{ outline: 3px solid var(--orange); outline-offset: 2px; }
.ecp-top input[type="text"],
.ecp-top input[type="email"],
.ecp-top textarea{
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--field-border); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6;
}
.ecp-top textarea{ resize: vertical; min-height: 132px; }
.ecp-top input:focus,
.ecp-top textarea:focus{ outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240,90,36,.28); }
.ecp-top ::placeholder{ color: #767b85; }
.ecp-top [aria-invalid="true"]{ border-color: #c0362c !important; background: #fff8f7 !important; }
.ecp-top .field__error{ min-height: 0; font-size: 13.5px; color: #b42a20; font-weight: 700; line-height: 1.5; }
.ecp-top .field__error:empty{ display: none; }
.ecp-top .demo-note{
  padding: 12px 14px; border-left: 4px solid var(--orange); background: #fff;
  font-size: 14px; line-height: 1.7; color: var(--ink);
}
.ecp-top .demo-note strong{ display: block; color: var(--orange-text); }
.ecp-top .ask-form__privacy{ margin-bottom: -8px; font-size: 13.5px; color: var(--ink-soft); }
.ecp-top .ask-form__privacy a{ color: var(--ink); font-weight: 700; text-underline-offset: .3em; }
.ecp-top .ask-result{ display: grid; gap: 14px; padding: 8px 0; }
.ecp-top .ask-result:focus{ outline: none; }
.ecp-top .ask-result__title{ font-family: var(--font-serif); font-size: 24px; line-height: 1.5; color: var(--ink); }
.ecp-top .ask-result .btn{ justify-self: start; margin-top: 6px; }/* ---------- More (existing pages) ---------- */
.ecp-top .more{ background: var(--paper); padding-block: clamp(64px, 7vw, 96px); }
.ecp-top .more-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.ecp-top .more-link{
  display: grid; gap: 6px; height: 100%; align-content: start; padding: 24px 22px 26px 0; margin-right: 22px;
  text-decoration: none; color: var(--ink-soft);
}
.ecp-top .more-grid li + li .more-link{ padding-left: 22px; }
.ecp-top .more-grid li + li{ border-left: 1px solid var(--line); }
.ecp-top .more-link__title{ display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 17px; color: var(--ink); }
.ecp-top .more-link__title::after{
  content: ""; width: 8px; height: 8px; border-right: 1.8px solid var(--orange); border-bottom: 1.8px solid var(--orange); transform: rotate(-45deg);
}
.ecp-top .more-link__desc{ font-size: 14px; line-height: 1.8; }
.ecp-top .more-link:hover .more-link__title{ color: var(--orange-text); }/* ---------- CTA band ---------- */
.ecp-top .cta-band{ background: var(--orange); color: #fff; padding-block: 44px; }
.ecp-top .cta-band__inner{ display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.ecp-top .cta-band__title{ font-family: var(--font-serif); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; letter-spacing: 0.05em; }
.ecp-top .cta-band :focus-visible{ outline-color: var(--ink); }/* ---------- Footer ---------- */
.ecp-top .site-footer{ background: var(--paper); border-top: 1px solid var(--line); padding-top: 56px; }
.ecp-top .footer-inner{ display: flex; justify-content: space-between; gap: 40px 64px; flex-wrap: wrap; }
.ecp-top .footer-company .brand img{ width: 36px; height: 36px; }
.ecp-top .company-info{ display: grid; gap: 4px; margin: 20px 0 0; font-size: 14px; line-height: 1.8; }
.ecp-top .company-info div{ display: grid; grid-template-columns: 4.5em minmax(0, 1fr); }
.ecp-top .company-info dt{ color: var(--muted); }
.ecp-top .company-info dd{ margin: 0; color: var(--ink); }
.ecp-top .footer-nav{ display: flex; gap: 56px; font-size: 14px; }
.ecp-top .footer-nav ul{ display: grid; gap: 10px; align-content: start; }
.ecp-top .footer-nav a{ text-decoration: none; color: var(--ink); }
.ecp-top .footer-nav a:hover{ color: var(--orange-text); text-decoration: underline; text-underline-offset: .3em; }
.ecp-top .copyright{ margin-top: 48px; padding: 18px var(--gutter); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }/* ---------- Mobile CTA & toast ---------- */
.ecp-top .mobile-cta{ display: none; }
.ecp-top .toast{
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1.7;
  box-shadow: 0 10px 30px rgba(22,36,58,.25);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ecp-top .toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }/* ---------- Preview helpers：要確認の文言 ---------- */
.show-checks .ecp-top [data-check]{
  outline: 2px dashed var(--check); outline-offset: 4px;
  background-color: var(--check-bg); color: var(--ink);
}
.show-checks .ecp-top [data-check]::after{
  content: "要確認：" attr(data-check);
  display: block; margin-top: 6px; padding: 2px 8px; width: fit-content; max-width: 100%;
  background: var(--check); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: 0.02em;
}
.show-checks .ecp-top .steps[data-check]::after{ grid-column: 1 / -1; }
.show-checks .ecp-top [data-existing]{ outline: 1.5px dotted #5b6a85; outline-offset: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
.ecp-top .global-nav__list{ gap: 18px; }
.ecp-top .global-nav{ gap: 20px; }
.ecp-top .flow__inner{ grid-template-columns: 1fr; gap: 40px; }
.ecp-top .flow__intro{ max-width: 40em; }
.ecp-top .hero__entries li + li{ margin-left: 16px; padding-left: 16px; }
}

@media (max-width: 1023px) {
.ecp-top{ --header-h: 64px; }
.ecp-top .nav-toggle{ display: inline-flex; }
.ecp-top .global-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(22,36,58,.08);
  }
.ecp-top .global-nav.is-open{ display: flex; }
.ecp-top .global-nav__list{ flex-direction: column; gap: 0; }
.ecp-top .global-nav__list a{ display: block; padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
.ecp-top .global-nav__list a:hover{ border-bottom-color: var(--line); color: var(--orange-text); }
.ecp-top .global-nav__cta{ margin-top: 18px; min-height: 52px; font-size: 16px; }
.ecp-top .hero{ min-height: clamp(560px, 88vh, 760px); }
.ecp-top .hero__inner{ padding-block: 56px 88px; }
.ecp-top .service-grid{ grid-template-columns: 1fr; }
.ecp-top .message__inner,
.ecp-top .ask__inner{ grid-template-columns: 1fr; gap: 44px; }
.ecp-top .more-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ecp-top .more-grid li:nth-child(3){ border-left: 0; }
.ecp-top .more-grid li:nth-child(3) .more-link{ padding-left: 0; }
.ecp-top .more-grid li:nth-child(n+3){ border-top: 1px solid var(--line); }
}

@media (max-width: 719px) {
.ecp-top{ --gutter: 20px; }
html.ecp-design-active{ scroll-padding-bottom: 84px; }
.ecp-top{ font-size: 15.5px; padding-bottom: 76px; }
.ecp-top .preview-bar{ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; font-size: 11.5px; padding-block: 7px; line-height: 1.55; }
.ecp-top .preview-bar__text{ grid-column: 1 / -1; grid-row: 2; }
.ecp-top .preview-bar__toggle{ font-size: 11.5px; padding: 2px 9px; }
.ecp-top .brand img{ width: 34px; height: 34px; }
.ecp-top .brand__name{ font-size: 15px; letter-spacing: 0.03em; }/* スマホ：動画は上部の帯に。文字はその下の紺地に置いて読みやすさを優先 */
.ecp-top .hero{ display: block; min-height: 0; }
.ecp-top .hero__media{ bottom: auto; height: 250px; }
.ecp-top .hero__shade{ background: linear-gradient(180deg, rgba(22,36,58,0) 45%, rgba(22,36,58,1) 100%); }
.ecp-top .hero__inner{ padding-block: 210px 84px; }
.ecp-top .hero__title{ font-size: clamp(34px, 10.4vw, 46px); line-height: 1.32; }
.ecp-top .hero__lead{ margin-top: 18px; font-size: 15.5px; }
.ecp-top .hero__actions{ margin-top: 26px; gap: 16px 24px; }
.ecp-top .hero__actions .btn{ width: 100%; }
.ecp-top .hero__entries{ margin-top: 28px; }
.ecp-top .hero__entries ul{ flex-direction: column; }
.ecp-top .hero__entries li + li{ border-left: 0; margin-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
.ecp-top .hero__entries a{ min-height: 48px; width: 100%; justify-content: space-between; }
.ecp-top .hero__controls{ left: var(--gutter); right: var(--gutter); top: 12px; bottom: auto; justify-content: space-between; }
.ecp-top .hero__badge{ font-size: 10.5px; }
.ecp-top .hero__badge-more{ display: none; }
.ecp-top .hero__video{ object-position: 82% 40%; }
.ecp-top .hero__toggle{ width: 40px; height: 40px; padding: 0; justify-content: center; }
.ecp-top .hero__toggle-label{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ecp-top .ph-badge{ font-size: 10.5px; left: 8px; top: 8px; }
.ecp-top .section-head{ display: block; margin-bottom: 32px; }
.ecp-top .section-head__note{ margin-top: 14px; }
.ecp-top .service-card{ grid-template-columns: 1fr; min-height: 0; }
.ecp-top .service-card__photo{ order: -1; aspect-ratio: 16 / 9; min-height: 0; }
.ecp-top .service-card__body{ padding: 26px 22px 26px; }
.ecp-top .steps{ grid-template-columns: 1fr; gap: 32px; }
.ecp-top .step{ display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; }
.ecp-top .step__photo{ grid-row: 1 / 4; aspect-ratio: 1 / 1; }
.ecp-top .step__num{ margin-top: 0; font-size: 18px; }
.ecp-top .step__title{ margin-top: 4px; font-size: 17px; }
.ecp-top .step__text{ font-size: 14px; }
.ecp-top .step:not(:last-child)::after{ display: none; }
.ecp-top .br-pc{ display: none; }
.ecp-top .rep-card{ grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
.ecp-top .rep-card__name{ font-size: 22px; }
.ecp-top .ask__panel{ padding: 22px 18px; margin-inline: calc(var(--gutter) * -0.4); }
.ecp-top .field-row{ grid-template-columns: 1fr; gap: 22px; }
.ecp-top .chip span{ padding: 8px 12px; font-size: 14.5px; }
.ecp-top .seg__opt span{ font-size: 14px; }
.ecp-top .more-grid{ grid-template-columns: 1fr; }
.ecp-top .more-grid li + li{ border-left: 0; border-top: 1px solid var(--line); }
.ecp-top .more-grid li + li .more-link,
.ecp-top .more-grid li:nth-child(3) .more-link{ padding-left: 0; }
.ecp-top .more-link{ margin-right: 0; padding: 18px 0; }
.ecp-top .cta-band{ padding-block: 36px; }
.ecp-top .cta-band .btn{ width: 100%; }
.ecp-top .footer-nav{ gap: 32px; }
.ecp-top .company-info div{ grid-template-columns: 1fr; }
.ecp-top .mobile-cta{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,253,250,.96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(22,36,58,.08);
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
.ecp-top .mobile-cta .btn{ min-height: 50px; padding-inline: 10px; font-size: 15.5px; }
.ecp-top .mobile-cta.is-visible{ transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.ecp-top .toast{ bottom: 88px; }
}

@media (max-width: 380px) {
.ecp-top .brand__name{ font-size: 14px; }
.ecp-top .nav-toggle__label{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ecp-top .chip span{ padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
.ecp-top *,
.ecp-top *::before,
.ecp-top *::after{ transition-duration: 0.01ms !important; animation: none !important; }
}/* Codex: person-free company introduction; native playback controls. */
.ecp-top .video-slot{ display:block; min-height:0; aspect-ratio:16 / 9; overflow:hidden; background:#f8f4ee; }
.ecp-top .video-slot__video{ display:block; width:100%; height:100%; object-fit:contain; }
.ecp-top .intro-media{ min-width:0; }
.ecp-top .intro-transcript{ margin-top:14px; color:#e9e2d7; font-size:14px; line-height:1.8; }
.ecp-top .intro-transcript summary{ cursor:pointer; text-decoration:underline; }
.ecp-top .intro-transcript p{ margin-top:10px; }

/* Only the homepage receives the new shell. Existing route content and form remain original. */
html.ecp-design-active #root nav[data-loc*="Navigation.tsx"], html.ecp-design-active #root section[data-loc*="HeroSection.tsx"] { display:none !important; }
.ecp-top[hidden] {display:none !important;}
.ecp-top .preview-bar {position:relative;}
.ecp-top .preview-bar p {font-size:12px;}
html.ecp-design-active {scroll-padding-top:88px;}
.ecp-top.ecp-question-bridge {padding:48px 24px;background:#f8f4ee;}
.ecp-top.ecp-question-bridge .ask__inner {max-width:1200px;margin:auto;}
.ecp-top .integration-note {border-left:3px solid #cc4a15;padding:12px 18px;background:#fff3c4;color:#16243a;font-size:14px;}
.ecp-top .bridge-options {display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;}
html.ecp-design-active #root section[id] {scroll-margin-top:86px;}
.ecp-top .site-header {position:fixed;left:0;right:0;top:0;z-index:70;} .ecp-top#ecp-top-shell {padding-top:var(--header-h);}

/* Local review: one homepage flow and current published article entries. */
html.ecp-design-active #root [data-ecp-replaced-flow],html.ecp-design-active #root [data-ecp-replaced-articles]{display:none!important}
.ecp-top .steps--review{grid-template-columns:1fr;gap:24px}
.ecp-top .steps--review .step{padding:0 0 20px 46px;border-bottom:1px solid #d9d6d0}
.ecp-top .steps--review .step::after{display:none}
.ecp-top .steps--review .step__num{position:absolute;left:0;top:2px;margin:0}
.ecp-top .steps--review .step__title{margin:0}
.ecp-top .ecp-latest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ecp-top .ecp-latest-card{padding:26px;border:1px solid #d9d6d0;background:#fff}
.ecp-top .ecp-latest-card time{font-size:13px;color:#6b7280}
.ecp-top .ecp-latest-card h3{font-size:20px;line-height:1.6;margin:14px 0}
.ecp-top .ecp-latest-card p{font-size:14px;margin-bottom:18px}
.ecp-top .ecp-latest-actions{display:flex;align-items:center;gap:24px;margin-top:28px;flex-wrap:wrap}
.ecp-top .ecp-data-notice{font-size:13px;line-height:1.8;margin-top:18px}
.ecp-top .ecp-data-notice summary{cursor:pointer}
.ecp-top .ecp-data-notice p{margin-top:12px}
.ecp-top .ecp-data-notice a{text-decoration:underline}
@media(max-width:767px){.ecp-top .ecp-latest-grid{grid-template-columns:1fr}.ecp-top .ecp-latest-card{padding:22px}}

.ecp-top .ecp-line-entry{margin-top:20px}.ecp-top .ecp-line-add{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;min-width:224px;max-width:100%;padding:12px 18px;border:1px solid #136d32;background:#fff;color:#136d32;font-weight:700;text-decoration:none}.ecp-top .ecp-line-add:focus-visible{outline:3px solid #136d32;outline-offset:3px}.ecp-top .ecp-line-external{font-size:11px;font-weight:400}.ecp-top .ecp-line-entry>p{font-size:12px;line-height:1.7;margin-top:10px}

.ecp-top .capability-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.ecp-top .capability-nav a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid #c7c5be;text-decoration:none;font-size:13px;background:#fff;line-height:1.6}.ecp-top .capability-nav a:focus-visible,.ecp-top .capability-card a:focus-visible{outline:3px solid #136d32;outline-offset:3px}.ecp-top .capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:32px}.ecp-top .capability-card{padding:28px;background:#fff;border:1px solid #d9d6d0;scroll-margin-top:100px;display:flex;flex-direction:column}.ecp-top .capability-card__eyebrow{font-size:13px;color:#5f625d;margin:0 0 12px}.ecp-top .capability-card h3{font-size:22px;line-height:1.6;margin:0 0 16px;overflow-wrap:anywhere}.ecp-top .capability-card>p:not(.capability-card__eyebrow){font-size:14px;line-height:1.9;margin:0 0 20px}.ecp-top .capability-card .task-tags{margin-top:auto;margin-bottom:20px}.ecp-top .capability-note{font-size:14px;line-height:1.9;max-width:860px;margin-top:24px}.ecp-top .section-head__note{line-height:1.9}@media(max-width:1023px){.ecp-top .capability-grid{grid-template-columns:1fr}.ecp-top .capability-card{padding:24px}.ecp-top .capability-card h3{font-size:21px}}

.ecp-top #ecp-services .section-head{display:block}.ecp-top #ecp-services .section-head__note{max-width:54em;margin-top:20px}.ecp-top #ecp-services .capability-nav{margin-top:24px}
