:root {
  --ink: #182830;
  --ink-soft: #465459;
  --paper: #f3f0e6;
  --paper-light: #f8f5ec;
  --paper-deep: #eae8df;
  --indigo: #1d3461;
  --pine: #355c4d;
  --vermilion: #8b2d26;
  --line: rgba(24, 40, 48, .16);
  /* 五色取佛画颜料本色（岩彩原色）：胡粉、群青、雌黄、辰砂、石绿 */
  --white-five: #fbf8f0;
  --blue-five: #1f4fa8;
  --yellow-five: #e8b41c;
  --red-five: #cf3528;
  --green-five: #1e8a5a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --title-serif: "Zhuque Fangsong", "Noto Serif SC", "Songti SC", serif;
  --latin: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Yu Gothic", sans-serif;
  --mono: "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  /* 英文小标签（01 / ORIGIN 等）：衬线小型大写，学术书籍章节样式 */
  --label: "Source Serif 4", "Noto Serif SC", serif;
  --quote-kai: "LXGW WenKai Screen", "Kaiti SC", "STKaiti", "KaiTi", var(--serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.image-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 12%, rgba(255,255,250,.54), transparent 30%),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-light) 48%, var(--paper-deep) 100%);
}
/* 原有细方格纹已去掉（2026-11-09），只留纸色渐变 */
.page::before {
  content: none;
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24,40,48,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,40,48,.025) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;   /* 导航在字标与语言切换之间的空当里居中（2026-11-11，导航增为六项） */
  align-items: center;
  min-height: 88px;
  padding: 10px clamp(28px, 4.5vw, 76px) 2px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
/* 页头左上角（标志＋名称）的样式在 字标.css，五页共用 */
nav { display: flex; gap: clamp(24px, 3vw, 46px); color: var(--ink-soft); font-size: 12px; letter-spacing: .08em; transform: translateY(8px); }
nav a, .langs a { position: relative; padding: 12px 0 10px; }
nav a::after, .langs a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s ease;
}
nav a:hover::after, nav a:focus-visible::after, .langs a:hover::after, .langs a:focus-visible::after { transform: scaleX(1); }
.langs { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-family: var(--serif); font-size: 12px; letter-spacing: .08em; transform: translateY(8px); }
.langs i { opacity: .7; font-style: normal; }

main { position: relative; z-index: 2; }
.hero {
  position: relative;
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 clamp(30px, 4.2vw, 54px);
  text-align: center;
}
.eyebrow { margin: 0 0 10px; color: var(--vermilion); font-family: var(--label); font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; text-transform: none; font-weight: 400; font-size: 14px; letter-spacing: .16em; }
.hero-title { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; }
h1 { margin: 0; color: var(--indigo); font-family: var(--title-serif); font-size: clamp(32px, 4.5vw, 56px); font-weight: 400; letter-spacing: .17em; line-height: 1.16; }
.hero-title h1 { margin-right: -.17em; } /* 抵消末字后的字距：五色圆点两端对齐标题首尾两字，标题也真正居中 */
.hero-colors { display: flex; justify-content: space-between; width: 100%; }
.hero-colors i { display: block; width: 6px; height: 6px; border: 1px solid transparent; border-radius: 50%; }
.hero-colors i:nth-child(1) { background: var(--white-five); border-color: rgba(24,40,48,.18); }
.hero-colors i:nth-child(2) { background: var(--blue-five); }
.hero-colors i:nth-child(3) { background: var(--yellow-five); }
.hero-colors i:nth-child(4) { background: var(--red-five); }
.hero-colors i:nth-child(5) { background: var(--green-five); }
/* 标题下的经文（题辞）：楷体居中，两半句之间可换行；出处另起一行，朱色小字。
 * 用法：<figure class="hero-quote"><blockquote><p>…</p></blockquote><figcaption>——《…》<span class="cite-no">（T…）</span></figcaption></figure>
 * 两段经文时放两个 .hero-quote，第二段自动隔开。 */
