/*
Theme Name: Salaryman Nurse Child
Theme URI: https://ryman-nurse.com/
Template: swell
Author: ハロ
Author URI: https://ryman-nurse.com/profile/
Description: サラリーマンナース専用 SWELL 子テーマ。中心テーマ「職場の人間関係で苦しい看護師」・訴求の核「自分を責めないでほしい」。
Version: 1.0.0
License: GPL v2 or later
Text Domain: salaryman-nurse-child
*/

/* サラリーマンナース — site styles
 * Ported from artboard-storybook.jsx (案1A) to plain HTML/CSS
 * Ready for SWELL (WordPress) migration: BEM-ish class names, no JS required.
 */

/* ===== Tokens ===== */
:root {
  --bg: #EFEAE0;
  --paper: #FAF6EC;
  --ink: #1A1614;
  --ink-soft: #3F362D;
  --line: #C8BFA8;
  --oat: #A89880;
  --tiffany: #0ABAB5;
  --tiffany-deep: #066D6A;
  --navy: #1E2A3A;
  --choco: #3D2E26;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Zen Kaku Gothic Antique", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.serif { font-family: "Shippori Mincho", "Yu Mincho", serif; }

/* ===== Layout ===== */
.shell { max-width: 1280px; margin: 0 auto; }
.section { padding: 80px 72px; position: relative; }
.section--paper { background: var(--paper); }
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--tiffany-deep);
  letter-spacing: 0.28em; margin: 0 0 10px;
}
.h-section {
  font-size: 36px; margin: 0; font-weight: 800; letter-spacing: 0.02em;
}
.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
  margin-bottom: 48px;
}
.section__head p {
  max-width: 320px; font-size: 13.5px; color: var(--ink-soft);
  line-height: 2; margin: 0;
}

/* ===== Header ===== */
.site-header {
  padding: 28px 72px 0; display: flex; align-items: center;
  justify-content: space-between; position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.brand__tag {
  font-size: 10px; color: var(--ink-soft); letter-spacing: 0.22em;
  margin-top: 3px; font-family: ui-monospace, monospace;
}
.nav { display: flex; gap: 32px; font-size: 13.5px; }
.nav a { position: relative; padding: 4px 0; }
.nav a.is-active { color: var(--tiffany-deep); }
.nav a.is-active::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--tiffany);
}
.cta {
  padding: 11px 22px; border: 1.5px solid var(--ink);
  font-size: 12.5px; letter-spacing: 0.06em;
}
.cta--fill { background: var(--ink); color: var(--paper); }

