/* 全ページ共通スタイル：白と薄いグレーのベース、濃紺のメイン、青のアクセント */

:root {
  --color-base: #ffffff;
  --color-base-alt: #f3f5f8;
  --color-main: #0f1b2e;
  --color-accent: #2f5fe0;
  --color-accent-bg: #eef2fc;
  --color-text: #1c2230;
  --color-text-muted: #5b6373;
  --color-border: #e2e5eb;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  font-size: 1.0625rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ヘッダー：ロゴとナビゲーションを横並びに配置する */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-base);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-main);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-text);
}

/* セクション：白と薄いグレーを交互に敷いて区切りを見せる */
main {
  display: block;
}

section {
  padding: 5.5rem 0;
}

section:nth-of-type(odd) {
  background: var(--color-base);
}

section:nth-of-type(even) {
  background: var(--color-base-alt);
}

h1 {
  font-size: 2.75rem;
  line-height: 1.4;
  margin: 0 0 1.5rem;
  color: var(--color-main);
}

/* 見出し：下に短いアクセント線を入れる */
h2 {
  position: relative;
  font-size: 1.875rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1rem;
  color: var(--color-main);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-accent);
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--color-main);
}

p {
  margin: 0 0 1rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* トップページのヒーロー：主要な訴求文を強調する */
.hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero__lead {
  font-size: 1.1875rem;
  max-width: 640px;
}

.hero .button {
  margin-top: 3rem;
}

/* 事業内容：主たる事業と関連事業を番号付きブロックで表示する */
.business-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.business-list__item {
  display: flex;
  gap: 1.25rem;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
}

.business-list__number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.business-list__item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* 業務の進め方：6工程をカードで表示する。スマホは縦1列＋下矢印、 */
/* パソコンは3列×2段のSの字の流れ（上段は右へ、下段は左へ、間を矢印でつなぐ） */
.process {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.process__card {
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.process__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: var(--color-main);
}

.process__circle {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.process__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* 矢印：スマホでは下向き、パソコンでは工程ごとに向きを変える */
.process__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 1;
}

.process__arrow::before {
  content: "↓";
}

@media (min-width: 901px) {
  .process {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "s1 a12 s2 a23 s3"
      ".  .   .   .   a34"
      "s6 a56 s5 a45 s4";
    align-items: center;
    gap: 1rem;
  }

  .process__step--1 { grid-area: s1; }
  .process__step--2 { grid-area: s2; }
  .process__step--3 { grid-area: s3; }
  .process__step--4 { grid-area: s4; }
  .process__step--5 { grid-area: s5; }
  .process__step--6 { grid-area: s6; }

  .process__arrow--12 { grid-area: a12; }
  .process__arrow--23 { grid-area: a23; }
  .process__arrow--34 { grid-area: a34; }
  .process__arrow--45 { grid-area: a45; }
  .process__arrow--56 { grid-area: a56; }

  .process__arrow--12::before,
  .process__arrow--23::before {
    content: "→";
  }

  .process__arrow--34::before {
    content: "↓";
  }

  .process__arrow--45::before,
  .process__arrow--56::before {
    content: "←";
  }
}

/* こんな課題に：日常業務の課題をカードで並べる */
.challenge-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.challenge-list__item {
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
}

.challenge-list__item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* 会社概要：短い表で表示する */
.company-table {
  margin-top: 2.5rem;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.company-table th {
  width: 9em;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.company-table ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.company-table li {
  margin: 0.25rem 0;
  padding-left: 1.1em;
  position: relative;
}

.company-table li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* お問い合わせ：mailtoリンクをボタンにし、近くにメールアドレスも文字で表示する */
.contact-email {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* 問い合わせ導線ボタン：直前の文章と十分な余白を取る */
.button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 2rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 700;
}

.button:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* フッター：会社情報とコピーライトを表示する */
.site-footer {
  background: var(--color-base-alt);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer__inner p {
  margin: 0.25rem 0;
}

/* スマートフォン表示の調整 */
@media (max-width: 700px) {
  section {
    padding: 3.5rem 0;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .business-list,
  .challenge-list {
    grid-template-columns: 1fr;
  }

  .company-table th {
    width: 6em;
  }
}