.hero-quote { max-width: 34em; margin: clamp(26px, 3.2vw, 36px) auto 0; }
.hero-quote + .hero-quote { margin-top: 20px; }
/* 词组不断行（经文半句、流程标签等用 <span class="nb">） */
.nb { white-space: nowrap; }
/* 日文版：标题比中文长，略缩字号与字距；小标题列放宽到 340px（2026-11-10） */
html[lang="ja"] h2 { font-size: clamp(22px, 2.5vw, 30px); letter-spacing: .06em; }
@media (min-width: 961px) {
  html[lang="ja"] main:not(:has(.process-grid)) .section-inner,
  html[lang="en"] main:not(:has(.process-grid)) .section-inner { grid-template-columns: minmax(200px, 340px) minmax(0, 544px); }   /* 英文标题同样较长（2026-11-11） */
}
/* 标题下的工坊题语（委托咨询）：与经文同用楷体居中，但不加引号、不标出处，以免被误认为经文 */
.hero-motto { max-width: 34em; margin: clamp(26px, 3.2vw, 36px) auto 0; color: #3b4b52; font-family: var(--quote-kai); font-size: 18px; letter-spacing: .1em; line-height: 1.8; }
.hero-quote blockquote { margin: 0; }
.hero-quote p { margin: 0; color: #3b4b52; font-family: var(--quote-kai); font-size: 18px; letter-spacing: .1em; line-height: 1.8; }
/* 日文版：Klee One 400 比中文版的霞鹜文楷细得多，改用 600；日文句子长，字距收紧、行宽放宽，
 * 短的经文在宽屏上排成一行（长句仍按 .nb 在半句处换行） */
html[lang="ja"] .hero-quote { max-width: 46em; }   /* figure 的 em 按 16px 计，约 736px */
html[lang="ja"] .hero-motto { max-width: 42em; }   /* 按 18px 计，约 756px */
html[lang="ja"] .hero-quote p, html[lang="ja"] .hero-motto { font-weight: 600; letter-spacing: .05em; }
@media (max-width: 359px) {   /* 320px 级小屏：最长的半句（约 18 字）也排得下 */
  html[lang="ja"] .hero-quote p, html[lang="ja"] .hero-motto { font-size: 14px; letter-spacing: 0; }
}
.hero-quote figcaption { margin-top: 4px; color: var(--vermilion); font-family: var(--serif); font-size: 12.5px; letter-spacing: .06em; }
.hero-quote .cite-no { font-family: var(--label); font-variant-numeric: oldstyle-nums; letter-spacing: .03em; white-space: nowrap; }

.content-section { border-top: 1px solid rgba(24,40,48,.09); }
.content-section.tint { background: rgba(255,255,255,.14); }
.content-section.pine-wash { background: rgba(53,92,77,.025); }
.section-inner {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr);
  gap: clamp(18px, 2.8vw, 36px);
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) 0;
}
/* 宽屏居中（2026-11-09）：正文限 34em，原来外框多出的宽度全落在右侧，整体偏左。
 * 改为「小标题列＋正文列」作为一组居中：小标题列最宽 300px，正文列 544px（＝正文 34em × 16px，
 * 各节一律同宽，表单节也不例外，免得各节小标题左右错位）。
 * 平板单列（≤960px）同理：外框收到正文宽度，小标题与正文一起居中（≤820px 正文 15.5px，34em＝527px）。
 * 「如法绘制」有图文并排的宽区块（.process-grid）占满外框，整页本已左右均衡；
 * 若只让其中的纯文字节居中，各节小标题会左右错位，所以电脑宽度下含 .process-grid 的页面保持原排法。
 * 平板单列（≤960px）时，「如法绘制」的图文区块也改为上下单列，与纯文字节同宽，整页一起居中。 */
@media (min-width: 961px) {
  main:not(:has(.process-grid)) .section-inner { grid-template-columns: minmax(200px, 300px) minmax(0, 544px); justify-content: center; }
}
@media (max-width: 960px) {
  main .section-inner { width: min(100% - 36px, 544px); }
  .section-copy.process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  main .section-inner { width: min(100% - 36px, 527px); }
}
.section-label { position: relative; align-self: start; padding-left: 18px; }
/* 受理开关（2026-11-09）：页面 <body data-intake="closed|preview|open">。
 * closed ＝暂不受理：隐藏表单节（.intake-form），显示「受理状况」节（.intake-status）。
 * preview＝暂不受理，但表单节照常显示供人了解形式：表单变淡、不能填写（语言.js 第 5 节加 inert 并停用各栏），
 *          表单上方显示 .intake-preview 说明；「受理状况」节隐藏，免得与说明重复。
 * open   ＝开放受理：表单可用，一切「暂不受理」文字隐藏。
 * 文字层面：.intake-open（提到表单的说法）只在 open 显示；.intake-closed（只用电子邮件等说法）在 closed、preview 显示。 */