/* ===== Hero (hybrid 100vh) ===== */
.hero {
  min-height: 820px; padding: 56px 72px 48px; position: relative;
  overflow: hidden; display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.hero__top { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 14px; border: 1.5px solid var(--ink);
  font-family: ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.22em;
}
.hero__badge .dot {
  display: inline-block; width: 7px; height: 7px; background: var(--navy);
}
.hero__center {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2; max-width: 820px;
}
.hero h1 {
  font-size: 64px; line-height: 1.3; letter-spacing: 0.01em;
  font-weight: 800; margin: 0; white-space: pre-line;
}
.hero__rule { width: 72px; height: 4px; background: var(--navy); margin-top: 28px; }
.hero__sub {
  margin: 28px 0 0; font-size: 17.5px; line-height: 2.1;
  color: var(--ink-soft); max-width: 560px; font-weight: 500; white-space: pre-line;
}
.hero__divider {
  width: 200px; height: 1px; background: var(--line); margin-top: 32px;
}
.hero__byline {
  margin: 16px 0 0; font-size: 14px; color: var(--ink-soft);
  letter-spacing: 0.04em; font-family: "Shippori Mincho", serif; font-style: italic;
}
.profile__wish {
  margin-top: 24px; padding: 18px 22px;
  border-left: 3px solid var(--tiffany);
  background: rgba(10, 186, 181, 0.06);
}
.profile__wish-quote {
  font-family: "Shippori Mincho", serif; font-size: 18px;
  color: var(--ink); margin: 0; font-weight: 600; letter-spacing: 0.02em;
}
.profile__wish-note {
  margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero__actions { display: flex; gap: 16px; margin-top: 40px; align-items: center; }
.btn {
  padding: 16px 30px; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.06em; display: inline-block;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { padding: 16px 24px; color: var(--ink); }
.hero__foot {
  position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; padding-top: 24px;
}
.hero__meta {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.2em; display: flex; gap: 28px;
}
.hero__scroll { display: flex; align-items: center; gap: 14px; }
.hero__scroll .mono { font-size: 12px; letter-spacing: 0.22em; }
.hero__scroll .label { font-size: 13.5px; font-weight: 600; }
.hero__illus {
  position: absolute; right: 96px; top: 168px; z-index: 1; width: 200px; height: 240px;
}

/* ===== Decorative SVG containers ===== */
.deco { position: absolute; pointer-events: none; }

/* ===== Image placeholder ===== */
.slot {
  background: rgba(61,46,38,0.08); border: 2px solid var(--choco);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.05em;
}
.slot--rust { border-color: var(--navy); background: rgba(30,42,58,0.06); }
.slot--oat { border-color: var(--oat); background: rgba(168,152,128,0.10); }

/* ===== Categories ===== */
.cats {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px;
}
.cat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px 24px 56px;
  position: relative; overflow: hidden; min-height: 168px;
  color: inherit;
}
.cat__no {
  font-size: 10.5px; color: var(--ink-soft);
  letter-spacing: 0.2em; margin-bottom: 6px;
  font-family: ui-monospace, monospace;
}
.cat__title { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.cat__sub {
  font-size: 10px; color: var(--ink-soft); letter-spacing: 0.16em; margin-bottom: 14px;
}
.cat__blurb { font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); margin: 0; }
.cat__count {
  position: absolute; bottom: 18px; right: 22px; font-size: 11.5px; color: var(--ink);
}
.cat__tint {
  position: absolute; top: -28px; right: -28px; width: 90px; height: 90px;
  border-radius: 50%; opacity: 0.5;
}
.cat--primary {
  grid-row: span 2; background: var(--paper);
  border: 1.5px solid var(--tiffany); border-radius: 28px;
  padding: 36px 36px 32px; min-height: 360px;
}
.cat--primary .cat__no { color: var(--tiffany-deep); letter-spacing: 0.22em; }
.cat--primary .cat__title { font-size: 30px; }
.cat--primary .cat__blurb {
  font-size: 14.5px; line-height: 2; color: var(--ink);
  white-space: pre-line; margin: 0 0 32px; max-width: 360px;
}
.cat__row {
  display: flex; align-items: center; gap: 14px; margin-top: auto;
}
.cat__row .hr { flex: 1; height: 1px; background: var(--line); }
.cat__row .more { font-size: 13px; color: var(--ink); }

/* ===== Profile ===== */
.profile {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  padding: 56px; background: var(--paper); border-radius: 32px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.profile__photo { width: 220px; height: 220px; }
.profile__handle {
  position: absolute; bottom: -10px; right: 30px; padding: 6px 14px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.1em; font-family: ui-monospace, monospace;
}
.profile__body { position: relative; align-self: center; }
.profile__name {
  font-size: 32px; margin: 0 0 6px; font-weight: 800;
}
.profile__role {
  font-size: 14px; color: var(--ink-soft); margin-left: 14px; font-weight: 500;
}
.profile__career { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.profile__quote {
  font-size: 16px; line-height: 2; color: var(--ink); margin: 0;
  white-space: pre-line; font-family: "Shippori Mincho", serif;
}
.profile__links { display: flex; gap: 24px; margin-top: 28px; font-size: 12.5px; }

/* ===== Articles ===== */
.articles {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
}
.article-feature {
  background: var(--bg); border-radius: 24px; padding: 28px 28px 32px;
  position: relative; overflow: hidden;
}
.article-feature .slot { width: 100%; height: 220px; }
.article-meta {
  display: flex; gap: 14px; font-size: 11px; color: var(--ink-soft);
  margin: 22px 0 10px; letter-spacing: 0.08em;
  font-family: ui-monospace, monospace;
}
.article-meta .cat-name { color: var(--tiffany-deep); }
.article-feature h3 {
  font-size: 22px; line-height: 1.65; margin: 0 0 12px; font-weight: 700;
}
.article-feature p {
  font-size: 13.5px; line-height: 2; color: var(--ink-soft); margin: 0;
}
.article-list { display: flex; flex-direction: column; }
.article-row {
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  display: block;
}
.article-row:last-child { border-bottom: none; }
.article-row .article-meta { font-size: 10.5px; margin: 0 0 8px; }
.article-row h4 {
  font-size: 15.5px; line-height: 1.65; margin: 0 0 6px; font-weight: 700;
}
.article-row p {
  font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); margin: 0;
}

/* ===== CTA Band ===== */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 80px 72px;
}
.cta-band__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; position: relative; z-index: 2;
}
.cta-band__copy h2 { margin: 6px 0 18px; }
.cta-band__lead {
  font-size: 14.5px; line-height: 2; color: #C9C2AF;
  margin: 0; max-width: 440px;
}
.cta-band__actions {
  display: flex; flex-direction: column; gap: 14px;
}
.btn-cta {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border: 1.5px solid rgba(250,246,236,0.18);
  background: rgba(250,246,236,0.04); color: var(--paper);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-cta:hover { background: rgba(250,246,236,0.10); transform: translateX(2px); }
.btn-cta__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250,246,236,0.10); flex: none;
}
.btn-cta__sub {
  margin-left: auto; font-size: 11.5px; font-weight: 500;
  color: rgba(250,246,236,0.6); letter-spacing: 0.08em;
  font-family: ui-monospace, monospace;
}
.btn-cta--primary {
  background: var(--tiffany); border-color: var(--tiffany); color: #fff;
}
.btn-cta--primary:hover { background: var(--tiffany-deep); border-color: var(--tiffany-deep); }
.btn-cta--primary .btn-cta__icon { background: rgba(255,255,255,0.18); }
.btn-cta--primary .btn-cta__sub { color: rgba(255,255,255,0.8); }
.btn-cta--secondary {
  background: transparent; border-color: rgba(250,246,236,0.35);
}
.btn-cta--ghost {
  background: transparent; border-color: transparent;
  padding: 14px 24px; font-size: 13.5px;
}
.btn-cta--ghost:hover { background: rgba(250,246,236,0.04); }

