@charset "utf-8";

/* ==========================================================================
   業務システム開発ポートフォリオ LP

   ・ライト単体のページです（ダークテーマは持ちません）。地は白。
   ・外部リソースを一切読み込みません（フォントは OS 標準、画像は assets/ の
     同一オリジン相対パスのみ）。
   ・ブランド色は 2 色だけです。
       紺青（navy   #17376e） … 構造色。見出しの罫・ラベル・主ボタン・締めの面
       銅色（copper #c76523） … 強調色。見出しの一語と「動いている」印だけに使う
     この 2 色以外をアクセントに使わないでください。
   ・紺青は製図の墨（青焼き）の色として選んでいます。白地でコントラスト比 11.6 : 1。
     ヒーローの薄い方眼と同じ語彙なので、地紋がそのまま図面の意味を持ちます。
   ・ページの主役は assets/ の実画面です。装飾は画面を引き立てる範囲に留めます。
   ========================================================================== */

/* ---------- 1. トークン ---------- */

:root {
  color-scheme: light;

  /* 面（白地のまま。オフホワイトは紺青寄り＝寒色に振り、暖色には振らない） */
  --paper:   #ffffff;   /* 地。純白 */
  --paper-2: #f4f7fb;   /* ごく淡い紺青寄りのオフホワイト。白地比 1.07 : 1 */
  --paper-3: #e9eff7;

  /* 罫 */
  --line:   #e6ecf5;
  --line-2: #cddaec;

  /* 文字（紺青をわずかに含んだ黒。純黒は使わない）
     白地でのコントラスト比: ink 17.1 / ink-2 8.7 / ink-3 5.7 */
  --ink:   #0f1c2e;
  --ink-2: #3e4c60;
  --ink-3: #5a687c;

  /* 紺青。白地でのコントラスト比:
       navy-deep 15.2 : 1（締めの面）
       navy      11.6 : 1（構造色。罫・ラベル・主ボタン）
       navy-mid   7.6 : 1（副ラベルとホバー、フォーカス枠） */
  --navy-deep: #0e2549;
  --navy:      #17376e;
  --navy-mid:  #1d539a;
  --navy-soft: #e7eef8;

  /* 銅色。紺青の補色側にある唯一の暖色。白地では小さな文字に使うと薄いので、
     文字用に濃い派生を持つ（copper 3.95 : 1 / copper-ink 5.9 : 1） */
  --copper:     #c76523;
  --copper-ink: #9c4f1c;

  --focus: #1d539a;

  /* 影は黒ではなく紺青寄りに落とし、白地で濁らせない */
  --shadow-1: 0 1px 2px rgba(15, 28, 46, .05), 0 2px 8px -4px rgba(15, 28, 46, .08);
  --shadow-2: 0 1px 2px rgba(15, 28, 46, .06), 0 18px 40px -24px rgba(15, 28, 46, .30);
  --shadow-3: 0 2px 4px rgba(15, 28, 46, .06), 0 34px 64px -30px rgba(15, 28, 46, .38);

  /* 書体は 2 声。日本語＝ゴシック、識別子と数値＝等幅。 */
  --font-ui: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
             "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic",
             YuGothic, Meiryo, "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Roboto Mono",
               "Courier New", "Noto Sans Mono", monospace;

  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ---------- 2. ベース ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);        /* 透過にしない */
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 700; }
img { max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: .86em;
  letter-spacing: 0;
  color: var(--navy);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .42em;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(42px, 4.4vw, 62px);
  scroll-margin-top: 70px;
}
.section--tint {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

/* ---------- 3. ヘッダー ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .masthead { backdrop-filter: saturate(160%) blur(12px); }
}

.masthead__inner {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding: 9px clamp(16px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; flex: none; display: block; }
.brand__bg     { fill: var(--navy); }
/* この 3 色は index.html / process.html の favicon（data URI の SVG）と
   同じ絵柄です。変えるときは両ページの <link rel="icon"> も揃えてください。 */
.brand__bar    { fill: #eaf1fb; }
.brand__accent { fill: var(--copper); transition: fill .2s var(--ease); }
.brand:hover .brand__accent { fill: #fa924c; }
.brand__thin { font-weight: 400; color: var(--ink-3); }

.masthead__nav {
  margin-left: auto;
  display: flex;
  gap: clamp(14px, 2.2vw, 26px);
  font-size: .84rem;
}
.masthead__nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
}
.masthead__nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.masthead__cta { flex: none; }

@media (max-width: 760px) {
  .masthead__nav { display: none; }
  .masthead__cta { margin-left: auto; }
  .brand__text { font-size: .82rem; }
}
@media (max-width: 400px) {
  .brand__thin { display: none; }
}

/* ---------- 4. 共通パーツ ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--navy);
  flex: none;
  transform-origin: left center;
}
.js .eyebrow::before {
  transform: scaleX(0);
  transition: transform .6s var(--ease);
  transition-delay: calc(var(--rd, 0) * 90ms + 160ms);
}
.js .reveal.is-visible .eyebrow::before,
.js .eyebrow.reveal.is-visible::before { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  transition: transform .16s var(--ease), background-color .16s, border-color .16s, box-shadow .16s, color .16s;
}
.btn--sm { padding: 7px 15px; font-size: .8rem; }
.btn--wide { width: 100%; }

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(23, 55, 110, .9);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  box-shadow: 0 16px 30px -14px rgba(23, 55, 110, .95);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: var(--navy-soft);
  color: var(--navy);
}

.btn--primary::after,
.btn--ghost::after {
  content: "→";
  font-size: .95em;
  opacity: .7;
  transition: transform .18s var(--ease), opacity .18s;
}
.btn--primary:hover::after,
.btn--ghost:hover::after { transform: translateX(3px); opacity: 1; }
.masthead__cta::after { content: none; }

/* URL 未設定のとき */
.btn.is-pending {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-2);
  color: var(--ink-3);
  box-shadow: none;
  cursor: default;
  font-weight: 400;
}
.btn.is-pending:hover { transform: none; background: transparent; border-color: var(--line-2); color: var(--ink-3); }
.btn.is-pending::after { content: "…"; }
.btn.is-pending:hover::after { transform: none; opacity: .7; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  line-height: 1.7;
}

.copy {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
  transition: background-color .16s, color .16s, border-color .16s;
}
.copy:hover { background: var(--navy-soft); border-color: var(--navy); color: var(--navy); }
.copy--wide {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-size: .74rem;
}

.textlink {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .16s, text-decoration-color .16s;
}
.textlink::after { content: "↗"; margin-left: 5px; font-size: .9em; opacity: .7; }
.textlink:hover { color: var(--navy-mid); text-decoration-color: currentColor; }
.textlink.is-pending {
  color: var(--ink-3);
  font-weight: 400;
  text-decoration: none;
  cursor: default;
}
.textlink.is-pending:hover { color: var(--ink-3); }
.textlink.is-pending::after { content: "…"; }

/* ---------- 5. 画面の額（このページの署名要素） ----------
   実画面を「動いている製品の一場面」として見せるための額。
   上辺のバーには、このページが通しで使っている識別子（スラッグ）を
   そのまま刻む。ブラウザの模造ではなく、ページ自身の語彙で枠を作る。 */

.shot {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-2);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding-inline: 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.shot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
  box-shadow: 0 0 0 3px rgba(199, 101, 35, .16);
}
.shot__path { overflow: hidden; text-overflow: ellipsis; }

