/* ================================================================
   ケーエムシステム — 共通スタイル
   common.css
   ================================================================ */


/* ================================================================
   CSS変数（カラー・フォント・レイアウト）
   ================================================================ */
:root {

  /* カラー */
  --color-text:        #000000;
  --color-subtext:     #6f6f6f;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f5f5;
  --color-footer-bg:   #e0f6ff;
  --color-table-th:    #e5eaf0;
  --color-table-td:    #f1f5f9;
  --color-border:      #d0d5db;
  --color-brand:       #036da5;
  --color-brand-dark:  #025a89;

  /* フォント */
  --font-base:  'Noto Sans JP', sans-serif;
  --font-title: 'Bebas Neue', cursive;

  /* レイアウト */
  --container-max: 1000px; /* コンテンツ幅 */
  --viewport-max: 1440px;  /* 画面最大幅 */
  --container-px:  20px;

  /* セクション上下余白 */
  --section-py-sp: 80px;
  --section-py-pc: 120px;
}


/* ================================================================
   リセット
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px; /* SP: ヘッダー高さ分オフセット */
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}


/* ================================================================
   コンテナ
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ================================================================
   ページ全体の最大幅（1440px想定）
   ================================================================ */
/* .site-wrap {
  max-width: var(--viewport-max);
  margin-left: auto;
  margin-right: auto;
} */

/* ================================================================
   セクションヘッダー（共通）
   ABOUT / BUSINESS / COMPANY 各セクションタイトル
   ================================================================ */
.section-header {
  margin-bottom: 5px;
}

/* セクション共通余白 */
.section {
  padding-top: var(--section-py-sp);
  padding-bottom: var(--section-py-sp);
}

.section-header--center {
  text-align: center;
}

/* h2 タグのデフォルト装飾をリセット */
.section-header__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: normal;
}

.section-header--center .section-header__title {
  justify-content: center;
  flex-direction: column;
  gap: 0;
}

.section-header--center .section-header__title picture:first-child {
  margin-bottom: 8px;
}

/* 英字タイトル（Bebas Neue・ブランドカラー） */
.section-header__en {
  font-family: var(--font-title);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--color-brand);
  display: block;
}

/* 和文サブタイトル */
.section-header__ja {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.15em;
  margin-top: -10px;
  display: block;
}


/* ================================================================
   ユーティリティ
   ================================================================ */

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ================================================================
   PC 共通（768px 以上）
   ================================================================ */
@media (min-width: 768px) {

  :root {
    --container-px: 40px;
  }

  html {
    scroll-padding-top: 80px; /* PC: ヘッダー高さ分オフセット */
  }

  .section-header {
    margin-left: 20px;
    margin-bottom: 36px;
  }

  .section-header--center {
    margin-left: 0;
  }

  .section-header--center .section-header__title {
    flex-direction: row;
    gap: 8px;
  }

  .section-header--center .section-header__title picture:first-child {
    margin-bottom: 0;
  }

  .section-header--center .section-header__title picture:last-child {
    position: static;
  }

  .section {
    padding-top: var(--section-py-pc);
    padding-bottom: var(--section-py-pc);
  }
}

