/* ===== システム構築ページ用CSS =====
   法人向けページ・講座ページと同じ作り（上に固定のヘッダー、英字フォントの数字、クリーム×茶色）に合わせています。
   クラス名の頭は、ほかのページと同じ「uc-」です。 */

/* 色や書体は、ここだけ直せば全体に反映されます */
:root {
  --bg: #e0e8db;          /* 背景（クリーム） */
  --white: #FFFFFF;
  --ink: #5B4130;         /* 文字色（ブラウン） */
  --ink-soft: #7A5C49;    /* 補足の文字色 */
  --sand: #3E5A48;        /* 線・枠（ベージュ） */
  --accent: #3E5A48;      /* 数字・英字・ボタン（落ち着いた深緑）。ベージュと合い、仕事感も出る色 */
  /* --gold-deep: #8A6620;   数字・英字・アイコン（濃い黄土色） */
  --beige-light: #cadbbf; /* 帯・目立たせたい背景（うすいベージュ） */
  --yellow: #F6E7AE;      /* ラベルの黄色 */
  --card-line: #71947d;   /* カードの枠線 */
  --brand:#4d3b08;  /* こげ茶 */
  --sub:#f2eae4;    /* くすみベージュ */
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Cormorant Garamond", serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

a { color: inherit; }

.uc-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 8%;
  box-sizing: border-box;
}

/* 見出しなどを、文節の区切りで折り返す */
.uc-nb {
  display: inline-block;
}

/* ---------- ヘッダー（上に固定） ---------- */
.uc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--beige-light);
  border-bottom: 1px solid var(--sand);
}
.uc-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.uc-logo {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.uc-logo-img {
    width: 200px;
    vertical-align: middle;
}
.uc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
}
.uc-nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.uc-nav a:hover,
.uc-nav a:focus-visible {
  border-bottom-color: var(--ink);
}

/* ---------- ヒーロー ---------- */
.uc-hero {
  padding: 72px 0 64px;
  text-align: center;
}
.uc-hero__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.5;
}
.uc-hero__lead {
  max-width: 600px;
  margin: 0 auto 16px;
  font-size: 17px;
}

.uc-hero__lead2 {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ---------- セクション共通 ---------- */
.uc-section {
  padding: 64px 0;
  scroll-margin-top: 64px;
}
.uc-section--white {
  background: var(--white);
}
.uc-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 12px;
  margin-bottom: 36px;
}
.uc-heading__num {
  font-family: var(--font-en);
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
}
.uc-heading__title {
  margin: 0;
  font-size: 28px;
}
.uc-heading__en {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.uc-text {
  margin: 0 0 16px;
  font-size: 17px;
}
.uc-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- カード ---------- */
.uc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0 0;
}
.uc-cards--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 800px;
}
.uc-card {
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  padding: 28px;
}
.uc-section--white .uc-card {
  background: var(--bg);
}
.uc-card__title {
  margin: 0 0 12px;
  font-size: 18px;
}
.uc-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

/* 「POINT 01」などの小さな数字 */
.uc-point {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-en);
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* 黄色いラベル */
.uc-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: var(--yellow);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.uc-tag--line {
  background: transparent;
  border: 1px solid var(--sand);
}

/* ---------- ご依頼の流れ ---------- */

.uc-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.uc-steps li {
  counter-increment: step;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--card-line);
  border-radius: 4px;
}
.uc-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-en);
  font-size: 28px;
  line-height: 1.2;
  color: var(--accent);
}
.uc-steps strong {
  display: block;
  margin-bottom: 4px;
}
.uc-steps span {
  font-size: 15px;
}

/* 関連ページ（Workページと同じ構成） */
.sb-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sb-menu-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.sb-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.sb-menu-label {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
}

.sb-sub-block {
  margin-top: 56px;
}

.sb-sub-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--sb-brown);
}