.shot__img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* ---------- 6. ヒーロー ---------- */

.hero {
  position: relative;
  padding-block: clamp(34px, 4.2vw, 58px) clamp(38px, 4.2vw, 60px);
  overflow: hidden;
  background-image:
    radial-gradient(760px 420px at 92% -8%, rgba(23, 55, 110, .07), transparent 70%),
    radial-gradient(520px 320px at 4% 8%, rgba(199, 101, 35, .05), transparent 68%);
  background-repeat: no-repeat;
}
/* 方眼。図面を引いてから作る、というこのページの主張そのものを地紋にする。 */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(23, 55, 110, .07) 0 1px, transparent 1px 100%),
    linear-gradient(to bottom, rgba(23, 55, 110, .06) 0 1px, transparent 1px 100%);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 92% at 12% 0%, #000 0%, transparent 62%);
          mask-image: radial-gradient(110% 92% at 12% 0%, #000 0%, transparent 62%);
}

.hero__inner {
  position: relative;
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: grid;
  gap: clamp(26px, 3.4vw, 48px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.024em;
  margin-bottom: 20px;
  line-break: strict;
}
.hero__mark { color: var(--copper); }

.hero__lead {
  max-width: 34em;
  font-size: clamp(.95rem, 1.3vw, 1.04rem);
  color: var(--ink-2);
  margin-bottom: clamp(24px, 3vw, 32px);
  line-break: strict;
}
.hero__lead strong { color: var(--ink); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shot--hero { box-shadow: var(--shadow-3); }

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  /* 版面の右余白へ少しはみ出させ、画面が続いていることを示す */
  .hero__media { margin-right: calc(-1 * clamp(20px, 5vw, 40px) - 3.4vw); }
}
@media (max-width: 999px) {
  .hero__media { max-width: 760px; }
}
@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
}

