/* pa-recruit — 「静かな紙面」。応募者第一の読みやすさ、JS なし、依存は Google Fonts のみ。
   既定は明るい紙色（スマホの屋外でも読める）。端末がダーク設定なら自動で切替。 */
:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --panel: #fffdf9;
  --ink: #1b1a17;
  --ink-2: #3d3a34;
  --muted: #625d54;
  --line: #ddd6c9;
  --line-2: #cfc6b5;
  --indigo: #264a73;
  --indigo-ink: #ffffff;
  --vermilion: #b0461f;
  --vermilion-ink: #ffffff;
  --note-bg: #fbf3dc;
  --note-line: #e2c97f;
  --badge-bg: #a7361f;
  --shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 8px 24px rgba(27, 26, 23, .06);
  --measure: 44rem;
  --wide: 68rem;
  --fs: 1.0625rem;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDPMincho", "Noto Serif JP", serif;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15161a;
    --paper-2: #1c1e23;
    --panel: #1f2126;
    --ink: #ebe7df;
    --ink-2: #d3cec4;
    --muted: #a8a196;
    --line: #33363d;
    --line-2: #43474f;
    --indigo: #8fb2dc;
    --indigo-ink: #0f1a27;
    --vermilion: #e08a6c;
    --vermilion-ink: #21120c;
    --note-bg: #2a2616;
    --note-line: #7d6a2f;
    --badge-bg: #b94a31;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
@media (min-width: 52rem) { :root { --fs: 1.125rem; } }

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs);
  line-height: 1.9;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.1rem; }
.page .wrap { max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: .5rem 1rem; z-index: 20; }
:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--paper); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: .6rem 1rem; min-height: 3.6rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; margin-right: auto; padding: .4rem 0; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; white-space: nowrap; }
.brand-tag { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.site-nav { display: none; gap: .1rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; padding: .55rem .6rem; border-radius: .3rem; white-space: nowrap; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--indigo); }
.pill { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .95rem; border-radius: 999px; border: 1.5px solid var(--indigo); color: var(--indigo); text-decoration: none; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.pill:hover { background: var(--indigo); color: var(--indigo-ink); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 .7rem; border-radius: .4rem; font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--paper-2); }
.menu-icon { width: 1.1rem; height: .8rem; background: linear-gradient(var(--ink-2) 0 2px, transparent 2px 5px, var(--ink-2) 5px 7px, transparent 7px 10px, var(--ink-2) 10px 12px) no-repeat; background-size: 100% 100%; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 16rem; max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; box-shadow: var(--shadow); padding: .5rem; display: flex; flex-direction: column; }
.menu-head { margin: .5rem .8rem .15rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.menu-head + a { border-top: 0; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: .6rem .8rem; border-radius: .4rem; font-size: .98rem; }
.menu-panel a:hover { background: var(--paper-2); }
.menu-panel a[aria-current="page"] { color: var(--indigo); font-weight: 700; }
@media (min-width: 64rem) {
  .site-nav { display: flex; }
  .menu { display: none; }
}
@media (max-width: 30rem) {
  .brand-tag { display: none; }
  .header-row { gap: .4rem; }
  .pill { font-size: .8rem; padding: 0 .7rem; min-height: 2.6rem; }
  .menu summary { padding: 0 .55rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- 本文（読み物ページ） ---------- */
main { padding: 1.6rem 0 3.2rem; }
.is-landing main, main:has(.landing) { padding-top: 0; }
:target { scroll-margin-top: 5rem; }
.page-header { margin: .6rem 0 1.8rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 4.6vw, 2.2rem); line-height: 1.35; margin: .3rem 0 .5rem; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.badge { display: inline-block; background: var(--badge-bg); color: #fff; font-size: .82rem; font-weight: 700; padding: .12rem .6rem; border-radius: .3rem; letter-spacing: .08em; }
.lead { color: var(--muted); margin: 0; font-size: 1.02em; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.32rem, 3.4vw, 1.55rem); line-height: 1.4; margin: 2.4rem 0 .8rem; padding-top: .4rem; position: relative; }
h2::before { content: ""; display: block; width: 2.2rem; height: 3px; background: var(--vermilion); margin-bottom: .55rem; }
h3 { font-size: 1.12rem; margin: 1.7rem 0 .5rem; font-weight: 700; }
h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }
li { margin: .3rem 0; }
li::marker { color: var(--indigo); }
a { color: var(--indigo); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: .5rem; padding: .85rem 1rem; margin: 1rem 0 1.3rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.3rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.7; }
th, td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; }
tbody th { width: 11em; white-space: nowrap; }
@media (max-width: 40rem) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: .5rem; margin: 0 0 .6rem; overflow: hidden; background: var(--panel); }
  .table-wrap th, .table-wrap td { border: 0; }
  .table-wrap tbody th { background: var(--paper-2); font-size: .92rem; padding: .4rem .75rem; white-space: normal; }
  .table-wrap td { padding: .55rem .75rem .7rem; }
}
.small { font-size: .9rem; color: var(--muted); }

