/* HINOGEN TECH｜日源株式会社 技術部門 業務宣伝サイト */
:root {
  --navy: #0F2A4A;
  --navy-2: #1B3F6B;
  --accent: #2F7BD6;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --text: #1E2A38;
  --muted: #5B6B7D;
  --border: #D9E1EC;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.4; color: var(--navy); margin: 0; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { max-width: 820px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}
.brand {
  color: #fff; text-decoration: none; font-weight: 700;
  font-size: 1.3rem; letter-spacing: 0.08em; font-family: "Helvetica Neue", Arial, sans-serif;
}
.brand { white-space: nowrap; }
.global-nav {
  display: flex; gap: 16px; margin-left: auto;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.global-nav::-webkit-scrollbar { display: none; }
.global-nav a { color: #E6EEF8; text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
.header-inner > .btn-small { white-space: nowrap; flex-shrink: 0; }
.global-nav a:hover { color: #fff; text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; border: 2px solid var(--accent); transition: opacity .2s;
}
.btn:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; border-radius: 6px; }
.site-header .btn-small { background: #fff; color: var(--navy); border-color: #fff; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 12px 0 20px; }
.hero .lead { font-size: 1.05rem; color: #DCE7F5; max-width: 720px; }
.eyebrow { margin: 0; color: #9CC4F0; font-size: 0.9rem; letter-spacing: 0.1em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.reassure { margin-top: 20px; font-size: 0.9rem; color: #B9CFEA; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 36px; }
.section-title span {
  display: block; font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.num {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700; color: var(--accent); font-size: 1.4rem; margin: 0 0 6px !important;
}

/* Service table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.service-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--border); min-width: 560px;
}
.service-table th, .service-table td {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.service-table thead th { background: var(--navy); color: #fff; font-size: 0.9rem; }
.service-table tbody th { color: var(--navy); width: 26%; }
.service-table td { color: var(--muted); font-size: 0.95rem; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Team */
.team-intro { color: var(--muted); max-width: 760px; margin: -12px 0 8px; }
.sub-title {
  font-size: 1.15rem; margin: 44px 0 18px; padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.role-list { margin: 0; padding-left: 1.3em; color: var(--muted); }
.role-list li { margin-bottom: 8px; }
.team-split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.team-split .card h3 { margin-bottom: 10px; }
.team-note { color: var(--muted); max-width: 760px; }

/* Tech stack tags */
.tag-list { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.tag-list li {
  padding: 8px 0 8px 14px; border-bottom: 1px solid var(--border);
  position: relative;
}
.tag-list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* Illustrations */
.figure { margin: 0 0 36px; }
.figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Flow cards */
.card-flow { border-top: 4px solid var(--accent); }
.steps { margin: 12px 0 0; padding-left: 1.3em; color: var(--muted); font-size: 0.95rem; }
.steps li { margin-bottom: 6px; }

/* Strength */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--border); color: var(--muted);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px #fff;
}
.check-list strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }

/* Flow steps */
.flow-steps {
  list-style: none; counter-reset: step;
  display: grid; gap: 16px; padding: 0; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.flow-steps li {
  counter-increment: step; position: relative;
  background: var(--bg-alt); border-radius: var(--radius); padding: 22px 22px 22px 70px;
}
.flow-steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.flow-steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.flow-steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* FAQ */
.faq { margin: 0; }
.faq dt {
  font-weight: 700; color: var(--navy);
  padding: 16px 0 6px; border-top: 1px solid var(--border);
}
.faq dt:first-child { border-top: 0; }
.faq dd { margin: 0 0 16px; color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-title span { color: #9CC4F0; }
.contact-lead { color: #DCE7F5; margin-top: -16px; }
.contact-box {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius); padding: 24px 28px;
}
.contact-box p { margin: 8px 0; }

/* Footer */
.site-footer { background: #0A1F37; color: #AFC3DA; padding: 40px 0; font-size: 0.9rem; }
.footer-inner p { margin: 6px 0; }
.site-footer a { color: #9CC4F0; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; font-weight: 700; letter-spacing: 0.08em; }
.copyright { font-size: 0.8rem; color: #7F95B0; margin-top: 16px !important; }

/* Responsive */
@media (max-width: 760px) {
  .header-inner { gap: 12px; flex-wrap: wrap; padding-top: 8px; }
  .global-nav {
    order: 3; width: 100%; margin-left: 0;
    overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .global-nav a { white-space: nowrap; }
  .site-header .btn-small { margin-left: auto; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .service-table tbody th { width: auto; }
}

/* Breadcrumb and service links */
.crumbs { padding-top: 14px; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.service-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.service-links a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--navy-2); color: var(--navy-2); text-decoration: none; font-size: 0.92rem;
}
.service-links a:hover { background: var(--navy-2); color: #fff; }

/* Usability & polish */
section[id] { scroll-margin-top: 72px; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 42, 74, 0.08); }
a:focus-visible, .btn:focus-visible, .to-top:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.tel { color: var(--navy-2); font-weight: 700; text-decoration: none; }
.tel:hover { text-decoration: underline; }
.contact-box .tel { color: #fff; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; text-decoration: none; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); opacity: .9;
}
.to-top:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
