@charset "UTF-8";

/* ============================================================
   GenbaGear 公式サイト / ホームページ制作 テンプレート v1
   意匠: Claude Design「1a 堅実」案（罫線と余白で誠実さを出す構成）

   顧客案件へ複製するときに触る場所は、原則この :root だけ。
   構造とレイアウトは触らずに、色・見出しの太さで表情を変える。
   ============================================================ */

:root {
  /* --- 差し替え対象（ブランド3色） --- */
  --c-primary:    #16283f;  /* 紺。ヒーロー帯・見出し罫・問い合わせ帯 */
  --c-accent:     #c9822b;  /* アクセント1色。CTA・番号・リンク */
  --c-footer:     #0f1c2e;  /* フッター（primaryより一段暗く） */

  /* --- 面と文字（通常は変えない） --- */
  --c-bg:         #f4f5f7;
  --c-bg-alt:     #eceff3;
  --c-surface:    #ffffff;
  --c-border:     #d8dde4;
  --c-text:       #22303f;
  --c-text-sub:   #4a5768;
  --c-text-weak:  #7b8698;
  --c-on-dark:    #ffffff;
  --c-on-dark-sub:#c6d2e0;
  --c-on-dark-weak:#9fb0c4;

  /* --- 版面 --- */
  --w-container: 720px;
  --pad-x: 20px;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
          "Meiryo", system-ui, sans-serif;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- 基本 ---------- */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  text-wrap: pretty;
}

a { color: var(--c-primary); }
a:hover { color: var(--c-accent); }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px; top: 8px;
  z-index: 10;
  background: var(--c-on-dark);
  color: var(--c-primary);
  padding: 10px 16px;
  font-weight: 700;
}

/* 見出しの下の短い罫（ヒーロー内） */
.rule {
  display: block;
  width: 36px; height: 3px;
  background: var(--c-accent);
  margin-bottom: 18px;
}

/* CTAボタン */
.btn {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-on-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 15px 28px;
  text-decoration: none;
}
.btn:hover {
  color: var(--c-on-dark);
  filter: brightness(1.08);
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--c-primary);
  color: var(--c-on-dark);
  padding-block: 40px 52px;
}
.hero__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 34px;
}
.hero__name {
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: .04em;
}
.hero__sub {
  font-size: 0.8125rem;
  color: var(--c-on-dark-weak);
}
.hero__title {
  font-size: clamp(1.75rem, 6vw, 2.375rem);
  line-height: 1.42;
  font-weight: 900;
  margin-bottom: 16px;
}
.hero__lead {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--c-on-dark-sub);
  max-width: 34em;
}
.hero .btn { margin-top: 28px; }

/* ---------- セクション共通 ---------- */
.section { padding-block: 44px; }
.section--alt { background: var(--c-bg-alt); }

.section__title {
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.5;
  /* 日本語を文節で折る（非対応ブラウザはこの行を無視して従来どおり折る） */
  word-break: auto-phrase;
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

/* ---------- カード（事業内容 / できること） ---------- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 22px;
}
.card__num {
  font-weight: 900;
  font-size: 0.8125rem;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.card__title {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 10px;
  word-break: auto-phrase;
}
.card__text {
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--c-text-sub);
}
.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.card__link:hover {
  border-bottom-color: var(--c-accent);
}

/* 「近日公開」等の小さな注記 */
.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-text-weak);
  border: 1px solid var(--c-border);
  padding: 2px 9px;
}

/* ---------- 代表メッセージ ---------- */
.message {
  background: var(--c-surface);
  border: 1px dashed #a9b4c2;
  padding: 22px;
}
.message__placeholder {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--c-text-weak);
}
.signature {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--c-text-sub);
  text-align: right;
}

/* ---------- 会社概要 ---------- */
.spec__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  border-bottom: 1px solid var(--c-border);
  padding-block: 14px;
  font-size: 0.9375rem;
}
.spec dt {
  flex: 0 0 5em;
  color: var(--c-text-weak);
}
.spec dd {
  flex: 1 1 14em;
  font-weight: 500;
}
.spec__note {
  color: var(--c-text-sub);
  font-weight: 400;
  font-size: 0.875rem;
}

/* 認定・所属バッジ（ロゴ素材が届くまではテキストのみ） */
.badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 14px 20px;
}
.badge__text {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-text-sub);
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--c-primary);
  color: var(--c-on-dark);
  padding-block: 48px;
  text-align: center;
}
.contact__title {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.contact__text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--c-on-dark-sub);
  margin-bottom: 26px;
}
.contact__mail {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--c-on-dark-weak);
}
.contact__tel {
  margin-top: 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}
.contact__tel a { color: var(--c-on-dark); }

/* ---------- フッター ---------- */
.footer {
  background: var(--c-footer);
  color: #7487a0;
  font-size: 0.75rem;
  text-align: center;
  padding-block: 18px;
}

/* ---------- 広い画面での余白調整 ---------- */
@media (min-width: 600px) {
  .hero { padding-block: 56px 68px; }
  .section { padding-block: 56px; }
  .card { padding: 26px; }
}

/* ---------- 動きの抑制設定を尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 印刷 ---------- */
@media print {
  .hero, .contact { background: #fff !important; color: #000 !important; }
  .hero__lead, .contact__text, .contact__mail, .hero__sub { color: #333 !important; }
  .btn, .skip-link { display: none !important; }
  .footer { background: #fff !important; color: #000 !important; }
  body { background: #fff; }
}