/* ---------- 7. セクション見出し ---------- */

.secthead { margin-bottom: clamp(18px, 2.4vw, 28px); }
.secthead__title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -.018em;
  margin-bottom: 12px;
  line-break: strict;
  text-wrap: balance;
}
.secthead__lead { color: var(--ink-2); font-size: .92rem; max-width: 44em; }

/* ---------- 8. プロダクト（タブ） ---------- */

/* JS 無効時はタブを出さず、6 プロダクトを縦に並べる */
.tabs { display: none; }
.js .tabs {
  display: flex;
  /* 6 タブになり、中間の幅では 1 行に収まらない。
     折り返しを許して、スラッグが溢れるのを防ぐ。 */
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}

.tab {
  flex: 0 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, box-shadow .2s;
}
.tab__slug {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: 0;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-3);
  transition: color .2s;
}
.tab__name {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}
.tab:hover { background: var(--paper-2); }
.tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(23, 55, 110, .95);
}
.tab[aria-selected="true"] .tab__slug { color: rgba(255, 255, 255, .72); }

/* パネル。JS 有効時は同じマス目に重ね、切り替えても高さが動かない */
.panels { display: grid; gap: clamp(18px, 2.6vw, 26px); }
.js .panels { gap: 0; }
.js .panel {
  grid-column: 1;
  grid-row: 1;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.js .panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.panel {
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
}
.panel:focus-visible { outline-offset: -2px; }

.panel__head { display: grid; gap: 5px; }
.panel__slug {
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-mid);
}
.panel__name {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.018em;
  line-break: strict;
}
.panel__line { color: var(--ink-2); font-size: .92rem; line-break: strict; }

.panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: clamp(18px, 2.4vw, 24px);
  align-items: start;
}
.panel__vis  { display: grid; gap: 14px; align-content: start; }
.panel__side { display: grid; gap: clamp(14px, 1.8vw, 18px); align-content: start; }

.panel__say {
  font-size: clamp(.98rem, 1.5vw, 1.06rem);
  line-height: 1.75;
  font-weight: 700;
  letter-spacing: -.005em;
  border-left: 3px solid var(--navy);
  padding-left: 16px;
  line-break: strict;
}
.panel__say p + p { color: var(--ink-2); font-weight: 400; margin-top: 4px; }

