/* ==========================================================================
   kango.nnnn.page - 看護の職場えらびノート
   Mobile-first editorial stylesheet (no external dependencies)
   ========================================================================== */

:root {
  --bg-page: #f6f8f6;
  --bg-surface: #ffffff;
  --bg-tint: #ebf2ee;
  --bg-warm: #faf4ec;
  --bg-muted: #f0f3f1;

  --text-main: #23302c;
  --text-sub: #4f615b;
  --text-light: #6b7c76;

  --brand: #2c6b5e;
  --brand-dark: #1f5046;
  --brand-soft: #d9e9e3;
  --accent: #b56752;
  --accent-soft: #f6e7e2;

  --border: #dde5e0;
  --border-strong: #c7d4cd;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 10px rgba(31, 61, 53, 0.05);
  --shadow-soft: 0 6px 20px rgba(31, 61, 53, 0.06);

  --container-max: 680px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
    "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.96875rem; /* 15.5px */
  line-height: 1.85;
  color: var(--text-main);
  background-color: var(--bg-page);
  font-feature-settings: "palt";
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Header & PR Disclosure ---------- */

.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header-pr-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.header-pr-link:hover {
  background: var(--bg-tint);
  color: var(--brand-dark);
}

.pr-banner {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.pr-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-sub);
}

.pr-badge {
  display: inline-block;
  flex-shrink: 0;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 4px;
  margin-top: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef5f1 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 32px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.hero-points {
  list-style: none;
  padding: 16px;
  margin: 0 0 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-main);
}

.point-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 9px;
  flex-shrink: 0;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jump-pill:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

/* ---------- Sections ---------- */

.section {
  padding: 40px 0;
}

.section--alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.25rem;
  line-height: 1.48;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-intro {
  color: var(--text-sub);
  margin-bottom: 22px;
}

/* ---------- Empathy & Self-Check ---------- */

.empathy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.empathy-card p:last-child {
  margin-bottom: 0;
}

.check-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}

.check-box-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.check-box-note {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.55;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check-item label:hover {
  border-color: var(--brand);
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.check-item input[type="checkbox"]:checked + span {
  color: var(--brand-dark);
  font-weight: 700;
}

.check-result {
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  border-left: 4px solid var(--brand);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-main);
}

.check-result[hidden] {
  display: none;
}

.check-result-heading {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

/* ---------- 3 Changeable Axes ---------- */

.axis-grid {
  display: grid;
  gap: 16px;
}

.axis-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.axis-card.is-highlighted {
  border-color: var(--brand);
  background: #f2f8f5;
  box-shadow: var(--shadow-soft);
}

.axis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.axis-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.axis-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.axis-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--text-main);
}

.axis-desc {
  font-size: 0.91rem;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.axis-list {
  list-style: none;
  padding: 12px 14px;
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.axis-list li {
  padding-left: 14px;
  position: relative;
}

.axis-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.caution-box {
  margin-top: 20px;
  background: var(--bg-warm);
  border: 1px solid #ead9c5;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.caution-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7d4c2d;
  margin-bottom: 8px;
}

.caution-box p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* ---------- Workplace Options Map ---------- */

.workplace-grid {
  display: grid;
  gap: 14px;
}

.workplace-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.workplace-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.workplace-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.workplace-chip {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--bg-tint);
  padding: 2px 9px;
  border-radius: 999px;
}

.workplace-text {
  font-size: 0.89rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.workplace-meta {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}

.workplace-meta strong {
  color: var(--text-main);
}

/* ---------- 3-Step Flow ---------- */

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-main);
}

.step-body p {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* ---------- Service Comparison Placeholder Slots ---------- */

.compare-notice {
  background: var(--bg-tint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 20px;
}

.compare-notice strong {
  color: var(--brand-dark);
}

.compare-criteria {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.compare-criteria h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-sub);
}

.criteria-list li strong {
  color: var(--text-main);
}

.service-slots {
  display: grid;
  gap: 16px;
}

.service-slot {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}

.slot-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.slot-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.slot-status {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.slot-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.slot-summary {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.slot-specs {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.slot-spec-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
}

.slot-spec-row dt {
  font-weight: 700;
  color: var(--text-main);
}

.slot-spec-row dd {
  margin: 0;
  color: var(--text-sub);
}

.slot-cta-placeholder {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.compare-footnote {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-light);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 42px 15px 16px;
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-main);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-sub);
  border-top: 1px solid var(--bg-muted);
  padding-top: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- PR Policy ---------- */

.policy-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.policy-list {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.policy-list strong {
  color: var(--text-main);
}

.closing-note {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-tint);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-main);
}

.closing-note p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal Pages ---------- */

.legal-main {
  padding: 32px 0 48px;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
}

.legal-title {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.3em;
  margin-bottom: 0;
  display: grid;
  gap: 6px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 34%;
  background: var(--bg-page);
  color: var(--text-main);
  font-weight: 700;
}

.legal-table td {
  color: var(--text-sub);
}

.back-link-wrap {
  margin-top: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-dark);
  background: var(--bg-tint);
  padding: 9px 15px;
  border-radius: 999px;
}

.back-link:hover {
  background: var(--brand-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #23302c;
  color: #dce5e1;
  padding: 32px 0 36px;
  font-size: 0.83rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-desc {
  color: #b7c7c0;
  margin-bottom: 18px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-nav a {
  color: #e6efeb;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: #93a79f;
  font-size: 0.78rem;
}

/* ---------- Responsive Tweaks ---------- */

@media (min-width: 600px) {
  .hero {
    padding: 48px 0 42px;
  }

  .hero-title {
    font-size: 1.78rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.38rem;
  }

  .workplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-card {
    padding: 34px 30px;
  }
}

@media (max-width: 440px) {
  .slot-spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 6px;
  }

  .legal-table td {
    padding-top: 6px;
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
