/* shiroworks.com
   1ページ構成。色はカスタムプロパティに集約してあるので、
   :root の値を変えれば全体の配色が変わります。 */

:root {
  --bg:          #FCFCFD;
  --fg:          #16181D;
  --body:        #40444E;
  --muted:       #50545E;
  --muted-2:     #6C707A;
  --faint:       #646A74;
  --faintest:    #6E747E;
  --rule:        #E7E8EC;
  --rule-2:      #EDEEF1;
  --rule-dash:   #DFE1E6;
  --btn-border:  #D3D6DD;
  --accent:      #2C6FD1;
  --accent-hov:  #1E52A0;
  --on-accent:   #FFFFFF;

  --max:      900px;
  --pad:      72px;
  --label-w:  230px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0F1216;
    --fg:          #E9EBEF;
    --body:        #BFC5CF;
    --muted:       #AEB4BF;
    --muted-2:     #8E94A0;
    --faint:       #888E9A;
    --faintest:    #7C828E;
    --rule:        #262B33;
    --rule-2:      #1F242B;
    --rule-dash:   #2C323B;
    --btn-border:  #333A44;
    --accent:      #6DA8EA;
    --accent-hov:  #93C2F3;
    --on-accent:   #0F1216;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hov); text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* 読み飛ばしリンク（キーボード操作時のみ見える） */
.skip {
  position: absolute; left: -9999px;
  background: var(--fg); color: var(--bg);
  padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

/* ── ヘッダー ───────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 26px; padding-bottom: 26px;
}
.wordmark {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--fg); text-decoration: none;
}
.wordmark:hover { color: var(--fg); text-decoration: none; }
.site-nav { display: flex; gap: 28px; font-size: 13px; }
.site-nav a { color: var(--muted-2); }
.site-nav a:hover { color: var(--accent); }

/* ── ヒーロー ───────────────────────────── */

.hero { padding: 96px 0 88px; }
.hero-inner { display: flex; flex-direction: column; gap: 32px; }

.who { display: flex; align-items: center; gap: 16px; }
.who img { width: 44px; height: 44px; border-radius: 50%; }
.who-text { font-size: 13px; color: var(--muted-2); line-height: 1.5; }

h1 {
  margin: 0;
  font-size: 42px; font-weight: 700; line-height: 1.5;
  letter-spacing: -0.005em;
}
.lede { max-width: 640px; font-size: 16px; line-height: 2; color: var(--body); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-size: 14px; font-weight: 500; border-radius: 4px;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hov); color: var(--on-accent); }
.btn-ghost {
  border: 1px solid var(--btn-border); color: var(--fg); padding: 0 24px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── セクション共通 ─────────────────────── */

section { padding-top: 76px; }
section > .wrap > .inner {
  border-top: 1px solid var(--rule);
  padding-top: 56px;
  display: flex; flex-direction: column; gap: 32px;
}
h2 {
  margin: 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--faint);
}
.section-lede { max-width: 640px; font-size: 15px; line-height: 2; color: var(--body); }

/* 左に見出し、右に本文の2カラム行 */
.row {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  gap: 28px;
  align-items: baseline;
}
.row-label { font-size: 17px; font-weight: 700; line-height: 1.6; }
.row-body  { font-size: 14.5px; line-height: 1.95; color: var(--muted); }

.rows { display: flex; flex-direction: column; gap: 34px; }

/* できること：従属ブロック */
.aside-row {
  border-top: 1px dashed var(--rule-dash);
  padding-top: 24px;
  align-items: baseline;
}
.aside-row .row-label { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.aside-row .row-body  { font-size: 13.5px; color: var(--muted-2); }

/* ── 実績 ───────────────────────────────── */

.works { display: flex; flex-direction: column; }
.work {
  padding: 22px 0;
  border-top: 1px solid var(--rule-2);
}
.work:last-of-type { border-bottom: 1px solid var(--rule-2); }
.work .row-label { font-size: 14.5px; }
.work .row-body  { font-size: 14px; }
.work-sub {
  display: block;
  font-weight: 400; font-size: 13px; color: var(--faint);
}
.note-line { max-width: 640px; font-size: 13.5px; line-height: 1.95; color: var(--muted-2); }

/* ── 進め方 ─────────────────────────────── */

.steps { display: flex; flex-direction: column; gap: 36px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 28px; align-items: start; }
.step-num {
  font-size: 26px; font-weight: 700; line-height: 1.2;
  color: var(--rule);
}
@media (prefers-color-scheme: dark) { .step-num { color: #39414C; } }
.step-body { display: flex; flex-direction: column; gap: 8px; }
.step-title { font-size: 17px; font-weight: 700; }
.step-text { max-width: 600px; font-size: 14.5px; line-height: 1.95; color: var(--muted); }

/* ── お問い合わせ ───────────────────────── */

.contact-mail {
  font-size: 22px; font-weight: 700;
  word-break: break-all;
}
.contact-sub { font-size: 13.5px; color: var(--muted-2); }

/* ── フッター ───────────────────────────── */

.site-foot { padding: 88px 0 40px; }
.site-foot .inner {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.foot-mark { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted-2); }
.foot-copy { font-size: 12px; color: var(--faintest); }

/* ── スマホ ─────────────────────────────── */

@media (max-width: 767px) {
  :root { --pad: 24px; }

  .site-head .wrap {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding-top: 18px; padding-bottom: 16px;
  }
  .site-nav { flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; }

  .hero { padding: 44px 0 48px; }
  .hero-inner { gap: 24px; }
  h1 { font-size: 27px; line-height: 1.55; letter-spacing: 0; }
  .lede { font-size: 14.5px; }

  .actions { flex-direction: column; gap: 10px; }
  .btn { width: 100%; min-height: 52px; font-size: 15px; }

  section { padding-top: 48px; }
  section > .wrap > .inner { padding-top: 36px; gap: 24px; }
  h2 { font-size: 12px; }
  .section-lede { font-size: 14.5px; }

  .row { grid-template-columns: 1fr; gap: 8px; }
  .rows { gap: 26px; }
  .row-label { font-size: 16px; }
  .row-body  { font-size: 14px; }

  .aside-row { padding-top: 20px; }

  .work { padding: 18px 0; }
  .work .row-label { font-size: 14.5px; }
  .work .row-body  { font-size: 13.5px; }
  .work-sub { display: inline; font-size: 12.5px; }
  .work-sub::before { content: " ／ "; }

  .steps { gap: 28px; }
  .step { grid-template-columns: 30px 1fr; gap: 16px; }
  .step-num { font-size: 21px; }
  .step-title { font-size: 16px; }
  .step-text { font-size: 14px; }

  .contact-mail { font-size: 17px; }

  .site-foot { padding: 48px 0 32px; }
  .site-foot .inner { padding-top: 20px; }
}

/* ── v3 追加コンポーネント ─────────────────── */

:root {
  --card-bg:   #FFFFFF;
  --icon-bg:   rgba(44, 111, 209, 0.09);
  --tint-bg:   rgba(44, 111, 209, 0.05);
  --flow-rule: rgba(44, 111, 209, 0.30);
}
@media (prefers-color-scheme: dark) {
  :root {
    --card-bg:   #151A21;
    --icon-bg:   rgba(109, 168, 234, 0.14);
    --tint-bg:   rgba(109, 168, 234, 0.08);
    --flow-rule: rgba(109, 168, 234, 0.35);
  }
}

/* できること：カード */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  display: flex; flex-direction: column; gap: 13px;
  padding: 26px 26px 28px;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--card-bg);
}
.icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--icon-bg); color: var(--accent);
}
.card-title { font-size: 17px; font-weight: 700; }
.card-text { font-size: 14px; line-height: 1.95; color: var(--muted); }

