/* リネンサプライ・ユニフォームレポート — ホテルリネン・ミシンステッチ デザイン */
/* モチーフ: 破線の縫い目／織り目／洗濯ラベル。CSSトークンは :root で管理 */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #2b2e33;
  --muted: #6a7280;
  --accent: #3d5a80;
  --accent-deep: #2e4764;
  --accent-2: #87919e;
  --accent-pale: #e8eef4;
  --line: #dcd6ca;
  --footer-ink: #2f3a44;
  --font-head: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  background-color: var(--bg);
  /* 極薄の織り目: 縦横交差 1px、不透明度を低く */
  background-image:
    repeating-linear-gradient(0deg, rgba(61, 90, 128, 0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(61, 90, 128, 0.04) 0 1px, transparent 1px 4px);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent-deep); }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4, .card-title, .band-title {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}

h2 { font-size: 1.42rem; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }

/* 破線の縫い目ユーティリティ */
.stitch-rule {
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-text { line-height: 1.3; }
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  display: block;
}
.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-2);
  letter-spacing: 0.14em;
}
.menu-toggle {
  margin-left: auto;
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav a {
  display: block;
  padding: 6px 9px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--accent-deep); background: var(--accent-pale); }
.global-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}
.global-nav a.is-compare {
  border-bottom: 2px dashed var(--accent-2);
}

/* ---------- 下層ページの見出し帯（ヒーローの縮小版） ---------- */
.page-band {
  background: var(--surface);
  border-bottom: 2px dashed var(--line);
  padding: 26px 0 22px;
}
.page-band .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin: 0 0 6px;
}
.band-title { font-size: 1.3rem; margin: 0; }

/* ---------- ヒーロー ---------- */
.hero-block {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.hero-label {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 2px dashed var(--accent-2);
  border-radius: 6px;
  padding: 34px 34px 30px 44px;
  max-width: 430px;
  flex: 0 0 46%;
  box-shadow: 0 2px 10px rgba(43, 46, 51, 0.06);
}
/* 左上の丸い糸穴 */
.hero-label::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  background: var(--bg);
}
.label-mono {
  position: absolute;
  right: 16px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}
.hero-label .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 12px 0 8px;
}
.hero-label h1 {
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 14px;
}
.hero-lead {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
}
.hero-btn:hover { background: var(--accent-deep); color: #fff; }
.hero-chips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-chips a {
  display: inline-block;
  border: 1px dashed var(--accent-2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.74rem;
  text-decoration: none;
  color: var(--accent-deep);
  background: var(--surface);
}
.hero-chips a:hover { background: var(--accent-pale); color: var(--accent-deep); }

.hero-figure {
  flex: 1 1 54%;
  position: relative;
  min-width: 0;
}
.hero-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-image { display: block; width: 100%; }
/* 写真の左端に重ねるラベル位置 */
.hero-block.overlap .hero-label { margin-right: -110px; }

/* ---------- コンテナ・レイアウト ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.spacer-lg { height: 56px; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 64px;
  align-items: start;
}
.article { min-width: 0; }
.article section { margin-bottom: 46px; }
.article h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-2);
  /* ブルーの短い二重線 */
  position: relative;
}
.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 74px;
  height: 2px;
  background: var(--accent);
}
.article h3 { margin: 1.6em 0 0.6em; }
.updated {
  color: var(--muted);
  font-size: 0.8rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
}
.source-note {
  background: var(--surface);
  border: 1px dashed var(--accent-2);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 10px 14px;
}
.table-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 0.5em; }

/* ---------- サイドバー ---------- */
.sidebar { min-width: 0; font-size: 0.85rem; }
.sidebar nav, .sidebar .ad-slot { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin-bottom: 18px; }
.sidebar nav h2, .sidebar .ad-slot strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 10px;
  border-bottom: 2px dashed var(--accent-2);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar nav h2 { display: flex; }
