/* =================================================
   01. 基本カラー設計
   ================================================= */

:root {
  --main-blue: #004080;
  --main-blue-dark: #002e5f;
  --bg-light: #f4f7fb;
  --border-light: #dde3ec;
}

body {
  background-color: var(--bg-light);
  margin: 0;
}


/* =================================================
   02. ヘッダー（PC横並び完全固定）
   ================================================= */

.site-header {
  background-color: var(--main-blue);
  color: #fff;
  font-size: 0.95rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px; /* ☆左右padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* ===== ロゴ ===== */

.logo {
  line-height: 1.4;
  flex-shrink: 0;
}

.logo .corp-type {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 2px;
  white-space: nowrap;
}

.logo .corp-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== ナビ（PCは必ず横） ===== */

.global-nav {
  display: flex;
  flex-direction: row;   /* ← 明示的に横固定 */
  align-items: center;
  gap: 24px;
}

.global-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== 無料相談ボタン ===== */

.nav-contact {
  border: 1px solid #fff;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
}

.nav-contact:hover {
  background-color: rgba(255,255,255,0.15);
}


/* =================================================
   03. メインビジュアル
   ================================================= */

.main-visual {
  background-color: var(--bg-light);
  padding: 96px 20px 48px;
}

.main-visual h1 {
  color: var(--main-blue);
}


/* =================================================
   04. セクション共通
   ================================================= */

main section {
  background-color: #fff;
  padding: 48px 20px;
}

main section + section {
  border-top: 1px solid var(--border-light);
}

main h2 {
  color: var(--main-blue);
  border-left: 4px solid var(--main-blue);
  padding-left: 12px;
}


/* =================================================
   05. CTAボタン
   ================================================= */

.cta-button {
  display: inline-block;
  background-color: var(--main-blue);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s ease;
}

.cta-button:hover {
  background-color: var(--main-blue-dark);
}


/* =================================================
   06. フッター（ヘッダーとライン揃え）
   ================================================= */

.site-footer {
  background-color: var(--main-blue);
  color: #fff;
  font-size: 0.9rem;
  padding: 35px 20px 25px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; /* ←全角スペース削除済み */
}

/* ===== 社名 ===== */

.footer-name {
  line-height: 1.4;
  margin: 0 0 14px;
}

.site-footer .corp-type {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 2px;
  white-space: normal;
}

.site-footer .corp-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: normal;
}

/* ===== ナビ ===== */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  margin: 24px 0;
  padding: 0; /* ☆親のpaddingで余白を管理 */

  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

/* ===== ボトム ===== */

.footer-bottom {
  padding: 0;            /* ☆不要padding削除 */
  font-size: 0.75rem;
  opacity: 0.8;
}

/* =================================================
   07. スマホ（ここだけ縦）
   ================================================= */

@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
  }

  main section {
    padding: 40px 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }

}

/* ======================================
   contact フォーム（index非変更）
====================================== */

.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.contact-title {
  margin-top: 0;
  color: var(--main-blue);
}

.contact-lead {
  margin-bottom: 32px;
  color: #555;
  line-height: 1.7;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--main-blue);
}

.required {
  font-size: 0.75rem;
  color: #c00;
  margin-left: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--main-blue);
  box-shadow: 0 0 0 3px rgba(0,64,128,0.15);
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.submit-button {
  background: var(--main-blue);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--main-blue-dark);
}

/* =================================================
   about.html：沿革（history）セクション用
   -------------------------------------------------
   ・法人概要／沿革ページ専用
   ・白背景カード（contact-form-wrap）内で使用
   ・年ごとのブロックを読みやすく区切る
   ================================================= */

/* 沿革1項目ごとのブロック */
.history-block {
  margin-top: 28px;
}

/* 年号・見出し（例：昭和○年、令和○年） */
.history-year {
  color: var(--main-blue);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}