.sb-sub-lead {
  margin: 0 0 28px;
  font-size: 14px;
  text-align: center;
}
/* 枠線だけのボタン（Workページと同じ形） */
.sb-outline-btn {
  display: inline-block;
  min-width: 166px;
  padding: 14px 24px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--sb-brown);
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.sb-outline-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------- 料金のめやす ---------- */
.uc-price {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
}
.uc-section--white .uc-price {
  background: var(--bg);
}
.uc-price__num {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.uc-price__num .uc-en {
  font-family: var(--font-en);
  font-size: 64px;
  color: var(--accent);
}
.uc-price__text {
  margin: 0;
  font-size: 16px;
}

/* ---------- 関連ページ ---------- */
.uc-route-lead {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.uc-route-lead--sub {
  margin-top: 56px;
}
.uc-route-note {
  margin: -8px 0 16px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}
.uc-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.uc-routes--2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.uc-route {
  display: block;
  box-sizing: border-box;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.6;
}
.uc-section--white .uc-route {
  background: var(--bg);
}
.uc-route:hover,
.uc-route:focus-visible {
  border-color: var(--accent);
}
.uc-route__label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}
.uc-route__title {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- ボタン ---------- */
.uc-btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.uc-btn:hover,
.uc-btn:focus-visible {
  background: var(--white);
  color: var(--ink);
}

/* ---------- お問い合わせ ---------- */
.uc-contact {
  padding: 72px 0;
  background: var(--beige-light);
  text-align: center;
  scroll-margin-top: 64px;
}
.uc-contact__title {
  margin: 0 0 16px;
  font-size: 28px;
}
.uc-contact__text {
  margin: 0 0 28px;
  font-size: 17px;
}

/* ---------- フッター ---------- */
footer {
    clear: both;
    padding: 0;
    letter-spacing: 0.05em;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "メイリオ", meiryo, sans-serif;
    font-weight: 400;
    color: #ffffff !important;
}

#footer {
    max-width: 100%;
}

#footer-wrapper {
    max-width: 100%;
    background: var(--accent);
    padding: 20px 15px;
    text-align: center;
}

.footermenust {
    text-align: center;
    padding: 0 0 40px;
}


footer .footermenust li {
    border-right-color: #ffffff !important;
}

footer .footermenust li {
    border-right: 1px solid #ccc;
    font-size: 12px;
    line-height: 18px;
    display: inline;
    padding: 0 10px;
}

#footer .footermenust a {
    padding: 0px;
    margin: 0px;
    font-size: 12px;
    color: #ffffff !important;
}

#footer a {
    text-decoration: none;
}

footer .footermenust li:last-child {
    border-right: none;
}

footer .footermenust li {
    border-right-color: #ffffff !important;
}

footer #st-footer-logo-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#st-text-logo {
    word-break: break-all;
}

#footer #st-text-logo p {
    font-size: 12px;
}

#footer p.copyr {
    margin-bottom: 0;
    line-height: 1.2;
    font-size: inherit;
}

small {
    font-size: 80%;
}

#footer .footerlogo img {
    max-width: 300px;
    margin: 0 auto 10px;
    text-align: center;
}

.footerlogo img {
    max-height: 35px;
    width: auto;
}

/* --- TOPに戻るボタン --- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px;
    transition: .3s;

    z-index: 999;

    background-color: var(--sub);
    color: var(--brand);
    font-size: 12px;
    box-shadow:1px 1px 4px 0px rgba(0,0,0,0.19);

    width: 55px;
    height: 55px;
    border-radius: 50%;

    cursor: pointer;

    /* 上向きの三角と、TOPの文字の位置を揃える */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  
    /*デフォルトで非表示にする*/
    opacity: 0;
    border: none;
}

.back-to-top::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    transform: rotate(-45deg);
    transition: .3s;
}

.back-to-top:hover {
    opacity: 0.7 !important;
    transform: translateY(-4px);
    border: none;
    box-shadow: 3px 3px 4px 1px rgba(0, 0, 0, 0.19);
} 

/* 表示時 */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  border: none;
}

.sp-br {
  display: none;
}
.sp-br2 {
  display: none;
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  .uc-hero {
    padding: 48px 0 44px;
  }

  .uc-hero__lead,
  .uc-hero__lead2 {
    font-size: 16px;
  }

  .uc-btn {
    width: 100%;
  }

  .uc-section {
    padding: 48px 0;
  }
  .uc-heading {
    align-items: center;
    gap: 12px;
  }
  .uc-heading__num {
    font-size: 44px;
  }
  .uc-heading__title {
    flex: 1;
    min-width: 0;
    font-size: 21px;
    line-height: 1.4;
  }
  .uc-heading__en {
    display: none;
  }

  .uc-price__num .uc-en {
    font-size: 54px;
  }

  .sb-menu {
    display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px 48px;
    }

  .uc-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .uc-steps li::before {
    display: inline; 
    margin-right: 20px;
  }

  .uc-steps strong {
    display: inline; 
  }
  .sb-outline-btn {
    width: 100%;
  }   
  .sp-br {
    display: contents;
  }   
  .sp-br2 {
    display: inline;
  }

  .sb-menu-item {
    width: 100%;
    align-items: stretch;
  }
  /* ボタン：横いっぱい、余白と枠線を幅の中に含める */
  .sb-outline-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }


}