[data-intake="closed"] .intake-open,
[data-intake="preview"] .intake-open { display: none !important; }
[data-intake="open"] .intake-closed, body:not([data-intake]) .intake-closed { display: none !important; }
[data-intake="closed"] .intake-form,
[data-intake="preview"] .intake-status { display: none !important; }
.section-copy .intake-preview { display: none; }
[data-intake="preview"] .section-copy .intake-preview { display: block; margin: 0 0 24px; padding: 14px 18px; border-left: 2px solid var(--vermilion); background: rgba(139,45,38,.05); color: var(--ink); font-size: 15px; line-height: 1.85; }
[data-intake="preview"] .intake-form form { opacity: .5; cursor: not-allowed; user-select: none; }
.section-label::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 3px; width: 1px; background: rgba(139,45,38,.8); }
.section-no { display: block; margin-bottom: 12px; color: var(--vermilion); font-family: var(--label); font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; text-transform: none; font-weight: 400; font-size: 14px; letter-spacing: .14em; }
h2 { margin: 0; color: var(--indigo); font-family: var(--title-serif); font-size: clamp(24px, 3.1vw, 38px); font-weight: 400; letter-spacing: .16em; line-height: 1.32; }
/* 正文：一行约 34 字，两端对齐，像书页一样整齐（2026-11-09） */
.section-copy { max-width: 34em; color: #33474f; /* 与首页愿文同色 */ font-family: var(--serif); font-size: 16px; font-weight: 400; letter-spacing: .04em; line-height: 1.95; text-align: justify; text-justify: inter-character; }
.section-copy.process-grid { max-width: none; }
.section-copy p { margin: 0 0 .72em; }
.section-copy p:last-child { margin-bottom: 0; }
.lead { color: var(--ink); font-size: 16.5px; line-height: 1.82; }
.subhead { margin: 0 0 10px; color: var(--pine); font-family: var(--title-serif); font-size: 21px; font-weight: 400; letter-spacing: .1em; }

.process-grid { display: grid; grid-template-columns: minmax(280px, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 3vw, 34px); align-items: center; }
/* 图像区域保持原尺寸与比例（--ratio 为原图宽高），图片缩至 80% 居中其中 */
.process-figure { --image-scale: 80%; position: relative; display: grid; place-items: center; box-sizing: border-box; width: 100%; max-width: 100%; aspect-ratio: var(--ratio, auto); margin: 0; overflow: hidden; border: 1px solid rgba(53,92,77,.2); background: rgba(248,245,236,.78); }
.process-figure--mat { background: rgba(248,245,236,.78); }
/* 版权标注以此框为定位基准，随缩小后的图片一起贴在其左下角 */
.figure-frame { position: relative; display: block; width: var(--image-scale); max-width: 100%; }
.process-figure img,
.process-figure.landscape img,
.process-figure--cover img,
.process-figure--mat img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; border: 0; background: transparent; }
.image-credit { position: absolute; bottom: 8px; left: 9px; max-width: calc(100% - 18px); box-sizing: border-box; padding: 3px 8px; background: rgba(24,40,48,.72); color: rgba(255,255,255,.9); font-family: var(--sans); font-size: 12px; text-align: left; letter-spacing: .04em; line-height: 1.45; }
.step-mark { display: inline-block; margin-bottom: 10px; color: var(--vermilion); font-family: var(--label); font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; text-transform: none; font-weight: 400; font-size: 14px; letter-spacing: .14em; }
/* 图片版权标注里的附注（如「經相關寺院同意公開」）用正文的宋体，另起一行（2026-11-11：原与名称同排，窄图上折成不齐的两行） */
.image-credit .credit-note { display: block; font-family: var(--serif); }
/* 朱色双线细框（装裱式），与「关于工坊」法师简介一致 */
.copyright-note { padding: 18px 22px; border: 1px solid rgba(139,45,38,.28); background: rgba(255,255,255,.32); box-shadow: inset 0 0 0 5px rgba(248,245,236,.9), inset 0 0 0 6px rgba(139,45,38,.16); color: var(--ink-soft); font-family: var(--sans); font-size: 12px; line-height: 1.75; text-align: left; }

/* 正文与表单中的文字链接（隐私政策、邮箱等） */
.text-link, .mail-link { color: var(--pine); border-bottom: 1px solid rgba(53,92,77,.32); transition: color .2s ease, border-color .2s ease; }
.text-link:hover, .mail-link:hover { color: var(--vermilion); border-color: var(--vermilion); }

