/* 株式会社メディコム コーポレートサイト 共通スタイル */
:root {
  --ink: #0b1b2e;
  --ink-2: #14304d;
  --ink-soft: #2a3b50;
  --paper: #f3f6f9;
  --white: #ffffff;
  --teal: #0b7a86;
  --teal-dark: #08616b;
  --sky: #5fd0dc;
  --amber: #f0a92e;
  --mute: #566271;
  --line: #d3dae2;
  --todo: #fff1a8;
  --maxw: 1120px;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; color: var(--ink); }
.brand-en { font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; }
.brand-jp { font-size: .75rem; color: var(--mute); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); font-weight: 700; }
.nav a.nav-contact { background: var(--ink); color: var(--white); border-radius: 4px; border-bottom: 0; margin-left: 8px; }
.nav a.nav-contact:hover { background: var(--teal-dark); }
.nav a.nav-contact[aria-current="page"] { background: var(--teal-dark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(ellipse at 78% 40%, rgba(95, 208, 220, .16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero > .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding-block: 80px 72px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.35; margin: 0 0 24px; font-weight: 700; letter-spacing: .02em; }
.hero p { margin: 0 0 32px; max-width: 34em; color: #cdd7e3; }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }
.hero-art .arc { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; }
.hero-art .a1 { opacity: 1; } .hero-art .a2 { opacity: .8; } .hero-art .a3 { opacity: .55; } .hero-art .a4 { opacity: .35; }
.hero-art .tower { fill: none; stroke: #e6eef7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .thin { stroke-width: 1.6; opacity: .75; }
.hero-art .ground { stroke: #3a5575; stroke-width: 2; }
.hero-art .beacon { fill: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
  .hero-art .a2 { animation-delay: .35s; } .hero-art .a3 { animation-delay: .7s; } .hero-art .a4 { animation-delay: 1.05s; }
  .hero-art .beacon { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pulse { 50% { opacity: .35; } }
}

/* ヒーロー下の事業タグ帯 */
.tagbar { background: var(--ink); border-top: 1px solid #1e3a57; }
.tagbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tagbar li { flex: 1 1 0; min-width: 150px; padding: 18px 20px; color: #cdd7e3; font-size: .9rem; border-left: 1px solid #1e3a57; display: flex; align-items: center; gap: 10px; }
.tagbar li:first-child { border-left: 0; padding-left: 0; }
.tagbar .dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; flex: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 4px; background: var(--amber); color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--amber); font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn:hover { background: #ffc04d; border-color: #ffc04d; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--sky); color: var(--sky); margin-left: 12px; }
.btn-ghost:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

/* ---------- セクション共通 ---------- */
.section { padding-block: 88px; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.5; margin: 0 0 12px; }
.section .lead { color: var(--mute); margin: 0 0 44px; max-width: 38em; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* 事業カード(6列グリッド:上段3つ・下段2つ) */
.biz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.biz-card { grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 4px; padding: 28px 28px 24px; display: flex; flex-direction: column; }
.biz-card:nth-child(n+4) { grid-column: span 3; }
.biz-card .icon { color: var(--teal); margin-bottom: 16px; }
.biz-card h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.5; }
.biz-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* 強み */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.point .icon { color: var(--teal); width: 44px; height: 44px; margin-bottom: 14px; }
.point h3 { margin: 0 0 8px; font-size: 1.15rem; padding-bottom: 12px; border-bottom: 2px solid var(--amber); display: inline-block; }
.point p { margin: 12px 0 0; color: var(--ink-soft); }

/* 施工の流れ(順番に意味があるので番号を使う) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 0 20px 0 0; counter-increment: step; }
.flow li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ink); color: var(--white); border-radius: 50%; font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1; }
.flow li::after { content: ""; position: absolute; top: 19px; left: 40px; right: 0; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow h3 { margin: 0 0 4px; font-size: 1.05rem; }
.flow p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }

/* 会社情報の抜粋 */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.summary-list { margin: 0; border-top: 2px solid var(--ink); }
.summary-list > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { font-weight: 700; }
.summary-list dd { margin: 0; }
.message { margin: 0; }
.message p { margin: 0 0 1em; }
.message .sign { color: var(--mute); margin-top: 16px; }

/* 下部の問い合わせ帯 */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.5rem; }
.cta-band p { margin: 0; color: #cdd7e3; }

/* ---------- 下層ページの見出し ---------- */
.page-head { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--white); }
.page-head .wrap { padding-block: 56px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.4; }
.page-head p { margin: 0; color: #cdd7e3; max-width: 38em; }
.breadcrumb { font-size: .85rem; color: #9fb2c6; margin-bottom: 16px; }
.breadcrumb a { color: #9fb2c6; }
.page-body { padding-block: 64px 88px; }

/* 事業内容の詳細 */
.biz-detail { display: grid; grid-template-columns: 88px 1fr; gap: 8px 32px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.biz-detail:first-child { padding-top: 0; }
.biz-detail:last-of-type { border-bottom: 0; }
.biz-detail .icon-box { width: 72px; height: 72px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--teal); }
.biz-detail h2 { font-size: 1.45rem; margin: 0 0 12px; }
.biz-detail p { margin: 0 0 12px; max-width: 40em; }
.biz-detail ul { margin: 0; padding-left: 1.3em; max-width: 40em; color: var(--ink-soft); }

/* ---------- 会社概要 ---------- */
.profile { margin: 0; border-top: 2px solid var(--ink); background: var(--white); }
.profile > div { display: grid; grid-template-columns: 11em 1fr; gap: 8px 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; }
.profile dd { margin: 0; }
.profile ul { margin: 0; padding-left: 1.2em; }
.todo { background: var(--todo); padding: 0 .3em; border-radius: 2px; }

/* ---------- お問い合わせフォーム ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.form { max-width: 680px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: #b3261e; font-size: .85rem; margin-left: 6px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #98a4b2; border-radius: 4px;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field .err { color: #b3261e; font-size: .9rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 16px 20px; margin: 0 0 32px; }
.notice.error { border-left-color: #b3261e; }
.notice p { margin: 0; }
.side-box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 4px; padding: 24px; }
.side-box h2 { font-size: 1.1rem; margin: 0 0 12px; }
.side-box p { margin: 0 0 12px; font-size: .95rem; }
.side-box p:last-child { margin-bottom: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #cdd7e3; padding-block: 56px 28px; font-size: .9rem; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .f-name { font-weight: 700; font-size: 1.1rem; color: var(--white); margin: 0 0 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: #cdd7e3; }
.site-footer a:hover { color: var(--white); }
.copy { border-top: 1px solid #22405f; margin-top: 32px; padding-top: 20px; color: #8fa1b5; font-size: .8rem; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.nav-contact { margin: 12px 0 0; text-align: center; }

  .hero > .wrap { grid-template-columns: 1fr; padding-block: 48px 40px; }
  .hero-art { max-width: 240px; justify-self: start; order: -1; }
  .btn-ghost { margin: 12px 0 0; }
  .tagbar li { flex-basis: 50%; border-left: 0; padding-left: 0; }

  .section { padding-block: 60px; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-card, .biz-card:nth-child(n+4) { grid-column: auto; }
  .points { grid-template-columns: 1fr; gap: 32px; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow li { padding: 0 0 0 56px; }
  .flow li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow li::after { top: 40px; left: 19px; width: 2px; height: calc(100% - 20px + 20px); right: auto; }
  .summary { grid-template-columns: 1fr; gap: 32px; }
  .biz-detail { grid-template-columns: 1fr; }
  .profile > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 追加: 実績バッジ・写真 ---------- */
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.facts li { border: 1px solid #2f4d6e; background: rgba(255,255,255,.04); color: #e6eef7; padding: 6px 14px; border-radius: 999px; font-size: .88rem; line-height: 1.6; }
/* お手元の写真 images/hero.jpg を置くと、ヒーローの背景にうっすら表示されます */
.hero { background:
    radial-gradient(ellipse at 78% 40%, rgba(95, 208, 220, .16), transparent 60%),
    linear-gradient(180deg, rgba(11,27,46,.9) 0%, rgba(20,48,77,.94) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.photo-grid figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ヒーロー写真(images/hero.jpg)を主役にする ---------- */
.hero { background:
    linear-gradient(90deg, rgba(11,27,46,.9) 0%, rgba(11,27,46,.62) 48%, rgba(11,27,46,.08) 100%),
    url("../images/hero.jpg") 82% center / cover no-repeat,
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.hero::before { display: none; }
.hero > .wrap { grid-template-columns: 1fr; min-height: 520px; padding-block: 96px 88px; }
.photo-note { position: absolute; right: 0; bottom: 14px; margin: 0; color: rgba(255,255,255,.7); font-size: .75rem; }
@media (max-width: 900px) {
  .hero { background:
      linear-gradient(180deg, rgba(11,27,46,.78) 0%, rgba(11,27,46,.55) 100%),
      url("../images/hero.jpg") 80% center / cover no-repeat,
      linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
  .hero > .wrap { min-height: 0; padding-block: 56px 64px; }
}

/* ---------- 会社情報(あいさつ文なし・2列) ---------- */
.summary { grid-template-columns: 1fr; gap: 0; }
.summary-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.img-note { margin: 12px 0 0; color: var(--mute); font-size: .8rem; }
@media (max-width: 900px) { .summary-list { grid-template-columns: 1fr; } }

/* ---------- 募集ページ・方針ページ ---------- */
.h2-plain { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 24px; }
.note-small { font-size: .85rem; color: var(--mute); margin: 0 0 16px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.15rem; margin: 40px 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--amber); display: inline-block; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 8px 0; }
.prose .muted { color: var(--mute); margin-top: 32px; }