@media (max-width: 900px) {
  .cta-band { padding: 56px 24px; }
  .cta-band__inner { grid-template-columns: 1fr; gap: 32px; }
  .btn-cta { padding: 16px 18px; font-size: 14px; }
  .btn-cta__sub { font-size: 10.5px; }
}

/* ===== Footer (simplified) ===== */
.site-footer {
  padding: 48px 72px 36px; background: var(--bg); position: relative;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
}
.footer-brand { font-size: 15px; font-weight: 800; }
.footer-text {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.9;
  margin: 6px 0 0; max-width: 360px;
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 12.5px;
}
.footer-base {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 11px; color: var(--ink-soft);
  font-family: ui-monospace, monospace; letter-spacing: 0.1em;
}

/* ===== Sub-page shells ===== */
.subhero {
  padding: 64px 72px 72px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.subhero .eyebrow { color: var(--tiffany-deep); }
.subhero h1 {
  font-size: 56px; line-height: 1.3; letter-spacing: 0.01em;
  margin: 8px 0 24px; font-weight: 800;
}
.subhero p {
  font-size: 16px; line-height: 2; color: var(--ink-soft);
  max-width: 640px; margin: 0;
}
.breadcrumbs {
  font-family: ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 18px;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

/* Article post body */
.post {
  padding: 72px 72px 96px; max-width: 800px; margin: 0 auto;
}
.post__meta {
  display: flex; gap: 18px; font-family: ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 14px;
}
.post__meta .cat-name { color: var(--tiffany-deep); }
.post h1 {
  font-size: 40px; line-height: 1.5; margin: 0 0 28px; font-weight: 800;
}
.post__lead {
  font-size: 16.5px; line-height: 2.1; color: var(--ink-soft);
  border-left: 3px solid var(--navy); padding: 6px 0 6px 20px;
  margin: 0 0 40px;
}
.post__cover {
  width: 100%; height: 320px; margin-bottom: 40px;
}
.post p {
  font-size: 15.5px; line-height: 2.2; margin: 0 0 24px; color: var(--ink);
}
.post h2 {
  font-size: 24px; font-weight: 800; margin: 56px 0 18px;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--ink);
}
.post blockquote {
  border-left: 3px solid var(--tiffany); padding: 8px 0 8px 22px;
  color: var(--ink-soft); font-style: normal; margin: 32px 0;
  font-family: "Shippori Mincho", serif; font-size: 17px; line-height: 2;
}

/* Category index list */
.cat-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px;
}
.cat-list .article-row { padding: 18px 0; }

