:root{color-scheme:light;--ink:#29231f;--muted:#655b53;--green:#a13b0b;--paper:#fcfaf7;--line:#e3d9ce;--accent:#fbe9db}*{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:#78300f}a:focus-visible,button:focus-visible,textarea:focus-visible{outline:3px solid #a13b0b;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:#f5ede4;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 #d7bca6;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:#f5ede4;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:#78300f;color:white}.secondary{background:#f5ede4;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 #9b8674;border-radius:8px;padding:12px;font:inherit;font-size:1rem;line-height:1.7;background:#fffdfa;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:#f8f1e9;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:#fbe9db;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:#f5ede4;color:var(--ink)}.variants button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #78300f}

.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}
}
/* A purpose-first reference book: warm ink, orange and clear editorial hierarchy. */
:root {
  --tool-orange:#a13b0b;
  --tool-orange-hover:#78300f;
  --tool-line-green:#17634d;
  --tool-line-hover:#104733;
  --tool-dark:#29231f;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body {
  background:#fcfaf7;
}

header,main,footer {
  width:min(1120px,100% - 64px);
}

header {
  padding:25px 0;
}

.brand {
  letter-spacing:-.04em;
  color:var(--tool-dark);
}

.preview {
  background:#f5ede4;
  color:#655b53;
  letter-spacing:.08em;
  font-size:12px;
  padding:7px;
}

h1,h2,h3 {
  word-break:auto-phrase;
  text-wrap:pretty;
  letter-spacing:-.035em;
}

.tool-eyebrow {
  font-size:12px;
  letter-spacing:.16em;
  font-weight:750;
  color:var(--tool-orange);
  margin:0 0 10px;
}

.tool-cover {
  display:grid;
  grid-template-columns:1.35fr .8fr;
  gap:54px;
  align-items:center;
  padding:66px 0 48px;
}

.tool-cover h1 {
  font-size:clamp(2.8rem,5.6vw,4.4rem);
  line-height:1.19;
  letter-spacing:-.055em;
  margin:18px 0 24px;
  font-weight:850;
}

.tool-period {
  color:var(--tool-orange);
}

.tool-subtitle {
  font-size:1.08rem;
  font-weight:700;
  max-width:450px;
}

.tool-intro {
  margin:20px 0;
  color:#655b53;
  font-size:.93rem;
}

.tool-intro p {
  margin:5px 0;
}

.tool-jump {
  display:inline-flex;
  gap:40px;
  padding:12px 0;
  border-bottom:2px solid var(--tool-orange);
  text-decoration:none;
  font-weight:700;
}

.tool-cover-note {
  background:#fbe9db;
  border:1px solid #e3d9ce;
  box-shadow:10px 10px 0 #eadbcd;
  padding:28px 30px;
  transform:rotate(1deg);
}

.tool-note-label {
  font-size:.78rem;
  font-weight:700;
}

.tool-cover-note ol {
  padding:0;
  list-style:none;
  margin:20px 0;
}

.tool-cover-note li {
  position:relative;
  padding:14px 0 14px 40px;
  border-top:1px solid #ddcbbb;
}

.tool-cover-note li>span {
  position:absolute;
  left:0;
  top:16px;
  font-size:12px;
  color:var(--tool-orange);
  font-weight:700;
}

.tool-cover-note strong,.tool-cover-note small {
  display:block;
}

.tool-cover-note small {
  font-size:.74rem;
  color:#655b53;
}

.tool-cover-note>p {
  font-size:.75rem;
  color:#655b53;
  margin-bottom:0;
}

.tool-cta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-block:1px solid #e3d9ce;
  padding:18px 0;
  margin:28px 0 48px;
}

.tool-cta>span {
  font-size:.8rem;
  color:#655b53;
}

.tool-cta>a {
  display:block;
  background:var(--tool-line-green);
  color:white;
  text-align:center;
  padding:11px 18px;
  text-decoration:none;
  border-radius:4px;
  font-size:.86rem;
  font-weight:700;
  min-height:44px;
}

.tool-cta>a:hover {
  background:var(--tool-line-hover);
  color:white;
}

.tool-section-title {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:42px 0 20px;
}

.tool-section-title h2 {
  margin:0;
  font-size:1.65rem;
}

.tool-section-title>p {
  font-size:.84rem;
  color:#655b53;
  margin:0;
}

.tool-directory {
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:22px 0;
}

.tool-directory li {
  min-width:0;
  background:white;
  border:1px solid #e3d9ce;
  border-radius:5px;
  transition:border-color .15s,transform .15s;
}

.tool-directory li:hover {
  border-color:var(--tool-orange);
  transform:translateY(-2px);
}

.tool-directory a {
  display:flex;
  flex-direction:column;
  height:100%;
  padding:22px;
  color:var(--tool-dark);
  text-decoration:none;
}