/* 条目：去底色与外框，上方一道细线（2026-11-09） */
.notice { margin-top: 26px; padding: 22px 0 0; border-top: 1px solid rgba(24,40,48,.14); background: transparent; }
.notice h3 { margin: 0 0 10px; color: var(--indigo); font-family: var(--title-serif); font-size: 19px; font-weight: 400; letter-spacing: .1em; }
.notice ul, .editorial-list, .criteria-list { margin: 0; padding: 0; list-style: none; }
.notice li, .editorial-list li, .criteria-list li { position: relative; padding-left: 17px; }
.notice li + li, .editorial-list li + li, .criteria-list li + li { margin-top: 7px; }
/* 委托流程：一行五步，手机上改为竖排 */
/* 委托流程：六步排成一行（编号圆圈以细线相连，名称在下）；手机上竖排 */
.flow-box { margin-top: 26px; padding: 22px 0 0; border-top: 1px solid rgba(24,40,48,.14); }
.flow-box h3 { margin: 0 0 16px; color: var(--indigo); font-family: var(--title-serif); font-size: 19px; font-weight: 400; letter-spacing: .1em; }
.flow-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
.flow-steps li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 2px; color: var(--ink); font-size: 13px; letter-spacing: 0; line-height: 1.55; }
.flow-steps .nb { white-space: nowrap; }
.flow-steps li + li::before { content: ""; position: absolute; top: 12px; left: calc(-50% + 19px); right: calc(50% + 19px); height: 1px; background: rgba(139,45,38,.4); }
.step-no { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; margin: 0 0 9px; border: 1px solid rgba(139,45,38,.5); border-radius: 50%; color: var(--vermilion); font-family: var(--label); font-size: 13px; font-variant-numeric: lining-nums; letter-spacing: 0; line-height: 1; }
.notice li::before, .criteria-list li::before { content: ""; position: absolute; top: .86em; left: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--vermilion); }
.editorial-list { counter-reset: lesson; }
.editorial-list li { counter-increment: lesson; padding: 12px 0 12px 42px; border-top: 1px solid var(--line); }
.editorial-list li:last-child { border-bottom: 1px solid var(--line); }
.editorial-list li::before { content: counter(lesson, decimal-leading-zero); position: absolute; left: 0; top: 12px; color: var(--vermilion); font-family: var(--label); font-size: 13px; font-variant-numeric: oldstyle-nums; letter-spacing: .1em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.16); }
.fact small { display: block; margin-bottom: 5px; color: var(--vermilion); font-family: var(--label); font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; text-transform: none; font-weight: 400; font-size: 13px; letter-spacing: .12em; }
.fact strong { color: var(--ink); font-family: var(--serif); font-size: 14px; font-weight: 400; }