/* Tag pill */
.tag {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--ink); font-size: 11px;
  letter-spacing: 0.1em; font-family: ui-monospace, monospace;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .site-header { padding: 24px 24px 0; flex-wrap: wrap; gap: 16px; }
  .nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; padding-bottom: 8px; }
  .hero { padding: 36px 24px 32px; min-height: 720px; }
  .hero h1 { font-size: 44px; }
  .hero__illus { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__meta { flex-wrap: wrap; gap: 12px 18px; font-size: 10px; }
  .section { padding: 56px 24px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .h-section { font-size: 28px; }
  .cats { grid-template-columns: 1fr; gap: 16px; }
  .cat--primary { grid-row: auto; min-height: 240px; padding: 28px 24px; }
  .cat--primary .cat__title { font-size: 24px; }
  .profile { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .profile__photo { width: 100%; height: 240px; }
  .articles { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 24px 28px; }
  .footer-top { flex-direction: column; gap: 18px; }
  .footer-base { flex-direction: column; gap: 8px; }
  .subhero { padding: 40px 24px 48px; }
  .subhero h1 { font-size: 32px; }
  .post { padding: 40px 24px 64px; }
  .post h1 { font-size: 28px; }
  .cat-list { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== SWELL TOC 互換用ラッパー（display: contents でレイアウトから透明化） ===== */
/* SWELL の TOC JS は .l-mainContent__inner > .post_content を探す。
 * 私たちのデザインはこのクラスを使わないため、ラッパーだけ追加し、
 * display: contents でレイアウトには影響させない。 */
.salaryman-nurse .post .l-mainContent,
.salaryman-nurse .post .l-mainContent__inner {
  display: contents !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* SWELL の .post_content デフォルト margin/padding をリセット */
.salaryman-nurse .post .post_content {
  margin: 0 !important;
  padding: 0 !important;
}

/* SWELL の .post_content h1 が私たちのh1 を上書きするのを防ぐ */
.salaryman-nurse .post h1,
.salaryman-nurse .post_content h1 {
  font-size: 40px !important;
  line-height: 1.5 !important;
  margin: 0 0 28px !important;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  .salaryman-nurse .post h1,
  .salaryman-nurse .post_content h1 {
    font-size: 28px !important;
  }
}

/* ===== フッターを中央寄せ ===== */
.salaryman-nurse .site-footer {
  text-align: center;
}
.salaryman-nurse .footer-top {
  justify-content: center !important;
  text-align: center;
}
.salaryman-nurse .footer-top > div,
.salaryman-nurse .footer-top > ul {
  text-align: center !important;
}
.salaryman-nurse .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.salaryman-nurse .footer-bottom {
  text-align: center !important;
  justify-content: center !important;
  display: flex !important;
  width: 100%;
}

/* ===== SWELL の body 色を強制上書き ===== */
body.salaryman-nurse {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--ink) !important;
  font-family: "Zen Kaku Gothic Antique", "Hiragino Sans", "Yu Gothic", sans-serif !important;
}

/* SWELLの.l-container 等のコンテナ背景も透過にしておく */
.salaryman-nurse .l-container,
.salaryman-nurse #wrapper,
.salaryman-nurse #content,
.salaryman-nurse .l-mainContent {
  background: transparent !important;
}

/* ===== SWELL の frame-on / sidebar-on を完全無効化 ===== */
.salaryman-nurse.-frame-on .l-mainContent,
.salaryman-nurse .l-mainContent,
.salaryman-nurse .-frame-on .l-mainContent {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: none !important;
  border: none !important;
}

.salaryman-nurse .l-sidebar,
.salaryman-nurse #sidebar {
  display: none !important;
}

.salaryman-nurse .l-content,
.salaryman-nurse #content {
  padding: 0 !important;
}

.salaryman-nurse .l-container,
.salaryman-nurse .l-content > .l-container {
  max-width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}

/* SWELL の post_content h2/h3 を私たちのスタイルで上書き */
.salaryman-nurse .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
.salaryman-nurse .post h2 {
  color: var(--ink) !important;
  background: transparent !important;
  padding: 0 0 12px !important;
  border-radius: 0 !important;
  border-bottom: 1.5px solid var(--ink) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  margin: 56px 0 18px !important;
}

.salaryman-nurse .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
.salaryman-nurse .post h2::before {
  display: none !important;
  content: none !important;
}

.salaryman-nurse .post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
.salaryman-nurse .post h3 {
  padding: 0 0 8px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 36px 0 12px !important;
  color: var(--ink) !important;
}

.salaryman-nurse .post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
.salaryman-nurse .post h3::before {
  display: none !important;
  content: none !important;
}

/* TOC（目次）位置調整 */
.salaryman-nurse .post_content .p-toc {
  margin: 2em auto !important;
  max-width: 100% !important;
}

/* ===== 自前TOC（snc-toc）アコーディオン版（コンパクト） ===== */
.salaryman-nurse .snc-toc {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  margin: 0 0 36px;       /* 本文の冒頭に置くので上余白なし */
  position: relative;
  max-width: 100%;        /* 本文と幅を揃える */
  overflow: hidden;
}
.salaryman-nurse .snc-toc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tiffany);
  z-index: 1;
}
.salaryman-nurse .snc-toc__head {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.15s ease;
}
.salaryman-nurse .snc-toc__head::-webkit-details-marker {
  display: none;
}
.salaryman-nurse .snc-toc__head::marker {
  display: none;
  content: "";
}
.salaryman-nurse .snc-toc__head:hover {
  background-color: rgba(10, 186, 181, 0.04);
}
.salaryman-nurse .snc-toc__title {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  flex: 1;
}
.salaryman-nurse .snc-toc__title::before {
  content: "—";
  margin-right: 10px;
  color: var(--tiffany-deep);
}
.salaryman-nurse .snc-toc__arrow {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -3px;
  flex: none;
}
.salaryman-nurse .snc-toc[open] .snc-toc__arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.salaryman-nurse .snc-toc__list {
  list-style: none;
  padding: 4px 20px 16px 24px;
  margin: 0;
  counter-reset: snc-toc-counter;
  border-top: 1px solid var(--line);
}
.salaryman-nurse .snc-toc__item {
  position: relative;
  margin: 4px 0;
  line-height: 1.6;
}
.salaryman-nurse .snc-toc__item--h2 {
  counter-increment: snc-toc-counter;
  padding-left: 30px;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 10px;
}
.salaryman-nurse .snc-toc__item--h2:first-child {
  margin-top: 6px;
}
.salaryman-nurse .snc-toc__item--h2::before {
  content: counter(snc-toc-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--tiffany-deep);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.salaryman-nurse .snc-toc__item--h3 {
  padding-left: 42px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 2px 0;
}
.salaryman-nurse .snc-toc__item--h3::before {
  content: "·";
  position: absolute;
  left: 32px;
  color: var(--oat);
}
.salaryman-nurse .snc-toc__list a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.salaryman-nurse .snc-toc__list a:hover {
  border-bottom-color: var(--tiffany);
}

/* スクロール時のヘッダー回避 */
.salaryman-nurse .post_content h2,
.salaryman-nurse .post_content h3 {
  scroll-margin-top: 80px;
}

/* ===== 中央寄せ：記事ページ全体（コンパクト版） ===== */
/* SWELL の構造を上書きして、記事を中央寄せ・最大幅720pxに */
.salaryman-nurse.single .l-content,
.salaryman-nurse.page .l-content {
  display: flex;
  justify-content: center;
  width: 100%;
}
.salaryman-nurse.single .l-mainContent,
.salaryman-nurse.page .l-mainContent {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 16px !important;
  background: transparent !important;
}
.salaryman-nurse .post {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}
.salaryman-nurse .post_content {
  max-width: 100%;
  margin: 0 auto;
}
.salaryman-nurse .post_content p {
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 600px) {
  .salaryman-nurse.single .l-mainContent,
  .salaryman-nurse.page .l-mainContent {
    padding: 8px !important;
  }
  .salaryman-nurse .post {
    padding: 20px 12px 56px;
  }
  .salaryman-nurse .snc-toc {
    margin: 20px 0 32px;
  }
  .salaryman-nurse .snc-toc__head {
    padding: 10px 16px 10px 22px;
  }
  .salaryman-nurse .snc-toc__list {
    padding: 4px 16px 14px 22px;
  }
}

/* ===== Pagination (category/archive) ===== */
.salaryman-nurse .pagination,
.salaryman-nurse .c-pagination,
.salaryman-nurse nav.navigation.pagination {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 56px 0 24px !important;
  width: 100% !important;
}
.salaryman-nurse .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 0 7px !important;
  border-radius: 3px !important;
  border: 1px solid var(--ink) !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}
