/* 履歴書作成ツール — 自己完結スタイル（落ち着いた業務UI） */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --blue-050: #eef4ff;
  --ink: #1c2533;
  --slate: #5b6573;
  --slate-300: #9aa7bd;
  --line: #e3e7ee;
  --bg: #f3f5f8;
  --card: #fff;
  --r: 12px;
  --r-sm: 9px;
  --pill: 999px;
  --body: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --ring: 0 0 0 3px rgba(37, 99, 235, .16);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7;
  background: var(--bg); min-height: 100svh; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--slate); }
.small { font-size: 13px; }

.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 760px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; font-size: 17px; color: var(--ink); }
.brand .dot { color: var(--blue); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 2px 14px; }
.section-title h2 { font-size: 20px; }
.section-title .sub { color: var(--slate); font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 3px rgba(16,24,40,.05); padding: 20px 22px; }
.rk-card { margin-bottom: 14px; }
.rk-card h3 { font-size: 16px; margin: 0 0 12px; }
.rk-grid { display: grid; grid-template-columns: 130px 1fr; gap: 11px 16px; align-items: center; }
.rk-grid label { color: var(--slate); font-size: 13.5px; font-weight: 500; }
.rk-note { background: var(--blue-050); border: 1px solid #d7e3ff; border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px; color: #34507e; margin-bottom: 16px; }

.input { width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.input::placeholder { color: var(--slate-300); }

.rk-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rk-area { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; font: inherit; line-height: 1.7; resize: vertical; }
.rk-area:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }

.btn { font-family: var(--body); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--pill); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15; transition: background .15s, border-color .15s, filter .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.foot { text-align: center; color: var(--slate-300); font-size: 12px; padding: 30px 0 40px; }

#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(18px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .24s, transform .24s; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-inner { font-weight: 700; color: #fff; background: #1f2937; padding: 12px 20px; border-radius: var(--pill); box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px; }
.toast-inner.ok { background: #16a34a; }
.toast-inner.err { background: #dc2626; }

@media (max-width: 560px) {
  .rk-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .rk-grid label { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; }
}