.say__metric { display: block; margin-top: 8px; }
.say__num {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.say__caveat {
  display: block;
  font-size: .73rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-3);
  margin-top: 2px;
}

.feats { display: grid; gap: 7px; font-size: .88rem; }
.feats li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.65;
}
.feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--navy);
}

.launch {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(15px, 2vw, 19px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
}
.launch__btns { display: flex; flex-wrap: wrap; gap: 9px; }
.launch__btns .btn { flex: 1 1 auto; }
.launch__extra { display: grid; justify-items: start; }

.creds {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
}
.creds dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.creds dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.creds dd code { font-size: .78rem; background: var(--paper); }
.creds__note {
  font-size: .73rem;
  line-height: 1.65;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .panel__body { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .launch__btns .btn { flex: 1 1 100%; }
  .tab__name { display: none; }
  /* 一列に並べるとスラッグ（ai-meeting-workflow が最長）が溢れるため、
     この幅からは 2 列に折り返して 3×2 にする。横スクロールは発生させない。 */
  .js .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 3px; }
  .tab { flex: 1 1 0; min-width: 0; padding: 10px 8px; text-align: center; }
  /* 奇数個だと最後の 1 つが余る。半分幅で取り残されると壊れて見えるので全幅に伸ばす。 */
  .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tab__slug { font-size: .68rem; }
  .tab[aria-selected="true"] .tab__slug { color: #fff; }
}
@media (max-width: 380px) {
  .tab__slug { font-size: .62rem; }
  .creds { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------- 9. 設計方針 ---------- */

.tenets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
/* 2 列に落ちたときは 3 つ目を横いっぱいに伸ばし、半端な余白を作らない */
@media (min-width: 620px) and (max-width: 940px) {
  .tenets { grid-template-columns: 1fr 1fr; }
  .tenet:last-child { grid-column: 1 / -1; }
}
.tenet {
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 14px;
  background: var(--paper-2);
}
.tenet__key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 2px 9px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.tenet__title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.014em;
  margin-bottom: 7px;
}
.tenet__body { font-size: .85rem; line-height: 1.72; color: var(--ink-2); }

/* ---------- 10. 進め方（設計方針と同じ帯の中） ---------- */

.band {
  margin-top: clamp(30px, 3.6vw, 46px);
  padding-top: clamp(26px, 3.2vw, 38px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.band__head { margin-bottom: clamp(18px, 2.2vw, 24px); }
.band__head .eyebrow { margin-bottom: 10px; }
.band__title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.018em;
  margin-bottom: 6px;
}
.band__lead { color: var(--ink-2); font-size: .88rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px clamp(10px, 1.4vw, 18px);
}
.step {
  position: relative;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  transform-origin: left center;
}
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--navy);
}
.js .steps .step::before { transform: scaleX(0); }
.js .steps .step::after  { transform: scale(0); }
.js .steps.is-visible .step::before {
  transform: scaleX(1);
  transition: transform .55s var(--ease) calc(var(--i, 0) * 80ms + 100ms);
}
.js .steps.is-visible .step::after {
  transform: scale(1);
  transition: transform .3s var(--ease) calc(var(--i, 0) * 80ms);
}
.js .steps .step:nth-child(2) { --i: 1; }
.js .steps .step:nth-child(3) { --i: 2; }
.js .steps .step:nth-child(4) { --i: 3; }
.js .steps .step:nth-child(5) { --i: 4; }
.js .steps .step:nth-child(6) { --i: 5; }
.step__no {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 3px;
}
.step__name { display: block; font-weight: 700; font-size: .88rem; line-height: 1.55; }

@media (max-width: 880px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 11. お問い合わせ（紺青の締め） ----------
   白の版面をここだけブランド色の面で閉じる。地はあくまで白のままで、
   最後の一面だけが色を持つ。 */

/* この面の中だけトークンを差し替える。紺青の地に対するコントラスト比は
   ink 15.2 / ink-2 10.1 / ink-3 6.8 / navy（淡い空色）6.9 : 1。 */
.section--contact {
  --ink:   #ffffff;
  --ink-2: #c6d4e7;
  --ink-3: #9cafc9;
  --line:   rgba(255, 255, 255, .16);
  --line-2: rgba(255, 255, 255, .26);
  --navy:   #79b3ec;
  background: var(--navy-deep);
  color: var(--ink);
}

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(270px, 350px);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.contact__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.022em;
  margin-bottom: 16px;
  line-break: strict;
}
.contact__lead { color: var(--ink-2); max-width: 32em; margin-bottom: 16px; font-size: .92rem; }
.contact__lead b { color: #fff; }
.contact__list { display: flex; flex-wrap: wrap; gap: 7px; }
.contact__list li {
  font-size: .78rem;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.contact__card {
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}
.contact__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.contact__mail { margin-bottom: 16px; }
.contact__mail code {
  font-size: .92rem;
  background: transparent;
  border: none;
  padding: 0;
  color: #fff;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}
.contact__note {
  font-size: .75rem;
  line-height: 1.7;
  color: var(--ink-3);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* 濃い面では、主ボタンを白く抜いて最も強い要素にする */
.section--contact .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--navy-deep);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7);
}
.section--contact .btn--primary:hover {
  background: #e7eef8;
  border-color: #e7eef8;
  color: var(--navy-deep);
}
.section--contact .copy {
  background: transparent;
  color: var(--ink-2);
}
.section--contact .copy:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.section--contact :focus-visible { outline-color: #79b3ec; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

/* ---------- 12. フッター ---------- */

.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 20px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
}
.foot__note { font-size: .74rem; color: var(--ink-3); max-width: 62em; line-height: 1.75; }
.foot__meta { font-size: .76rem; }
.foot__meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot__meta a:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- 13. トースト ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  background: var(--navy-deep);
  border: 1px solid var(--navy);
  color: #fff;
  font-size: .8rem;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-3);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. スクロール表示 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--rd, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 15. モーション低減 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .eyebrow::before { transform: none !important; }
  .js .steps .step::before { transform: scaleX(1) !important; }
  .js .steps .step::after  { transform: scale(1) !important; }

  /* タブは瞬時に入れ替える */
  .js .panel { transform: none; }
}

/* ---------- 16. 印刷 ---------- */

@media print {
  .masthead, .hero__grid, .toast, .skip, .tabs { display: none; }
  body { background: #fff; color: #000; }
  .hero { background-image: none; }
  .panel, .tenet, .launch, .shot, .contact__card { box-shadow: none; background: #fff; border-color: #bbb; }
  .section--contact { background: #fff; color: #000; }
  .section--contact .btn--primary { background: #fff; color: #000; border-color: #bbb; }
  /* 印刷では全プロダクトを並べる */
  .js .panels { gap: 20px; }
  .js .panel {
    grid-column: auto;
    grid-row: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    break-inside: avoid;
  }
}

/* ==========================================================================
   17. process.html 専用 — 「開発の進め方と納品物」

   このページの署名要素は「資料の額（.doc）」です。
   LP の署名要素だった「画面の額（.shot）」と同じ枠・同じ影・同じ角丸を使い、
   上辺のバーに刻む文字だけを「画面名」から「実ファイルのパス」へ差し替えます。
   LP が動く画面を見せる面、こちらが同じ額で書類の中身を見せる面、という関係です。

   引用は等幅で折り返さず、額の中だけを横スクロールさせます
   （ページ本体は横スクロールしません）。
   ========================================================================== */

/* ---------- 17-1. パンくず・インラインリンク ---------- */

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.crumb a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color .16s, color .16s;
}
.crumb a:hover { color: var(--navy-mid); border-bottom-color: currentColor; }
.crumb b { color: var(--ink-2); font-weight: 700; }

.inlink {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .16s, color .16s;
}
.inlink:hover { color: var(--navy-mid); text-decoration-color: currentColor; }

/* ---------- 17-2. 資料の額（このページの署名要素） ---------- */

/* ヒーローの 1 カラム時（1000px 未満）に、額の中の等幅テキストの
   最小幅がグリッドの列幅を押し広げてしまうのを防ぐ。
   列を 0 まで縮められるようにして、はみ出しは額の中のスクロールに閉じ込める。 */
.hero__text,
.hero__media { min-width: 0; }

.doc {
  display: block;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-2);
}

.doc__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--ink-3);
}
.doc__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
  box-shadow: 0 0 0 3px rgba(199, 101, 35, .16);
}
.doc__path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 700;
}
.doc__meta {
  margin-left: auto;
  flex: none;
  padding-left: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* 横に長い行は、この額の中だけでスクロールさせる */
.doc__body {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.doc__body pre {
  margin: 0;
  padding: 16px clamp(14px, 2vw, 20px) 18px;
  font-family: var(--font-mono);
  font-size: .735rem;
  line-height: 1.85;
  letter-spacing: 0;
  color: var(--ink-2);
  white-space: pre;
  tab-size: 2;
}
.doc__ok { color: var(--navy-mid); font-weight: 700; }

.doc--hero { box-shadow: var(--shadow-3); }
.doc--flat { box-shadow: none; border-color: var(--line); }
.doc--flat .doc__body pre { font-size: .715rem; }

/* 表やワイヤーフレームを含まない「地の文だけ」の抜粋は折り返す。
   桁を揃える必要がないので、横スクロールさせるより読める。
   折り返しても行は消えないため、引用としては同じものです。 */
.doc--wrap .doc__body pre { white-space: pre-wrap; }

.doc__cap {
  margin-top: 9px;
  font-size: .72rem;
  line-height: 1.65;
  color: var(--ink-3);
}

.doc__body::-webkit-scrollbar { height: 9px; }
.doc__body::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
  border: 2px solid var(--paper);
}
.doc__body::-webkit-scrollbar-track { background: transparent; }

/* ---------- 17-3. 出発点（CLAUDE.md の 3 枚） ---------- */

.briefs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.brief { display: grid; grid-template-rows: auto 1fr; gap: 9px; min-width: 0; }
.brief__slug {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--navy);
}
.brief__meta {
  margin-left: auto;
  font-weight: 400;
  color: var(--ink-3);
  white-space: nowrap;
}

