/* ツギメ工房 入口ページ
   見た目：クリーム色の机に、白い紙を3枚置く（デザイナー 2026-10-07）。ココナラの表紙と同じ書体・地の色 */
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --sub: #5c5750;
  --line: #e6e1da;
  --accent: #e0782f;
  --font: "Zen Maru Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, li, dd, dt { word-break: auto-phrase; overflow-wrap: anywhere; }
h1 { word-break: keep-all; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-underline-offset .15s; }
a:hover { text-underline-offset: 7px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap-text { width: min(100% - 40px, 880px); margin-left: auto; margin-right: auto; }
.wrap-text > p, .wrap-text > ol, .wrap-text > dl, .wrap-text > ul { max-width: 680px; }
.papers, .mihon { width: min(100% - 40px, 880px); margin-left: auto; margin-right: auto; }

/* 名乗り */
.intro { padding-top: 96px; }
.name { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.name img { width: 64px; height: 64px; border-radius: 50%; }
h1 { font-weight: 700; font-size: 40px; line-height: 1.45; letter-spacing: .04em; margin-top: 28px; }
h1 span { display: inline-block; }
.lead { margin-top: 18px; }
.small { font-size: 14px; color: var(--sub); margin-top: 14px; }

/* 区切り */
.block { margin-top: 112px; }
h2 { font-weight: 700; font-size: 26px; line-height: 1.5; letter-spacing: .04em; margin-bottom: 32px; }

/* 頼めること：白い紙を縦に3枚 */
.papers { display: grid; gap: 24px; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 40px; display: grid; grid-template-columns: 3fr 2fr; column-gap: 40px; }
.paper__main { padding-right: 0; }
.num { position: relative; font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: 0; padding-top: 14px; }
.num::before { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 3px; background: var(--accent); }
h3 { font-weight: 700; font-size: 22px; line-height: 1.5; letter-spacing: .02em; margin-top: 16px; }
.voice { color: var(--sub); margin-top: 12px; }
.paper__main p:not(.num):not(.voice) { margin-top: 12px; }
.paper__side { border-left: 1px solid var(--line); padding-left: 40px; align-self: start; margin-top: 54px; }
.paper__side dt { font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--sub); line-height: 1.6; }
.paper__side dd { margin-top: 4px; }
.paper__side dd + dt { margin-top: 20px; }
.where { display: flex; flex-wrap: wrap; column-gap: 16px; }
.where a, .links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.where svg, .links svg { width: 13px; height: 13px; }
.note { grid-column: 1 / -1; font-size: 14px; color: var(--sub); line-height: 1.8; margin-top: 24px; }

/* 見本 */
.mihon { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.mihon__text p + p { margin-top: 12px; }
.links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.mihon .note { margin-top: 4px; }
.mihon__img { border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; }

/* 進め方 */
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; font-weight: 700; }
.promise { margin-top: 40px; }
.promise dt { font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--sub); }
.promise dd { margin-top: 4px; }
.promise dd + dt { margin-top: 32px; }

/* 頼み方 */
.exits { display: grid; gap: 12px; margin-top: 28px; }
.exits a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.exits a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.exits b { display: block; font-weight: 700; font-size: 17px; line-height: 1.5; }
.exits small { display: block; font-size: 14px; color: var(--sub); line-height: 1.6; }
.sub { font-size: 17px; margin-top: 40px; }
.dots { margin-top: 8px; }
.dots li { position: relative; padding-left: 20px; }
.dots li + li { margin-top: 4px; }
.dots li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--sub); }

/* 足元 */
.foot { margin-top: 112px; border-top: 1px solid var(--line); padding: 64px 0 72px; font-size: 14px; color: var(--sub); line-height: 1.8; }
.foot b { color: var(--ink); font-weight: 700; letter-spacing: .06em; }
.foot p + p { margin-top: 4px; }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .intro { padding-top: 40px; }
  .name { font-size: 16px; }
  .name img { width: 56px; height: 56px; }
  h1 { font-size: 28px; margin-top: 20px; }
  .block { margin-top: 72px; }
  h2 { font-size: 22px; margin-bottom: 24px; }
  .papers { gap: 16px; }
  .paper { grid-template-columns: 1fr; padding: 24px 20px; }
  .num { font-size: 32px; }
  h3 { font-size: 19px; }
  .paper__side { border-left: 0; padding-left: 0; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .note { margin-top: 16px; }
  .mihon { grid-template-columns: 1fr; gap: 24px; }
  .exits a { padding: 14px 18px; }
  .exits b { font-size: 16px; }
  .sub { font-size: 16px; }
  .foot { margin-top: 72px; padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.nw { white-space: nowrap; }
