/* ==========================================================
   CoreWorks 共通スタイル（cw-app.jp 全ページ共通）
   - 白基調（2026-09-26 黒基調から変更）。.cw-paper は薄い紙色の面
   - 製品ごとのアクセント色は --c-* を使う
   - 既存ページと衝突しないよう、クラスはすべて cw- 接頭辞
   ========================================================== */
:root {
  --cw-bg: #ffffff;
  --cw-bg2: #f6f5f2;
  --cw-bg3: #eeebe5;
  --cw-line: rgba(27, 34, 44, .10);
  --cw-text: #1b222c;
  --cw-muted: #5a6472;
  --cw-dim: #6b7482;

  --cw-paper: #f5f3ee;
  --cw-paper2: #ffffff;
  --cw-ink: #1b222c;
  --cw-ink2: #4a5563;
  --cw-rule: #e3ded4;

  --cw-accent: #E8631A;
  --cw-accent2: #FF8A3D;
  --cw-accent-ink: #D4570F; /* 白地の上の文字用（濃いめ） */

  --c-koji: var(--cw-accent);
  --c-schedule: var(--cw-accent);
  --c-webchohyo: var(--cw-accent);
  --c-lp: var(--cw-accent);
  --c-juchu: var(--cw-accent);
  --c-mitsumori: var(--cw-accent);
  --c-unyo: var(--cw-accent);

  --cw-radius: 18px;
  --cw-max: 1160px;
  --cw-header-h: 64px;
  --cw-font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

/* ---------- ダーク基調のページ（body に .cw-dark） ---------- */
.cw-dark {
  margin: 0;
  background: var(--cw-bg);
  color: var(--cw-text);
  font-family: var(--cw-font);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
.cw-dark *, .cw-dark *::before, .cw-dark *::after { box-sizing: border-box; }
.cw-dark img { max-width: 100%; display: block; }
.cw-dark a { color: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cw-header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cw-wrap { width: 100%; max-width: var(--cw-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .cw-wrap { padding: 0 16px; } }

.cw-sec { padding: 112px 0; position: relative; }
@media (max-width: 600px) { .cw-sec { padding: 72px 0; } }

.cw-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--cw-accent-ink);
}
.cw-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.cw-h2 {
  margin: 14px 0 0; font-weight: 900; line-height: 1.35; letter-spacing: .01em;
  font-size: clamp(28px, 4.2vw, 46px);
}
.cw-lead { margin: 18px 0 0; color: var(--cw-muted); font-size: 16px; max-width: 40em; }

/* 読む面（明るいパネル） */
.cw-paper { background: var(--cw-paper); color: var(--cw-ink); }
.cw-paper .cw-lead { color: var(--cw-ink2); }
.cw-paper .cw-eyebrow { color: var(--cw-accent-ink); }

/* ---------- ボタン ---------- */
.cw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cw-accent), #C9530F);
  color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(232, 99, 26, .7);
  transition: transform .2s, box-shadow .2s;
}
.cw-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(232, 99, 26, .85); }
.cw-btn svg { width: 18px; height: 18px; flex: none; }
.cw-btn--ghost {
  background: transparent; color: var(--cw-text) !important; box-shadow: inset 0 0 0 1.5px rgba(27, 34, 44, .25);
}
.cw-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cw-text); }
.cw-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }

/* ---------- ヘッダー ---------- */
.cw-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--cw-header-h);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--cw-line);
  font-family: var(--cw-font);
  color: var(--cw-text);
}
.cw-header__in {
  max-width: var(--cw-max); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.cw-logo { display: block; flex: none; line-height: 0; }
.cw-logo img { height: 36px; width: auto; }
.cw-nav { display: flex; gap: 4px; margin-left: auto; }
.cw-nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  color: var(--cw-muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.cw-nav a:hover { color: var(--cw-text); background: rgba(27, 34, 44, .05); }
.cw-nav a[aria-current="page"] { color: var(--cw-text); }
.cw-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--cw-accent); border-radius: 2px;
}
.cw-header .cw-btn--sm { flex: none; }