.inquiry-form { margin-top: 10px; padding: clamp(18px, 2.8vw, 30px); border: 1px solid rgba(53,92,77,.22); background: rgba(248,245,236,.78); }
.form-group + .form-group { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-group h3 { margin: 0 0 14px; color: var(--pine); font-family: var(--title-serif); font-size: 20px; font-weight: 400; letter-spacing: .1em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .choice-title { color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.tag { margin-left: 6px; color: var(--vermilion); font-size: 12px; font-weight: 400; }
.tag.optional { color: var(--pine); }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(53,92,77,.28);
  border-radius: 0;
  outline: 0;
  background: rgba(255,255,255,.42);
  color: var(--ink);
  padding: 10px 11px;
  font-family: var(--sans);
  font-size: 12px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
textarea { min-height: 105px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--vermilion); background: rgba(255,255,255,.7); box-shadow: 0 0 0 2px rgba(139,45,38,.08); }
input[type="file"] { padding: 8px; color: var(--ink-soft); }
/* 上传按钮：隐藏浏览器自带控件（其文字随浏览器语言变化），改用与页面一致的按钮 */
.file-picker { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 7px 8px; border: 1px solid rgba(53,92,77,.28); background: rgba(255,255,255,.42); }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.file-button { flex: 0 0 auto; padding: 5px 13px; border: 1px solid var(--pine); color: var(--pine); font-family: var(--sans); font-size: 12px; letter-spacing: .1em; cursor: pointer; transition: background .2s ease, color .2s ease; }
.file-button:hover, .file-input:focus-visible + .file-button { background: var(--pine); color: #fff; }
.file-name { min-width: 0; overflow: hidden; color: var(--ink-soft); font-family: var(--sans); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.helper { margin: 0; color: rgba(70,84,89,.85); font-family: var(--sans); font-size: 12px; line-height: 1.7; text-align: left; }
.check { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; color: var(--ink-soft); font-family: var(--sans); font-size: 12px; line-height: 1.7; text-align: left; }
.check input { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; accent-color: var(--vermilion); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.submit-button { border: 1px solid var(--vermilion); background: var(--vermilion); color: #fff; padding: 11px 26px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; cursor: pointer; transition: background .2s ease, color .2s ease; }
.submit-button:hover { background: transparent; color: var(--vermilion); }
.form-status { color: var(--pine); font-family: var(--sans); font-size: 12px; line-height: 1.6; }

.next-page { position: relative; background: var(--paper-light); }
.next-page::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 100%;
  height: 6px;
  background: radial-gradient(circle at center, transparent 0 1.65px, rgba(53,92,77,.25) 1.75px 2.25px, transparent 2.35px) 0 0 / 15px 6px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.next-link { display: flex; align-items: center; justify-content: space-between; width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 22px 0; }
.next-link small { display: block; margin-bottom: 8px; color: var(--vermilion); font-family: var(--label); font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; text-transform: none; font-weight: 400; font-size: 13px; letter-spacing: .16em; }
.next-link strong { font-family: var(--title-serif); font-size: 30px; font-weight: 400; letter-spacing: .13em; }
.next-link b { color: var(--vermilion); font-family: var(--latin); font-size: 26px; font-weight: 400; transition: transform .25s ease; }
.next-link:hover b { transform: translateX(8px); }

footer { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "nav nav" "main links"; align-items: center; column-gap: 26px; row-gap: 7px; padding: 10px clamp(28px, 4.5vw, 76px) 9px; background: var(--ink); color: rgba(255,255,255,.72); font-family: var(--latin); font-size: 12px; letter-spacing: .05em; }
.footer-nav { grid-area: nav; display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 42px); padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-nav a { position: relative; padding: 2px 0 5px; color: rgba(255,255,255,.76); letter-spacing: .1em; white-space: nowrap; }
.footer-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--vermilion); transform: scaleX(0); transform-origin: left center; transition: transform .28s ease; }
.footer-nav a:hover::after, .footer-nav a:focus-visible::after { transform: scaleX(1); }
.footer-main { grid-area: main; display: flex; flex: 0 0 auto; }
.footer-links { grid-area: links; display: flex; flex: 1 1 auto; flex-wrap: nowrap; gap: 22px; margin: 0; padding: 0; border: 0; }
/* 电脑：第二行（© 与政策链接）整组居中，与上方居中的页脚导航同一中轴（2026-11-11） */
@media (min-width: 961px) {
  footer { grid-template-columns: 1fr auto auto 1fr; grid-template-areas: "nav nav nav nav" ". main links ."; }
}

@media (max-width: 960px) {
  header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .section-inner { grid-template-columns: 1fr; gap: 12px; }
  .section-label { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-left: 15px; }
  .section-label::before { top: 1px; bottom: 1px; }
  .section-no { margin: 0; }
}
@media (max-width: 820px) {
  header { min-height: 80px; padding: 10px 20px 2px; }
  .hero, .section-inner, .next-link { width: min(100% - 36px, 620px); }
  .hero { padding: 30px 0 26px; }
  .hero-quote { margin-top: 22px; }
  .hero-quote p { font-size: 15.5px; letter-spacing: .05em; }
  .hero-motto { margin-top: 22px; font-size: 15.5px; letter-spacing: .05em; }
  html[lang="ja"] .hero-quote p, html[lang="ja"] .hero-motto { letter-spacing: .02em; }
  .hero-quote figcaption { font-size: 12px; }
  .section-inner { gap: 14px; padding: 40px 0; }
  .section-copy { font-size: 15.5px; line-height: 1.9; }
  .process-grid { grid-template-columns: 1fr; }
  .field-grid, .facts { grid-template-columns: 1fr; }
  footer { display: grid; grid-template-columns: 1fr; grid-template-areas: "nav" "main" "links"; gap: 0; padding: 12px 20px; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; gap: 5px 20px; padding-bottom: 8px; }
  .footer-main { display: grid; gap: 5px; padding-top: 7px; }
  .footer-links { flex-wrap: wrap; gap: 7px 15px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 520px) {
  .langs { gap: 5px; }
  .flow-steps { grid-template-columns: 1fr; text-align: left; }
  .flow-steps li { flex-direction: row; padding: 0; }
  .flow-steps li + li { margin-top: 8px; }
  .flow-steps li + li::before { content: none; }
  .step-no { margin: 0 10px 0 0; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}
