/* CH-514 新しいデザインのページで共通の CSS（2026-10-20 の新しい案）：色・字・ヘッダー・ボタン・段・相談する・フッター。
   トップ・ブログ・プロフィール・対応できること・事例・お問い合わせのページで読み、この上にそれぞれの CSS を足す（前の黒の assets/css/fsc-top.css はどのページでも読まない）。
   トップだけで使うもの（最初の画面・このサイトの速さ・01〜03 の段など）は assets/css/fsc-front.css に分けた（CH-793・ほかのページで読まないように）。 */

:root {
  --fsh-bg: #F3F4F1;
  --fsh-white: #fff;
  --fsh-card: #F8F9F7;
  --fsh-ink: #14202B;
  --fsh-text: #3A4754;
  --fsh-sub: #4A5662;
  --fsh-mute: #5A6672;
  --fsh-line: #DDE1DC;
  --fsh-dash: #C9CFC8;
  --fsh-green: #0B6E5A;
  --fsh-green-dark: #08503F;
  --fsh-green-light: #5FD3B4;
  --fsh-dark-line: #2E3B48;
  --fsh-dark-text: #C3CBD3;
  --fsh-dark-sub: #AEB8C2;
  --fsh-sans: 'Noto Sans JP', 'Fstyle Fallback Hiragino', 'Fstyle Fallback Yu Gothic', 'Fstyle Fallback Meiryo', system-ui, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --fsh-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fsh-gutter: 24px;
}

body.fsc-top-page {
  margin: 0;
  background: var(--fsh-bg);
  color: var(--fsh-ink);
}

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

.fsc {
  font-family: var(--fsh-sans);
  color: var(--fsh-ink);
  background: var(--fsh-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* リセットは :where で詳しさを 0 にする（個別のクラスの余白が効くように） */
:where(.fsc) :where(p, h1, h2, h3, figure, blockquote, dl, dd, ol) {
  margin: 0;
}

.fsc a {
  color: var(--fsh-green);
}

.fsc a:hover {
  color: var(--fsh-green-dark);
}

.fsc a:focus-visible {
  outline: 3px solid var(--fsh-green);
  outline-offset: 3px;
}

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

.fsc-mono {
  font-family: var(--fsh-mono);
}

.fsc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--fsh-gutter);
  padding-right: var(--fsh-gutter);
}

/* ---- いちばん上の「ポートフォリオ｜システム開発」の帯（HTML は template-parts/fsc-site-switch.php・CH-981） ----
   s-m.biz のテーマと同じ形。違うのは色の変数（--fsc-switch-*）だけ。ここは白の地・緑。
   高さは 30px で決めておく（読み込みで下がずれないように）。JS は使わない。 */
.fsc-switch {
  --fsc-switch-bg: var(--fsh-white);
  --fsc-switch-ink: var(--fsh-mute);
  --fsc-switch-current: var(--fsh-green);
  --fsc-switch-hover: var(--fsh-green-dark);
  --fsc-switch-line: var(--fsh-line);
  height: 30px;
  overflow: hidden;
  background: var(--fsc-switch-bg);
  border-bottom: 1px solid var(--fsc-switch-line);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.fsc-switch__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* 札の中の日本語（.fsc-switch__name）と英字（.fsc-switch__brand）は、字のベースラインでそろえる（CH-997）。
   grid の 1 行に横に並べて align-items: baseline、その行を札の高さ（帯の 30px）の上下の真ん中に align-content: center で置く。
   flex の baseline だけだと行が札の上の端に寄るので grid にしている。スマホは英字が出ないので 1 列。 */
.fsc .fsc-switch__item {
  display: inline-grid;
  grid-auto-flow: column;
  align-content: center;
  align-items: baseline;
  column-gap: 8px;
  height: 100%;
  padding: 0 14px;
  color: var(--fsc-switch-ink);
  text-decoration: none;
}

.fsc .fsc-switch__item:first-child {
  padding-left: 0;
}

.fsc .fsc-switch__item + .fsc-switch__item {
  border-left: 1px solid var(--fsc-switch-line);
}

.fsc .fsc-switch a.fsc-switch__item:hover {
  color: var(--fsc-switch-hover);
}

.fsc .fsc-switch a.fsc-switch__item:hover .fsc-switch__name {
  text-decoration: underline;
}

.fsc .fsc-switch a.fsc-switch__item:focus-visible {
  outline-offset: -3px;
}

.fsc-switch__name {
  letter-spacing: 0.04em;
}

.fsc .fsc-switch__item[aria-current="page"] {
  color: var(--fsc-switch-current);
}

.fsc-switch__item[aria-current="page"] .fsc-switch__name {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ブランドの名前（fstyle／SISTEMA）は札の横に小さく。今いる札でも太字・下線にしない */
.fsc-switch__brand {
  font-family: var(--fsh-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* スマホは札の文だけ（2 つを 1 行に収める） */
@media (max-width: 600px) {
  .fsc-switch__brand {
    display: none;
  }
}

/* ---- ヘッダー（HTML は template-parts/fsc-header.php） ---- */
.fsc-header__inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fsc .fsc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fsh-ink);
  text-decoration: none;
}

.fsc-logo__mark {
  flex: none;
}

.fsc-logo__text {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.fsc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 15px;
}

.fsc .fsc-nav a {
  color: var(--fsh-ink);
  text-decoration: none;
  padding: 10px 0;
}

.fsc .fsc-nav a:hover {
  color: var(--fsh-green);
}

.fsc .fsc-nav .fsc-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--fsh-ink);
  color: #fff;
  font-weight: 700;
}