/* ---------- ボタン・カード ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; background: var(--vermilion); color: var(--vermilion-ink); text-decoration: none; font-weight: 700; padding: .55rem 1.35rem; border-radius: .45rem; margin: .3rem .5rem .5rem 0; border: 1.5px solid transparent; }
.btn:hover { filter: brightness(1.07); }
.btn.secondary { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn.secondary:hover { background: var(--indigo); color: var(--indigo-ink); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .2rem .4rem; align-items: center; margin: .6rem 0 .4rem; }
.cards { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 0 0 1.3rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.card:hover { border-color: var(--indigo); }
.card .t { font-weight: 700; display: block; }
.card .d { color: var(--muted); font-size: .92rem; display: block; margin-top: .2rem; }



/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.4rem; color: var(--muted); font-size: .93rem; background: var(--paper-2); }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-title { color: var(--ink); font-weight: 700; margin: 0 0 .4rem; }
.site-footer p { margin: 0 0 .35rem; }
.foot-nav { display: flex; flex-direction: column; }
.foot-nav a { color: var(--ink-2); text-decoration: none; padding: .3rem 0; }
.foot-nav a:hover { color: var(--indigo); text-decoration: underline; }
.copyright { margin-top: 1.6rem; }
.foot-inline { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .6rem; }
.foot-inline a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.foot-inline a:hover { color: var(--indigo); text-decoration: underline; }

@media print {
  .site-header, .site-footer, .btn, .pill, .menu { display: none; }
  body { font-size: 11pt; background: #fff; color: #000; }
  a { color: #000; }
}

/* ---------- 利用者について ---------- */
.about-photo { margin: 0 0 1.6rem; }
.about-photo img { width: 100%; max-width: 20rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .6rem; box-shadow: var(--shadow); }
.about-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- ホームの挨拶（案C の型・簡素） ---------- */
.landing .page-header { margin-top: 1.4rem; }
.greeting { max-width: var(--measure); margin: 0 0 1rem; }
.greeting-head { display: flex; align-items: center; gap: 1.1rem; margin: .4rem 0 1rem; }
.greeting-head img { width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel); box-shadow: var(--shadow); flex: 0 0 auto; }
.greeting-head h2 { margin: 0; padding-top: 0; font-size: clamp(1.25rem, 3.2vw, 1.5rem); }
.greeting-head h2::before { display: none; }
.greeting-name { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.greeting-body { font-family: var(--serif); font-size: 1.06em; line-height: 2; }
.greeting-body p { margin: 0 0 1em; text-indent: 1em; }
.greeting-body .greeting-sign { text-align: right; text-indent: 0; font-family: var(--sans); font-size: .92rem; color: var(--muted); }
.landing h2 { max-width: var(--measure); }
.landing p, .landing ul, .landing ol { max-width: var(--measure); }
@media (min-width: 40rem) { .greeting-head img { width: 8rem; height: 8rem; } }

/* ---------- 選考フォーム（自前・JS なし） ---------- */
.form fieldset { border: 1px solid var(--line); border-radius: .7rem; padding: 1rem 1.1rem .6rem; margin: 0 0 1.4rem; background: var(--panel); box-shadow: var(--shadow); min-width: 0; }
.form legend { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; padding: 0 .5rem; }
.form .field { margin: .9rem 0 1.1rem; }
.form .q { display: block; font-weight: 700; margin: 0 0 .25rem; }
.form .help { font-size: .92rem; color: var(--muted); margin: 0 0 .5rem; }
.form .req { display: inline-block; color: var(--vermilion); font-size: .78rem; font-weight: 700; margin-left: .4rem; vertical-align: middle; }
.form .opt { display: inline-block; color: var(--muted); font-size: .78rem; margin-left: .4rem; vertical-align: middle; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea { display: block; width: 100%; font: inherit; line-height: 1.6; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: .45rem; background: var(--paper); color: var(--ink); }
.form input[type="number"] { max-width: 10rem; }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 1px; border-color: var(--indigo); }
.form .opts { display: flex; flex-direction: column; gap: .15rem; }
.form .opts label { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .3rem; min-height: 2.6rem; border-radius: .4rem; cursor: pointer; }
.form .opts label:hover { background: var(--paper-2); }
.form input[type="radio"], .form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin: .3rem 0 0; accent-color: var(--indigo); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; min-width: 12rem; }