.cw-menu { display: none; position: relative; }
.cw-menu > summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
}
.cw-menu > summary::-webkit-details-marker { display: none; }
.cw-menu > summary span,
.cw-menu > summary span::before,
.cw-menu > summary span::after {
  display: block; width: 20px; height: 2px; background: var(--cw-text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.cw-menu > summary span { position: relative; }
.cw-menu > summary span::before, .cw-menu > summary span::after { content: ""; position: absolute; left: 0; }
.cw-menu > summary span::before { top: -6px; }
.cw-menu > summary span::after { top: 6px; }
.cw-menu[open] > summary span { background: transparent; }
.cw-menu[open] > summary span::before { transform: translateY(6px) rotate(45deg); }
.cw-menu[open] > summary span::after { transform: translateY(-6px) rotate(-45deg); }
.cw-menu__panel {
  position: fixed; left: 0; right: 0; top: var(--cw-header-h);
  background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--cw-line); box-shadow: 0 20px 40px -20px rgba(27, 34, 44, .25);
  padding: 8px 16px 20px;
}
.cw-menu__panel a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--cw-line);
  color: var(--cw-text); text-decoration: none; font-weight: 500;
}
.cw-menu__panel a::after { content: "→"; color: var(--cw-dim); }
.cw-menu__panel a[aria-current="page"] { color: var(--cw-accent-ink); }
.cw-menu__panel .cw-btn { margin-top: 18px; width: 100%; border-bottom: 0; justify-content: center; }
.cw-menu__panel .cw-btn::after { content: none; }

@media (max-width: 960px) {
  .cw-nav { display: none; }
  .cw-header .cw-btn--sm { margin-left: auto; }
  .cw-menu { display: block; }
}
@media (max-width: 600px) {
  .cw-header__in { padding: 0 8px 0 16px; gap: 8px; }
  .cw-logo img { height: 30px; }
}

/* ---------- フッター ---------- */
.cw-footer {
  background: var(--cw-bg2); color: var(--cw-muted);
  border-top: 1px solid var(--cw-line);
  font-family: var(--cw-font); font-size: 14px; line-height: 1.8;
}
.cw-footer a { color: var(--cw-muted); text-decoration: none; }
.cw-footer a:hover { color: var(--cw-accent); }
.cw-footer__in {
  max-width: var(--cw-max); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px;
}
.cw-footer__brand img { height: 40px; width: auto; }
.cw-footer__brand p { margin: 18px 0 0; max-width: 24em; }
.cw-footer h3 {
  margin: 0 0 12px; color: var(--cw-text); font-size: 13px; letter-spacing: .12em; font-weight: 700;
}
.cw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cw-footer__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
.cw-footer__bottom {
  max-width: var(--cw-max); margin: 0 auto; padding: 20px 24px 32px;
  border-top: 1px solid var(--cw-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--cw-dim); letter-spacing: .06em;
}
@media (max-width: 760px) {
  .cw-footer__in { grid-template-columns: 1fr 1fr; padding: 48px 16px 32px; gap: 32px; }
  .cw-footer__brand { grid-column: 1 / -1; }
  .cw-footer__bottom { padding: 20px 16px 28px; }
}

/* ---------- スクロール表示（JS有効時のみ隠す） ---------- */
.js .cw-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .cw-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .cw-reveal { opacity: 1; transform: none; transition: none; }
}

/* 明るい記事ページ（事例など）に載せたときの上書き防止 */
.cw-footer p { color: var(--cw-muted); }
.cw-header *, .cw-footer * { box-sizing: border-box; }

/* ---------- 各LPの「こんな無駄が、消えました。」（2026-09-26） ---------- */
.cw-case-sec { background: var(--cw-paper); color: var(--cw-ink); padding: 96px 0; font-family: var(--cw-font); line-height: 1.8; }
.cw-case-sec * { box-sizing: border-box; }
.cw-case-sec .cw-h2 { color: var(--cw-ink); }
.cw-case {
  margin-top: 36px; padding: 32px; border-radius: 20px; background: #fff;
  border: 1px solid var(--cw-rule); box-shadow: 0 24px 48px -40px rgba(27,34,44,.45);
}
.cw-case__who { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--cw-ink2); }
.cw-case__ba { margin-top: 18px; display: grid; grid-template-columns: 1fr 36px 1fr; gap: 12px; align-items: stretch; }
.cw-case__ba > div:not(.cw-case__arrow) { padding: 20px 22px; border-radius: 14px; font-size: 15px; line-height: 1.85; }
.cw-case__b { background: #f1eee8; color: var(--cw-ink2); }
.cw-case__a { background: #fbeee4; color: var(--cw-ink); }
.cw-case__ba small { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.cw-case__b small { color: #6b6558; }
.cw-case__a small { color: var(--cw-accent-ink); }
.cw-case__arrow { display: grid; place-items: center; color: var(--cw-accent); font-size: 22px; font-weight: 700; }
.cw-case__link { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--cw-accent-ink); text-decoration: none; }
.cw-case__link:hover { text-decoration: underline; }
.cw-case__note { margin: 16px 0 0; font-size: 12.5px; color: var(--cw-dim); }
@media (max-width: 760px) {
  .cw-case-sec { padding: 64px 0; }
  .cw-case { padding: 22px 18px; }
  .cw-case__ba { grid-template-columns: 1fr; }
  .cw-case__arrow { transform: rotate(90deg); height: 24px; }
}