.tool-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.tool-name {
  font-size:12px;
  font-weight:650;
  color:var(--tool-orange);
  background:#fbe9db;
  padding:3px 8px;
  border-radius:3px;
}

.tool-directory h3 {
  font-size:1.02rem;
  margin:17px 0 10px;
  line-height:1.7;
}

.tool-directory p {
  font-size:.8rem;
  color:#655b53;
  margin:0 0 20px;
}

.tool-card-foot {
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid #eee6de;
  font-size:.73rem;
  color:#655b53;
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.tool-card-foot>span {
  color:var(--tool-orange);
  font-size:18px;
}

.tool-guide-section .tool-directory {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.tool-guide-section .tool-directory a {
  padding:17px;
}

.tool-guide-section .tool-directory h3 {
  font-size:.92rem;
}

.tool-guide-section .tool-card-top {
  flex-wrap:wrap;
}

.tool-group-nav {
  margin:20px 0 36px;
}

.tool-group-nav a {
  border:1px solid #e3d9ce;
  background:white;
  padding:7px 14px;
  border-radius:4px;
  text-decoration:none;
}

.tool-group-heading {
  color:var(--tool-orange);
  font-size:1.15rem;
  padding:12px 0;
  border-bottom:2px solid var(--tool-orange);
  margin:36px 0 0;
}

.tool-editorial {
  padding:28px 0;
  border-top:1px solid #e3d9ce;
}

.tool-editorial>p {
  font-size:.92rem;
  max-width:850px;
}

.tool-detail {
  max-width:860px;
}

.tool-chapter {
  padding:34px 0 14px;
}

.tool-chapter h1 {
  font-size:clamp(1.8rem,4vw,2.8rem);
  line-height:1.5;
  margin:16px 0;
}

.tool-date {
  font-size:12px;
  color:#655b53;
}

.tool-detail>.tool-cta {
  margin:12px 0 28px;
}

.tool-toc {
  background:#fbe9db;
  padding:15px 20px;
  border-left:3px solid var(--tool-orange);
  gap:14px 24px;
}

.tool-toc a {
  text-decoration:none;
  font-size:12px;
}

.tool-facts {
  margin:18px 0;
  border-top:1px solid #e3d9ce;
}

.tool-facts>div {
  display:grid;
  grid-template-columns:130px 1fr;
  border-bottom:1px solid #e3d9ce;
}

.tool-facts dt,.tool-facts dd {
  font-size:.86rem;
  margin:0;
  padding:15px 18px;
}

.tool-facts dt {
  background:#f8f1e9;
}

.tool-steps {
  counter-reset:step;
  list-style:none;
  padding:0;
}

.tool-steps li {
  position:relative;
  counter-increment:step;
  margin:0;
  padding:18px 0 18px 48px;
  border-bottom:1px solid #e3d9ce;
  font-size:.9rem;
}

.tool-steps li:before {
  content:counter(step,decimal-leading-zero);
  position:absolute;
  left:0;
  top:19px;
  color:var(--tool-orange);
  font-size:13px;
  font-weight:700;
}

.tool-prompt {
  border-radius:5px!important;
  background:#f8f1e9!important;
}

.tool-prompt pre {
  background:#fff;
  border:1px solid #e3d9ce;
  border-radius:3px;
  font-size:.84rem;
  line-height:1.9;
}

.tool-prompt button:hover {
  background:var(--tool-orange-hover);
}

.tool-prompt button {
  border-radius:4px;
  background:var(--tool-orange);
}

.tool-detail .output {
  background:#fbe9db;
  border-radius:4px;
  font-size:.9rem;
}

.tool-alternatives {
  list-style:none;
  padding:0;
}

.tool-alternatives li {
  border-bottom:1px solid #e3d9ce;
  padding:14px 0;
}

.tool-alternatives a {
  font-weight:700;
}

.tool-alternatives p {
  margin:5px 0;
  font-size:.86rem;
  color:#655b53;
}

.tool-sources {
  border-top:1px solid #e3d9ce;
  padding-top:24px;
  font-size:.78rem;
  color:#655b53;
}

.tool-sources h2 {
  font-size:1rem;
}

.tool-sources ul {
  padding-left:18px;
}

.tool-sources li {
  padding:8px 0;
}

.tool-sources span {
  display:block;
}

.tool-table-wrap {
  max-width:100%;
  overflow-x:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  font-size:.83rem;
  text-align:left;
}

th,td {
  padding:12px;
  border-bottom:1px solid #e3d9ce;
  vertical-align:top;
}

thead {
  background:#fbe9db;
}

footer {
  margin-top:50px;
}

.tool-related .tool-directory h3 {
  font-size:.95rem;
}

@media(max-width:900px) {
  .tool-cover {
    gap:30px;
  }
  .tool-guide-section .tool-directory {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .tool-directory {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px) {
  header,main,footer {
    width:calc(100% - 36px);
  }
  header {
    padding:18px 0;
  }
  .brand {
    font-size:1.06rem;
  }
  header nav {
    font-size:12px;
  }
  .tool-cover {
    grid-template-columns:1fr;
    padding:32px 0 18px;
    gap:28px;
  }
  .tool-cover h1 {
    font-size:clamp(2.2rem,11vw,2.9rem);
    margin:15px 0 22px;
  }
  .tool-subtitle {
    font-size:.96rem;
    line-height:1.8;
  }
  .tool-intro {
    font-size:.85rem;
    line-height:1.85;
  }
  .tool-cover-note {
    transform:none;
    box-shadow:5px 5px 0 #eadbcd;
    padding:20px 24px;
  }
  .tool-cover-note ol {
    margin:14px 0;
  }
  .tool-cover-note li {
    padding-block:10px;
  }
  .tool-cover-note li>span {
    top:12px;
  }
  .tool-cta {
    flex-direction:column;
    align-items:stretch;
    gap:9px;
    margin:28px 0 36px;
    padding:17px 0;
  }
  .tool-cta>span {
    text-align:center;
    font-size:12px;
  }
  .tool-cta>a {
    font-size:14px;
    padding:12px;
  }
  .tool-section-title {
    display:block;
    margin-top:34px;
  }
  .tool-section-title>p {
    margin-top:8px;
  }
  .tool-section-title h2 {
    font-size:1.45rem;
  }
  .tool-directory,.tool-guide-section .tool-directory {
    grid-template-columns:1fr;
    gap:12px;
  }
  .tool-directory a,.tool-guide-section .tool-directory a {
    padding:20px;
  }
  .tool-directory h3,.tool-guide-section .tool-directory h3 {
    font-size:1.04rem;
    margin:10px 0 7px;
  }
  .tool-directory p {
    margin-bottom:12px;
  }
  .tool-card-foot {
    padding-top:8px;
  }
  .tool-group-nav {
    gap:8px;
  }
  .tool-group-nav a {
    font-size:12px;
    padding:7px 10px;
  }
  .tool-detail h1 {
    font-size:1.65rem;
    line-height:1.5;
  }
  .tool-chapter {
    padding-top:22px;
  }
  .tool-facts>div {
    grid-template-columns:95px minmax(0,1fr);
  }
  .tool-facts dt,.tool-facts dd {
    padding:13px 10px;
    font-size:13px;
  }
  .tool-toc {
    padding:12px 14px;
    gap:10px 18px;
  }
  .tool-editorial {
    padding:24px 0;
  }
  .tool-prompt {
    padding:18px!important;
  }
  .tool-prompt h2 {
    font-size:1.15rem;
  }
  .tool-prompt pre {
    padding:14px;
    font-size:13px;
  }
  .tool-prompt button {
    font-size:14px;
    width:100%;
    text-align:center;
  }
  .tool-sources {
    font-size:12px;
  }
  th,td {
    padding:10px 7px;
    min-width:90px;
  }
  table {
    font-size:12px;
  }
  .tool-eyebrow {
    font-size:12px;
  }
  h2 {
    font-size:1.3rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .tool-directory li {
    transition:none;
  }
  .tool-directory li:hover {
    transform:none;
  }
}

@media(max-width:600px) {
  .tool-table-wrap thead {
    position:absolute;
    clip-path:inset(50%);
    width:1px;
    height:1px;
    overflow:hidden;
  }
  .tool-table-wrap tr {
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    padding:15px 0;
    border-bottom:1px solid var(--line);
  }
  .tool-table-wrap th,.tool-table-wrap td {
    padding:0;
    border:0;
    min-width:0;
    font-size:14px;
  }
  .tool-table-wrap tbody th {
    font-size:15px;
  }
  .tool-table-wrap td a {
    font-weight:700;
  }
}

.tool-group-nav a:hover,.tool-toc a:hover {
  text-decoration:underline;
}

.tool-steps li,.tool-facts dd,.tool-sources a,.tool-alternatives p { overflow-wrap:anywhere; }
.tool-prompt pre,.tool-command { white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; }
.tool-command { padding:14px; background:#f8f1e9; border:1px solid #e3d9ce; border-radius:3px; }
.tool-toc,.tool-group-nav { display:flex; flex-wrap:wrap; gap:8px 16px; }
@media(max-width:600px) {
  .tool-toc { flex-direction:column; gap:8px; }
  .tool-table-wrap td::before { content:attr(data-label); display:block; color:#655b53; font-size:12px; margin-bottom:3px; }
}

.tool-toc a { display:block; min-height:44px; padding-block:10px; box-sizing:border-box; }
