/* TaiLexi AI 製品紹介（/intro）。日本站の配色（和紙・藍・朱・金）を引き継ぎ、余白と細い罫で組む。常に明るい配色（配色設定「墨」は使わない）。
   画像は抽象的な藍の滲みだけ（生成画像）。製品の見た目は実際の画面（スクリーンショット）。 */
:root {
  --bg: #f6f3ec; --paper: #fffdf8; --paper-2: #f1ede4;
  --ink: #161a22; --ink-2: #3a404c; --muted: #69707c; --faint: #9aa0aa;
  --line: #e3ddd0; --line-2: #ece7dd;
  --indigo: #1f3a60; --indigo-2: #2c5088; --indigo-soft: #e8edf5; --deep: #0d1a2e;
  --shu: #b0402a; --kin: #8d6d33; --gold: #d2b06c;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --latin: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html[lang="zh-Hant"] { --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Noto Serif JP", serif; --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans JP", system-ui, sans-serif; }
html[lang="en"] { --serif: "Noto Serif", Georgia, "Noto Serif JP", serif; --sans: "Inter", "Helvetica Neue", Arial, "Noto Sans JP", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 3px; border-radius: 6px; }

/* 文節改行（phrase.js が .bx-on を付ける）・行の長さをそろえる */
.bx-on { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- 見出しの部品 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--indigo-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--shu); }
.eyebrow-inv { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
h1 { font-size: clamp(38px, 5.1vw, 68px); line-height: 1.24; letter-spacing: .01em; }
h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.32; letter-spacing: .01em; }
h3 { font-size: 22px; line-height: 1.45; }
html[lang="en"] h1 { letter-spacing: -.015em; line-height: 1.12; }
html[lang="en"] h2 { letter-spacing: -.01em; line-height: 1.2; }
.lead { margin: 22px 0 0; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.95; color: var(--ink-2); max-width: 36em; }
.center { text-align: center; }
.sec-head { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.sec-head .lead { margin-left: auto; margin-right: auto; }
.sec-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--indigo); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 10px 24px -10px rgba(31, 58, 96, .55); }
.btn-ink:hover { background: #18304f; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 16px 30px -12px rgba(31, 58, 96, .6); }
.btn-line { border: 1px solid #cfc7b6; color: var(--ink); background: rgba(255, 253, 248, .6); }
.btn-line:hover { border-color: var(--indigo); color: var(--indigo); background: var(--paper); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.cta-row.center { justify-content: center; }
.note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); letter-spacing: .04em; }
.note::before { content: "✓"; margin-right: 8px; color: var(--indigo-2); font-weight: 700; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--indigo); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tlink svg { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- ナビ ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(246, 243, 236, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 30px; margin-left: 24px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 248, .7); }
.lang button { height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; letter-spacing: .02em; }
.lang button.on { background: var(--ink); color: #fff; }

/* ---------- ヒーロー ---------- */
/* 見出しと CTA は中央、その下に製品の画面を大きく（検索の画面の右前に AI の画面を重ねる） */
.hero { position: relative; padding: 176px 0 120px; overflow: hidden; }
.hero-wash { position: absolute; inset: 0; background: url("/static/intro/bg-hero.webp") right 38% / 78% auto no-repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 62%); mask-image: linear-gradient(90deg, transparent 18%, #000 62%); pointer-events: none; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-copy { text-align: center; max-width: 900px; }
.hero-copy .lead { margin-left: auto; margin-right: auto; max-width: 34em; }
.hero-copy .cta-row { justify-content: center; }
.hero-visual { position: relative; width: 100%; max-width: 1120px; margin-top: 84px; padding: 0 12% 6% 0; }
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid rgba(22, 26, 34, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 50px 90px -40px rgba(13, 26, 46, .45), 0 18px 36px -18px rgba(13, 26, 46, .22); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #f8f6f1; border-bottom: 1px solid var(--line-2); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcd6ca; }
.frame-bar span { flex: 1; margin: 0 32px 0 18px; height: 22px; line-height: 22px; border-radius: 6px; background: #efece5; color: var(--faint); font: 500 11.5px var(--latin); text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; letter-spacing: .01em; }
.frame-back { transform: none; }
.frame-front { position: absolute; right: 0; bottom: 0; width: 52%; transform: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 60px 100px -36px rgba(13, 26, 46, .55), 0 22px 40px -20px rgba(13, 26, 46, .3); }
.chip { position: absolute; left: 4%; bottom: 2%; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 18px 36px -16px rgba(13, 26, 46, .35); font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--indigo); color: #fff; stroke-width: 2.6; }

/* ---------- 数字 ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .55); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 40px 28px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; line-height: 1.1; color: var(--indigo); letter-spacing: .01em; font-variant-numeric: lining-nums; }
.stat b small { margin-left: 4px; font-size: .42em; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.stat > span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); letter-spacing: .05em; }

/* ---------- セクション ---------- */
.sec { padding: 136px 0; }
.sec-paper { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pcard { position: relative; display: flex; flex-direction: column; padding: 44px 44px 0; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.pcard:hover { transform: translateY(-4px); border-color: #d6cebd; box-shadow: 0 40px 70px -40px rgba(13, 26, 46, .35); }
.pno { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--kin); letter-spacing: .1em; }
.pcard h3 { margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); }
.pcard p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.plink { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 14.5px; color: var(--indigo); }
.plink svg { width: 16px; height: 16px; stroke-width: 2; transition: transform .3s var(--ease); }
.pcard:hover .plink svg { transform: translateX(4px); }
.pshot { margin: 40px -8px 0 0; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -2px 30px -12px rgba(13, 26, 46, .2); transform: translateY(8px); transition: transform .5s var(--ease); }
.pcard:hover .pshot { transform: translateY(0); }
.pshot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; width: 100%; }
.pcard-ai { background: linear-gradient(180deg, #fffdf8 0%, #f3f5f9 100%); }

.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 80px; align-items: center; }
.split-rev .split-copy { order: 2; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.feats li { display: flex; gap: 16px; align-items: flex-start; }
.feats svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); stroke-width: 1.7; }
.feats b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; }
.feats p { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.split-visual .frame { transform: none; }

/* ---------- 司法試験 ---------- */
.bench { position: relative; padding: 136px 0; color: #f2eee6; background: var(--deep); overflow: hidden; isolation: isolate; }
.bench::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(13, 26, 46, .97) 20%, rgba(13, 26, 46, .78) 100%), url("/static/intro/bg-band.webp") center / cover; }
.bench h2 { color: #fbf8f1; }
.bench .lead { color: rgba(242, 238, 230, .78); }
.bench-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.bench-card { padding: 44px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; backdrop-filter: blur(6px); }
.score { display: flex; align-items: baseline; gap: 12px; }
.score b { font-family: var(--serif); font-size: clamp(72px, 8vw, 112px); font-weight: 600; line-height: .95; color: #fff; letter-spacing: -.01em; }
.score span { font-family: var(--serif); font-size: 28px; color: rgba(255, 255, 255, .6); }
.score em { font-style: normal; font-size: 16px; color: rgba(255, 255, 255, .6); }
.bars { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: 4.5em 1fr 5em; gap: 16px; align-items: center; font-size: 14.5px; }
.bars span { color: rgba(255, 255, 255, .78); }
.bars i { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #b8955a, var(--gold) 60%, #ecd8a6); }
.bars b { text-align: right; font-family: var(--latin); font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.bench-more { display: inline-block; margin-top: 18px; color: var(--gold); font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(210, 176, 108, .45); padding-bottom: 2px; }
.bench-more:hover { color: #ecd8a6; border-bottom-color: #ecd8a6; }
.fine { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .55); }

/* ---------- しくみ・データ・利用者 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 40px 36px 8px 0; }
.steps li + li { padding-left: 36px; border-left: 1px solid var(--line); }
.sno { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; color: #d9d1c0; font-weight: 600; margin-bottom: 22px; }
.steps b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.srcs { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.srcs li { padding: 32px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .5); }
.srcs b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--indigo); font-variant-numeric: lining-nums; letter-spacing: .01em; }
.srcs span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.total { margin: 0 auto 44px; text-align: center; }
.total b { display: block; font-family: var(--serif); font-size: clamp(64px, 9vw, 120px); font-weight: 600; line-height: 1; color: var(--indigo); letter-spacing: .01em; font-variant-numeric: lining-nums; }
.total span { display: block; max-width: 30em; margin: 22px auto 0; font-size: clamp(15px, 1.3vw, 17px); color: var(--ink-2); line-height: 1.9; }
.src-lead { margin: 0 auto 36px; }
.auds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { padding: 32px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); }
.aud b { display: block; font-family: var(--serif); font-size: 18.5px; font-weight: 600; }
.aud b::after { content: ""; display: block; width: 22px; height: 2px; margin-top: 14px; background: var(--shu); }
.aud p { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.85; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; padding: 26px 48px 26px 0; font-family: var(--serif); font-size: 18.5px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.6px; background: var(--ink-2); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: -6px 0 0; padding: 0 48px 28px 0; color: var(--ink-2); line-height: 1.95; }

/* ---------- 最後・フッター ---------- */
.end { position: relative; padding: 150px 0; text-align: center; overflow: hidden; }
.end-wash { position: absolute; inset: 0; background: url("/static/intro/bg-hero.webp") center / cover no-repeat; opacity: .32; transform: scaleX(-1);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.end-in { position: relative; }
.end .lead { margin-left: auto; margin-right: auto; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--muted); }
.foot-links a:hover { color: var(--indigo); }

/* ---------- 現れる（スクロール連動。対応しないブラウザでは最初から表示） ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    .bars i::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- 画面幅 ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero { padding: 132px 0 88px; }
  .split, .bench-in { grid-template-columns: 1fr; gap: 56px; }
  .hero-wash { background-size: 120% auto; background-position: right 70%; }
  .hero-visual { margin-top: 64px; }
  .split-rev .split-copy { order: 0; }
  .auds { grid-template-columns: 1fr 1fr; }
  .sec, .bench { padding: 104px 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-in { height: 64px; gap: 12px; }
  .brand span { display: none; }
  .nav-r { gap: 8px; }
  .lang button { padding: 0 9px; }
  .btn-sm { padding: 0 14px; }
  .hero { padding: 112px 0 72px; }
  h1 { font-size: clamp(29px, 8.4vw, 36px); }
  .lead { font-size: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .hero-visual { margin-top: 48px; padding: 0 6% 18% 0; }
  .frame-front { width: 66%; }
  .chip { left: 0; bottom: 0; padding: 9px 14px 9px 10px; font-size: 12px; }
  .frame-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .frame-bar i { width: 7px; height: 7px; }
  .frame-bar span { height: 16px; line-height: 16px; font-size: 9.5px; margin: 0 10px; }
  .stat { padding: 26px 6px; }
  .stat b { font-size: clamp(24px, 7.4vw, 32px); }
  .stat > span { font-size: 11.5px; letter-spacing: .02em; }
  .sec, .bench { padding: 84px 0; }
  .sec-head { margin-bottom: 44px; }
  .cards2, .feats, .auds, .steps, .srcs { grid-template-columns: 1fr; }
  .pcard { padding: 32px 26px 0; }
  .steps li, .steps li + li { padding: 30px 0 22px; border-left: 0; border-top: 1px solid var(--line); }
  .steps { border-top: 0; }
  .srcs li { padding: 24px 22px; }
  .bench-card { padding: 30px 24px; }
  .bars li { grid-template-columns: 3.6em 1fr 4.6em; gap: 12px; }
  .end { padding: 104px 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