.fsc .fsc-nav .fsc-nav__cta:hover {
  color: #fff;
  background: var(--fsh-green);
}

/* ---- ボタン ---- */
.fsc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fsc .fsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--fsh-green);
  background: var(--fsh-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.fsc .fsc-btn:hover {
  background: var(--fsh-green-dark);
  border-color: var(--fsh-green-dark);
  color: #fff;
}

.fsc .fsc-btn--lg {
  font-size: 17px;
  padding: 0 30px;
}

.fsc .fsc-btn--ghost {
  background: transparent;
  border-color: var(--fsh-ink);
  color: var(--fsh-ink);
}

.fsc .fsc-btn--ghost:hover {
  background: var(--fsh-ink);
  border-color: var(--fsh-ink);
  color: #fff;
}

/* ---- 段の共通 ---- */
.fsc-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.fsc-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--fsh-green);
}

.fsc-h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.4;
  font-weight: 900;
}

/* 見出しは語の途中で折り返さない（1〜2 字だけ次の行に落ちないように）。区切りは HTML の <wbr>。
   入りきらない長い語だけは overflow-wrap で折る */
.fsc-hero__eyebrow,
.fsc-hero__title,
.fsc-h2,
.fsc-trouble__title,
.fsc-work__name,
.fsc-tools__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fsc-desc {
  font-size: 16px;
  color: var(--fsh-text);
}

.fsc-more {
  font-size: 14px;
  color: var(--fsh-mute);
}

.fsc-more a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 700;
}

.fsc-hero__eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--fsh-green);
  letter-spacing: 0.08em;
}

.fsc-hero__lead {
  font-size: 18px;
  color: var(--fsh-text);
  max-width: 34em;
}

/* ---- 04 相談する ---- */
.fsc-contact {
  padding-top: 96px;
  padding-bottom: 96px;
}

.fsc-contact__box {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: center;
}

.fsc-contact__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.fsc-contact__title {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.35;
}

.fsc-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.fsc .fsc-btn--mail {
  min-height: 64px;
  padding: 10px 28px;
  font-size: 18px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.fsc-btn--mail .fsc-icon {
  flex: none;
}

.fsc-contact__note {
  font-size: 13px;
  color: var(--fsh-mute);
  text-align: center;
}

/* ---- フッター（HTML は template-parts/fsc-footer.php） ---- */
.fsc-footer {
  border-top: 1px solid var(--fsh-line);
}

.fsc-footer__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: var(--fsh-mute);
}

.fsc-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.fsc .fsc-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fsh-ink);
  text-decoration: none;
}

.fsc .fsc-footer__nav a:hover {
  color: var(--fsh-green);
}

.fsc-footer__about {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.fsc-footer__copy {
  font-size: 12px;
}

/* ---- スマホ ---- */
@media (max-width: 600px) {
  .fsc {
    --fsh-gutter: 16px;
  }

  .fsc-header__inner {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 4px 16px;
  }

  .fsc-nav {
    gap: 0 16px;
    font-size: 14px;
  }

  .fsc .fsc-nav .fsc-nav__cta {
    padding: 0 16px;
  }

  .fsc-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .fsc-hero__lead {
    font-size: 16px;
  }

  .fsc-actions .fsc-btn {
    flex: 1 1 100%;
  }

  .fsc-contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .fsc .fsc-btn--mail {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* CH-514 ヘッダー：PC は 1 行、スマホは 1 段目にロゴと「相談する」・2 段目にメニュー（template-parts/fsc-site-header.php） */
.fsc .fsc-nav__links {
  display: contents;
}

@media (max-width: 600px) {
  .fsc .fsc-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
  }

  .fsc .fsc-nav {
    display: contents;
  }

  .fsc .fsc-nav .fsc-nav__cta {
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
  }

  .fsc .fsc-nav__links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    font-size: 14px;
  }
}

/* ---- 「メールでも受け付けています」の小さい 1 行（inc/fsc-contact.php の fsc_contact_mail_note・CH-792） ---- */
.fsc .fsc-mail-note {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsc .fsc-mail-note a {
  overflow-wrap: anywhere;
}

/* ---- PC だけ 1 文ずつ改行（下層ページの見出しの下の文・fsc_pc_lines() の <br class="fsc-pc-br">・CH-837）。スマホは自然に折り返す ---- */
@media (max-width: 600px) {
  .fsc .fsc-pc-br {
    display: none;
  }
}
