/* 株式会社eml コーポレートサイト（静的・ライト固定・ダーク分岐なし） */
:root {
  color-scheme: light;
  --navy: #13294b;
  --navy-deep: #0d1d36;
  --ink: #1d2733;
  --muted: #5b6676;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --tint: #e8edf4;
  --line: #dde2e8;
  --link: #1d4f9c;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
  overflow-wrap: normal;
  word-break: normal;
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #3d7bd9; outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pc { display: none; }
@media (min-width: 840px) { .pc { display: inline; } }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  background: var(--navy); color: #fff; padding: 8px 12px;
}
.skip:focus { top: 12px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--navy); text-decoration: none; margin-right: auto;
}
.brand-mark { font-size: 1.75rem; font-weight: 700; letter-spacing: 0; line-height: 1; }
.brand-name { font-size: 0.8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav { list-style: none; display: none; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--link); }
@media (min-width: 880px) { .nav { display: flex; } }
.header-cta {
  display: inline-block; padding: 9px 18px; border-radius: 4px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-size: 0.875rem; font-weight: 700; white-space: nowrap;
}
.header-cta:hover { background: var(--navy-deep); }

/* 最初の画面 */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 104px 0 112px;
}
.hero h1 {
  max-width: 18em;
  word-break: keep-all;
  font-size: clamp(1.5rem, 4.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.45;
}
.hero-lead {
  margin-top: 24px; max-width: 36em;
  font-size: 1.0625rem; color: rgba(255, 255, 255, 0.86);
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* ボタン */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 4px;
  font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: #ffffff; }

/* 節 */
.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 700; color: var(--navy); text-align: center;
}
.section-title::after {
  content: ""; display: block; width: 40px; height: 3px;
  margin: 18px auto 0; background: var(--navy);
}
.section-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* 事業内容 */
.biz-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 880px) { .biz-grid { grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; } }
.biz {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 36px 32px;
}
.biz-icon {
  width: 52px; height: 52px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--navy);
}
.biz h3 { margin-top: 20px; font-size: 1.25rem; color: var(--navy); }
.biz > p { margin-top: 12px; }
.list { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.list li { padding: 10px 0 10px 1.2em; border-bottom: 1px solid var(--line); position: relative; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 1.35em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy);
}
.biz .biz-note { margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }

/* 実績 */
.works { list-style: none; margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .works { grid-template-columns: 1fr 1fr; gap: 24px; } }
.works li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  border-top: 3px solid var(--navy);
  padding: 28px 28px 30px;
}
.works .what { font-size: 0.8125rem; font-weight: 700; color: var(--link); }
.works h3 { margin-top: 6px; font-size: 1.125rem; color: var(--navy); }
.works h3 + p { margin-top: 10px; }

/* 代表 */
.profile {
  margin: 56px auto 0; max-width: 880px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
@media (min-width: 760px) { .profile { grid-template-columns: 220px 1fr; gap: 48px; } }
.profile-role { font-size: 0.875rem; color: var(--muted); }
.profile-name { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.profile-kana { font-size: 0.8125rem; color: var(--muted); }

/* 会社概要 */
.facts {
  margin: 56px auto 0; width: 100%; max-width: 880px;
  border-collapse: collapse; table-layout: fixed;
  background: var(--surface); border: 1px solid var(--line);
}
.facts th, .facts td {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; overflow-wrap: normal;
}
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 11em; background: var(--tint); color: var(--navy); font-weight: 700; }
.facts .sub { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 599px) {
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; width: 100%; }
  .facts th { padding: 12px 20px; border-bottom: 0; }
  .facts td { padding: 12px 20px 18px; }
}

/* お問い合わせ */
.contact { background: var(--navy); color: #fff; padding: 88px 0; text-align: center; }
.contact h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.contact p { margin-top: 20px; color: rgba(255, 255, 255, 0.88); }
.contact .contact-actions { margin-top: 32px; }
.contact .contact-addr { margin-top: 14px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }

/* フッター */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.82); font-size: 0.875rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px;
  padding-top: 48px; padding-bottom: 32px;
}
.footer-name { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copy { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

/* プライバシーポリシーなどの文書ページ */
.doc { padding: 72px 0 96px; }
.doc .body { max-width: 760px; }
.doc h1 { font-size: 1.75rem; color: var(--navy); }
.doc h2 { font-size: 1.125rem; margin-top: 40px; color: var(--navy); }
.doc h2 + p, .doc h2 + ul { margin-top: 8px; }
.doc p + p { margin-top: 1em; }
.doc ul { padding-left: 1.4em; margin-top: 8px; }
.doc .date { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.doc .back { margin-top: 48px; }
.doc .intro { margin-top: 32px; }

/* 最終行に1字だけ残るのを防ぐ */
.works p, .biz p, .section-note, .profile-body p, .hero-lead, .contact p { text-wrap: pretty; }