.sidebar ol, .sidebar ul { margin: 0; padding-left: 1.2em; }
.sidebar nav ol { counter-reset: toc; list-style: none; padding-left: 0; }
.sidebar nav ol li { padding-left: 1.6em; position: relative; margin-bottom: 6px; }
.sidebar nav ol li::before { counter-increment: toc; content: counter(toc) "."; position: absolute; left: 0; color: var(--accent-2); font-family: var(--font-mono); font-size: 0.75rem; }
.sidebar nav ul li { margin-bottom: 6px; }
.sidebar .ad-slot > span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--accent-2);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.sidebar .ad-slot p { font-size: 0.8rem; color: var(--muted); }

/* ---------- 比較表 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
  font-size: 0.82rem;
  line-height: 1.6;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.compare-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-head);
  white-space: nowrap;
}
.compare-table tbody th[scope="row"] {
  background: var(--accent-pale);
  white-space: nowrap;
  font-weight: 600;
  width: 150px;
}
.compare-table tbody tr:nth-child(even) { background: #f5f6f4; }

/* ---------- index: セクション・カード ---------- */
.index-section { padding: 64px 0; }
.index-section + .index-section {
  border-top: 2px dashed var(--line);
}
.section-lead { color: var(--muted); font-size: 0.9rem; margin: 6px 0 24px; }
.intro-block h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-2);
  position: relative;
}
.intro-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 74px;
  height: 2px;
  background: var(--accent);
}
.stage-list {
  list-style: none;
  counter-reset: stage;
  padding: 0;
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stage-list li {
  counter-increment: stage;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px dashed var(--accent-2);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 0.84rem;
  position: relative;
}
.stage-list li::before {
  content: "0" counter(stage);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.stance-list {
  list-style: none;
  padding: 0;
}
.stance-list li {
  padding-left: 1.4em;
  position: relative;
}
.stance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px dashed var(--accent-2);
  border-radius: 4px;
  padding: 20px 18px 18px;
}
.page-card .num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-deep);
  background: var(--accent-pale);
  border: 1px solid var(--accent-2);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.page-card .icon { color: var(--accent); margin-bottom: 8px; }
