/* www.epics.jp 共通スタイル */

:root {
  --color-accent: #ff6900;      /* 見出し・ボタン */
  --color-link: #fdc306;        /* 本文中のリンク */
  --color-link-green: #5bb061;  /* 関連会社リンク */
  --color-navy: #00102e;        /* ヘッダー・フッター背景、見出し */
  --color-text: #233452;
  --color-muted: #717171;
  --color-gray-bg: #f0f0f0;
  --container: 1170px;
  --header-h: 104px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.77;
  color: var(--color-text);
  background: #fff;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  line-height: 1.63;
  letter-spacing: .5px;
  margin: 0 0 .5em;
}
h1 { font-size: 41px; }
h2 { font-size: 38px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p { margin: 0 0 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-logo img { width: auto; max-height: 77px; }

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.site-nav a:hover { color: #ec9e00; text-decoration: none; }

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

/* トップページはヘッダーをヒーロー画像に重ねる */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  transition: background-color .3s;
}
.home .site-header.is-scrolled { background: rgba(0, 0, 0, .9); }

/* ---------- ヒーロースライダー（トップ） ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide h2 {
  margin: 0;
  padding: 0 15px 16px;
  color: #fff;
  font-size: 48px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  position: relative;
}
.hero-slide h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 300px;
  height: 2px;
  margin-left: -150px;
  background: #ec9e00;
}

/* ---------- 本文 ---------- */

.page-content { padding: 20px 0 60px; }
.home .page-content { padding: 60px 0 0; }
.page-title { margin: 20px 0 40px; font-size: 41px; }

.section-title {
  margin: 1.5em 0 0;
  color: var(--color-accent);
  text-align: center;
}
.section-title + hr,
hr.accent {
  margin: 0 0 1.5em;
  border: 0;
  border-top: 2px solid var(--color-accent);
}

/* ボタン（枠線のみ） */
.btn-outline {
  display: inline-block;
  padding: 12px 35px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.btn-outline:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.btn-row { margin: 1.5em 0; text-align: center; }

/* 画像＋テキストの横並び（トップ About Us） */
.media-text {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: center;
  gap: 0 8%;
  margin-bottom: 2em;
}
.media-text.is-reverse { grid-template-columns: 1fr 40%; }
.media-text.is-reverse .media-text-media { order: 2; }
.media-text .catch { color: var(--color-accent); font-weight: 700; font-size: 15px; }
.media-text p { font-size: 15px; }

/* 会社情報テーブル（トップ） */
.company-table {
  width: 100%;
  margin: .5em auto 1.5em;
  border-collapse: collapse;
  font-size: 15px;
}
.company-table th,
.company-table td { padding: .5em; text-align: left; font-weight: normal; }
.company-table th { width: 15%; text-align: center; }
.company-table tr:nth-child(odd) { background: var(--color-gray-bg); }

/* 代表者紹介（トップ） */
.profile { margin: 3em auto; text-align: center; }
.profile img { width: 335px; }
.profile h3 { margin-top: .8em; font-size: 26px; }
.profile .profile-sub { font-size: 15px; }
.profile .profile-body { text-align: left; font-size: 15px; }

/* 採用情報バナー（トップ） */
.recruit-banner {
  position: relative;
  padding: 80px 15px;
  background: url(/assets/img/recruit-bg.jpg) center / cover fixed;
  color: #fff;
  text-align: center;
}
.recruit-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}
.recruit-banner > * { position: relative; }
.recruit-banner h3 { color: #fffffa; font-size: 36px; }
.recruit-banner p { max-width: var(--container); margin: 0 auto 1.5em; font-size: 15px; }

/* 会社概要（企業情報） */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 0;
  font-size: 15px;
}
.about-grid > dt { font-weight: 600; padding: 0 0 .5em; }
.about-grid > dd { margin: 0; padding: 0 0 .5em; }
.about-grid p { margin: 0 0 .25em; }
.officers {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 2em;
  margin: 0;
}
.officers dt, .officers dd { margin: 0; padding: 0 0 .5em; }
.about-grid a.link-green { color: var(--color-link-green); }

/* 沿革（企業情報） */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.history-table td { padding: .8em .5em; border: 5px solid transparent; vertical-align: middle; }
.history-table td:first-child { width: 15%; white-space: nowrap; }
.history-table tr:nth-child(odd) { background: var(--color-gray-bg); }

.map {
  display: block;
  width: 800px;
  max-width: 100%;
  height: 600px;
  margin: 0 auto 1.5em;
  border: 0;
}

/* 募集要項（採用情報） */
.job-table {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 0 2em;
  margin: 0 0 1.5em;
}
.job-table > dt { color: var(--color-accent); font-weight: 700; font-size: 18px; margin-bottom: 1.5em; }
.job-table > dd { margin: 0 0 1.5em; }
.job-table .strong { font-weight: 700; font-size: 18px; color: var(--color-navy); margin: 0; }
.job-table ul { margin: .5em 0 1em 1em; line-height: 1.8; }
.job-frame {
  margin: 0 auto 1.5em;
  padding: .5em;
  border: 1px solid #abb8c3;
  background: var(--color-gray-bg);
  color: #47425d;
  text-align: center;
  font-size: 17px;
}

/* ポリシー */
.policy h3 { color: var(--color-muted); }
.policy h4 { color: var(--color-muted); }
.policy .small { font-size: 13px; }

/* サービス紹介（web-support） */
.svc-lead { margin: 0 0 2em; }
.svc-catch { color: var(--color-navy); font-size: 26px; font-weight: 700; line-height: 1.6; }
.svc-subtitle { margin-top: 1.5em; font-size: 22px; }
.svc-list { margin: 0 0 1.5em; padding-left: 1.5em; }
.svc-notice {
  margin: 0 0 1.5em;
  padding: 1em 1.5em;
  border-left: 4px solid var(--color-accent);
  background: var(--color-gray-bg);
}
.svc-notice p:last-child { margin-bottom: 0; }
.svc-source { font-size: 14px; }
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 2em;
}
.svc-card { padding: 1.2em 1.5em; border: 1px solid #dbdbdb; border-top: 4px solid var(--color-accent); }
.svc-card h3 { font-size: 20px; }
.svc-card p { margin: 0; font-size: 15px; }
.svc-steps { margin: 0 0 2em; padding: 0; list-style: none; counter-reset: step; }
.svc-steps li {
  position: relative;
  margin-bottom: 1em;
  padding: .8em 1em .8em 4em;
  background: var(--color-gray-bg);
  counter-increment: step;
}
.svc-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1em;
  top: .8em;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  line-height: 2em;
  text-align: center;
}
.svc-steps h3 { margin: 0; font-size: 18px; }
.svc-steps p { margin: 0; font-size: 15px; }
.svc-contact {
  margin: 3em 0 1em;
  padding: 2em 1.5em;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}
.svc-contact h2 { color: #fff; font-size: 28px; }
.svc-contact-text { text-align: left; }
.svc-mail { font-size: 24px; font-weight: 700; }
.svc-mail a { color: #ec9e00; }
.svc-company { margin: 0; font-size: 14px; }
.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 40px;
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(255, 105, 0, .35);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.btn-cta:hover { background: #e85f00; color: #fff; text-decoration: none; }
.svc-target {
  margin: 0 0 2.5em;
  padding: 1.2em 1.5em .2em;
  border: 2px solid var(--color-accent);
}
.svc-target h3 { margin-top: 0; color: var(--color-accent); font-size: 20px; }
.svc-checklist { margin: 0 0 1.5em; padding: 0; list-style: none; }
.svc-checklist li {
  position: relative;
  margin-bottom: .5em;
  padding: .5em 1em .5em 2.8em;
  background: var(--color-gray-bg);
}
.svc-checklist li::before {
  content: "";
  position: absolute;
  left: 1em;
  top: .85em;
  width: 1em;
  height: 1em;
  border: 2px solid var(--color-accent);
  background: #fff;
}
.btn-copy {
  padding: 6px 20px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.btn-copy:hover { background: rgba(255, 255, 255, .15); }
.svc-template { max-width: 480px; margin: 0 auto 1.5em; text-align: left; }
.svc-template p { margin-bottom: .5em; font-size: 14px; }
.svc-template pre {
  margin: 0;
  padding: 1em 1.2em;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ---------- フッター ---------- */

.site-footer {
  padding: 25px 15px;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.site-footer a { color: #fff; }
.site-footer p { margin: .5em 0; }

/* ---------- スマホ ---------- */

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .site-logo img { max-height: 38px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-navy);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 10px 15px; }
  .site-nav a { display: block; padding: 10px 0; }
  .home .site-header { background: var(--color-navy); }
  .hero { height: 60vw; min-height: 240px; }
  .recruit-banner { background-attachment: scroll; }
}

@media (max-width: 599px) {
  body { font-size: 15px; }
  h1, .page-title { font-size: 28px; }
  h2 { font-size: 21px; }
  h3 { font-size: 20px; }
  h4 { font-size: 15px; }
  h6, .job-table > dt, .job-table .strong { font-size: 15px; }
  .hero-slide h2 { font-size: 20px; }
  .hero-slide h2::after { width: 160px; margin-left: -80px; }
  .media-text,
  .media-text.is-reverse { grid-template-columns: 40% 1fr; gap: 0 5%; }
  .media-text.is-reverse .media-text-media { order: 2; }
  .media-text.is-reverse { grid-template-columns: 1fr 40%; }
  .company-table th { width: 20%; }
  .about-grid { display: block; }
  .about-grid > dd { padding-bottom: 1em; }
  .officers { grid-template-columns: 2fr 1fr; }
  .job-table { grid-template-columns: 1fr; }
  .job-table > dt { margin-bottom: 0; }
  .map { height: 400px; }
  .svc-catch { font-size: 20px; }
  .svc-subtitle, .svc-card h3 { font-size: 17px; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-mail { font-size: 20px; }
  .btn-cta { padding: 14px 24px; font-size: 16px; }
  .svc-target h3 { font-size: 17px; }
}
