/* 本の本文のページとして組む：細い柱（ヘッダー）、字間を広げた欧文の見出し、条ごとの罫、奥付。
   トップ（lp-study.html）と同じ紙と墨の一色。 */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #1B1718;
  --ink-2: #3F383A;
  --rule: #A39C9E;
  --maroon: #671451;
  --tint: #EFECE7;      /* 下書きの印・入力欄 */
  --latin: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--gutter);
  padding-block: 0;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--maroon); outline-offset: 3px;
}

/* 柱 */
.running-head {
  max-width: 680px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px 14px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--latin); font-size: 12px; letter-spacing: .3em;
}
.running-head a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .4em; }
.running-head span { color: var(--ink-2); text-transform: uppercase; text-align: right; }

/* 扉 */
.doc { max-width: 680px; margin: 0 auto; }
.doc-head { padding-block: clamp(48px, 9vw, 80px) 8px; }
.doc-head .eyebrow {
  margin: 0; font-family: var(--latin); font-weight: 700;
  font-size: clamp(13px, 3vw, 16px); letter-spacing: .45em; text-transform: uppercase;
}
.doc-head h1 {
  margin: 14px 0 0; font-size: clamp(26px, 6vw, 36px); font-weight: 700;
  letter-spacing: .12em; line-height: 1.4; text-wrap: balance;
}
.doc-head .meta { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lead { margin: 28px 0 0; max-width: 36em; }

.draft {
  margin: 28px 0 0; padding: 12px 16px;
  background: var(--tint); border-left: 3px solid var(--maroon);
  font-size: 13px; line-height: 1.8;
}
.draft b { color: var(--maroon); letter-spacing: .1em; }
.fill { background: #F3E3C4; padding: 0 .3em; border-radius: 2px; } /* 公開前に埋める所 */

/* 目次 */
.toc { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: none; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: 4.5em 1fr; gap: 12px;
  padding-block: 9px; text-decoration: none; font-size: 14px;
}
.toc a span { font-family: var(--latin); color: var(--ink-2); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.toc a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.toc b { font-weight: 500; }

/* 条 */
.article { padding-block: 44px 0; scroll-margin-top: 16px; }
.article h2 {
  margin: 0 0 14px; display: flex; align-items: baseline; gap: 14px;
  font-size: 18px; font-weight: 700; letter-spacing: .1em; line-height: 1.6;
}
.article h2 small {
  font-family: var(--latin); font-size: 12px; font-weight: 500; letter-spacing: .2em;
  color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums;
}
.article p { margin: 0; max-width: 38em; }
.article p + p, .article p + ul, .article ul + p, .article p + ol, .article ol + p,
.article .table-wrap + p, .article p + .table-wrap { margin-top: 12px; }
.article ul, .article ol { margin: 0; padding-left: 1.4em; max-width: 38em; }
.article li + li { margin-top: 4px; }
.article li::marker { color: var(--ink-2); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
tr:last-child th, tr:last-child td { border-bottom: 1px solid var(--rule); }
th { font-weight: 700; white-space: nowrap; padding-right: 20px; }
td small { display: block; color: var(--ink-2); font-size: 12px; }

/* 手順（退会） */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: baseline;
  padding-block: 14px; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  font-family: var(--latin); font-weight: 700; font-size: 30px; line-height: 1;
}
.path { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.path kbd {
  font: inherit; font-weight: 700; font-size: 13px;
  padding: 1px 10px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper);
}

/* フォーム */
.form { display: grid; gap: 22px; margin-top: 36px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 14px; letter-spacing: .08em; padding: 0; }
.field .req { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--maroon); margin-left: .8em; }
.field .hint { font-size: 12px; color: var(--ink-2); line-height: 1.7; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--rule); border-radius: 2px;
  padding: 10px 12px; line-height: 1.6;
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B1718' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 200px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { font-weight: 500; letter-spacing: .04em; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 2px;
  font-size: 13px; cursor: pointer; background: #FFFFFF;
}
.kinds input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kinds input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.agree { cursor: pointer; display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; }
.agree input { cursor: pointer; flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.agree a { text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.agree a:hover, .agree a:focus-visible { text-decoration: underline; }
.turnstile { min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  justify-self: start;
  font: inherit; font-weight: 700; letter-spacing: .14em;
  padding: 14px 36px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--ink); color: var(--paper); transition: background .2s;
}
.submit:hover:not(:disabled) { background: var(--maroon); }
.submit:disabled { opacity: .35; cursor: not-allowed; }
.sent {
  position: relative; overflow: hidden; outline: none;
  padding: 18px 20px 22px; border: 1px solid var(--ink); background: #FFFFFF;
  animation: sent-in .55s cubic-bezier(.2, .9, .3, 1.2) both;
}
.sent b { display: block; letter-spacing: .1em; }
.sent p { margin: 6px 0 0; }
.sent .sent-back { font-size: 12px; color: var(--ink-2); }
/* トップに戻るまでの残り時間（4秒）を下辺のバーで見せる */
.sent-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--maroon); transform-origin: left; animation: sent-bar 4s linear both;
}
@keyframes sent-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes sent-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .sent { animation: none; }
}
.error { color: var(--maroon); font-size: 13px; margin: 0; }
.aside {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--ink-2);
}
.aside p { margin: 0; }
.aside p + p { margin-top: 8px; }

/* 奥付 */
.colophon {
  max-width: 680px;
  margin: clamp(72px, 12vw, 104px) auto 0;
  padding-block: 28px 40px;
  border-top: 1.5px solid var(--ink);
  font-size: 12px; color: var(--ink-2); line-height: 1.8;
  display: grid; gap: 14px;
}
.colophon .brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--latin); font-weight: 700; letter-spacing: .4em; color: var(--ink); font-size: 14px; text-decoration: none; justify-self: start; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.colophon nav a { text-decoration: none; padding-block: 8px; letter-spacing: .06em; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.colophon nav a:hover, .colophon nav a:focus-visible { color: var(--ink); text-decoration: underline; }
.colophon nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.colophon p { margin: 0; }
.colophon .age { color: var(--maroon); font-weight: 400; letter-spacing: .04em; }

@media (max-width: 480px) {
  th, td { display: block; padding: 0; border: 0; }
  tr { display: block; padding-block: 10px; border-top: 1px solid var(--rule); }
  tr:last-child { border-bottom: 1px solid var(--rule); }
  tr:last-child th, tr:last-child td { border-bottom: 0; }
  th { padding-bottom: 2px; }
}