/* 業界知識：色地カード */
.tints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tint {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: 8px;
  background: var(--tint-bg);
}
.tint-step { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.tint-title { font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.tint-text { font-size: 13.5px; line-height: 1.95; color: var(--muted); }

/* 進め方：横に流れる4ステップ */
.flow { position: relative; }
.flow-line {
  position: absolute; left: 21px; right: 21px; top: 21px;
  height: 1px; background: var(--flow-rule);
}
.flow-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.flow-item { display: flex; flex-direction: column; gap: 14px; }
.flow-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  flex-shrink: 0;
}
.flow-body { display: flex; flex-direction: column; gap: 7px; }
.flow-step { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint); }
.flow-title { font-size: 15.5px; font-weight: 700; line-height: 1.55; }
.flow-text { font-size: 13px; line-height: 1.9; color: var(--muted); }

@media (max-width: 767px) {
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 22px; }
  .card-title { font-size: 16px; }
  .card-text { font-size: 13.5px; }

  .tints { grid-template-columns: 1fr; gap: 12px; }
  .tint { padding: 22px; }

  /* スマホは縦の連結線に切り替え */
  .flow-line { left: 20px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; }
  .flow-grid { grid-template-columns: 1fr; gap: 26px; }
  .flow-item { flex-direction: row; gap: 16px; align-items: flex-start; }
  .flow-icon { width: 40px; height: 40px; }
  .flow-body { padding-top: 2px; gap: 5px; }
}

/* ── v4：セクション見出し2段構成＋番号タブカード ── */

:root {
  --num-bg: #2456A8;
  --card-shadow: 0 10px 28px rgba(22, 24, 29, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --num-bg: #3A6BB8;
    --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

/* ラベル＋大見出し */
.sec-head { display: flex; flex-direction: column; gap: 14px; }
.sec-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted-2);
  border-left: 3px solid var(--accent);
  padding-left: 12px; line-height: 1.4;
}
h2 {
  font-size: 26px; font-weight: 700; line-height: 1.55;
  letter-spacing: normal; color: var(--fg);
}

/* できること：番号タブ付きカード */
.card {
  flex-direction: row; gap: 0; padding: 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.card-num {
  flex-shrink: 0; width: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--num-bg); color: #FFFFFF;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
}
.card-main {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head .icon-box { width: 40px; height: 40px; flex-shrink: 0; }

@media (max-width: 767px) {
  h2 { font-size: 20px; }
  .sec-label { font-size: 12px; }
  .card { flex-direction: row; }
  .card-num { width: 46px; font-size: 13px; }
  .card-main { padding: 20px; gap: 10px; }
  .card-head { gap: 12px; }
  .card-head .icon-box { width: 36px; height: 36px; }
}