.afterword {
  margin-top: clamp(20px, 2.6vw, 28px);
  padding-left: 16px;
  border-left: 3px solid var(--navy);
  font-size: .92rem;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 52em;
}
.afterword b { color: var(--ink); }

/* ---------- 17-4. 6 段階 ----------
   LP の「進め方」で使っている罫＋角印のマーカーをそのまま流用する。
   ここでは順序そのものが内容なので、番号は装飾ではなく情報。 */

.stages { display: grid; gap: clamp(30px, 3.6vw, 46px); }

.stage {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  min-width: 0;
}
.stage::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  transform-origin: left center;
}
.stage::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--navy);
}
.js .stage::before { transform: scaleX(0); transition: transform .6s var(--ease) .1s; }
.js .stage::after  { transform: scale(0);  transition: transform .3s var(--ease); }
.js .stage.is-visible::before { transform: scaleX(1); }
.js .stage.is-visible::after  { transform: scale(1); }

.stage__head {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 4px clamp(12px, 1.6vw, 20px);
  align-items: start;
  margin-bottom: clamp(14px, 1.8vw, 18px);
}
.stage__no {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--navy-mid);
}
.stage__lead { min-width: 0; }
.stage__name {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.018em;
  margin-bottom: 5px;
}
.stage__what {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 46em;
}
.stage__note {
  margin-top: 12px;
  font-size: .84rem;
  line-height: 1.8;
  color: var(--ink-3);
  max-width: 52em;
}
.stage__note b { color: var(--ink-2); }