.page-card h3 { margin: 0 0 8px; font-size: 1rem; }
.page-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.page-card h3 a { text-decoration: none; }
.page-card .badge {
  display: inline-block;
  vertical-align: middle;
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  border-radius: 3px;
  padding: 2px 8px;
  margin-left: 6px;
  letter-spacing: 0.08em;
  position: absolute;
  right: 12px;
  top: 20px;
}
.page-card.is-compare {
  background: var(--accent);
  border-color: var(--accent-deep);
  border-left: 2px dashed rgba(255, 255, 255, 0.55);
}
.page-card.is-compare .num {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.page-card.is-compare .icon { color: #cfe0f0; }
.page-card.is-compare h3 a { color: #fff; }
.page-card.is-compare p { color: rgba(255, 255, 255, 0.82); }
.page-card.is-compare .badge {
  background: #fff;
  color: var(--accent-deep);
}

/* ---------- 関連サイト ---------- */
.related-sites ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.related-sites li a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px dashed var(--accent-2);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
}
.related-sites li a:hover { background: var(--accent-pale); color: var(--accent-deep); }
.related-sites strong { display: block; margin-bottom: 4px; }
.related-sites span { color: var(--muted); font-size: 0.78rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-grid h3 { margin: 0 0 6px; font-size: 0.95rem; }
.related-grid p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.related-grid article {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 14px 16px;
}
.related { scroll-margin-top: 90px; }

/* ---------- 免責・フッター ---------- */
.site-disclaimer {
  background: #eef1f0;
  border-top: 2px dashed var(--line);
}
.site-disclaimer p {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.75rem;
  color: var(--muted);
}
.site-footer {
  background: var(--footer-ink);
  color: #e9edf0;
  border-top: 3px solid var(--accent);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}
.footer-grid h2 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 10px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
}
.footer-grid p, .footer-grid a {
  color: rgba(233, 237, 240, 0.82);
  font-size: 0.8rem;
  text-decoration: none;
}
.footer-grid a { display: block; margin-bottom: 7px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-note {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 18px;
  font-size: 0.72rem;
  color: rgba(233, 237, 240, 0.6);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px;
}
.footer-links a {
  color: #fff;
  font-size: 0.78rem;
  text-decoration: underline;
}
.copyright {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6px 20px 26px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(233, 237, 240, 0.6);
}

/* ---------- LATEST-COMMENTARY ---------- */
.latest-commentary { padding: 44px 0 8px; }
.latest-commentary h2 { font-size: 1.05rem; margin: 0 0 12px; }
.latest-commentary-list { list-style: none; margin: 0 0 12px; padding: 0; }
.latest-commentary-list li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}
.latest-commentary-list time { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.latest-commentary-list a { text-decoration: none; color: var(--ink); }
.latest-commentary-list a:hover { color: var(--accent-deep); text-decoration: underline; }
.latest-commentary-more { font-size: 0.82rem; margin: 0; }
.latest-commentary-more a { text-decoration: none; color: var(--accent-deep); }

/* 空リスト時は枠ごと非表示 */
.latest-commentary:not(:has(li)) {
  display: none;
}

/* ---------- ブログ（blog/index のカテゴリ等は blog.css で調整） ---------- */
.index-stack { padding-top: 48px; padding-bottom: 72px; }

.no-scroll { overflow: hidden; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1279px) {
  .menu-toggle { display: flex; }
  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: calc(100vh - 0px);
    background: var(--surface);
    border-left: 1px solid var(--line);
    padding: 80px 16px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav a { padding: 10px 12px; font-size: 0.9rem; }
}

@media (max-width: 960px) {
  .content-layout { grid-template-columns: 1fr; }
  .hero-block { flex-direction: column-reverse; padding-bottom: 48px; }
  .hero-block.overlap .hero-label { margin-right: 0; max-width: 100%; flex: none; width: 100%; }
  .page-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-figure { width: 100%; }
}

@media (max-width: 700px) {
  .page-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .header-inner { padding: 8px 14px; }
  .hero-block { padding-top: 30px; }
  .latest-commentary-list li { flex-direction: column; gap: 2px; }
  .compare-table { font-size: 0.78rem; }
}

/* ---------- ヒーロー中間幅対策 ---------- */
@media (min-width: 961px) and (max-width: 1120px) {
  .hero-label { padding: 28px 26px 26px 40px; flex-basis: 48%; }
  .hero-block.overlap .hero-label { margin-right: -70px; }
  .hero-label h1 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
}

/* ---------- 大幅幅: ナビを1行に収める ---------- */
@media (min-width: 1281px) {
  .global-nav ul { flex-wrap: nowrap; }
  .global-nav a { padding: 6px 7px; font-size: 0.74rem; }
  .header-inner { gap: 10px; }
}

/* LATEST-COMMENTARY:START */
.latest-commentary {
  padding: 3rem 0;
}
/* .container を持たないサイトでも端に張り付かないための保険。
   :where() は詳細度0なので、サイト側の .container 定義が常に優先される。 */
:where(.latest-commentary .container) {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.latest-commentary h2 {
  margin-bottom: 1.25rem;
}
.latest-commentary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-commentary-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}
.latest-commentary-list time {
  flex: 0 0 auto;
  color: var(--muted, #666);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.latest-commentary-list a {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--ink, #222);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-commentary-list a:hover {
  color: var(--accent, #0b5);
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: var(--accent, #0b5);
  text-decoration: none;
  font-weight: 600;
}
.latest-commentary-more a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .latest-commentary-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
  /* 縦積み時に flex-basis(16rem) が高さに効かないよう auto に戻す */
  .latest-commentary-list a,
  .latest-commentary-list time {
    flex: 0 0 auto;
  }
}
/* LATEST-COMMENTARY:END */
