@charset "UTF-8";

/* ==========================================================================
   エンジュク株式会社 コーポレートサイト
   静的HTML版 / CSSはこの1枚のみ
   ========================================================================== */

:root {
  --accent: #ff8031;
  --text: #333;
  --text-sub: #6b6b6b;
  --line: #e5e5e5;
  --bg: #fff;
  --bg-sub: #f7f7f7;
  --maxw: 880px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --- header ------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 12px;
}

.site-logo {
  margin: 0;
  font-size: 0;
  line-height: 1;
}

.site-logo img {
  width: 150px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-sub);
  /* 項目名の途中で折り返させない */
  white-space: nowrap;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding-block: 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

/* 背景のメインビジュアル */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  /* 人物のシルエットは画像の下端に立っているので、下を基準に切り取る */
  object-fit: cover;
  object-position: center bottom;
}

/* 文字の可読性を確保するための白いベール。
   濃くしすぎると画像が沈むので、文字が乗る中央だけをやや強めにする */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0.5) 0%,
    rgb(255 255 255 / 0.68) 40%,
    rgb(255 255 255 / 0.5) 70%,
    rgb(255 255 255 / 0.2) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero h2 .en {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero p {
  margin: 0;
  /* 画像の上に乗るので --text-sub より濃くする */
  color: #4d4d4d;
  font-size: 15px;
}

/* --- section ------------------------------------------------------------ */

.section {
  padding-block: 72px;
  border-bottom: 1px solid var(--line);
}

.section > .wrap > h2 {
  margin: 0 0 32px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.section p {
  margin: 0 0 1em;
}

.section p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 42em;
}

/* --- 実績の数字 --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 28px 16px;
  background: var(--bg-sub);
  text-align: center;
}

.stat-label {
  display: block;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.stat-value {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.stat-value small {
  margin-left: 3px;
  font-size: 15px;
  font-weight: 600;
}

/* --- group list --------------------------------------------------------- */

.group-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.group-list li {
  border-bottom: 1px solid var(--line);
}

.group-list a,
.group-list .item {
  display: block;
  padding: 20px 4px;
}

.group-list .name {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.group-list .name::after {
  content: "↗";
  margin-left: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

.group-list .desc {
  display: block;
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* --- table -------------------------------------------------------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 8.5em;
  color: var(--text-sub);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr:first-child th,
.data-table tr:first-child td {
  border-top: 1px solid var(--line);
}

.data-table .note {
  display: block;
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 13px;
}

/* --- contact ------------------------------------------------------------ */

.contact-direct {
  margin: 0 0 40px;
  padding: 24px;
  background: var(--bg-sub);
  font-size: 15px;
}

.contact-direct dl {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px 12px;
  margin: 0;
}

.contact-direct dt {
  color: var(--text-sub);
  font-size: 14px;
}

.contact-direct dd {
  margin: 0;
}

/* フォーム直前のリード文は、最初の項目とくっつかないよう余白を広めに */
.section p.lead + form {
  display: block;
  margin-top: 32px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-field .required {
  margin-left: 8px;
  padding: 2px 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgb(255 128 49 / 0.25);
  outline-offset: 0;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* スパム対策のハニーポット。人には見せない */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin: 0 0 24px;
  color: var(--text-sub);
  font-size: 13px;
}

.btn-submit {
  display: inline-block;
  min-width: 220px;
  padding: 15px 32px;
  border: none;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.85;
}

/* --- 下層ページ --------------------------------------------------------- */

.page-title {
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sub);
}

.page-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.article {
  padding-block: 64px;
}

.article h2 {
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  margin: 0 0 1.2em;
  font-size: 15px;
}

.article .back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5em;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  padding-block: 48px;
  background: var(--bg-sub);
}

.site-footer .footer-logo img {
  width: 120px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0;
}

.site-footer nav a {
  color: var(--text-sub);
  font-size: 13px;
}

.site-footer .copyright {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* --- モバイル ----------------------------------------------------------- */

@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.85;
  }

  .wrap {
    padding-inline: 20px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
  }

  .site-logo img {
    width: 130px;
  }

  .site-nav ul {
    gap: 18px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero {
    min-height: 340px;
    padding-block: 48px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero h2 .en {
    font-size: 16px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    text-align: left;
  }

  .stat-label {
    margin: 0;
  }

  .stat-value {
    margin-top: 0;
    font-size: 30px;
  }

  .section {
    padding-block: 52px;
  }

  .data-table th,
  .data-table td {
    display: block;
    width: auto;
    white-space: normal;
  }

  .data-table th {
    padding-bottom: 0;
    border-bottom: none;
  }

  .data-table tr:first-child td {
    border-top: none;
  }

  .contact-direct dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-direct dt:not(:first-child) {
    margin-top: 12px;
  }

  .btn-submit {
    width: 100%;
  }
}
