/* ---------- 1. カスタムプロパティ（色・フォントサイズの一元管理） ---------- */
:root {
  /* カラー */
  --color-primary: #082d66;       /* メインカラー */
  --color-primary-dark: #051c42;  /* ホバー等の濃い色 */
  --color-bg: #ffffff;            /* 基本背景色 */
  --color-bg-alt: #eceef1;        /* セクション背景（採用情報など） */
  --color-border: #d6dbe2;        /* ボーダー・罫線 */
  --color-text: #333333;          /* 基本文字色 */
  --color-text-light: #ffffff;    /* 白文字 */
  --color-text-muted: #6b7280;    /* 補助文字色 */

  /* フォントサイズ */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-md: 1.125rem;  /* 18px */
  --fs-lg: 1.375rem;  /* 22px */
  --fs-xl: 1.75rem;   /* 28px */

  /* フォント */
  --font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* レイアウト */
  --container-width: 1120px;
  --container-padding: 1.25rem;
  --radius-sm: 4px;
  --radius-md: 8px;
}

/* ---------- 2. リセット・基本設定 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: 1.8;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* フォーカス時のアウトライン（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* 共通コンテナ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* 共通見出し */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-heading__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.section-heading__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.section-heading__en {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.section {
  padding-block: 3.5rem;
  scroll-margin-top: 30px;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* ==========================================================================
   3. ヘッダー
   ========================================================================== */
.header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-light);
}

.brand__mark {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand__name {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.2;
}

.brand__tagline {
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* ---- ハンバーガーメニュー（チェックボックスハック） ---- */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 20;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---- ドロップダウンナビ（モバイル） ---- */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-toggle:checked ~ .nav {
  max-height: 320px;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.5rem var(--container-padding) 1.5rem;
}

.nav__link {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 1;
}

.nav__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav__social:hover {
  opacity: 1;
}

.nav__social img {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   4. ヒーロー
   ========================================================================== */
.hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__title {
  display: inline-block;
  color: var(--color-text-light);
  font-size: clamp(1.5rem, 6.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(150, 200, 255, 0.65),
    0 0 18px rgba(90, 160, 255, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-line--2 {
  margin-left: 2.83em;
}

.hero__title-particle {
  font-size: 0.8em;
}

/* ==========================================================================
   5. 事業内容
   ========================================================================== */
.services {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card {
  padding: 1.75rem 1.5rem;
  min-height: 420px;
  background-color: #bdcae2;
}

.service-card:nth-child(2) {
  background-color: #ced6e4;
}

.service-card:nth-child(3) {
  background-color: #e2e7ee;
}

.service-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-primary);
}

.service-card__lead {
  font-size: var(--fs-sm);
  margin-bottom: 1.1rem;
}

.service-card__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.service-card__list {
  font-size: var(--fs-sm);
}

.service-card__list li {
  padding-block: 0.1rem;
}

.service-card__note {
  font-size: var(--fs-sm);
  margin-top: 0.9rem;
}

/* ==========================================================================
   6. 会社概要
   ========================================================================== */
.company-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.company-info__row dt {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.company-info__row dd {
  font-size: var(--fs-sm);
}

.company-info__row dd + dt {
  margin-top: 1.25rem;
}

/* ==========================================================================
   7. 採用情報
   ========================================================================== */
.recruit {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.recruit__col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.recruit__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.recruit__col--secondary .recruit__title {
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.recruit__text {
  font-size: var(--fs-sm);
}

.recruit__text + .recruit__text {
  margin-top: 0.2rem;
}

/* ==========================================================================
   8. お問合せフォーム
   ========================================================================== */
.contact-form {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-row__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.form-row__label .required {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-text-light);
  background-color: #c0392b;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.form-row__input,
.form-row__select,
.form-row__textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
}

.form-row__textarea {
  min-height: 160px;
  resize: vertical;
}

.form-row__input:focus,
.form-row__select:focus,
.form-row__textarea:focus {
  border-color: var(--color-primary);
}

.form-submit {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: var(--color-primary-dark);
}

/* ==========================================================================
   9. フッター
   ========================================================================== */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  padding-block: 1.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   10. メディアクエリ（モバイルファースト：min-widthで拡張）
   ブレイクポイント：768px（タブレット）/ 1024px（デスクトップ）
   ========================================================================== */

/* ---- タブレット以上（768px〜） ---- */
@media (min-width: 768px) {
  :root {
    --fs-xl: 2rem;
    --fs-lg: 1.5rem;
  }

  .header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle-label {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    background-color: transparent;
  }

  .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.5rem;
    padding: 0;
  }

  .hero {
    min-height: 320px;
  }

  .services {
    flex-direction: row;
  }

  .service-card {
    flex: 1;
  }

  .form-submit {
    width: auto;
    min-width: 260px;
    margin-inline: auto;
  }
}

/* ---- デスクトップ以上（1024px〜） ---- */
@media (min-width: 1024px) {
  .section {
    padding-block: 5rem;
  }

  .hero {
    min-height: 380px;
  }

  .company-info {
    max-width: 900px;
  }

  .recruit {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .recruit__col--primary {
    flex: 0 0 280px;
  }

  .recruit__col--secondary {
    flex: 1;
  }
}
