/* トップページ（日本語）。Figma「05 個人サイト 正式デザイン」(142:2) の数値に合わせる。
   英語版・プロフィールのページは style.css を使う。 */
:root {
  --purple: #5B5BD6;
  --deep: #3E3EA8;
  --pale: #E4E4FA;
  --mist: #F3F3FD;
  --ink: #212123;
  --sub: rgba(33, 33, 35, .85);
  --line: #dcdce6;
  --yellow: #FFD54A;
  --white: #ffffff;
  --red: #d93025;
  --green: #06C755;
  --edge: rgba(33, 33, 35, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hd-h: 72px;
  --bar-h: 64px;
  /* 文字の段（PC） */
  --fs-fv: 72px;
  --fs-h2: 44px;
  --fs-name: 20px;
  --fs-body: 18px;
  --lh-body: 2;
  /* カード・表・リストの中の文は 1.7。2.0 は段落として読む本文（プロフィール・相談の説明）だけ */
  --lh-card: 1.7;
  --fs-tag: 14px;
  --fs-lead: 20px;
  --font: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.home {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
  padding-bottom: var(--bar-h);
}
:where(.home) img { max-width: 100%; display: block; }
/* 日本語は文節で折り返す（対応するブラウザ）。本文は行の長さをそろえ、見出しは行の長さを釣り合わせる */
@supports (word-break: auto-phrase) { body.home { word-break: auto-phrase; } }
:where(.home) :where(p, li, dd, .post-title) { text-wrap: pretty; }
.nw { white-space: nowrap; }
:where(.home) :where(h1, h2, h3, summary) { text-wrap: balance; }
:where(.home) a { color: inherit; }
:where(.home) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.home) :where(ul, ol) { list-style: none; }
:where(.home) button { font: inherit; color: inherit; }
.home :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sp { display: none; }
.sp-only { display: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 120px; }

/* 見本の帯は、画面の下（AIに聞くの帯の上）に出す */
.home .draft-bar { display: none; position: fixed; left: 0; right: 0; bottom: var(--bar-h); z-index: 70; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 700; text-align: center; padding: 4px 16px; line-height: 1.6; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  border: 1px solid transparent; border-radius: 8px; background: none;
  font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-l { height: 56px; padding: 0 32px; font-size: 18px; }
.btn-m { height: 44px; padding: 0 20px; font-size: 16px; }
.btn-s { height: 36px; padding: 0 16px; font-size: 14px; }
/* 主：紫の塗り・白い文字（紫の節の上だけ白塗り・墨の文字） */
.btn-main { background: var(--purple); border-color: var(--purple); color: var(--white); }
.btn-main:hover { background: var(--deep); border-color: var(--deep); }
.btn-main-w { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-main-w:hover { background: var(--pale); border-color: var(--pale); }
/* 副：白地＋1px の墨の線（紫の節の上は白の線） */
.btn-sub { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-sub:hover { border-color: var(--purple); color: var(--purple); }
.btn-sub-w { border-color: var(--white); color: var(--white); }
.btn-sub-w:hover { background: rgba(255, 255, 255, .12); }
.btn.is-soon { cursor: default; }
.btn-sub.is-soon:hover { border-color: var(--ink); color: var(--ink); }
.center { display: flex; justify-content: center; }

/* ===== 章名（小さな円弧の署名） ===== */
.kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.sig { width: 28px; height: 28px; flex: none; color: var(--purple); overflow: visible; }
.sig path { fill: currentColor; transform-box: view-box; transform-origin: 14px 14px; }
.sig circle { fill: currentColor; opacity: .35; }
.sec-purple .sig, .sec-deep .sig { color: var(--white); }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1.08; letter-spacing: .02em; font-feature-settings: "palt" 1; }
/* 名前（カード・プラン・約束・年表・FAQ の質問など） */
.card-body h3, .plan h3, .pol h3, .ch h3, .qa summary, .offer h3, .who-c h3, .step h3, .post-title, .detail-name h3 { font-size: var(--fs-name); font-weight: 700; line-height: 1.5; letter-spacing: .04em; font-feature-settings: "palt" 1; }

/* ===== 上の帯（固定） ===== */
/* 上端（FV の上）は透明・白い文字。下へ進んだら白の 88%＋ぼかし＋下に 1px の線、墨の文字。影は付けない */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--purple); color: var(--white); border-bottom: 1px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.js .hd:not(.scrolled) { background-color: transparent; }
.hd.scrolled { background-color: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--pale); color: var(--ink); }
.hd-in { max-width: 1440px; margin: 0 auto; padding: 0 120px; height: calc(var(--hd-h) - 1px); display: flex; align-items: center; gap: 40px; }
/* 左：羊のアイコン 40＋名前と肩書きの2段（名前 18 太字／肩書き 14・上端は白の 85%、下へ進んだ後は墨の 85%） */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand-txt { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.brand-role { font-size: 14px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.hd.scrolled .brand-role { color: rgba(33, 33, 35, .85); }
.hd-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.hd-nav > a { font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; position: relative; padding: 4px 0; }
.hd-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hd.scrolled .hd-nav > a::after { background: var(--purple); }
.hd-nav > a:hover::after, .hd-nav > a.active::after { transform: scaleX(1); }
.hd-right { display: flex; align-items: center; gap: 12px; }
/* EN：小 36 の文字リンク */
.hd-en { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-decoration: none; }
.hd-en:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 「AIに聞く」と「相談する」は中（高さ 44・角丸 8・文字 16 太字・左右 20）でそろえる */
.hd-btn { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.hd-ask { position: relative; }
/* 「AIに聞く」：控えめ。上端は白の 14% の地＋白い線、下へ進んだ後は白地＋灰の線 */
.ask-tg { border: 1px solid var(--white); background: rgba(255, 255, 255, .14); color: var(--white); }
.ask-tg:hover { background: rgba(255, 255, 255, .24); }
.hd.scrolled .ask-tg { background: var(--white); border-color: var(--line); color: var(--ink); }
.hd.scrolled .ask-tg:hover { background: var(--mist); }
.ask-logos { display: inline-flex; align-items: center; gap: 2px; }
.ask-logos img { width: 20px; height: 20px; }
/* 紫の地の上では、黒い ChatGPT のロゴを白で見せる */
.hd:not(.scrolled) .ask-logos img:first-child { filter: brightness(0) invert(1); }
.ask-tg .chev { width: 12px; height: 7px; }
.ask-tg .chev path { stroke: currentColor; }
.ask-tg[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ask-pop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--pale); border-radius: 8px; z-index: 5; }
.ask-pop[hidden] { display: none; }
.ask-pop a, .menu-ask a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.ask-pop a:hover, .ask-pop a:focus-visible { background: var(--mist); }
.ask-pop img, .menu-ask img { width: 20px; height: 20px; }
/* 「相談する」：主役。上端は白地＋墨の文字、下へ進んだ後は紫の地＋白い文字 */
.hd-cta { border: 1px solid var(--white); background: var(--white); color: var(--ink); }
.hd-cta:hover { background: var(--pale); border-color: var(--pale); }
.hd.scrolled .hd-cta { background: var(--purple); border-color: var(--purple); color: var(--white); }
.hd.scrolled .hd-cta:hover { background: var(--deep); border-color: var(--deep); }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 14px; }
.menu-btn path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* キーボードで動かす時の枠は、地の色に合わせて見える色で */
.hd a:focus-visible, .hd button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hd .hd-btn:focus-visible { outline-offset: 2px; }
.hd:not(.scrolled) .hd-cta:focus-visible { outline-color: var(--white); }
.hd.scrolled .hd-cta:focus-visible { outline-color: var(--purple); }
.btn-en { border: 1px solid rgba(255, 255, 255, .6); border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 16px; line-height: 1.5; text-decoration: none; color: var(--white); }

/* スマホの全画面メニュー */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--purple); color: var(--white); display: flex; flex-direction: column; padding: 0 0 32px; transform: translateY(100%); transition: transform .3s var(--ease); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu.open { transform: none; }
.menu.closing { transform: none; opacity: 0; transition: opacity .2s; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; min-height: 60px; }
.menu-top .brand-role { color: rgba(255, 255, 255, .85); }
.menu-close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.menu-close svg { width: 16px; height: 16px; }
.menu-close path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.menu-items { margin: auto 0; padding: 40px 20px; display: flex; flex-direction: column; gap: 8px; }
.menu-items a { display: block; padding: 14px 0; font-size: 32px; font-weight: 900; line-height: 1.5; text-decoration: none; letter-spacing: -.01em; opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .3s var(--ease); }
.menu-items a.hl { color: var(--yellow); }
.menu.open .menu-items a { opacity: 1; transform: none; }
.menu.open .menu-items li:nth-child(2) a { transition-delay: .08s; }
.menu.open .menu-items li:nth-child(3) a { transition-delay: .16s; }
.menu.open .menu-items li:nth-child(4) a { transition-delay: .24s; }
.menu-bottom { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.menu-bottom .btn { width: 100%; }
.menu-ask { background: var(--white); border-radius: 8px; padding: 6px; color: var(--ink); }
.menu-ask p { padding: 8px 12px 4px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--sub); }
.menu-ask ul { margin: 0; padding: 0; list-style: none; }
.menu-bottom .sns a { background: var(--white); }
.menu-en { align-self: flex-start; padding: 6px 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; }

/* 章の点（右端） */
.chapters { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.chapters a { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(91, 91, 214, .35); transition: background-color .3s, transform .3s; }
.chapters { transition: opacity .3s; }
.chapters.at-top { opacity: 0; pointer-events: none; }
.chapters a.on { background: var(--white); transform: scale(1.3); box-shadow: 0 0 0 1px rgba(91, 91, 214, .7); }

/* ===== ファーストビュー ===== */
.fv { position: relative; background: var(--purple); color: var(--white); padding-top: var(--hd-h); overflow: hidden; }
/* いちばん下の層：いまのサイトと同じ WebGL の紫。使えないときは上の紫のまま */
.fv canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* 内容の範囲＝上の帯の下から FV の下端まで。画面下の「AIに聞く」の帯（64）の分を下に空け、その上下中央にそろえる */
.fv-in { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 120px; height: calc(min(900px, 100svh - var(--bar-h)) - var(--hd-h)); display: flex; align-items: center; }
.fv-copy { position: relative; z-index: 2; }
.fv h1 { font-size: var(--fs-fv); font-weight: 900; line-height: 1.08; font-feature-settings: "palt" 1; white-space: nowrap; }
.fv-l { display: block; }
/* 英語は語が長く絵に重なるので、文字の箱を絵の手前（左端120〜760）に収めて折り返す */
html[lang="en"] .fv-copy { max-width: 640px; }
html[lang="en"] .fv h1 { white-space: normal; }
.fv-l.y { color: var(--yellow); }
.fv-lead { margin-top: 48px; font-size: var(--fs-lead); font-weight: 500; line-height: 1.8; }
.fv-btns { margin-top: 48px; display: flex; gap: 24px; }

/* 輪の組：輪の直径 600、衛星 132（輪の外周の上に6つ） */
.fv-art { --u: min(1px, (100svh - var(--bar-h) - var(--hd-h)) / 724); --sat: calc(132 * var(--u)); --box: calc(667 * var(--u)); --R: calc(270 * var(--u)); --front: -90deg; --step: 45deg; position: absolute; left: calc(50% + 410px); top: 50%; width: var(--box); height: var(--box); margin: calc(var(--box) / -2) 0 0 calc(var(--box) / -2); z-index: 1; pointer-events: none; }
.fv-art-in { position: absolute; inset: 0; }
.orbit { position: absolute; inset: calc(var(--sat) / 2); width: calc(100% - var(--sat)); height: calc(100% - var(--sat)); overflow: visible; }
.orbit circle { fill: none; stroke-width: 49; }
.orbit .track { stroke: var(--deep); }
.orbit .arc { display: none; stroke: var(--white); stroke-dasharray: 432 1296; stroke-dashoffset: 0; transform-origin: 268px 268px; transform: rotate(-48deg); }
.sheep-box { --sw: calc(306 * var(--u)); --sh: calc(389 * var(--u)); position: absolute; left: 50%; top: 50%; width: var(--sw); height: var(--sh); margin: calc(var(--sh) / -2) 0 0 calc(var(--sw) / -2); }
.sheep { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.sheep.on { opacity: 1; }
.sats { position: absolute; inset: 0; }
.sat { position: absolute; left: 50%; top: 50%; width: var(--sat); height: var(--sat); margin: calc(var(--sat) / -2) 0 0 calc(var(--sat) / -2); }
.sat { transform: rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a))); }
.sat:nth-child(1) { --a: var(--front); }
.sat:nth-child(2) { --a: calc(var(--front) + var(--step)); }
.sat:nth-child(3) { --a: calc(var(--front) + var(--step) * 2); }
.sat:nth-child(4) { --a: calc(var(--front) + var(--step) * 3); }
.sat:nth-child(5) { --a: calc(var(--front) + var(--step) * 4); }
.sat:nth-child(6) { --a: calc(var(--front) + var(--step) * 5); }
.sat:nth-child(7) { --a: calc(var(--front) + var(--step) * 6); }
.sat:nth-child(8) { --a: calc(var(--front) + var(--step) * 7); }
.sat-in { position: absolute; inset: 0; border-radius: 50%; background: var(--white); box-shadow: 0 14px 30px rgba(33, 33, 35, .25); display: grid; place-items: center; }
.sat-in img { width: 78%; height: 78%; object-fit: contain; }

