/* NetLink株式会社 コーポレートサイト */
:root {
  --ink: #0e1a24;
  --text: #2a3542;
  --muted: #5d6877;
  --navy: #022b4c;
  --blue: #0a5fa0;
  --sky: #6cc6e8;
  --bg: #ffffff;
  --soft: #f2f6fa;
  --line: #dce4ec;
  --radius: 14px;
  --wrap: 1120px;
  --font-ja: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Poppins", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--ink); line-height: 1.5; margin: 0; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: 0.12em;
  color: var(--ink); text-decoration: none;
}
.nav a:hover { color: var(--blue); }
.nav .nav-cta {
  background: var(--navy); color: #fff; padding: 9px 20px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--blue); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 14px; }
  .nav .nav-cta { margin: 16px 24px 20px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex; align-items: center;
  background: var(--navy) url("../img/hero.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 22, 40, 0.86) 0%, rgba(2, 22, 40, 0.62) 45%, rgba(2, 22, 40, 0.10) 100%);
}
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero-eyebrow {
  font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: 0.2em;
  color: var(--sky); margin-bottom: 20px;
}
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(30px, 5.2vw, 56px); line-height: 1.35; letter-spacing: 0.04em;
}
@media (max-width: 600px) { .hero h1 { font-size: 7.1vw; letter-spacing: 0.02em; } .hero .wrap { padding-top: 72px; padding-bottom: 72px; } }
.hero-sub {
  margin-top: 24px; font-family: var(--font-en); font-weight: 500;
  font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.86);
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: var(--sky); color: var(--navy); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.btn-navy:hover { background: var(--blue); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section.soft { background: var(--soft); }
@media (max-width: 600px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 48px; }
.eyebrow {
  font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: 0.22em;
  color: var(--blue); display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sky); }
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: 0.06em; }
.lead { font-size: 17px; color: var(--muted); max-width: 760px; }

/* about */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about-catch { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.6; color: var(--navy); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* service */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .service-list { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.service-num { font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: var(--sky); }
.service-tag { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--blue); }
@media (min-width: 961px) { .service-tag { min-height: 3.6em; } }
.service-card h3 { margin-top: 6px; font-size: 22px; font-weight: 700; }
.service-card p { margin-top: 18px; font-size: 15px; line-height: 1.95; }
.service-link {
  margin-top: auto; padding-top: 24px; font-weight: 700; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.service-link::after { content: "→"; transition: transform .2s; }
.service-link:hover::after { transform: translateX(4px); }

/* company */
.company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.company-table th { width: 200px; color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  .company-table th, .company-table td { display: block; width: 100%; padding: 0 4px; border: 0; }
  .company-table th { padding-top: 18px; font-size: 14px; color: var(--muted); }
  .company-table td { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}

/* message */
.message-box {
  margin-top: 72px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 56px 64px; position: relative;
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: start;
}
.message-photo { position: sticky; top: 96px; }
.message-photo img { display: block; width: 100%; height: auto; border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 860px) { .message-box { grid-template-columns: 1fr; gap: 28px; } .message-photo { position: static; max-width: 300px; } }
@media (max-width: 600px) { .message-box { padding: 36px 22px; margin-top: 56px; } .message-photo { max-width: 240px; } }
.message-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--navy); margin-bottom: 28px; }
.message-sign { margin-top: 36px; text-align: right; font-weight: 700; color: var(--ink); }
.message-sign small { font-weight: 500; color: var(--muted); margin-right: 12px; font-size: 14px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-mail { margin-top: 24px; font-size: 15px; }
.contact-mail a { font-weight: 700; }
.form-row { margin-bottom: 24px; }
.form-row label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.req, .opt {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  margin-left: 8px; vertical-align: 2px; letter-spacing: 0.06em;
}
.req { background: var(--navy); color: #fff; }
.opt { background: var(--line); color: var(--muted); }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid #c8d3de; border-radius: 10px; background: #fff;
}
.form-row textarea { min-height: 180px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
.agree { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.agree input { width: 18px; height: 18px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 32px; }

/* ---------- sub pages ---------- */
.page-head { background: var(--soft); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: 0.06em; }
.page-body { padding: 64px 0 112px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 19px; margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--sky); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: 4px 0; }
.thanks-box { text-align: center; padding: 40px 0; }
.thanks-box h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; }

/* ---------- 電子公告 ---------- */
.notice-index { list-style: none; padding: 0; margin: 0 0 56px; border-top: 1px solid var(--line); }
.notice-index li { padding: 18px 4px; border-bottom: 1px solid var(--line); display: flex; gap: 24px; flex-wrap: wrap; }
.notice-index time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 9em; }
.notice {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 56px; background: #fff;
  font-feature-settings: "palt" 0;
}
@media (max-width: 700px) { .notice { padding: 28px 16px; } }
.notice-title { text-align: center; font-size: 24px; letter-spacing: 0.2em; margin-bottom: 28px; }
.notice-meta { text-align: right; line-height: 1.9; margin-bottom: 36px; }
.bs-caption { text-align: center; font-weight: 700; font-size: 19px; letter-spacing: 0.3em; color: var(--ink); }
.bs-date { text-align: center; margin: 4px 0 2px; }
.bs-unit { text-align: right; font-size: 14px; margin-bottom: 8px; }
.bs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.bs > div { min-width: 0; }
.bs > div + div { border-left: 1px solid var(--ink); }
@media (max-width: 700px) { .bs { grid-template-columns: 1fr; } .bs > div + div { border-left: 0; border-top: 1px solid var(--ink); } .bs .pad { display: none; } }
.bs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bs th, .bs td { padding: 7px 12px; font-weight: 400; text-align: left; }
.bs td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs thead th { text-align: center; font-weight: 700; border-bottom: 1px solid var(--ink); background: var(--soft); }
.bs .grp th { font-weight: 700; padding-top: 12px; }
.bs .i1 th { padding-left: 2em; }
.bs .i2 th { padding-left: 3em; }
.bs .i3 th { padding-left: 4em; }
.bs .sum th, .bs .sum td { font-weight: 700; border-top: 1px solid var(--ink); }
.bs .head-sec th { text-align: center; font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--soft); }
.notice-notes { margin-top: 32px; }
.notice-notes h3 { font-size: 16px; margin: 20px 0 8px; }
.notice-notes p { font-size: 15px; }
.pending { background: #fff7d6; border: 1px dashed #d4a72c; padding: 12px 14px; border-radius: 8px; color: #6b5200; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: 64px 0 32px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 18px; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; align-content: start; }
.footer-nav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