@media (max-width: 520px) {
  .stage__head { grid-template-columns: 1fr; }
  .stage__no { font-size: 1.15rem; }
}

/* ---------- 17-5. 数値表・事実カード ---------- */

.tablewrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.ledger {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .86rem;
}
.ledger--wide { min-width: 660px; }
.ledger__cap {
  caption-side: top;
  text-align: left;
  padding: 14px clamp(14px, 2vw, 20px) 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
}
.ledger th,
.ledger td {
  padding: 11px clamp(12px, 1.6vw, 18px);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.ledger thead th {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--ink-3);
  border-bottom-color: var(--line-2);
  white-space: nowrap;
}
.ledger tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.ledger tbody td { color: var(--ink-2); }
.ledger .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ledger tfoot th,
.ledger tfoot td {
  border-bottom: none;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-soft);
}
.ledger__ja {
  display: block;
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.ledger code { white-space: nowrap; }

.ledger__note {
  margin-top: 10px;
  font-size: .73rem;
  line-height: 1.8;
  color: var(--ink-3);
  max-width: 62em;
}

.facts {
  margin-top: clamp(22px, 2.8vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.fact {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.fact__key {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.fact__num {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 8px;
}
.fact__body { font-size: .82rem; line-height: 1.8; color: var(--ink-2); }
.fact__body b { color: var(--ink); }

/* ---------- 17-6. 2 枚組・実例・補足 ---------- */

.split {
  margin-top: clamp(22px, 2.8vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
}
.split--tight { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
@media (max-width: 900px) {
  .split--tight { grid-template-columns: 1fr; }
}

.case { display: grid; gap: 10px; min-width: 0; align-content: start; }
.case__label {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--copper-ink);
}
.case__title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.014em;
}
.case__title--lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
}
.case__note { font-size: .82rem; line-height: 1.8; color: var(--ink-3); }
.case__note--lead { font-size: .9rem; color: var(--ink-2); max-width: 34em; }

.callout {
  margin-top: clamp(22px, 2.8vw, 32px);
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 14px;
  background: var(--paper-2);
  display: grid;
  gap: 12px;
}
.callout__head {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.014em;
}
.callout__body { font-size: .85rem; line-height: 1.8; color: var(--ink-2); max-width: 60em; }
.callout__body b { color: var(--ink); }
.callout .doc--flat { background: var(--paper); }

/* ---------- 17-7. デモ導線 ---------- */

/* 5 枚。auto-fit に任せると幅によって半端に割れ、右側に大きな余白が残る。
   段数を明示して 3（3＋2）→ 2（最終行は 1 枚）→ 縦 1 列と落とす。 */
.demos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
/* 1100px 以下で 3 列のままだとカードが狭くなり、
   見出し（営業・案件管理Webアプリ / 社内文書AI検索（RAG））が 2 行に折り返されて
   ボタンの高さが揃わなくなる。折り返す前に 2 列へ落とす。 */
@media (max-width: 1100px) { .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .demos { grid-template-columns: minmax(0, 1fr); } }
.demo {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.demo__slug {
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-mid);
}
.demo__name {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.014em;
}
/* 説明の行数が違ってもボタンの高さを揃える */
.demo__line {
  font-size: .82rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 8px;
  min-height: 3.5em;
}
@media (max-width: 620px) {
  .demo__line { min-height: 0; }
}
.demo__extra { display: grid; justify-items: start; margin-top: 8px; }

/* ---------- 17-8. モーション低減 ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .stage::before { transform: scaleX(1) !important; }
  .js .stage::after  { transform: scale(1) !important; }
}

/* ---------- 17-9. 印刷 ---------- */

@media print {
  .doc, .tablewrap, .demo, .fact { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .doc__body { overflow: visible; }
  .doc__body pre { white-space: pre-wrap; }
  .stage { break-inside: avoid; }
}