/* ===== 節の共通 ===== */
.sec { padding: 128px 0; }
.sec-white { background: var(--white); }
.sec-mist { background: var(--mist); }
.sec-pale { background: var(--pale); }
.sec-purple { background: var(--purple); color: var(--white); }
.sec-deep { background: var(--deep); color: var(--white); }

/* プロフィール */
.about { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto auto; column-gap: 24px; row-gap: 24px; align-items: center; }
.about-photo { grid-row: 1 / 3; }
.about-head { align-self: end; }
.about-body { align-self: start; }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.name-col { display: flex; flex-direction: column; gap: 8px; }
.about-photo { position: relative; flex: none; width: 440px; height: 460px; display: grid; place-items: center; }
.about-photo .ring { position: absolute; width: 403px; height: 403px; left: 18px; top: 28px; }
.about-photo .ring circle { fill: none; stroke: var(--purple); stroke-opacity: .25; stroke-width: 28; }
.about-photo .face { position: absolute; width: 317px; height: 317px; left: 61px; top: 71px; border-radius: 50%; object-fit: cover; }
.about-photo .buddy { position: absolute; width: 137px; height: 137px; left: 299px; top: 295px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(33, 33, 35, .2)); }
.about-txt { flex: 1; min-width: 0; }
.about-txt .sec-head { gap: 24px; }
.about-txt .kicker { font-size: 15px; }
.reading { font-size: 16px; line-height: 1.5; color: var(--sub); margin-top: -0px; }
.bio { padding: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.facts { border-top: 1px solid var(--line); }
.fact { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact dt { width: 120px; flex: none; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--sub); padding-top: 2px; }
.fact dd { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.6; }
.cyxen { width: auto; flex: none; }
.fact .cyxen { height: 20px; }
.strengths { padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.strengths li { display: flex; align-items: center; gap: 16px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.dot-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; flex: none; }
.dot-ico img { width: 20px; height: 20px; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; }
.sns a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; transition: border-color .2s, background-color .2s; }
.sns a:hover { border-color: var(--purple); background: var(--mist); }
.sns-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.sns-x { background: #000; }
.sns-note { background: var(--white); border: 1px solid #e3e3e8; }
.sns-ico img { width: 18px; height: 18px; }

/* 作った仕組み・公開している成果物 */
#works .wrap, #pub .wrap { display: flex; flex-direction: column; gap: 64px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
/* タブ：小 36・14 太字・左右 16・文字は墨の 85% */
.tab { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 16px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--sub); font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
/* 広い PC：職種タブ 12 個を 6 列×2 段に均等に並べ、2 段目が左に寄らないようにする */
@media (min-width: 1101px) {
  .jobtabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .jobtabs .tab { justify-content: center; }
}
.tab:hover { border-color: var(--purple); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* 公開物のタブは CyXen のロゴを公式の色のまま見せるため、白地＋墨の線で選択を示す */
.pubtabs .tab[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tab .cyxen { height: 20px; }
.tab-panels { position: relative; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* カード：白地＋1px の線 #E4E4FA・影なし。開く中身があるカードだけ、hover で線が紫に */
.card { background: var(--white); border: 1px solid var(--pale); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s var(--ease); }
.card-open:hover, .card-pub:hover { border-color: var(--purple); }
.card-art { position: relative; height: 200px; background: var(--mist); overflow: hidden; flex: none; }
.card-art > img { position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.status { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.card-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { font-size: var(--fs-body); line-height: var(--lh-card); }
/* 説明 34〜38 字は、余白 32 の PC のカード幅（約 17 字）では 3 行になる。同じ段の行数をそろえるため 3 行分の高さを取る */
@media (min-width: 761px) { #works .card-body > p { min-height: calc(3em * 1.7); } }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
/* 道具の札は 32×32、ロゴは 20×20 の枠に収める（横長の形は幅に合わせて縦中央） */
.tools .tool { width: 32px; height: 32px; border: 1px solid var(--pale); border-radius: 8px; background: var(--white); display: grid; place-items: center; }
.tools .tool img, .post-tags .tool img { width: 20px; height: 20px; object-fit: contain; }
/* 形ごとの見た目の大きさ合わせ（正方形いっぱいの形は少し小さく、細い形は少し大きく） */
.tool img[src$="zoom.svg"], .tool img[src$="slack.svg"], .tool img[src$="hr-hacker.png"] { width: 18px; height: 18px; }
.tool img[src$="google-maps.png"], .tool img[src$="public-data.svg"] { width: 20px; height: 20px; }
/* note の公式アイコンは白い角丸の正方形の中に「n」がある形。外の白は枠に溶けるので、中の「n」がほかと同じ大きさに見えるよう大きく置く */
.tool img[src$="note.svg"] { width: 28px; height: 28px; }
.tools .tag { height: 32px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--pale); font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
.more { display: none; }
/* タブを替えたとき：新しい一覧が下から 20px・0.4秒で、1枚ずつ 0.06秒ずらして出る */
.cards-wrap.enter .card { animation: cardIn .4s var(--ease) both; }
.cards-wrap.enter .card:nth-child(2) { animation-delay: .06s; }
.cards-wrap.enter .card:nth-child(3) { animation-delay: .12s; }
.cards-wrap.enter .card:nth-child(4) { animation-delay: .18s; }
.cards-wrap.enter .card:nth-child(5) { animation-delay: .24s; }
.cards-wrap.enter .card:nth-child(6) { animation-delay: .30s; }
.cards-wrap.enter .card:nth-child(n+7) { animation-delay: .36s; }
.cards-wrap.leave { opacity: 0; transition: opacity .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* カードを開いた状態（ページ内） */
.detail { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--purple); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 32px; animation: cardIn .35s var(--ease) both; }
.detail-top { display: flex; gap: 32px; align-items: flex-start; }
.detail-art { position: relative; flex: none; width: 440px; height: 260px; border-radius: 12px; background: var(--mist); overflow: hidden; }
.detail-art > img { position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.detail-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.detail-name { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail .k { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--purple); }
.detail-block { display: flex; flex-direction: column; gap: 6px; }
.detail-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-pair > div { background: var(--mist); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }

/* 公開している成果物 */
/* 成果物が2枚のときは 6/12 ずつの2列で幅いっぱいに */
@media (min-width: 761px) { .cards.cards-pub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-pub .card-body { gap: 12px; }
/* ボタンはカードの右下。同じ段のカードでは下端にそろう */
.open-row { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 12px; }
.empty { background: var(--white); border-radius: 16px; height: 240px; display: grid; place-items: center; font-size: 20px; line-height: 1.5; }

/* 仕事の約束 */
#policy .wrap { display: flex; flex-direction: column; gap: 64px; }
.pols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pol { background: var(--deep); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.pol-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; }
.pol-ico img { width: 24px; height: 24px; }
.pol p { font-size: var(--fs-body); line-height: var(--lh-card); }

/* 頼めること */
#offer .wrap { display: flex; flex-direction: column; gap: 64px; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { border: 1px solid var(--pale); border-radius: 16px; padding: 32px; display: flex; align-items: flex-start; gap: 24px; }
.offer-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.offer ul { display: flex; flex-direction: column; gap: 10px; }
.offer li { position: relative; padding-left: 18px; font-size: var(--fs-body); line-height: var(--lh-card); }
.offer li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
/* 2枚の羊は同じ 200×200 の箱（絵の側で同じ背丈に切り出し済み）。箱の下にそろえる */
.offer > img { width: 200px; height: 200px; object-fit: contain; object-position: center bottom; flex: none; align-self: flex-end; }
/* 3枚の欄（名前・sub・料金・こんな時に・受け取れるもの）の高さを、subgrid で横にそろえる */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 24px; row-gap: 16px; }
.plan { position: relative; grid-row: span 5; display: grid; grid-template-rows: subgrid; padding: 32px; border: 2px solid var(--purple); border-radius: 16px; background: var(--mist); }
.plan p { line-height: var(--lh-card); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan .k { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--purple); }
.plan .price { font-size: 24px; font-weight: 700; line-height: 1.2; align-self: center; }
.plan-when, .plan-get { display: flex; flex-direction: column; gap: 4px; }
.plan-get { gap: 6px; }
.plan-get li { position: relative; padding-left: 14px; font-size: var(--fs-body); line-height: var(--lh-card); }
.plan-get li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.plan-main { background: var(--purple); color: var(--white); }
.plan-main .k { color: var(--pale); }
.plan-main .plan-get li::before { background: var(--white); }
.plan .cyxen { height: 24px; width: auto; flex: none; }
.badge { position: absolute; left: 32px; top: -16px; padding: 4px 12px; border-radius: 999px; background: var(--purple); border: 2px solid var(--white); color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.5; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.who-c { background: var(--pale); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.who-c p { color: rgba(33, 33, 35, .85); font-size: var(--fs-body); line-height: var(--lh-card); }

/* 進め方 */
#process .wrap { display: flex; flex-direction: column; gap: 64px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
/* 点（各段の上）と、次の段の点までの線 */
.step::before { content: ""; position: absolute; left: calc(50% - 6px); top: -24px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: -19px; width: calc(100% + 24px); height: 2px; background: rgba(91, 91, 214, .5); }
@media (min-width: 761px) {
  .step { background: var(--white); border-radius: 16px; padding: 24px; }
}
.step img { width: 120px; height: 120px; object-fit: contain; object-position: center bottom; align-self: center; }
.step div { display: flex; flex-direction: column; gap: 12px; }
.step p { color: rgba(33, 33, 35, .85); font-size: var(--fs-body); line-height: var(--lh-card); }

/* よくある質問（見出しは横いっぱい・羊は右端、質問は2列） */
#faq .wrap { display: flex; flex-direction: column; gap: 64px; }
.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.faq-sheep { width: 180px; height: 180px; object-fit: contain; flex: none; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 24px; }
.qa { border: 1px solid var(--pale); border-radius: 16px; background: var(--white); interpolate-size: allow-keywords; }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--deep); }
.chev { width: 18px; height: 10px; flex: none; transition: transform .3s var(--ease); }
.chev path { fill: none; stroke: var(--purple); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa[open] .chev { transform: rotate(180deg); }
.qa::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.qa[open]::details-content { height: auto; }
.qa-a { padding: 0 32px 32px; margin-top: -16px; }
.qa-a p { color: rgba(33, 33, 35, .85); font-size: var(--fs-body); line-height: var(--lh-card); }

/* 記事 */
#posts .wrap { display: flex; flex-direction: column; gap: 64px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--pale); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .25s var(--ease); }
.post:hover { border-color: var(--purple); }
.post-ph { aspect-ratio: 1280 / 670; background: var(--pale); display: flex; align-items: center; flex: none; }
.post-ph img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.post-tags { display: flex; align-items: center; justify-content: space-between; }
.tags-l { display: flex; gap: 8px; }
.tag-theme, .tag-first { padding: 4px 10px; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.tag-theme { background: var(--pale); color: var(--deep); }
.tag-first { background: var(--deep); color: var(--white); }
.post-tags .tool { width: 32px; height: 32px; border: 1px solid var(--pale); border-radius: 8px; display: grid; place-items: center; }

/* 経歴 */
/* 経歴：PC は見出しの組を左 4/12（下へ進んでも上に残る）、右 8/12 に縦の年表（線と点）。段の間 40 */
.career-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.career-wrap .sec-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--hd-h) + 40px); }
.career { grid-column: 5 / span 8; display: flex; flex-direction: column; }
.ch { position: relative; padding: 0 0 64px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ch:last-child { padding-bottom: 0; }
.ch::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 2px; background: rgba(91, 91, 214, .5); }
.ch:last-child::before { display: none; }
.ch-dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); }
.ch-tag { padding: 4px 10px; border-radius: 999px; background: var(--pale); color: var(--purple); font-size: 14px; font-weight: 700; line-height: 1.5; }
.ch p { color: rgba(33, 33, 35, .85); font-size: var(--fs-body); line-height: var(--lh-card); }
.ch strong { font-weight: 700; }

/* 相談する */
#contact .wrap { display: flex; flex-direction: column; align-items: center; gap: 64px; }
.contact-head { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact-p { max-width: none; font-size: var(--fs-body); line-height: var(--lh-body); }
.form { width: 792px; max-width: 100%; background: var(--white); color: var(--ink); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.req { color: var(--red); }
.opt { color: var(--sub); }
.field input, .field textarea, .field select { width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 160px; padding: 16px; resize: vertical; }
.field textarea::placeholder { color: rgba(33, 33, 35, .45); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91, 91, 214, .2); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field.bad input, .field.bad textarea, .field.bad select { border-color: var(--red); }
.err { font-size: 14px; line-height: 1.5; color: var(--red); min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.consent { width: 100%; text-align: center; margin-bottom: 4px; }
.consent a { color: var(--purple); }
.btn-send, .btn-line { width: 320px; max-width: 100%; }
/* LINE は副：白地＋緑の線＋緑の文字 */
.btn-line { background: var(--white); border-color: var(--green); color: var(--green); }
.btn-line img { width: 24px; height: 24px; }
.done { display: none; text-align: center; font-weight: 700; color: var(--deep); }
.send-err { margin: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--red); }
.send-err:empty { display: none; }
.form.sent .field, .form.sent .form-end { display: none; }
.form.sent .done { display: block; }

/* 一番下 */
.ft { background: var(--white); padding: 64px 0 40px; }
.ft .wrap { display: flex; flex-direction: column; gap: 32px; }
.ft-top { display: flex; gap: 24px; }
.ft-me { width: 384px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.ft-name { font-size: 18px; font-weight: 700; line-height: 1.5; }
.ft-tag { color: var(--sub); line-height: 1.7; }
.ft-nav { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft-nav div { display: flex; flex-direction: column; gap: 14px; }
.ft-nav a { font-weight: 700; line-height: 1.5; text-decoration: none; }
.ft-nav a:hover { color: var(--purple); }
.ft-note { color: var(--sub); line-height: 1.7; padding-bottom: 32px; border-bottom: 1px solid rgba(33, 33, 35, .15); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--sub); }

/* 画面下に固定の「AIに聞く」 */
.askbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bar-h); background: var(--white); border-top: 1px solid var(--pale); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; }
/* 「AIに聞く」｜ChatGPT｜Claude を1つの枠で1組に見せる */
.ask-grp { height: 44px; display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
.ask-lb { display: inline-flex; align-items: center; gap: 8px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1; color: var(--ink); background: var(--white); white-space: nowrap; cursor: default; }
.ask-lb img { width: 32px; height: 32px; border-radius: 50%; }
.ask-btn:first-child { border-left: 0; }
.ask-btn { padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s; }
.ask-btn:hover { background: var(--mist); }
.ask-btn img { width: 20px; height: 20px; }

/* ===== 出てくる動き ===== */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .sec-head[data-reveal] { opacity: 1; transform: none; }
.js .sec-head[data-reveal] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .sec-head[data-reveal] > :nth-child(2) { transition-delay: .1s; }
.js .sec-head[data-reveal] > :nth-child(3) { transition-delay: .2s; }
.js .sec-head[data-reveal].in > * { opacity: 1; transform: none; }
.js .pols .pol:nth-child(4n+2), .js .cards .card:nth-child(3n+2), .js .posts .post:nth-child(3n+2), .js .steps .step:nth-child(2), .js .plans .plan:nth-child(2) { transition-delay: .1s; }
.js .pols .pol:nth-child(4n+3), .js .cards .card:nth-child(3n), .js .posts .post:nth-child(3n), .js .steps .step:nth-child(3), .js .plans .plan:nth-child(3) { transition-delay: .2s; }
.js .pols .pol:nth-child(4n), .js .steps .step:nth-child(4) { transition-delay: .3s; }
.js .steps .step:nth-child(5) { transition-delay: .4s; }

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  /* 01 読み込み：0〜0.6秒で円弧が閉じ、0.6〜1.0秒で羊と衛星が現れる */
  .orbit .arc { animation: arcDraw .6s var(--ease) both; }
  .sheep-box, .sats { animation: fadeIn .4s .6s ease both; }
  /* 02 見出し：1.5秒から、1行0.6秒・0.12秒ずつ、下から12px */
  [data-fv] { animation: rise .6s var(--ease) both; }
  .fv-l:nth-child(1) { animation-delay: 1.5s; }
  .fv-l:nth-child(2) { animation-delay: 1.62s; }
  .fv-lead { animation-delay: 1.74s; }
  .fv-btns { animation-delay: 1.86s; }
  /* 05 衛星と羊：3秒ごとに、0.5秒で8つの衛星が45度回り、羊が0.3秒で入れ替わる（PC・スマホ共通） */
  .sats { animation: fadeIn .4s .6s ease both, orbit 24s 1s infinite; }
  .sat-in { animation: counter 24s 1s infinite; }
  .sheep { animation: sheepShow 24s infinite; }
  .sheep:nth-child(1) { animation-delay: 1s; }
  .sheep:nth-child(2) { animation-delay: -20s; }
  .sheep:nth-child(3) { animation-delay: -17s; }
  .sheep:nth-child(4) { animation-delay: -14s; }
  .sheep:nth-child(5) { animation-delay: -11s; }
  .sheep:nth-child(6) { animation-delay: -8s; }
  .sheep:nth-child(7) { animation-delay: -5s; }
  .sheep:nth-child(8) { animation-delay: -2s; }
  .sheep:not(:first-child) { opacity: 0; }
  /* 03・09 スクロールに合わせた動き（対応するブラウザだけ。ほかは止まったまま） */
  @supports (animation-timeline: scroll()) {
    .fv-art-in { animation: lag linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .orbit { animation: spin linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .sig path { animation: spin16 linear both; animation-timeline: scroll(root); }
  }
}
@keyframes arcDraw { from { stroke-dashoffset: 432; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lag { from { transform: none; } to { transform: translateY(12vh); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin16 { to { transform: rotate(16turn); } }
@keyframes orbit {
  0.0%, 10.417% { transform: rotate(0deg); animation-timing-function: ease-in-out; }
  12.5%, 22.917% { transform: rotate(-45deg); animation-timing-function: ease-in-out; }
  25.0%, 35.417% { transform: rotate(-90deg); animation-timing-function: ease-in-out; }
  37.5%, 47.917% { transform: rotate(-135deg); animation-timing-function: ease-in-out; }
  50.0%, 60.417% { transform: rotate(-180deg); animation-timing-function: ease-in-out; }
  62.5%, 72.917% { transform: rotate(-225deg); animation-timing-function: ease-in-out; }
  75.0%, 85.417% { transform: rotate(-270deg); animation-timing-function: ease-in-out; }
  87.5%, 97.917% { transform: rotate(-315deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(-360deg); }
}

@keyframes counter {
  0.0%, 10.417% { transform: rotate(0deg); animation-timing-function: ease-in-out; }
  12.5%, 22.917% { transform: rotate(45deg); animation-timing-function: ease-in-out; }
  25.0%, 35.417% { transform: rotate(90deg); animation-timing-function: ease-in-out; }
  37.5%, 47.917% { transform: rotate(135deg); animation-timing-function: ease-in-out; }
  50.0%, 60.417% { transform: rotate(180deg); animation-timing-function: ease-in-out; }
  62.5%, 72.917% { transform: rotate(225deg); animation-timing-function: ease-in-out; }
  75.0%, 85.417% { transform: rotate(270deg); animation-timing-function: ease-in-out; }
  87.5%, 97.917% { transform: rotate(315deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(360deg); }
}


@keyframes sheepShow {
  0%, 10.417% { opacity: 1; }
  11.667%, 98.75% { opacity: 0; }
  100% { opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .sec-head[data-reveal] > * { opacity: 1; transform: none; }
}

/* ===== 中くらいの幅 ===== */
@media (max-width: 1300px) {
  .wrap, .hd-in, .fv-in { padding-left: 48px; padding-right: 48px; }
  .fv-art { --sat: calc(116 * var(--u)); --box: calc(586 * var(--u)); --R: calc(237 * var(--u)); left: auto; right: 40px; margin-left: 0; }
  .sheep-box { transform: scale(.82); }
  :root { --fs-fv: 60px; }
}
@media (max-width: 1100px) {
  .hd-nav, .chapters { display: none; }
  .menu-btn { display: grid; }
  .hd-right { margin-left: auto; }
  .fv-art { opacity: .35; }
  .cards, .posts { grid-template-columns: 1fr 1fr; }
  .pols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 64px; }
  .step:nth-child(3n)::after { display: none; }
  .plans { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  /* 左の4列（約290px）に経歴の見出しが入りきらないので、見出しを上に置く */
  .career-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .career-wrap .sec-head { position: static; }
  .about { grid-template-columns: 1fr; }
  .about-head { order: 1; }
  .about-photo { order: 2; grid-row: auto; justify-self: center; }
  .about-body { order: 3; }
}

/* ===== スマホ（Figma 390） ===== */
@media (max-width: 760px) {
  /* FV の見出しは、スマホの幅で2行に収まる最大（12字×約29px） */
  :root { --hd-h: 60px; --fs-fv: 31px; --fs-h2: 26px; --fs-name: 18px; --fs-lead: 16px; }
  .pc { display: none; }
  .sp { display: inline; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .wrap { padding: 0 20px; }
  html { scroll-padding-top: 72px; }
  .hd-in { padding: 0 20px; gap: 12px; }
  /* スマホ：左に羊と名前、右に小さめの「相談する」とメニュー。EN と「AIに聞く」はメニューの中へ */
  .hd-en, .hd-ask { display: none; }
  .hd-right { gap: 4px; }
  .hd-cta { height: 44px; padding: 0 16px; }
  .brand-name { font-size: 16px; }
  /* 右の点の列は余白に食い込んで隙間に見えるので、スマホでは出さない */
  .chapters { display: none; }

  /* FV：最初の画面（844）に、文字と輪・衛星が全部入る */
  .fv-in { height: auto; padding: 20px 20px 16px; flex-direction: column; align-items: stretch; gap: 8px; }
  .fv h1 { white-space: normal; }
  .fv-lead { margin-top: 20px; }
  .fv-btns { margin-top: 20px; flex-direction: column; gap: 8px; }
  .home .draft-bar { padding: 4px 8px; }
  .fv-btns a { width: 100%; }
  .fv-art { --u: min(1px, (100vw - 40px) / 346); --box: calc(346 * var(--u)); --sat: calc(82 * var(--u)); --R: calc(132 * var(--u)); --front: 270deg; --step: 45deg; position: relative; left: auto; right: auto; top: auto; margin: 0 auto; opacity: 1; }
  .sheep-box { --sw: 150px; --sh: 150px; transform: none; }
  .orbit circle { stroke-width: 51; }

  .sec { padding: 80px 0; }
  .sec-head { gap: 12px; }
  .sig { width: 24px; height: 24px; }
  .kicker { gap: 8px; }

  .about { gap: 28px; }
  .about-photo { width: 350px; max-width: 100%; height: 300px; }
  .about-photo .ring { width: 250px; height: 250px; left: 30px; top: 15px; }
  .about-photo .ring circle { stroke-width: 17; }
  .about-photo .face { width: 206px; height: 206px; left: 52px; top: 37px; }
  .about-photo .buddy { width: 160px; height: 160px; left: 190px; top: 140px; }
  .about-txt .sec-head { gap: 28px; }
  .about-txt .kicker { font-size: 14px; }
  .bio { padding: 0; }
  .fact { flex-direction: column; gap: 6px; padding: 16px 0; }
  .fact dd { font-size: 16px; flex-wrap: wrap; }
  .strengths li { font-size: 18px; }

  #works .wrap, #pub .wrap { gap: 40px; }
  /* タブは横に流す。右端に 20px の白のぼかしで続きがあると分かるように */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .card-art { height: 182px; }
  .card-body { padding: 24px; }

  .cards-wrap:not(.all) .cards > .card:nth-child(n+4) { display: none; }
  .more { display: flex; width: 100%; margin-top: 24px; }
  .cards-wrap.all .more { display: none; }
  .detail { padding: 24px; gap: 24px; }
  .detail-top { flex-direction: column; gap: 16px; }
  .detail-art { width: 100%; height: 190px; }
  .detail-pair { grid-template-columns: 1fr; gap: 12px; }

  #policy .wrap { gap: 40px; }
  .pols { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 24px; }
  .pol { padding: 24px; }


  #offer .wrap { gap: 40px; }
  .offers { grid-template-columns: 1fr; gap: 24px; }
  /* スマホ：箇条書きを幅いっぱいに使い、羊は右上に 88 の箱で置く */
  .offer { position: relative; padding: 24px; gap: 12px; }
  .offer > img { position: absolute; right: 16px; top: 16px; width: 88px; height: 88px; }
  .offer h3 { padding-right: 96px; min-height: 88px; }

  .plans { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .plan { grid-row: auto; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
  #offer .center .btn { width: 100%; }
  .who { grid-template-columns: 1fr; gap: 24px; }
  .who-c { padding: 24px; }

  #process .wrap { gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 24px; padding: 0 0 0 32px; }
  .step { flex-direction: row; gap: 16px; }
  .step::before { left: -32px; top: 4px; }
  .step:not(:last-child)::after { left: -27px; top: 10px; width: 2px; height: calc(100% + 24px); }
  .step img { width: 88px; height: 88px; flex: none; align-self: flex-start; }
  .step div { gap: 8px; }


  #faq .wrap { gap: 40px; }
  .faq-sheep { width: 110px; height: 110px; }
  .faq-cols { grid-template-columns: 1fr; gap: 16px; }
  .faq-col { gap: 16px; }
  .qa summary { padding: 24px; }
  .qa-a { padding: 0 24px 24px; }

  #posts .wrap { gap: 40px; }
  .posts { grid-template-columns: 1fr; gap: 24px; }
  .post { min-height: 0; }
  .post-body { padding: 24px; }
  #posts .center .btn { width: 100%; }

  .career-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .career-wrap .sec-head { position: static; }
  .ch { padding: 0 0 40px 32px; }


  #contact .wrap { gap: 40px; align-items: stretch; }
  .contact-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-p { width: auto; }
  .form { padding: 24px; gap: 24px; }
  .btn-send, .btn-line { width: 100%; }

  .ft { padding: 64px 0 32px; }
  .ft .wrap { gap: 24px; }
  .ft-top { flex-direction: column; gap: 28px; }
  .ft-me { width: auto; }
  .ft-nav { display: block; columns: 2; column-gap: 24px; }
  .ft-nav div { display: contents; }
  .ft-nav a { display: block; margin-bottom: 14px; break-inside: avoid; }
  .ft-note { padding-bottom: 24px; }

  .ask-grp { flex: 1; width: auto; }
  .ask-btn { flex: 1; justify-content: center; }
  .ask-lb { padding: 0; font-size: 14px; }
  .ask-btn { flex: 1; justify-content: center; padding: 0 12px; font-size: 14px; }
}
html.menu-on, html.menu-on body { overflow: hidden; }

/* 個人情報の取扱い（privacy.html）。読みものなので 8/12 列の幅で中央に置く */
.pv-page .hd { position: sticky; }
.pv { padding: 128px 0; background: var(--white); }
.pv-wrap { max-width: 792px; }
.pv h1 { font-size: 44px; line-height: 1.08; letter-spacing: .02em; margin: 0 0 40px; }
.pv-intro { font-size: 18px; line-height: 2; margin: 0 0 40px; }
.pv-item { margin: 0 0 32px; }
.pv-item h2 { font-size: 20px; line-height: 1.5; margin: 0 0 8px; }
.pv-item p { font-size: 18px; line-height: 2; margin: 0; }
.pv-date { font-size: 16px; margin: 40px 0 24px; }
@media (max-width: 760px) {
  .pv { padding: 80px 0; }
  .pv h1 { font-size: 26px; margin-bottom: 24px; }
  .pv-intro { margin-bottom: 32px; }
}

/* 幅380以下（小さいスマホ）：写真と輪、ヘッダーのボタンを少し詰めて、横にはみ出さないようにする */
@media (max-width: 380px) {
  .about-photo { zoom: .9; max-width: none; }
  .hd-cta { padding: 0 12px; }
  .hd-in { gap: 8px; }
}

/* 英語の見出しは PC 用の手の改行をスマホで外し、行の長さをそろえる（text-wrap: balance）に任せる */
@media (max-width: 760px) {
  html[lang="en"] .sec-head h2 br { display: none; }
}