.salaryman-nurse .page-numbers:hover {
  background: var(--ink) !important;
  color: var(--bg) !important;
}
.salaryman-nurse .page-numbers.current {
  background: var(--ink) !important;
  color: var(--bg) !important;
}
.salaryman-nurse .page-numbers.dots {
  border: none !important;
  background: transparent !important;
}

/* ===== About page body ===== */
.salaryman-nurse .about__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
}
.salaryman-nurse .about__body > p {
  margin: 0 0 18px;
}
.salaryman-nurse .about__body h2 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 56px 0 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(30,42,58,0.18) !important;
  color: var(--ink) !important;
  letter-spacing: 0.02em;
}
.salaryman-nurse .about__body h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 32px 0 12px !important;
  color: var(--ink) !important;
}
.salaryman-nurse .about__body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
}
.salaryman-nurse .about__body ul li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px dashed rgba(30,42,58,0.14);
  font-size: 14.5px;
  line-height: 1.8;
}
.salaryman-nurse .about__body ul li:last-child {
  border-bottom: none;
}
.salaryman-nurse .about__body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent, #0ABAB5);
}
.salaryman-nurse .about__body ul li strong {
  color: var(--ink);
  font-weight: 700;
}
.salaryman-nurse .about__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent, #0ABAB5);
  text-decoration: none;
  padding-bottom: 1px;
}
.salaryman-nurse .about__body a:hover {
  color: var(--accent, #0ABAB5);
}
.salaryman-nurse .about__body blockquote {
  position: relative;
  margin: 24px 0;
  padding: 20px 28px;
  background: rgba(10,186,181,0.06);
  border-left: 3px solid var(--accent, #0ABAB5);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.9;
}
.salaryman-nurse .about__body blockquote p {
  margin: 0;
}
.salaryman-nurse .about__body blockquote strong {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* ===== Global centered layout (2026-05-11) ===== */
.salaryman-nurse .site-header,
.salaryman-nurse .hero,
.salaryman-nurse .section,
.salaryman-nurse .site-footer {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 1200px) {
  .salaryman-nurse .site-header,
  .salaryman-nurse .hero,
  .salaryman-nurse .section,
  .salaryman-nurse .site-footer {
    max-width: 100% !important;
  }
}

/* ===== Hero: fit in first viewport (2026-05-11) ===== */
.salaryman-nurse .hero {
  min-height: calc(100vh - 90px) !important;
  padding: 32px 72px 28px !important;
}
.salaryman-nurse .hero h1 {
  font-size: 54px !important;
  line-height: 1.28 !important;
}
.salaryman-nurse .hero__rule { margin-top: 20px !important; }
.salaryman-nurse .hero__sub { margin-top: 20px !important; font-size: 16px !important; line-height: 1.95 !important; }
.salaryman-nurse .hero__divider { margin-top: 22px !important; }
.salaryman-nurse .hero__byline { margin-top: 12px !important; font-size: 13px !important; }
.salaryman-nurse .hero__actions { margin-top: 28px !important; }
.salaryman-nurse .hero__center { max-width: 720px !important; }
.salaryman-nurse .hero__illus { width: 170px !important; height: 200px !important; top: 140px !important; right: 64px !important; }
@media (max-height: 760px) {
  .salaryman-nurse .hero h1 { font-size: 46px !important; }
  .salaryman-nurse .hero__sub { font-size: 14.5px !important; line-height: 1.8 !important; }
}

/* ===== Sticky Header (2026-05-11) ===== */
.salaryman-nurse .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: var(--bg) !important;
  padding-top: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.salaryman-nurse .site-header .brand__name { font-size: 16px; }
.salaryman-nurse .site-header .brand__tag { font-size: 9.5px; }

/* ===== Profile photo (real image) ===== */
.salaryman-nurse .profile__photo--img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--oat);
  background: rgba(168,152,128,0.10);
  display: block;
}

/* ===== Mobile fixes (2026-05-11) ===== */
@media (max-width: 768px) {
  .salaryman-nurse .site-header,
  .salaryman-nurse .hero,
  .salaryman-nurse .section,
  .salaryman-nurse .site-footer {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Header */
  .salaryman-nurse .site-header {
    padding: 14px 16px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
  }
  .salaryman-nurse .site-header .brand { gap: 10px; }
  .salaryman-nurse .site-header .brand__mark { width: 30px; height: 30px; }
  .salaryman-nurse .site-header .brand__name { font-size: 15px; }
  .salaryman-nurse .site-header .brand__tag { font-size: 9px; letter-spacing: 0.16em; }
  .salaryman-nurse .site-header .cta {
    order: 2; margin-left: auto; padding: 7px 12px !important; font-size: 11px !important;
  }
  .salaryman-nurse .site-header .nav {
    order: 3; width: 100%; gap: 18px !important;
    overflow-x: auto; flex-wrap: nowrap !important;
    white-space: nowrap; padding-bottom: 4px;
    font-size: 13px !important;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .salaryman-nurse .site-header .nav::-webkit-scrollbar { display: none; }
  .salaryman-nurse .site-header .nav a { flex: none; padding: 4px 0 !important; }

  /* Hero */
  .salaryman-nurse .hero {
    padding: 28px 20px 36px !important;
    min-height: auto !important;
  }
  .salaryman-nurse .hero h1 { font-size: 34px !important; line-height: 1.32 !important; }
  .salaryman-nurse .hero__sub { font-size: 14px !important; line-height: 1.85 !important; }
  .salaryman-nurse .hero__byline { font-size: 12px !important; }
  .salaryman-nurse .hero__center { max-width: 100% !important; }
  .salaryman-nurse .hero__actions { flex-direction: column; align-items: stretch; gap: 10px !important; margin-top: 22px !important; }
  .salaryman-nurse .hero__actions .btn { text-align: center; padding: 14px 16px !important; font-size: 13px !important; }
  .salaryman-nurse .hero__illus { display: none !important; }
  .salaryman-nurse .hero .deco { transform: scale(0.55); opacity: 0.5; }

  /* Section padding */
  .salaryman-nurse .section { padding: 40px 20px !important; }
  .salaryman-nurse .h-section { font-size: 22px !important; }
  .salaryman-nurse .section__head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px !important; }
  .salaryman-nurse .section__head p { max-width: 100% !important; font-size: 12.5px !important; }

  /* Categories */
  .salaryman-nurse .cats { grid-template-columns: 1fr !important; gap: 14px !important; }
  .salaryman-nurse .cat { min-height: auto !important; padding: 20px 18px 42px !important; }
  .salaryman-nurse .cat--primary {
    grid-row: auto !important; min-height: auto !important;
    padding: 24px 20px !important; border-radius: 20px !important;
  }
  .salaryman-nurse .cat--primary .cat__title { font-size: 22px !important; }
  .salaryman-nurse .cat--primary .cat__blurb { font-size: 13px !important; }

  /* Profile */
  .salaryman-nurse .profile {
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
    gap: 20px !important;
    text-align: left;
  }
  .salaryman-nurse .profile__photo--img {
    max-width: 200px !important;
    margin: 0 auto;
  }
  .salaryman-nurse .profile__handle {
    left: 50% !important; transform: translateX(-50%) !important;
    bottom: -10px !important;
  }
  .salaryman-nurse .profile__name { font-size: 22px !important; flex-wrap: wrap; gap: 10px; }
  .salaryman-nurse .profile__role { font-size: 12px !important; }
  .salaryman-nurse .profile__career { font-size: 13px !important; }
  .salaryman-nurse .profile__quote { font-size: 14px !important; line-height: 1.85 !important; }
  .salaryman-nurse .profile__wish { padding: 14px 16px !important; }
  .salaryman-nurse .profile__wish-quote { font-size: 15px !important; }
  .salaryman-nurse .profile__wish-note { font-size: 11.5px !important; }

  /* Articles list */
  .salaryman-nurse .articles { grid-template-columns: 1fr !important; gap: 18px !important; }
  .salaryman-nurse .article-feature h3 { font-size: 18px !important; }
  .salaryman-nurse .article-row h4 { font-size: 15px !important; }

  /* Footer */
  .salaryman-nurse .site-footer { padding: 32px 20px 24px !important; }
  .salaryman-nurse .footer-top { flex-direction: column !important; gap: 18px !important; align-items: flex-start !important; }
  .salaryman-nurse .footer-links { flex-wrap: wrap; gap: 12px 16px !important; }
  .salaryman-nurse .footer-legal { font-size: 11px !important; gap: 12px !important; }

  /* About body */
  .salaryman-nurse .about__body { font-size: 14.5px !important; line-height: 1.9 !important; }
  .salaryman-nurse .about__body h2 { font-size: 18px !important; margin-top: 36px !important; }
  .salaryman-nurse .about__body blockquote { padding: 16px 18px !important; }

  /* Single article */
  .salaryman-nurse .post h1 { font-size: 22px !important; line-height: 1.5 !important; }
  .salaryman-nurse .breadcrumbs { font-size: 11px !important; flex-wrap: wrap; }
  .salaryman-nurse .post_content { font-size: 15px !important; line-height: 1.95 !important; }
  .salaryman-nurse .post_content h2 { font-size: 19px !important; }
  .salaryman-nurse .post_content h3 { font-size: 16px !important; }
}
