/* 記事とサービス詳細の構図（2026-11-15 本人。試し）
   本人「やっぱり左側に目次のほうが良さそうだな」「一回800pxで組んでみて欲しい」
   「目次分＋本文＋左右の余白を下回る横幅サイズになったら、詳細ページの目次はカット、記事はLANYと同じように目次を画像の下に差し込み、縦に並べるようにしようか」
   形：左に目次 240px（ついてくる。下に無料相談のボタン）、間 56px、本文 800px。合わせて 1096px。左右の余白 50px を足した 1196px（≒1200px）未満で1列にする。
   1列の時：記事は画像の下に目次の箱、サービス詳細は目次なし。
   参考：LANY の記事（左に目次 300・本文 800）、マクロミルのサービスページ（左に目次、下に問い合わせのボタン）。
   字の大きさは文字の7役割（style.css の --t-*）から読む */
.art { --toc-w: 240px; --art-gap: 56px; --art-w: 800px; padding: 24px 50px 120px; }
.art-frame { max-width: calc(var(--toc-w) + var(--art-gap) + var(--art-w)); margin: 0 auto; display: grid; grid-template-columns: var(--toc-w) minmax(0, var(--art-w)); gap: var(--art-gap); align-items: start; }

/* パンくず */
.art-crumb { max-width: calc(var(--toc-w) + var(--art-gap) + var(--art-w)); margin: 0 auto 32px; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-small); color: var(--text-sub); letter-spacing: .04em; }
.art-crumb a { color: var(--text-sub); text-decoration: underline; text-underline-offset: 3px; }
.art-crumb span[aria-hidden] { opacity: .5; }

/* 左の目次（ついてくる） */
/* 影が overflow で切れないよう、周りに余白を取り、その分だけ外へ広げる */
.art-side { position: sticky; top: 0; max-height: 100vh; overflow: auto; margin: -32px -40px 0; padding: 32px 40px 40px; }
/* 箱は画像の下の目次と同じく、白い地に控えめの影で四角を見せ、枠の線は引かない（2026-11-16 本人「揃えようか！」） */
/* 左の目次は、影を広く薄くして輪郭を出さない（2026-11-16 本人「左に目次が入ったとき、シャドウの輪郭が見えるかも。もうちょっとグラデーションにできる？」） */
.toc { background: var(--white); filter: drop-shadow(rgba(0, 0, 0, .07) 0 2px 28px); padding: 22px 22px 18px; }
/* 「目次」は本文の字の大きさ（2026-11-16 本人「「目次」っていう文字のサイズ小さい気がするな。もう少し大きくても良い気がする」） */
.toc__title { font-size: var(--t-body); font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
/* 番号は付けない（2026-11-16 本人「数字を入れると目次のテキスト量が減って、行が増える気がするからなしにしようか」） */
.toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.6; color: var(--text-sub); text-decoration: none; }
/* 今読んでいる所の手描きのチェックは付けない（2026-11-16 本人「目次のチェックマークはなしでも良さそう！」） */
.toc__t { display: block; }
/* 黄色のペンの下線は、字の行ごとに引く（2行になっても両方の行に。2026-11-15 本人「読んでいる該当箇所の黄色ペンの下線は2行ともに引く」） */
.toc__t > span { padding: 0 .1em; background: var(--pen) no-repeat left 0 bottom .02em / 0% .48em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .35s cubic-bezier(.45, 0, .55, 1); }
/* 今読んでいる所は黒い字に黄色のペンの下線 */
.toc a.is-now { color: var(--ink); font-weight: 700; }
.toc a.is-now .toc__t > span { background-size: 100% .48em; }
@media (hover: hover) { .toc a:hover { color: var(--ink); } }
.art-side__cta { margin-top: 28px; padding-left: 4px; }

/* 本文 */
.art-main { min-width: 0; }
.art-cat { display: inline-block; font-size: var(--t-small); font-weight: 700; letter-spacing: .12em; margin-bottom: 12px; }
.art-cat::before { content: "★"; color: var(--yellow); margin-right: 6px; }
.art-title { font-size: var(--t-h2); font-weight: 700; line-height: 1.5; }
.art-meta { margin-top: 14px; font-size: var(--t-small); color: var(--text-sub); letter-spacing: .06em; }
.art-lead { margin-top: 20px; font-size: var(--t-lead); line-height: 1.8; }
.art-hero { margin-top: 32px; aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); }
.art-hero b { font-size: 34px; line-height: 1; color: var(--yellow); }
.art-hero span { font-size: 14px; letter-spacing: .12em; color: var(--text-sub); }

