/* 有限会社エラン・システム 会社サイト 色: 紺 #1F2A44 / オレンジ #E8A35C */
:root {
  --navy: #1F2A44;
  --navy-deep: #17203a;
  --orange: #E8A35C;
  --orange-dark: #8f5316;
  --cream: #F6F3EE;
  --line: #ddd8cf;
  --text: #22283a;
  --muted: #5a6275;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, .lead, .hero p { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--navy); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 17px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy); border-radius: 6px; padding: 8px 14px; min-height: 44px; font-size: 15px; color: var(--navy); cursor: pointer; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--navy); font-size: 15px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav a.nav-cta { background: var(--orange); color: var(--navy); padding: 8px 18px; border-radius: 999px; border-bottom: none; }
.nav a.nav-cta[aria-current="page"] { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ボタン */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 16px; line-height: 1.4; text-align: center; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #f0b273; }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* トップの最初の画面 */
.hero {
  background-color: var(--navy);
  background-image: url(images/hero.jpg);
  background-size: cover;
  background-position: right center;
  color: #fff;
}
.hero .wrap { padding-top: 72px; padding-bottom: 80px; min-height: 480px; display: flex; align-items: center; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.5; margin: 0 0 20px; }
.hero p { margin: 0; font-size: 17px; color: #e6e9f2; }
.hero p.hero-note { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--orange); }

/* 見出し・節 */
.section { padding: 56px 0; }
.section.alt { background: var(--cream); }
h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.5; margin: 0 0 20px; color: var(--navy); }
h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--orange); margin-top: 10px; border-radius: 2px; }
h3 { font-size: 19px; margin: 0 0 8px; color: var(--navy); }
.page-head { background: var(--navy); color: #fff; padding: 44px 0; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.5; }
.page-head p { margin: 8px 0 0; color: #e6e9f2; }
.lead { font-size: 17px; }
.note { font-size: 14px; color: var(--muted); }

/* 悩みのリスト */
.worries { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.worries li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 8px; padding: 14px 18px; }

/* 3つのお手伝い */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--cream); border-radius: 12px; padding: 22px; }
.section.alt .card { background: #fff; border: 1px solid var(--line); }
.card img { display: block; width: 100%; max-width: 200px; margin: 0 auto 12px; mix-blend-mode: multiply; }
.card p { margin: 0; font-size: 15px; }

/* サービスの詳細 */
.service-item { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.service-item:first-of-type { border-top: none; }
.service-item img { width: 100%; mix-blend-mode: multiply; background: var(--cream); border-radius: 12px; }
.service-item .label { font-weight: 700; color: var(--navy); }
.service-item p { margin: 0 0 10px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 58px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; text-align: center; line-height: 30px; }

/* 連載 */
.series-item { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.series-item:first-of-type { border-top: none; }
.series-item img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.series-item .no { font-size: 14px; font-weight: 700; color: var(--orange-dark); }
.series-item h3 { margin: 2px 0 8px; }
.series-item p { margin: 0 0 10px; }
.about-list { padding-left: 1.2em; margin: 0; }

/* 会社案内の表 */
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.profile th { width: 9em; color: var(--navy); white-space: nowrap; }
.bullets { padding-left: 1.2em; margin: 8px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-weight: 700; color: var(--navy); }

/* 事業内容 */
.biz-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.biz-item:first-child { padding-top: 0; }
.biz-item:last-child { border-bottom: none; padding-bottom: 0; }
.biz-item h2 { font-size: 22px; margin: 0 0 8px; }
.biz-item h2::after { display: none; }
.biz-item p { margin: 0 0 8px; }
.biz-item .biz-label { margin: 12px 0 0; font-weight: 700; color: var(--navy); }

/* お知らせ */
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news .date { color: var(--muted); font-size: 15px; }
.news summary { cursor: pointer; }
.news li a { display: inline-block; padding: 8px 0; }
.career { margin: 20px 0 0; }
.link-line a, .back-link a { display: inline-block; padding: 10px 2px; }
.news details p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.pubs { list-style: none; padding: 0; margin: 0 0 24px; }
.pubs > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pubs summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.pubs .pub-status { margin-left: 12px; font-weight: 400; font-size: 15px; color: var(--muted); }
.pubs .news { margin-top: 8px; }
.pubs .news li:last-child { border-bottom: none; }

/* 相談ページ */
.contact-grid { display: grid; gap: 20px; }
.contact-box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }
.contact-box h3 { margin-bottom: 6px; }
.contact-box .big { font-size: 22px; font-weight: 700; color: var(--navy); margin: 4px 0 12px; word-break: break-all; }
.contact-box p { margin: 0 0 10px; }
.badge { display: inline-block; background: var(--orange); color: var(--navy); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* 相談の帯 */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 48px 0; }
.cta-band p { margin: 0 0 18px; font-size: 20px; font-weight: 700; }

/* フッター */
.site-footer { background: var(--navy-deep); color: #cdd3e3; padding: 36px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer p a { display: inline-block; padding: 8px 0; }
.footer-name { font-weight: 700; color: #fff; font-size: 16px; margin: 0 0 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-nav a { display: inline-block; padding: 10px 0; font-size: 15px; }
.footer-small { margin-top: 20px; font-size: 13px; color: #aab2c8; }

/* スマホ */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { text-align: center; margin-top: 12px; border-bottom: none; }
  .brand { font-size: 15px; }
  .hero { background-image: linear-gradient(rgba(31,42,68,.55), rgba(31,42,68,.85)), url(images/hero.jpg); background-position: center, 78% center; }
  .hero .wrap { padding-top: 44px; padding-bottom: 48px; min-height: 0; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; align-items: center; padding: 16px; }
  .card img { max-width: 84px; margin: 0; grid-row: 1 / span 2; align-self: start; }
  .card h3 { grid-column: 2; align-self: end; margin: 0; }
  .card p { grid-column: 1 / -1; }
  .service-item { grid-template-columns: 1fr; gap: 14px; }
  .service-item img { max-width: 180px; }
  .series-item { grid-template-columns: 1fr; }
  .profile th, .profile td { display: block; width: auto; padding: 4px 0; border-bottom: none; }
  .profile tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .timeline li, .news li { grid-template-columns: 1fr; gap: 0; }
  .btn { width: 100%; }
  .profile td a, .contact-box .big a { display: inline-block; padding: 10px 0; }
  .btn-row { flex-direction: column; }
  .cta-band p { font-size: 18px; }
}
