@charset "UTF-8";

/* スタッフブリッジ公式サイト（staff-b.com）の白いセクションに合わせた配色 */
:root {
  --purple: #42267d;
  --ink: #222c32;
  --pink: #e45c89;
  --navy: #1c1939;
  --lavender: #d4cce3;
  --white: #fff;
  --text: #222c32;
  --muted: #6b7178;
  --line: #e6e2ef;
  --panel: #f5f3f9;
  --panel-2: #ece8f4;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong, b { font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header：公式サイトと同じ、丸い半透明のバー */
.site-header { position: sticky; top: 0; z-index: 20; padding: 14px 16px 0; }
.hbar { max-width: 880px; margin: 0 auto; height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: rgba(28, 25, 57, .92); border-radius: 65px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.logo { display: block; width: 78px; }
.header-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.header-nav a { color: var(--white); text-decoration: none; opacity: .92; transition: color .2s; }
.header-nav a:hover { color: #f7a6c1; }

/* Common type */
.eyebrow { color: var(--pink); font-weight: 700; font-size: 21px; margin: 0; line-height: 1.4; }
.h-sec { color: var(--purple); font-weight: 500; font-size: clamp(26px, 4vw, 40px); line-height: 1.35; margin: 4px 0 20px; }
.lead { margin: 0 0 10px; }
.small { font-size: 12px; color: var(--muted); line-height: 1.8; }

/* Buttons（公式サイトの白枠ボタン／ピンクのボタン） */
.btn-outline { display: inline-block; min-width: 200px; text-align: center; padding: 10px 32px; border: 1px solid var(--pink); color: var(--pink); text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--pink); color: var(--white); }
.btn-pink { display: inline-block; min-width: 200px; text-align: center; padding: 12px 32px; background: var(--pink); color: var(--white); text-decoration: none; font-weight: 500; letter-spacing: .06em; }
.back { text-align: center; padding: 40px 0 0; }

/* ---------- Top（見出しメニュー） ---------- */
.guide { max-width: 880px; margin: 0 auto; padding: 0 24px 40px; }
.g-head { text-align: center; padding: 72px 0 48px; }
.g-en { color: var(--pink); font-weight: 700; font-size: 15px; letter-spacing: .2em; margin: 0 0 6px; }
.g-title { color: var(--purple); font-size: clamp(32px, 5.4vw, 50px); font-weight: 700; margin: 0 0 14px; }
.g-lead { margin: 0 0 26px; }
.g-nav { display: flex; justify-content: center; gap: 32px; font-size: 14px; font-weight: 700; }
.g-nav a { text-decoration: none; color: var(--purple); opacity: .85; transition: color .2s, opacity .2s; }
.g-nav a:hover { color: var(--pink); opacity: 1; }

.chapter { margin-bottom: 88px; scroll-margin-top: 100px; }
.banner { aspect-ratio: 840 / 290; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 0 3%; }
.banner-ill { width: 36%; height: auto; flex: none; margin: 16px 0 16px 4%; border-radius: 14px; box-shadow: 0 12px 28px rgba(66, 38, 125, .14); }
.banner-text { flex: 1; min-width: 0; text-align: right; padding: 0 6% 0 0; }
.b-label { color: var(--pink); font-size: 21px; margin: 0 0 2px; font-weight: 700; }
.b-en { color: var(--purple); font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin: 0; line-height: 1.3; }
.b-ja { color: var(--purple); font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin: 4px 0 4px; }
.b-sub { color: var(--ink); font-size: 14px; margin: 0; }
.item-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.item-list li { border-bottom: 1px solid var(--line); }
.item-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 12px; text-decoration: none; color: var(--purple); font-size: 17px; font-weight: 500; transition: background .2s, color .2s; }
.item-link .arrow { color: var(--pink); font-size: 20px; transition: transform .2s; }
.item-link:hover { background: var(--panel); color: var(--pink); }
.item-link:hover .arrow { transform: translateX(6px); }

.b-title { color: var(--purple); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.45; margin: 0; white-space: nowrap; }
.b-num { color: var(--pink); }
.b-bar { color: var(--pink); margin: 0 .1em; }

/* パートナーブランドのロゴ（横に流れる帯） */
.brands { margin: -12px 0 64px; }
.brands-label { text-align: center; color: var(--pink); font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.marquee { overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: brand-flow 70s linear infinite; will-change: transform; }
.marquee-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-track li { flex: none; width: 132px; height: 56px; margin: 14px 22px; display: flex; align-items: center; justify-content: center; }
.marquee-track img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(0); opacity: .72; }
@keyframes brand-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

/* ---------- 16タイプ一覧 ---------- */
.crumb { font-size: 12px; color: var(--muted); padding: 28px 0 0; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--pink); }
.types { padding: 32px 0 80px; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 18px; }
.type-card { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.type-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(66, 38, 125, .14); }
.type-card:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.diag-link { color: var(--pink); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- タイプ別ページ ---------- */
.type-page { --g: #1f6f61; --g-soft: #e8f3ef; }
/* トップ画像：ヘッダーの後ろから画面幅いっぱいに表示 */
.type-cover { position: relative; margin-top: -78px; height: clamp(320px, 46vw, 600px); overflow: hidden; background: var(--g-soft); }
.type-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; animation: cover-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
.type-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
@keyframes cover-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .type-cover img { animation: none; } }
.type-hero { padding: 20px 0 56px; max-width: 820px; }
.type-code { font-size: clamp(48px, 8vw, 80px); font-weight: 700; color: var(--g); line-height: 1.1; margin: 0 0 10px; letter-spacing: .04em; }
.type-hero .tag { display: inline-block; font-size: 12px; color: var(--g); background: var(--g-soft); padding: 3px 14px; margin-bottom: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a { font-size: 13px; text-decoration: none; padding: 6px 16px; border: 1px solid var(--line); color: var(--purple); }
.toc a:hover { border-color: var(--pink); color: var(--pink); }

.t-sec { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.t-sec .h-sec { font-size: clamp(24px, 3.4vw, 32px); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.point { background: var(--g-soft); padding: 26px 24px; }
.point h3 { color: var(--g); font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.6; }
.point p { margin: 0; font-size: 14px; }
.point .shop { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.point .shop b { color: var(--g); }

.weak { display: grid; grid-template-columns: 1fr 1.4fr; margin-bottom: 12px; }
.weak > div { padding: 22px 24px; }
.weak .w { background: var(--panel); }
.weak .s { background: var(--white); border: 1px solid var(--line); }
.weak .label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 6px; }
.weak .w .label { color: var(--muted); }
.weak .s .label { color: var(--pink); }
.weak h3 { margin: 0 0 6px; font-size: 16px; color: var(--purple); font-weight: 700; line-height: 1.6; }
.weak p { margin: 0; font-size: 14px; }
.weak .say { border-left: 3px solid var(--pink); padding: 4px 0 4px 14px; margin-top: 8px; color: var(--ink); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 82px 1fr; gap: 16px; align-items: start; padding: 20px 24px; background: var(--panel); }
.steps li::before { content: "Step." counter(s); font-weight: 700; font-size: 17px; color: var(--pink); line-height: 1.6; }
.steps h3 { margin: 0 0 4px; font-size: 16px; color: var(--purple); font-weight: 700; line-height: 1.6; }
.steps p { margin: 0; font-size: 14px; }

.oneword { background: var(--lavender); padding: 40px 32px; text-align: center; }
.oneword .msg { font-size: clamp(19px, 3vw, 25px); font-weight: 700; color: var(--purple); line-height: 1.8; margin: 10px 0 0; }

.note { background: var(--panel); padding: 18px 20px; font-size: 12px; color: var(--muted); line-height: 1.9; margin: 0; }

.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next a { display: block; text-decoration: none; padding: 22px; background: var(--panel); transition: background .2s; }
.next a:hover { background: var(--panel-2); }
.next .ch { color: var(--pink); font-weight: 700; font-size: 13px; }
.next .tt { color: var(--purple); font-weight: 700; font-size: 16px; display: block; margin: 2px 0 6px; line-height: 1.6; }
.next .ds { font-size: 13px; }

/* ---------- 章ページ ---------- */
.page-banner { margin-top: 16px; }
.ch-toc { justify-content: center; margin: 24px 0 8px; }
.h-sub { color: var(--purple); font-size: 19px; font-weight: 700; margin: 40px 0 16px; padding-left: 12px; border-left: 4px solid var(--pink); line-height: 1.5; }
.intent { background: var(--panel); padding: 20px 24px; }
.intent .label, .ex-label, .p-tag, .ng-label, .qa-h { font-size: 13px; font-weight: 700; color: var(--pink); margin: 0 0 4px; }
.intent p:last-child { margin: 0; }
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.frame { border: 1px solid var(--line); padding: 20px 24px; }
.f-time { color: var(--purple); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.f-time span { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.flow { margin: 0; padding-left: 1.4em; }
.flow li { padding: 2px 0; }
.flow li.add { color: var(--pink); font-weight: 500; }
.pattern { border: 1px solid var(--line); padding: 24px; margin-bottom: 14px; }
.pattern h4 { color: var(--purple); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.p-point { margin: 0 0 14px; font-size: 14px; }
.p-point b { color: var(--purple); margin-right: 8px; }
.pattern .p-point:last-child { margin: 14px 0 0; }
.ex { background: var(--panel); padding: 18px 20px; }
.ex p:last-child { margin: 0; }
.more { margin-top: 10px; }
.more summary, .qa summary { cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.more summary { color: var(--pink); font-weight: 500; font-size: 14px; padding: 6px 0; }
.more summary::before { content: "＋ "; }
.more[open] summary::before { content: "－ "; }
.more .ex { margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two .pattern { margin: 0; }
.ng { margin-top: 28px; border: 1px solid #f3c2d3; background: #fdf3f7; padding: 22px 24px; }
.ng-quote { color: var(--ink); font-weight: 500; margin: 0 0 10px; }
.ng p:last-child { margin: 0; font-size: 14px; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; gap: 14px; padding: 20px 8px; color: var(--purple); font-weight: 700; font-size: 17px; }
.qa summary::after { content: "＋"; margin-left: auto; color: var(--pink); font-weight: 400; }
.qa[open] summary::after { content: "－"; }
.q { color: var(--pink); font-size: 18px; min-width: 32px; }
.qa-body { padding: 0 8px 24px 54px; }
.qa-body p { margin: 0 0 6px; }
.qa-h { margin-top: 12px !important; }
.qa-body .say { background: var(--panel); border-left: 3px solid var(--pink); padding: 12px 16px; }
.dots { margin: 0; padding-left: 1.2em; }
.inline-link { color: var(--pink); }

/* ---------- 02・03・ツール別ページ ---------- */
.mt { margin-top: 24px; } .mt-s { margin-top: 12px; }
.center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { background: var(--panel); padding: 20px 22px; }
.mini-h, .w-h { color: var(--purple); font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.where { border: 1px solid var(--line); padding: 18px 20px; }
.where p:last-child { margin: 0; font-size: 14px; }
.dots.big li { padding: 3px 0; }
.ng.soft { background: var(--panel); border-color: var(--line); }
.ng ul { margin: 0; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-cards.two-cards { grid-template-columns: repeat(2, 1fr); }
.tool-card { position: relative; display: block; text-decoration: none; border: 1px solid var(--line); padding: 22px 48px 22px 22px; transition: border-color .2s, background .2s; }
.tool-card:hover { border-color: var(--pink); background: var(--panel); }
.tc-name { display: block; color: var(--purple); font-weight: 700; font-size: 18px; }
.tc-ds { display: block; font-size: 13px; color: var(--muted); }
.tool-card .arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--pink); font-size: 20px; }
.b-kicker { color: var(--pink); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.b-sub2 { display: block; font-size: .62em; font-weight: 500; }
.checked { text-align: center; font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.devs { display: grid; gap: 14px; }
.devs-2 { grid-template-columns: 1fr 1fr; }
.devs-3 { grid-template-columns: repeat(3, 1fr); }
.dev { border: 1px solid var(--line); padding: 20px 22px; }
.dev-h { display: inline-block; background: var(--purple); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 12px; margin: 0 0 10px; }
.dev-steps { margin: 0; padding-left: 1.4em; }
.dev-steps li { padding: 3px 0; font-size: 14px; }
.dev-steps li::marker { color: var(--pink); font-weight: 700; }
.dev-steps li.note-li { list-style: none; margin-left: -1.4em; font-size: 12px; color: var(--muted); }

/* 研究シート・見学メモ */
.sheet { border: 1px solid var(--line); }
.sheet-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.sheet-row .s-h { background: var(--panel); color: var(--purple); font-weight: 500; font-size: 14px; padding: 14px 18px; }
.sheet-row.hl .s-h { background: #fdf3f7; color: var(--pink); }
.sheet input, .sheet textarea { width: 100%; border: 0; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; resize: vertical; }
.sheet input:focus, .sheet textarea:focus { outline: 2px solid var(--pink); outline-offset: -2px; }
.sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; }
.saved { margin-right: auto; font-size: 12px; color: var(--muted); }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13px; padding: 8px 16px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn-pink-s { background: var(--pink); border: 0; color: #fff; font: inherit; font-size: 13px; font-weight: 500; padding: 9px 18px; cursor: pointer; }

/* 16タイプへの導線 */
.types-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; text-decoration: none; border: 1px solid var(--line); padding: 24px; transition: border-color .2s; }
.types-promo:hover { border-color: var(--pink); }
.tp-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-imgs img { border: 1px solid var(--line); }
.tp-h { display: block; color: var(--purple); font-weight: 700; font-size: 20px; line-height: 1.5; margin-bottom: 8px; }
.tp-ds { display: block; font-size: 14px; }
.tp-go { display: inline-block; margin-top: 14px; color: var(--pink); font-weight: 700; }

/* チェックリスト */
.cl-mode { display: flex; gap: 8px; margin: 20px 0 16px; }
.cl-mode-btn { flex: 1; font: inherit; font-weight: 500; padding: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.cl-mode-btn[aria-checked="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.cl-progress { display: flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 700; margin-bottom: 16px; }
.cl-bar { flex: 1; height: 6px; background: var(--panel-2); margin-left: 8px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; background: var(--pink); transition: width .3s; }
.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cl-group { border: 1px solid var(--line); }
.cl-h { margin: 0; padding: 14px 18px; background: var(--panel); color: var(--purple); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cl-h > span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.cl-group ul { list-style: none; margin: 0; padding: 6px 0; }
.cl-group li { position: relative; padding: 12px 18px 12px 50px; font-size: 14px; cursor: pointer; user-select: none; line-height: 1.7; }
.cl-group li:hover { background: #faf9fd; }
.cl-group li:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.cl-group li::before { content: ""; position: absolute; left: 18px; top: 13px; width: 20px; height: 20px; border: 2px solid var(--lavender); background: #fff; }
.cl-group li.on { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107,113,120,.5); }
.cl-group li.on::before { background: var(--pink); border-color: var(--pink); }
.cl-group li.on::after { content: ""; position: absolute; left: 25px; top: 16px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cl-reset { text-align: right; margin: 12px 0 0; }

@media print {
  .site-header, .site-footer, .to-top, .banner, .toc, .next, .back, .sheet-foot, .t-sec:not(:has(.sheet)) { display: none !important; }
  body { font-size: 12px; }
}

/* 基本の型（図解） */
.tmpl { border: 1px solid var(--line); padding: 24px; margin-bottom: 10px; }
.tmpl-h { color: var(--purple); font-weight: 700; font-size: 18px; margin: 0 0 16px; }
.tmpl-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tmpl-flow.three { grid-template-columns: repeat(3, 1fr); }
.tmpl-flow li { position: relative; background: var(--panel); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tmpl-flow li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--pink); border-right: 2px solid var(--pink); transform: translateY(-50%) rotate(45deg); }
.tf-n { width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.tf-t { color: var(--purple); font-weight: 700; font-size: 15px; line-height: 1.6; }
.tf-m { color: var(--muted); font-size: 13px; line-height: 1.6; }
.tmpl-bar { display: flex; height: 26px; margin-top: 18px; gap: 2px; }
.tmpl-bar span { flex: var(--w) 0 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.tmpl-bar span:nth-child(1) { background: #b9a9ee; } .tmpl-bar span:nth-child(2) { background: #8f78d6; } .tmpl-bar span:nth-child(3) { background: var(--pink); } .tmpl-bar span:nth-child(4) { background: var(--purple); }
.tmpl-scale { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.intent .flow, .intent .dots { margin: 2px 0 0; }
.career-tip { margin-top: 20px; }
.career-tip .dots { margin: 6px 0 0; }
.career-tip .ex { background: #fff; }

.type-card { text-decoration: none; }
.type-cap { display: block; padding: 10px 12px 12px; text-align: center; font-weight: 700; color: var(--purple); font-size: 15px; border-top: 1px solid var(--line); }
.type-cap span { font-weight: 500; font-size: 13px; color: var(--muted); }
.type-nick { font-size: .32em; font-weight: 700; margin-left: .3em; letter-spacing: .02em; vertical-align: middle; }

/* 志望動機の回答例：タグ・ポイント・回答例の高さを左右でそろえる */
.two-sub { grid-template-rows: auto auto 1fr; }
.two-sub .pattern { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.two-sub .pattern .p-point { margin: 0 0 14px; }

.ng-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.ng-pair .ng { margin-top: 0; }

/* ---------- モーション ---------- */
/* ページを開いたとき：タイトルまわりを順にふわっと表示 */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.g-head > *, .page-banner, .type-hero > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.g-head > *:nth-child(2) { animation-delay: .08s; }
.g-head > *:nth-child(3) { animation-delay: .16s; }
.g-head > *:nth-child(4) { animation-delay: .24s; }
.type-hero > *:nth-child(2) { animation-delay: .12s; }
.brands { animation: rise .9s .32s cubic-bezier(.2,.7,.2,1) both; }

/* スクロールで表示（画面の下にあるものだけ。スクリプトが動かない環境ではそのまま表示） */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* バナー：背景がゆっくり動き、イラストがふわふわ浮かぶ */
.banner { background-size: 140% 140%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.banner-ill { animation: float 6s ease-in-out infinite; }
.chapter:nth-of-type(2) .banner-ill { animation-delay: -2s; }
.chapter:nth-of-type(3) .banner-ill { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ホバー */
.item-link { position: relative; }
.item-link::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.item-link:hover::after { transform: scaleX(1); }
.type-card img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.type-card:hover img { transform: scale(1.06); }
.point, .mini, .pattern, .next a, .tool-card, .dev, .where { transition: transform .3s ease, box-shadow .3s ease, border-color .2s, background .2s; }
.point:hover, .next a:hover, .tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(66, 38, 125, .1); }
.btn-outline, .btn-pink-s { transition: background .25s, color .25s, transform .2s; }
.btn-outline:active, .btn-pink-s:active { transform: scale(.97); }

/* チェックを付けたとき、ぽんと弾む */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cl-group li.pop::before { animation: pop .35s ease; }
.cl-bar span { transition: width .5s cubic-bezier(.2,.7,.2,1); }

/* Q&Aを開いたときに中身をふわっと */
.qa[open] .qa-body, .more[open] .ex { animation: rise .45s ease both; }

/* 動きを減らす設定の人には、モーションを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- トップ：ヒーロー ---------- */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(160deg, #f6f2fc 0%, #fdf3f8 55%, #ffffff 100%); padding-block: 64px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); margin-top: -78px; padding-top: 140px; }
.h-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; animation: blob 16s ease-in-out infinite alternate; }
.h-blob.b1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle at 30% 30%, #e2d8f6, rgba(226,216,246,0) 70%); }
.h-blob.b2 { width: 380px; height: 380px; left: -140px; bottom: -160px; background: radial-gradient(circle at 50% 50%, #f9d3e2, rgba(249,211,226,0) 70%); animation-delay: -5s; }
.h-blob.b3 { width: 260px; height: 260px; left: 42%; top: 40%; background: radial-gradient(circle, #dfe7fb, rgba(223,231,251,0) 70%); animation-delay: -9s; }
@keyframes blob { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,-24px) scale(1.12); } }
.hero2-in { position: relative; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero2-text { min-width: 0; }
.hero2-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero2-text > *:nth-child(2) { animation-delay: .08s; } .hero2-text > *:nth-child(3) { animation-delay: .16s; } .hero2-text > *:nth-child(4) { animation-delay: .24s; } .hero2-text > *:nth-child(5) { animation-delay: .32s; }
.hero2 .g-en span { color: var(--purple); opacity: .55; margin-left: 8px; letter-spacing: .08em; }
.hero2-title { color: var(--purple); font-size: clamp(38px, 6.2vw, 64px); font-weight: 700; line-height: 1.2; margin: 10px 0 18px; text-wrap: balance; }
.ht-sm { display: block; font-size: .36em; font-weight: 500; color: var(--pink); letter-spacing: .06em; margin-bottom: 8px; }
.hero2-lead { font-size: 16px; max-width: 34em; margin: 0 0 26px; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero2-cta .btn-pink, .hero2-cta .btn-outline { min-width: 0; }
.btn-pink { box-shadow: 0 10px 22px rgba(228, 92, 137, .28); transition: transform .2s, box-shadow .2s, background .2s; }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(228, 92, 137, .36); }
.hero2-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero2-chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 13px; color: var(--purple); font-weight: 500; }
.hero2-chips b { color: var(--pink); font-size: 16px; margin-right: 2px; }
.hero2-art { position: relative; aspect-ratio: 1 / .9; max-width: 100%; }
.hc { position: absolute; width: 56%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(66, 38, 125, .16); transition: transform .4s cubic-bezier(.2,.7,.2,1); animation: card-in .9s cubic-bezier(.2,.7,.2,1) both, bob 7s ease-in-out infinite; }
.hc img { display: block; }
.hc { background: linear-gradient(160deg, #f3effb, #fbeef4); padding: 6px; }
.hc1 { left: 0; top: 6%; --r: -5deg; animation-delay: .2s, 0s; }
.hc2 { right: 0; top: 0; --r: 4deg; animation-delay: .35s, -2.3s; }
.hc4 { left: 22%; bottom: 0; --r: -2deg; animation-delay: .5s, -4.6s; z-index: 2; }
.hc { transform: rotate(var(--r)); }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(.9); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero2-art:hover .hc { transform: rotate(0deg) scale(1.02); }
.spark { position: absolute; width: 18px; height: 18px; background: var(--pink); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.6s ease-in-out infinite; }
.spark.s1 { left: 46%; top: -2%; } .spark.s2 { right: -2%; top: 46%; width: 12px; height: 12px; background: #8fc1f5; animation-delay: -.8s; }
.spark.s3 { left: -2%; top: 52%; width: 14px; height: 14px; background: #b9a9ee; animation-delay: -1.6s; } .spark.s4 { left: 52%; bottom: -3%; width: 10px; height: 10px; animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .3; transform: scale(.5) rotate(45deg); } }
.guide > .brands { margin-top: 40px; }

/* 使い方 */
.howto { margin: 0 0 80px; }
.howto-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.howto-list li { position: relative; background: var(--panel); padding: 28px 24px 26px; display: grid; gap: 6px; justify-items: start; }
.howto-list li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--pink); border-right: 2px solid var(--pink); transform: translateY(-50%) rotate(45deg); }
.hw-step { color: var(--pink); font-weight: 700; font-size: 14px; }
.hw-icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 4px 0; box-shadow: 0 6px 16px rgba(66,38,125,.08); }
.hw-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hw-h { color: var(--purple); font-weight: 700; font-size: 17px; }
.hw-p { font-size: 14px; }

/* 16タイプの帯 */
.types-band { background: var(--panel); padding-block: 64px; overflow: hidden; }
.tb-head { max-width: 880px; margin: 0 auto 28px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); text-align: center; }
.tb-head .lead { margin-bottom: 18px; }
.tb-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tb-track { display: flex; width: max-content; animation: brand-flow 60s linear infinite reverse; will-change: transform; }
.tb-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.tb-track li { flex: none; width: 240px; margin: 8px 10px; }
.tb-track a { display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(66,38,125,.08); transition: transform .3s, box-shadow .3s; }
.tb-track a:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 30px rgba(66,38,125,.16); }
.tb-track img { display: block; }

/* 締めの帯 */
.closing { background: linear-gradient(120deg, var(--purple) 0%, #6a3a9e 55%, var(--pink) 100%); background-size: 200% 200%; animation: drift 14s ease-in-out infinite alternate; color: #fff; text-align: center; padding-block: 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.closing-in { max-width: 640px; margin: 0 auto; }
.closing-en { font-weight: 700; font-size: 18px; letter-spacing: .1em; opacity: .8; margin: 0; }
.closing-h { font-size: clamp(24px, 4vw, 34px); font-weight: 700; margin: 6px 0 10px; text-wrap: balance; }
.closing-p { margin: 0 0 24px; opacity: .9; }
.btn-white { display: inline-block; background: #fff; color: var(--purple); font-weight: 700; text-decoration: none; padding: 13px 34px; transition: transform .2s, box-shadow .2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.closing + .site-footer, main:has(.closing) + .site-footer { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: 12px; padding: 40px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.f-left { display: flex; align-items: center; gap: 18px; }
.f-logo { width: 96px; }

/* ページトップへ（公式サイトと同じ丸ボタン） */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(28, 25, 57, .55); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 18px; z-index: 15; }
.to-top:hover { background: rgba(28, 25, 57, .8); }

/* Toast（試作版のお知らせ） */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--pink); color: #fff; font-size: 13px; font-weight: 500; padding: 12px 22px; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .tmpl { padding: 18px; }
  .tmpl-flow, .tmpl-flow.three { grid-template-columns: 1fr; gap: 16px; }
  .tmpl-flow li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .tmpl-flow li .tf-m { flex-basis: 100%; padding-left: 36px; }
  .tmpl-flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -13px; transform: translateX(50%) rotate(135deg); }
  .hero2 { margin-top: -64px; padding-top: 104px; padding-bottom: 48px; }
  .type-cover { margin-top: -64px; }
  .hero2-in { grid-template-columns: 1fr; gap: 36px; }
  .hero2-art { width: 100%; max-width: 420px; margin: 0 auto; }
  .howto-list { grid-template-columns: 1fr; gap: 22px; }
  .howto-list li:not(:last-child)::after { right: 50%; top: auto; bottom: -17px; transform: translateX(50%) rotate(135deg); }
  .tb-track li { width: 180px; margin: 6px 7px; }
  .types-band { padding-block: 48px; }
  .site-header { padding: 10px 10px 0; }
  .hbar { height: 54px; padding: 0 22px; }
  .logo { width: 66px; }
  .header-nav { gap: 14px; font-size: 12px; }
  .wrap { padding: 0 16px; }
  .guide { padding: 0 16px 24px; }
  .g-head { padding: 48px 0 32px; }
  .g-nav { gap: 18px; font-size: 13px; }
  .banner { aspect-ratio: auto; flex-direction: column; align-items: stretch; padding: 20px 0 22px; gap: 4px; }
  .banner-ill { width: 62%; margin: 0 auto; }
  .banner-text { text-align: center; padding: 0 16px; }
  .b-title { white-space: normal; }
  .banner-text { padding: 0 6%; }
  .b-label { font-size: 15px; }
  .b-sub { font-size: 12px; }
  .item-link { font-size: 15px; padding: 17px 18px; }
  .chapter { margin-bottom: 56px; }
  .brands { margin: -8px 0 44px; }
  .marquee-track li { width: 96px; height: 44px; margin: 10px 14px; }
  .marquee-track { animation-duration: 55s; }
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .type-hero { padding: 16px 0 40px; }
  .points, .next { grid-template-columns: 1fr; }
  .weak { grid-template-columns: 1fr; }
  .two-sub .pattern { grid-row: auto; grid-template-rows: none; }
  .ng-pair { grid-template-columns: 1fr; }
  .frames, .two, .grid-3, .devs-2, .devs-3, .tool-cards, .tool-cards.two-cards, .checklist, .types-promo { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .sheet-row { grid-template-columns: 1fr; }
  .sheet-row .s-h { padding: 10px 14px; }
  .qa-body { padding: 0 4px 20px; }
  .qa summary { font-size: 16px; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
}
/* スマホではヘッダーを表示しない */
@media (max-width: 600px) {
  .site-header { display: none; }
  .hero2 { margin-top: 0; padding-top: 44px; }
  .type-cover { margin-top: 0; height: auto; aspect-ratio: 3 / 2; }
  .hero2-cta a { flex: 1 1 100%; }
}

/* ---------- 章バナー：イラストを枠いっぱいに表示し、タイトルを左下に重ねる ---------- */
.banner { position: relative; overflow: hidden; aspect-ratio: 840 / 340; flex-direction: row; align-items: flex-end; justify-content: flex-start; padding: 0; background: var(--panel); animation: none; }
.banner-ill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; margin: 0; border-radius: 0; box-shadow: none; animation: none; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.chapter:hover .banner-ill, .banner:hover .banner-ill { transform: scale(1.03); }
.banner-text { position: relative; z-index: 1; flex: none; text-align: left; margin: 0 0 4% 3%; padding: 14px 24px; background: rgba(255, 255, 255, .9); border-radius: 12px; box-shadow: 0 8px 24px rgba(66, 38, 125, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 860px) {
  .banner { aspect-ratio: 3 / 2; flex-direction: row; align-items: flex-end; padding: 0; gap: 0; }
  .banner-ill { width: 100%; margin: 0; }
  .banner-text { text-align: left; margin: 0 0 12px 12px; padding: 10px 16px; max-width: calc(100% - 24px); }
  .b-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .banner-ill { transition: none; } .chapter:hover .banner-ill, .banner:hover .banner-ill { transform: none; } }
.weak.strong .w { background: var(--g-soft); }
.weak.strong .w .label { color: var(--g); }
.weak.strong h3 { color: var(--g); }
