:root {
  --ink: #2e2926;
  --muted: #6f6660;
  --paper: #fffdfb;
  --cream: #fff7ef;
  --cream-strong: #ffead6;
  --pink: #e85f7d;
  --pink-dark: #c94061;
  --pink-soft: #fff0f3;
  --orange: #ef9b45;
  --green: #26785c;
  --green-soft: #e9f7f1;
  --line: #e7ded8;
  --shadow: 0 18px 48px rgba(73, 45, 32, 0.1);
  --radius: 20px;
  --font: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--pink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(231, 222, 216, 0.85);
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero-inner,
.content-wide,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-paw { font-size: 1rem; }
.brand-chan { color: var(--pink-dark); }

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover { color: var(--pink-dark); }

.site-header .nav-cta {
  color: #fff;
  background: var(--pink);
  padding: 9px 18px;
  border-radius: 999px;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 215, 166, 0.55), transparent 27%),
    radial-gradient(circle at 88% 18%, rgba(255, 196, 208, 0.48), transparent 28%),
    var(--cream);
}

.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 52px;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5.2vw, 4.6rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

h1 span {
  display: inline-block;
  margin-top: 12px;
  color: var(--pink-dark);
  font-size: 0.58em;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

h3 { line-height: 1.45; }

.page-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-title-compact { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-lead { margin-top: 20px; }

.hero-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: #544c47;
  font-size: 1.08rem;
  font-weight: 600;
}

.hero-actions,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(232, 95, 125, 0.24); outline-offset: 2px; }
.button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.button-large { min-height: 56px; padding-inline: 28px; }
.button-primary { color: #fff; background: var(--pink); box-shadow: 0 10px 22px rgba(201, 64, 97, 0.22); }
.button-primary:hover { background: var(--pink-dark); }
.button-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.button-sub { color: var(--pink-dark); background: var(--pink-soft); border-color: #f5c6d1; }
.button-ai { color: #fff; background: linear-gradient(135deg, #8358d6, #d25798); }
.button-support { color: #fff; background: var(--green); }
.full { width: 100%; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

.trust-list li::before { content: "✓"; color: var(--green); margin-right: 5px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { width: min(390px, 100%); filter: drop-shadow(0 22px 26px rgba(91, 55, 31, 0.13)); }

.cat-bubble {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: 0;
  padding: 13px 18px;
  background: #fff;
  border: 2px solid #f2c9aa;
  border-radius: 18px 18px 18px 5px;
  color: #6f4e3f;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(76, 44, 27, 0.1);
}

.content-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.quick-answer {
  padding-block: 34px;
  border-block: 1px solid var(--line);
  background: #fff;
}

.quick-answer .content-narrow { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 38px; align-items: center; }
.quick-answer h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.quick-answer p { margin: 0; color: var(--muted); }

.builder-shell {
  scroll-margin-top: 86px;
  padding: 82px 20px 100px;
  background: linear-gradient(180deg, #fff 0, #fff8f2 100%);
}

.builder-heading { width: min(760px, 100%); margin: 0 auto 30px; text-align: center; }
.builder-heading p:last-child { color: var(--muted); }

.progress {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 auto 18px;
  padding: 0;
  list-style: none;
}

.progress li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9c918a;
  font-size: 0.82rem;
  font-weight: 800;
}

.progress li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 35px);
  width: calc(100% - 70px);
  height: 2px;
  background: #e7ded8;
}

.progress li:last-child::after { display: none; }

.progress span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #eee8e3;
  color: #766d67;
}

.progress li.is-active { color: var(--pink-dark); }
.progress li.is-active span { color: #fff; background: var(--pink); }
.progress li.is-complete span { color: #fff; background: var(--green); }

.builder-card {
  width: min(920px, 100%);
  min-height: 420px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.wizard-step[hidden] { display: none !important; }
.step-title-row { display: flex; align-items: center; gap: 14px; }
.step-title-row h3 { margin: 0; font-size: clamp(1.28rem, 3vw, 1.8rem); }
.step-number { flex: none; color: var(--pink-dark); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; }
.step-intro { margin: 10px 0 26px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { color: #4c4541; font-size: 0.9rem; font-weight: 800; }
.field b { margin-left: 4px; color: var(--pink-dark); font-size: 0.7rem; }
.field-wide { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d8cfca;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

textarea { min-height: 120px; resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #a69d97; }

.step-actions { display: flex; justify-content: flex-end; margin-top: 30px; }
.step-actions.split { justify-content: space-between; align-items: center; gap: 14px; }

.sample-results { display: grid; gap: 14px; }
.sample-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.sample-card:hover { border-color: #f1a8b9; }
.match-score { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink-dark); font-weight: 900; line-height: 1.1; text-align: center; }
.match-score small { display: block; font-size: 0.62rem; }
.sample-card h4 { margin: 0 0 5px; font-size: 1.05rem; }
.sample-card p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.sample-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sample-tags span { padding: 3px 8px; border-radius: 999px; background: #f5f1ee; color: #766d67; font-size: 0.72rem; font-weight: 700; }

.selected-sample {
  margin: 18px 0 22px;
  padding: 15px 17px;
  border-left: 4px solid var(--pink);
  border-radius: 0 10px 10px 0;
  background: var(--pink-soft);
  color: #5d4d51;
}
.selected-sample strong { color: var(--pink-dark); }

.privacy-note {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--muted);
  font-size: 0.84rem;
}
.privacy-note strong { flex: none; color: #4d5d70; }

.jobs-container { display: grid; gap: 18px; margin: 26px 0 16px; }
.job-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.job-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.job-card-head h4 { margin: 0; }
.remove-job { border: 0; background: transparent; color: #9a5d6b; font-size: 0.82rem; text-decoration: underline; }
.job-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-form-grid .field-wide { grid-column: 1 / -1; }
.current-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 0.84rem; }
.current-check input { width: 18px; min-height: 18px; }

.ai-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #d9c9f5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7f1ff, #fff4f9);
}
.ai-panel h4 { margin: 2px 0 4px; }
.ai-panel p { margin: 0; color: #6f6174; font-size: 0.86rem; }
.ai-label { color: #7751b5 !important; font-weight: 900; }

.status-message { min-height: 1.6em; margin: 14px 0 0; color: var(--muted); font-size: 0.86rem; }
.status-message.error { color: #b52648; }
.status-message.success { color: var(--green); }

.draft-editor { display: grid; gap: 18px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.draft-editor > h4 { margin: 0; }
.draft-job { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f6; }
.draft-job h5 { margin: 0 0 12px; font-size: 0.95rem; }
.draft-job .field + .field { margin-top: 14px; }

.review-box { padding: 18px; border-radius: 12px; background: #fff9e8; color: #6c5a27; }
.review-box h5 { margin: 0 0 8px; }
.review-box ul { margin: 0; padding-left: 1.3em; }

.document-stage {
  overflow: auto;
  padding: 24px;
  border-radius: 14px;
  background: #e9e6e4;
}

.career-document {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 15mm 16mm;
  color: #111;
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 10pt;
  line-height: 1.55;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.doc-title { margin: 0 0 6mm; font-size: 20pt; font-weight: 700; letter-spacing: 0.25em; text-align: center; }
.doc-meta { margin-bottom: 5mm; text-align: right; }
.doc-meta p { margin: 0; }
.career-document h2 { margin: 5mm 0 2mm; padding-bottom: 1mm; border-bottom: 1.5px solid #222; font-size: 12pt; letter-spacing: 0.06em; }
.career-document h3 { margin: 3mm 0 1.5mm; font-size: 10.5pt; }
.career-document p { margin: 0 0 2mm; white-space: pre-wrap; overflow-wrap: anywhere; }
.career-document ul { margin: 1mm 0 2mm; padding-left: 1.4em; }
.career-document li { margin-bottom: 1mm; }
.doc-job { margin-bottom: 4mm; }
.doc-job-head { display: grid; grid-template-columns: 1fr auto; gap: 8mm; padding: 2mm 3mm; background: #f0f0f0; font-weight: 700; }
.doc-role { padding: 1.5mm 3mm 0; font-weight: 700; }
.doc-end { margin-top: 8mm !important; text-align: right; }

.support-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 14px;
  background: var(--green-soft);
}
.support-banner h4 { margin: 0 0 4px; }
.support-banner p { margin: 0; color: #46675b; font-size: 0.88rem; }

.link-button { appearance: none; border: 0; padding: 8px; color: #8e6973; background: transparent; text-decoration: underline; }

.samples-section, .how-section, .guide-section, .faq-section { padding-block: 90px; }
.samples-section { background: var(--cream); }
.how-section { background: #fff; }
.guide-section { background: #faf8f6; }
.faq-section { background: #fff; }
.section-lead { max-width: 720px; margin: -4px 0 28px; color: var(--muted); }

.static-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.static-sample-grid a { display: flex; flex-direction: column; min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.static-sample-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(73,45,32,0.08); }
.static-sample-grid span { color: var(--pink-dark); font-size: 0.8rem; font-weight: 900; }
.static-sample-grid strong { margin-top: 8px; font-size: 1.05rem; }
.static-sample-grid small { margin-top: auto; color: var(--muted); }
.center { text-align: center; margin-top: 28px; }
.text-link { color: var(--pink-dark); font-weight: 900; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.how-grid li { padding: 26px; border: 1px solid var(--line); border-radius: 14px; }
.how-grid li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pink); font-weight: 900; }
.how-grid h3 { margin: 15px 0 7px; }
.how-grid p { margin: 0; color: var(--muted); }

.prose h3 { margin: 34px 0 8px; font-size: 1.25rem; }
.prose p { color: #514a46; }

.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 20px 38px 20px 0; cursor: pointer; font-weight: 800; }
.faq-section details p { margin: -4px 0 20px; color: var(--muted); }

.site-footer { padding-block: 48px; color: #eae4e0; background: #2f2926; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { color: #fff; }
.site-footer p { margin: 0; color: #bfb5af; }
.site-footer nav { flex-wrap: wrap; }
.site-footer nav a { color: #d7cec9; }
.site-footer small { color: #9c918a; }

.modal-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(31, 25, 23, 0.7); overflow: auto; }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(24px, 5vw, 40px); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,0.25); }
.modal h2 { font-size: 1.8rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4efec; font-size: 1.5rem; }
.consent-check { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0; padding: 16px; border-radius: 10px; background: #f7f5f3; font-size: 0.82rem; }
.consent-check input { flex: none; width: 20px; min-height: 20px; margin-top: 3px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding-block: 56px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .trust-list { justify-content: center; }
  .hero-visual { width: min(420px, 85%); margin-inline: auto; }
  .cat-bubble { right: -4%; }
  .quick-answer .content-narrow { grid-template-columns: 1fr; gap: 12px; }
  .static-sample-grid { grid-template-columns: repeat(2, 1fr); }
  .document-stage { padding: 16px; }
  .career-document { transform-origin: top left; }
}

@media (max-width: 680px) {
  .header-inner, .hero-inner, .content-wide, .footer-inner, .content-narrow { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 62px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.13rem; }
  .site-header .nav-cta { padding: 8px 13px; font-size: 0.82rem; }
  .hero-inner { min-height: auto; padding-block: 44px; }
  h1 { font-size: clamp(2.05rem, 10.5vw, 2.8rem); }
  h1 span { font-size: 0.52em; }
  .hero-lead { font-size: 0.98rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: min(310px, 88%); }
  .cat-bubble { top: -8px; right: -5%; padding: 10px 14px; font-size: 0.8rem; }
  .quick-answer { padding-block: 28px; }
  .builder-shell { padding: 64px 12px 76px; }
  .builder-card { padding: 22px 16px; border-radius: 16px; }
  .progress { gap: 2px; }
  .progress li { display: grid; gap: 3px; justify-items: center; font-size: 0.68rem; }
  .progress li::after { top: 14px; left: calc(50% + 20px); width: calc(100% - 40px); }
  .form-grid, .profile-grid, .job-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-wide, .job-form-grid .field-wide { grid-column: auto; }
  .step-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sample-card { grid-template-columns: auto 1fr; gap: 12px; padding: 16px; }
  .sample-card .choose-sample { grid-column: 1 / -1; width: 100%; }
  .match-score { width: 56px; height: 56px; font-size: 0.86rem; }
  .privacy-note { flex-direction: column; gap: 2px; }
  .job-card { padding: 18px 14px; }
  .ai-panel, .support-banner { align-items: stretch; flex-direction: column; }
  .ai-panel .button, .support-banner .button { width: 100%; }
  .step-actions.split { align-items: stretch; flex-direction: column-reverse; }
  .step-actions .button { width: 100%; }
  .static-sample-grid, .how-grid { grid-template-columns: 1fr; }
  .static-sample-grid a { min-height: 150px; }
  .samples-section, .how-section, .guide-section, .faq-section { padding-block: 68px; }
  .document-stage { margin-inline: -16px; padding: 10px; border-radius: 0; }
  .career-document {
    width: 100%;
    min-height: calc((100vw - 44px) * 1.414);
    padding: 7vw 6vw;
    font-size: clamp(7px, 2.45vw, 10pt);
    box-shadow: 0 5px 18px rgba(0,0,0,0.14);
  }
  .career-document .doc-title { font-size: clamp(16px, 5.5vw, 20pt); }
  .career-document h2 { font-size: clamp(10px, 3.2vw, 12pt); }
  .career-document h3 { font-size: clamp(9px, 2.8vw, 10.5pt); }
  .export-actions { flex-direction: column; }
  .export-actions .button { width: 100%; }
  .modal-overlay { padding: 0; place-items: end center; }
  .modal { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
