/* 株式会社フロンティアX 会社サイト。色は 紺 #233A5D × オレンジ #EE862B × 白。外部の読み込みなし。 */
:root {
  --navy: #233A5D;
  --navy-deep: #1a2c47;
  --orange: #EE862B;
  --orange-text: #C4610F;
  --ink: #1d2433;
  --muted: #3f4a5e;
  --line: #e1e5ec;
  --soft: #f5f6f8;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
p, li, td { text-wrap: pretty; }
h1, h2, h3, .profile th { word-break: auto-phrase; }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.nb { display: inline-block; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ヘッダー */
.site-header { border-top: 4px solid var(--orange); border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: block; line-height: 0; }
.brand img { height: 28px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }

/* 冒頭 */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero-mark { position: absolute; right: 8px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); opacity: .12; pointer-events: none; }
.hero .eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--orange-text); }
.hero h1 { position: relative; margin: 0 0 24px; font-size: clamp(30px, 5.2vw, 50px); line-height: 1.35; letter-spacing: .03em; color: var(--navy); font-weight: 800; }
.hero p.lead { position: relative; margin: 0; max-width: 36em; font-size: 17px; color: var(--ink); }

/* 区画 */
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section.soft { background: var(--soft); }
.section-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--orange-text); }
.section h2 { margin: 0 0 32px; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.5; color: var(--navy); font-weight: 800; letter-spacing: .03em; }
.section p { margin: 0 0 1.2em; }
.section p:last-child { margin-bottom: 0; }

/* 事業内容 */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; padding: 26px 28px 28px; }
.card .no { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--orange-text); }
.card h3 { margin: 6px 0 10px; font-size: 18px; line-height: 1.55; color: var(--navy); }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.85; }
.card p.more { margin-top: 12px; font-size: 14px; }
.after-cards { margin-top: 32px; padding: 22px 26px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 4px; }
.after-cards p { margin: 0 0 12px; font-size: 15.5px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 700; }
.links a::after { content: " →"; }

/* 社名に込めた思い */
.name-lead { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.9; }
.xmean { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0; padding: 0; list-style: none; }
.xmean li { border-top: 3px solid var(--orange); background: var(--soft); padding: 20px 22px 22px; border-radius: 0 0 4px 4px; }
.xmean h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); line-height: 1.5; }
.xmean h3 small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--orange-text); }
.xmean p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink); }

/* 代表あいさつ */
.message { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 52px; align-items: start; }
.message-photo { margin: 6px 0 0; }
.message-photo img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--line); box-shadow: 14px 14px 0 rgba(35, 58, 93, .08); }
.message-text { max-width: 640px; }
.sign { margin-top: 32px; text-align: right; font-size: 15px; line-height: 1.8; }
.sign strong { display: block; font-size: 19px; letter-spacing: .08em; color: var(--navy); }

/* 会社概要 */
.profile { width: 100%; border-collapse: collapse; font-size: 15.5px; border-top: 2px solid var(--navy); background: var(--white); }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 17px 16px; border-bottom: 1px solid var(--line); }
.profile th { width: 11em; font-weight: 700; color: var(--navy); background: var(--soft); white-space: nowrap; }
.profile ul { margin: 0; padding-left: 1.2em; }
.profile li { margin: 0 0 2px; }

/* お問い合わせ */
.contact-box { border: 1px solid var(--line); border-radius: 4px; padding: 30px 32px; background: var(--white); }
.contact-box .mail { margin: 14px 0 18px; font-size: clamp(18px, 3.4vw, 23px); font-weight: 700; letter-spacing: .02em; }
.contact-box .note { font-size: 14.5px; color: var(--muted); }

/* 下層ページ */
.page { padding: 64px 0 88px; }
.page h1 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 30px); line-height: 1.5; color: var(--navy); font-weight: 800; letter-spacing: .03em; }
.page .lead { margin: 0 0 40px; color: var(--muted); }
.page h2 { margin: 44px 0 12px; padding-left: 12px; border-left: 4px solid var(--orange); font-size: 18px; line-height: 1.5; color: var(--navy); }
.page p { margin: 0 0 1em; }
.page ul { margin: 0 0 1em; padding-left: 1.3em; }
.notice { width: 100%; border-collapse: collapse; font-size: 15.5px; border-top: 2px solid var(--navy); }
.notice th, .notice td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.notice th { background: var(--soft); color: var(--navy); font-weight: 700; }
.notice .date { width: 11em; white-space: nowrap; }
.notice .empty { color: var(--muted); padding: 26px 16px; }
.page .back { margin: 44px 0 0; font-size: 15px; }
.page .updated { margin: 44px 0 0; font-size: 14.5px; color: var(--muted); }

/* フッター */
.site-footer { background: var(--navy); color: #e8ecf3; padding: 40px 0 44px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.site-footer .name { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd2a6; }
.site-footer .copy { flex-basis: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; color: #c9d1de; }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { min-height: 0; padding-top: 12px; padding-bottom: 8px; }
  .brand img { height: 24px; }
  .site-nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 4px; }
  .site-nav a { text-align: center; padding: 7px 0 5px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero-mark { display: none; }
  .hero p.lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .cards, .xmean { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px 20px 24px; }
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: 100%; }
  .profile th { padding: 10px 14px; border-bottom: 0; white-space: normal; }
  .profile td { padding: 12px 14px 18px; }
  .contact-box { padding: 24px 20px; }
  .sign { text-align: left; }
  .message { grid-template-columns: 1fr; gap: 30px; }
  .message-photo { max-width: 220px; margin-top: 0; }
  .message-photo img { box-shadow: 10px 10px 0 rgba(35, 58, 93, .08); }
  .notice .date { width: 8.5em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-nav, .skip, .hero-mark { display: none; } .site-footer { background: #fff; color: #000; } .site-footer a, .site-footer .name { color: #000; } }
