:root{color-scheme:light;--ink:#301e32;--muted:#654e61;--green:#82285f;--paper:#fcf8fa;--line:#e3d3dc;--accent:#f5dfec}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;line-height:1.85;overflow-wrap:anywhere}a{color:var(--green);text-underline-offset:4px}a:hover{color:#5c1641}a:focus-visible,button:focus-visible,textarea:focus-visible{outline:3px solid #84325f;outline-offset:3px}header,main,footer{width:min(1080px,100% - 40px);margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}.brand{font-weight:800;text-decoration:none;font-size:1.12rem}nav{font-size:.85rem;display:flex;gap:16px;flex-wrap:wrap}.preview{padding:10px 20px;background:#f2e8d8;text-align:center;font-size:.8rem}.crumbs{margin:24px 0;color:var(--muted);font-size:.8rem}.crumbs ol{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0}.crumbs li{display:flex;align-items:baseline;min-width:0;max-width:100%}.crumbs li:not(:last-child):after{content:'/';flex-shrink:0;margin-left:8px}.hero{padding:36px 0 24px;max-width:780px}.eyebrow{font-size:.8rem;letter-spacing:.12em;font-weight:700;color:var(--green)}h1{font-size:clamp(1.9rem,5vw,3.35rem);line-height:1.4;letter-spacing:-.035em;margin:12px 0 20px}h2{font-size:1.4rem;line-height:1.55;margin:0 0 18px}h3{font-size:1.05rem;line-height:1.6}.lead{font-size:1.05rem;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 40px}.card,section.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:26px;min-width:0}.card{display:flex;flex-direction:column;align-items:flex-start}.card h2,.card h3{margin:8px 0 12px}.card p{font-size:.9rem;margin:8px 0}.card .snippet{border-left:3px solid #d5a3bd;padding-left:12px;color:var(--muted);white-space:pre-wrap}.number{color:var(--green);font-size:.8rem;letter-spacing:.1em}.detail{max-width:800px;margin:0 auto}section{margin:28px 0}.cta{border-radius:16px;padding:25px;background:#f2e2ed;margin:28px 0}.cta h2{font-size:1.05rem;margin:0 0 12px}.cta p{font-size:.85rem;margin:10px 0 0}.button,button{display:inline-block;border:0;border-radius:9px;background:var(--green);color:white;padding:12px 18px;font:inherit;font-size:.9rem;cursor:pointer;text-decoration:none;min-height:46px;max-width:100%;text-align:left}.button:hover,button:hover{background:#5c1641;color:white}.secondary{background:#f4e8ef;color:var(--ink)}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}.actions [role=status]{width:100%;font-size:.85rem;color:var(--muted)}label{display:block;font-weight:700;margin:18px 0 6px}textarea{width:100%;min-width:0;resize:vertical;border:1px solid #99748b;border-radius:8px;padding:12px;font:inherit;font-size:1rem;line-height:1.7;background:#fffafd;color:var(--ink)}#assembled{min-height:340px;font-size:.9rem}.hint{font-size:.8rem;color:var(--muted)}pre,.output{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:inherit;font-size:.92rem;background:#f7eff4;border-radius:10px;padding:20px;max-width:100%}dt{font-weight:700;margin-top:14px}dd{margin:4px 0 14px;white-space:pre-wrap}.output.final{background:#faeaf2;border-left:4px solid var(--green)}.tag{font-size:.75rem;background:var(--accent);padding:4px 9px;border-radius:6px}.steps{padding-left:24px}.steps li{margin:8px 0}footer{margin-top:64px;border-top:1px solid var(--line);padding:28px 0 40px;color:var(--muted);font-size:.8rem}footer nav{margin:12px 0}.skip{position:absolute;left:16px;top:-90px;background:white;padding:8px}.skip:focus{top:8px}details{width:100%;margin-top:14px}summary{cursor:pointer;color:var(--green)}@media(max-width:760px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}header{align-items:flex-start}}@media(max-width:500px){header,main,footer{width:calc(100% - 32px)}header{flex-direction:column;gap:8px;padding:16px 0}.grid{grid-template-columns:minmax(0,1fr)}.hero{padding:20px 0 12px}.card,section.panel{padding:20px}.cta{padding:20px}pre,.output{padding:15px}h1{font-size:1.9rem}.button{width:100%}nav{gap:12px}}

.variants{border:1px solid var(--line);border-radius:8px;padding:12px;min-width:0;display:flex;flex-wrap:wrap;gap:10px}.variants legend{font-weight:700}.variants button[aria-pressed="false"]{background:#f4e8ef;color:var(--ink)}.variants button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #63264f}

.cta-inline{font-size:.8rem;color:var(--muted);margin:14px 0}.cta [aria-disabled="true"],.cta-inline [aria-disabled="true"]{color:var(--muted)}

/* スマホでは最初の入力欄を冒頭に収める。パンくずの区切りは前の項目に保持。 */
@media(max-width:500px){
  html{font-size:16px}
  body{font-size:16px;line-height:1.6}
  .crumbs{font-size:13px;margin:12px 0}
  .crumbs ol{flex-wrap:nowrap;gap:6px;margin:0;width:100%}
  .crumbs li{flex:0 1 auto;white-space:nowrap}
  .crumbs li:last-child{flex:1;overflow:hidden}
  .crumbs a,.crumbs span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .crumbs li:not(:last-child):after{margin-left:6px}
  .detail .hero{padding:8px 0}
  .detail h1{font-size:1.5rem;margin:6px 0 10px}
  .detail .hero .lead{display:none}
  .detail .hero h2{font-size:.875rem;margin:8px 0 0}
  .detail .hero p{margin:0 0 8px}
  .detail .hero [data-section="job"]>p:last-child{font-size:.875rem;line-height:1.6}
  #editor{margin-top:12px;padding:16px}
  #editor h2{font-size:1.15rem;margin-bottom:8px}
  #editor .hint{margin:8px 0}
  #editor .variants{padding:6px 8px;gap:8px}
  #editor label{margin-top:12px}
}
.sheet-intro, .sheet-heading { border-left: 5px solid var(--green); padding-left: clamp(16px, 3vw, 32px); margin: 34px 0; }
.sheet-intro p { color: var(--muted); max-width: 38em; }
.sheet-heading span, .sheet-group h3 { color: var(--green); font-weight: 700; }
.sheet-heading h1 { margin-top: 4px; }
.sheet-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sheet-group { margin: 0; padding: 18px 22px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: white; }
.sheet-group h3 { margin: 0; }
.sheet-group ul { list-style: none; padding: 0; margin: 10px 0 0; }
.sheet-group li + li { border-top: 1px solid var(--line); }
.sheet-group a { display: block; padding: 10px 0; }
.sheet-article { max-width: 800px; margin: auto; }
.feature-sheet { width: 100%; border-collapse: collapse; background: white; }
.feature-sheet caption { text-align: left; background: var(--green); color: white; font-weight: 700; padding: 8px 16px; }
.feature-sheet th, .feature-sheet td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.feature-sheet th { background: var(--accent); width: 10em; }
.sheet-article section { border-top: 1px solid var(--line); padding-top: 22px; }
.sheet-steps { padding-left: 1.8em; }
.sheet-steps li { padding-left: .4em; margin-bottom: .8em; }
.sheet-steps li::marker { color: var(--green); font-weight: bold; }
.sheet-article blockquote { margin: 0; padding: 10px 16px; background: white; border-left: 3px solid var(--green); }
.sheet-article .line-button { color: #102b1d; }
@media (max-width: 600px) {
  .sheet-index { grid-template-columns: minmax(0, 1fr); }
  .feature-sheet, .feature-sheet caption, .feature-sheet tbody, .feature-sheet tr,
  .feature-sheet th, .feature-sheet td { display: block; width: 100%; }
  .feature-sheet th { padding: 4px 12px; font-size: .85rem; }
  .feature-sheet td { padding: 6px 12px; }
}

.line-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:#06C755;font-weight:700;text-align:center}
.line-button:hover{background:#06C755;text-decoration:underline}
.line-note{display:block;margin-top:6px;font-size:.8rem;color:var(--muted)}