/* 1列の時だけ、画像の下に目次の箱（記事だけ） */
/* 字と区切り線は才流の記事の目次（sairu.co.jp/method/…）の形：「目次」の下に、項目を細い線で区切って並べる。番号も印も付けない。
   箱は白い地に控えめの影（style.css の --float）で四角を見せ、枠の線は引かない
   （2026-11-16 本人「目次を縦に入れたとき、ちょっとAI感を感じてしまうから、テキストや区切り線は才流のようにし、ボックスは白背景の控えめのシャドウで四角を演出するのはどうかな？」） */
.toc--inline { display: none; margin-top: 40px; padding: 36px 40px 32px; background: var(--white); border: 0; filter: var(--float); }
.toc--inline .toc__title { font-size: var(--t-lead); font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.toc--inline ol { gap: 0; }
.toc--inline li + li { border-top: 1px solid var(--line); }
.toc--inline a { padding: 6px 0 7px; font-size: var(--t-body); font-weight: 500; line-height: 2; color: var(--ink); }
@media (hover: hover) { .toc--inline a:hover .toc__t > span { background-size: 100% .48em; } }

.art-body { margin-top: 48px; font-size: var(--t-body); line-height: 1.95; }
.art-body > * + * { margin-top: 1.2em; }
.art-body h2 { margin-top: 80px; scroll-margin-top: 24px; font-size: var(--t-h3); font-weight: 700; line-height: 1.6; }
.art-body h2 .u-mark { padding: 0 .12em; }
.art-body h3 { margin-top: 44px; font-size: var(--t-lead); font-weight: 700; line-height: 1.7; }
.art-body ul { padding-left: 1.3em; list-style: disc; }
.art-body li + li { margin-top: .5em; }
.art-body strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(246, 210, 0, .45) 62%); }
.art-body blockquote { margin-left: 0; padding: 20px 24px; background: var(--fv-bg, #f7f5f1); font-size: 15px; line-height: 1.9; }
.art-body blockquote p + p { margin-top: .8em; }
.art-note { font-size: 13px; line-height: 1.8; color: var(--text-sub); }

/* 図（まだ描いていない所は灰色の札） */
.art-fig { margin: 32px 0 8px; } /* figure の初めの左右の余白 40px を消す */
.art-fig__ph { display: grid; place-items: center; min-height: 220px; padding: 24px; background: var(--sunk); font-size: 14px; color: var(--text-sub); text-align: center; line-height: 1.8; }
.art-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--text-sub); }
/* 横棒グラフ */
.bars { display: grid; gap: 14px; padding: 28px 28px 24px; border: 1px solid var(--line); background: var(--white); }
.bars__row { display: grid; grid-template-columns: 13em 1fr 3em; align-items: center; gap: 14px; font-size: 14px; line-height: 1.5; }
.bars__bar { height: 22px; background: #d9d9d9; }
.bars__bar i { display: block; height: 100%; background: var(--ink); }
.bars__row.is-top .bars__bar i { background: var(--yellow); }
.bars__row b { font-variant-numeric: tabular-nums; text-align: right; }

/* 最後の相談の箱 */
.art-end { margin-top: 96px; padding: 44px 44px 36px; background: var(--fv-bg, #f7f5f1); }
.art-end__title { font-size: var(--t-h3); font-weight: 700; line-height: 1.6; }
.art-end__text { margin-top: 12px; font-size: var(--t-body); line-height: var(--lh-body); }
.art-end__cta { margin-top: 28px; display: flex; justify-content: flex-end; }

/* 1200px 未満は1列（目次 240＋間 56＋本文 800＋左右 50×2 ≒ 1200） */
@media (max-width: 1199px) {
  .art-frame { grid-template-columns: minmax(0, 1fr); max-width: var(--art-w); }
  .art-crumb { max-width: var(--art-w); }
  .art-side { display: none; }
  .toc--inline { display: block; }
}
@media (max-width: 799px) {
  .art { padding: 16px 24px 80px; }
  .art-crumb { margin-bottom: 20px; }
  .art-body { margin-top: 36px; }
  .art-body h2 { margin-top: 64px; }
  .art-end { padding: 32px 24px 28px; }
  .toc--inline { padding: 24px 22px 20px; }
  .bars { padding: 20px 16px; }
  .bars__row { grid-template-columns: 1fr 2.6em; }
  .bars__row span:first-child { grid-column: 1 / -1; }
}

/* ===== サービス詳細 B：目次なし・1000px で LP のように進む（本人「パソコンも目次なしで、1000px幅でLPのように進むのもいいかもしれないな」）
   段ごとに地を白とくすんだ地で替え、見出しは段の見出し（32/24・黄色のペンの下線）。図は 1000px まで広げ、文は 800px まで（1行が長くなりすぎないように） */
.lpd-head { padding: 24px 50px 72px; }
.lpd-head__in, .lpd-sec__in { max-width: var(--content-w); margin: 0 auto; }
.lpd-head .art-crumb { max-width: none; }
.lpd-head .art-title { font-size: var(--t-main); }
.lpd-head .art-lead { max-width: 800px; }
.lpd-sec { padding: 88px 50px; }
.lpd-sec:nth-child(even) { background: var(--fv-bg, #f7f5f1); }
.lpd-sec__no { font-size: var(--t-small); font-weight: 700; letter-spacing: .16em; color: var(--text-sub); margin-bottom: 10px; }
.lpd-sec h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.5; }
.lpd-sec .art-body { margin-top: 36px; max-width: 800px; }
.lpd-sec .art-body > .art-fig { width: min(var(--content-w), calc(100vw - 100px)); max-width: none; }
.lpd-sec .art-body h3 { margin-top: 48px; }
.lpd-end { padding: 0 50px 120px; }
.lpd-end .art-end { max-width: var(--content-w); margin: 88px auto 0; }
@media (max-width: 799px) {
  .lpd-head { padding: 16px 24px 48px; }
  .lpd-sec { padding: 64px 24px; }
  .lpd-sec .art-body > .art-fig { width: auto; }
  .lpd-end { padding: 0 24px 80px; }
}

/* ===== 打ち手一覧（/articles/）（2026-11-16 本人「分類だけで組む」）
   形はベイジの採用メソッドの一覧（上に分類の切り替え、下に記事の札）。記事の札はトップの .panel（top.css）。
   分類の切り替えは、選んだ物の字に黄色のペンの下線（無料相談の用件と同じ形）。検索窓と絞り込みは記事が20本くらいになってから */
.al { padding: 24px 50px 120px; }
.al-in { max-width: var(--content-w); margin: 0 auto; }
.al-crumb { max-width: none; }
.al-title { font-size: var(--t-h2); font-weight: 700; line-height: 1.5; }
/* 説明文は場所を取らないよう、本文の字で行の間を詰める（2026-11-16 本人「ここはそんなにスペース取りたくないから、フォントサイズを小さくしたり、行間をもっと詰めるほうが良いかも！」） */
.al-lead { margin-top: 12px; font-size: var(--t-body); line-height: 1.7; }
.al-lead__link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { .al-lead__link:hover { text-decoration-thickness: 2px; } }
.al-tabs { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 36px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.al-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.al-tabs label { cursor: pointer; font-size: var(--t-body); font-weight: 500; line-height: 1.7; color: var(--text-sub); }
.al-tabs label span { padding: 0 .12em; background: var(--pen) no-repeat left 0 bottom .02em / 0% .48em; transition: background-size .35s cubic-bezier(.45, 0, .55, 1); }
.al-tabs input:checked + label { color: var(--ink); font-weight: 700; }
.al-tabs input:checked + label span { background-size: 100% .48em; }
.al-tabs input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) { .al-tabs label:hover { color: var(--ink); } .al-tabs label:hover span { background-size: 100% .48em; } }
.al-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.al-empty { display: none; margin-top: 40px; font-size: var(--t-body); color: var(--text-sub); }
.al .art-end { margin-top: 96px; }
@media (max-width: 1023px) { .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 799px) {
  .al { padding: 16px 24px 80px; }
  .al-tabs { margin-top: 32px; gap: 8px 24px; }
  .al .art-end { padding: 32px 24px 28px; }
}
@media (max-width: 599px) { .al-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ===== 私たちについて（/about/）（2026-11-16 本人）
   地は灰一色（本人「背景は灰一色」。ブランドの粒の灰）。題はブランドの黒枠＋白い地に手書きの黒い字（FV の言葉の枠と同じ線）。
   見出しは段の見出し（黄色のペンの下線）。会社概要の表は、ロロ・ピアーナ色 #f7f5f1 の線に黒い字だけで、地は灰のまま */
.is-about { background: var(--main-bg); }
.ab { padding: 24px 50px 120px; }
.ab-in { max-width: 800px; margin: 0 auto; }
.ab-crumb { max-width: none; }
.ab-title { display: inline-block; border: 1px solid var(--ink); background: var(--white); padding: .1em .5em .16em; font-family: "Klee One", var(--display); font-weight: 600; font-size: var(--t-main); line-height: 1.4; letter-spacing: .04em; }
.ab-sec { margin-top: 88px; }
.ab-h { font-size: var(--t-h2); font-weight: 700; line-height: 1.5; }
.ab-ph { margin-top: 24px; padding: 28px 24px; border: 1px dashed rgba(33, 33, 33, .3); font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-sub); }
.ab-title + .ab-ph, .ab-h--page + .ab-ph { margin-top: 32px; }
.ab-table { margin-top: 28px; width: 100%; border-collapse: collapse; font-size: var(--t-body); line-height: 1.8; color: var(--ink); }
.ab-table th, .ab-table td { padding: 18px 8px; border-top: 1px solid #f7f5f1; border-bottom: 1px solid #f7f5f1; text-align: left; vertical-align: top; }
.ab-table th { width: 10em; font-weight: 700; }
.ab-table a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 799px) {
  .ab { padding: 16px 24px 80px; }
  .ab-sec { margin-top: 64px; }
  .ab-table th { width: 7.5em; }
}
/* 題の試し：枠なし・黄色のペンで書き殴る（2026-11-16 本人「やっぱり枠をなしにして、黄色のペンで書き殴る感じはどう？？」） */
.ab-title--a, .ab-title--b { position: relative; border: 0; background: none; padding: 0; font-family: "Yusei Magic", var(--display); font-weight: 400; font-size: calc(var(--t-main) * 1.3); letter-spacing: .02em; transform: rotate(-2deg); transform-origin: left center; }
.ab-title--a { color: var(--yellow); }
.ab-title--b .ab-title__t { position: relative; z-index: 1; }
.ab-scrib { position: absolute; left: -.2em; right: -.3em; bottom: -.05em; width: calc(100% + .5em); height: .75em; overflow: visible; }
.ab-scrib path { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: pen-draw .9s cubic-bezier(.45, 0, .55, 1); }
/* 決まった形：枠なし・黄色の字・少し斜め・Noto Serif JP（2026-11-16 本人「黄色の文字ってことだよ！ 黄色の下線じゃない！」「少し斜めにするのは良いと思う！ フォントはnoto serif jp あたりはどうかな？」） */
.ab-title--y { border: 0; background: none; padding: 0; color: var(--yellow); font-family: "Noto Serif JP", serif; font-weight: 900; font-size: calc(var(--t-main) * 1.3); letter-spacing: .04em; transform: rotate(-3deg); transform-origin: left bottom; }
/* 題も段の見出しと同じ形にした（2026-11-16 本人「やっぱりセクションタイトルたちと同じでいいかも」）。.ab-title と .ab-title--y は今は使っていない */
/* じっくり読ませるページではないので、字は15px・文の幅560px・段の間を詰めて軽く見せる。見出しは題も段も中見出しの大きさでそろえる
   （2026-11-16 本人「アレテコの以下のページぐらいのフォントサイズでいいかな？」「あんまり読みたいものではないよね笑」→「15pxで詰める」。アレテコは本文13px・幅470px） */
.ab-in { max-width: 560px; }
.ab-sec { margin-top: 56px; }
.ab-h { font-size: var(--t-h3); }
.ab-ph, .ab-table { font-size: 15px; }
.ab-ph { margin-top: 16px; padding: 20px; }
.ab-h--page + .ab-ph { margin-top: 20px; }
.ab-table { margin-top: 16px; line-height: 1.7; }
.ab-table th, .ab-table td { padding: 12px 6px; }
.ab-table th { width: 8em; }
@media (max-width: 799px) { .ab-sec { margin-top: 48px; } .ab-table th { width: 6.5em; } }
/* 私たちについての文（2026-11-16 本人の話から） */
.ab-text { margin-top: 16px; font-size: 15px; line-height: 1.9; }
.ab-text p + p { margin-top: 1em; }
.ab-h--page + .ab-text { margin-top: 20px; }
/* 見出しは大きく、左に手描きのチェック（黄色のペン。問い合わせの用件と同じ形）。黄色の下線は本文の特に読んでほしい所に引く
   （2026-11-16 本人「各セクションタイトルをアレテコの「CONCEPT」などのタイトルと文字サイズを一緒にして、左側に手書きチェックマークを付ける形にしようか」「本文で特に読んで欲しいところに下線を引くという形にするのはどう？？」。アレテコの CONCEPT は 50px） */
.ab-h { display: flex; align-items: center; gap: .22em; font-size: 50px; font-weight: 700; line-height: 1.3; }
.ab-check { flex: none; width: .8em; height: .8em; overflow: visible; }
.ab-check path { fill: none; stroke: var(--yellow); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: pen-draw .5s cubic-bezier(.45, 0, .55, 1); }
.ab-sec { margin-top: 72px; }
.ab-text .u-mark { font-weight: 700; }
@media (max-width: 799px) { .ab-h { font-size: 32px; } .ab-sec { margin-top: 56px; } }
/* チェックは見出しの1文字目の後ろに大きく描き、字をその上に重ねる（2026-11-16 本人「チェックマークをタイトルの一文字目の下に配置し、もっとチェックマークのサイズを大きくしようか！」） */
.ab-h { position: relative; display: block; isolation: isolate; gap: 0; }
.ab-h > span { position: relative; }
.ab-check { position: absolute; z-index: -1; left: -.12em; top: -.12em; width: 1.25em; height: 1.25em; }
.ab-check path { stroke-width: 3; }
/* 字に隠れすぎないよう、チェックを大きく左下へずらして、字の外に線がはみ出すようにする */
.ab-check { left: -.3em; top: -.05em; width: 1.5em; height: 1.5em; }
.ab-check path { stroke-width: 3.6; }
/* z-index:-1 だと灰の地の後ろに隠れたので 0 にする。字（.ab-h > span、後ろに書いてある position:relative）がチェックの上に重なる */
.ab-check { z-index: 0; }
.ab-h > span { z-index: 1; }
/* 描く動きを付けると、描き終わった後に点のまま残ることがあった（画面で実測）ので、見出しのチェックは動かさずに描く */
.ab-check path { animation: none; stroke-dasharray: none; }
/* 筆の払いのチェック（塗りの形）。もう少し大きく（2026-11-16 本人「もう少し大きく、もっと筆で書いたように払いが表現されててほしい！」） */
.ab-check { left: -.38em; top: -.22em; width: 1.9em; height: 1.9em; }
.ab-check path { fill: var(--yellow); stroke: none; }
/* チェックの角（折り返しの一番下、viewBox で x11・y28 あたり）を、1文字目の上下左右の真ん中に置く（2026-11-16 本人「チェックマークの角が位置文字目の上下左右中央に位置するように調整してほしい！」） */
.ab-check { left: calc(.5em - 1.9em * 11 / 32); top: calc(.65em - 1.9em * 28 / 32); }
/* チェックの払いが見出しの上へ約0.9字はみ出すので、パンくずと重ならないよう題の上を空ける */
.ab-h--page { margin-top: 56px; }
@media (max-width: 799px) { .ab-h--page { margin-top: 40px; } }
/* 角の内側の点（2本の線が交わる上側の点、viewBox で x10.6・y23.6）を1文字目の真ん中に置く（2026-11-16 本人「チェックマークの角度がついている角の内側の点を1文字目の真ん中にすることできる？」）。字の真ん中は行の上から .61em（実測） */
.ab-check { left: calc(.5em - 1.9em * 10.6 / 32); top: calc(.61em - 1.9em * 23.6 / 32); }
/* 私たちについて：自己紹介の下の、左右の余白ゼロの帯の絵（2026-11-16） */
.ab-fig { margin: 64px -50px 0; }
.ab-fig img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; max-height: 560px; object-fit: cover; }
@media (max-width: 799px) { .ab-fig { margin: 40px -24px 0; } }
/* 私たちについて：文の幅は最大 1000px、左揃え（2026-11-16 本人「テキストたちは最大幅1000pxの左揃えにしようか！」） */
.ab-in { max-width: 1000px; }
/* 本文だけは 1000px の枠の中で左に寄せて 600px まで（1行およそ40字。2026-11-16 本人「本文だけ左側にギュッとくるようにその中で制限かけたほうがいいかも」） */
.ab-text { max-width: 600px; }
/* 会社概要：項目と内容の間を広げる（2026-11-16 本人「会社概要の項目と内容の間をもう少し開けてほしいかも！」） */
.ab-table th { width: 11em; padding-right: 24px; }
@media (max-width: 799px) { .ab-table th { width: 9.5em; padding-right: 16px; } }
/* 私たちについて：本人が決めた改行。「br-sp」はスマホだけの改行、「ab-gap」は前を広く空ける段落（2026-11-16） */
.br-sp { display: none; }
@media (max-width: 799px) { .br-sp { display: inline; } }
.ab-text .ab-gap { margin-top: 2.6em; }
