/* HIT-Q site style (2026-11) */
:root {
  --navy: #0f2a44;
  --teal: #0f7c83;
  --teal-light: #e6f3f3;
  --text: #1f2933;
  --muted: #5b6770;
  --line: #e2e8ec;
  --bg: #f7f9fa;
  --max: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); }
a:hover { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--navy); line-height: 1.3; }
.brand-name { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.brand-name span { color: var(--teal); }
.brand-sub { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.global-nav a:hover,
.global-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

/* Hero (top page) */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy) url("../picture_library/kaisya.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 42, 68, 0.88) 0%, rgba(15, 42, 68, 0.55) 55%, rgba(15, 124, 131, 0.25) 100%);
}
.hero .wrap { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero-eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.2em; opacity: 0.85; }
.hero h1 { margin: 0 0 20px; font-size: clamp(26px, 4vw, 40px); line-height: 1.5; font-weight: 700; }
.hero p { margin: 0; max-width: 640px; font-size: 16px; opacity: 0.95; }

/* Page title (sub pages) */
.page-title {
  background: linear-gradient(100deg, var(--navy), #18466e);
  color: #fff;
  padding: 48px 0 44px;
}
.page-title .en { display: block; font-size: 12px; letter-spacing: 0.24em; opacity: 0.75; text-transform: uppercase; }
.page-title h1 { margin: 6px 0 0; font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }

/* Sections */
main { display: block; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section h2 {
  margin: 0 0 28px;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.5;
}
.section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: var(--teal);
}
.section h3 { margin: 32px 0 12px; font-size: 19px; color: var(--navy); }
.lead { font-size: 17px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  display: block;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(15, 42, 68, 0.1); transform: translateY(-2px); color: var(--text); }
.card .label { font-size: 12px; letter-spacing: 0.18em; color: var(--teal); font-weight: 700; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal); }

/* Company table */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.info-table th,
.info-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 28%; background: var(--bg); color: var(--navy); font-weight: 600; white-space: nowrap; }

/* Figures */
.figure { margin: 28px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.figure img { display: block; margin: 0 auto; }

/* Map */
.map-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--bg); }

/* Policy */
.policy ol { padding-left: 1.4em; }
.policy li { margin-bottom: 12px; }
.policy .signature { text-align: right; margin: 24px 0 0; }
.policy .box { margin-top: 40px; padding: 28px; background: var(--bg); border-radius: 10px; }
.policy .box h3:first-child { margin-top: 0; }
.policy ul { padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); padding: 40px 0 28px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .company { line-height: 1.8; }
.site-footer .company strong { color: #fff; font-size: 16px; }
.site-footer nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; margin-right: 20px; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.copyright { width: 100%; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 8px; }
  .global-nav ul { gap: 0 18px; }
  .global-nav a { font-size: 13px; }
  .hero { min-height: 360px; }
  .section { padding: 44px 0; }
  .info-table th,
  .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 6px; border-bottom: 0; }
  .info-table td { padding-top: 6px; }
  .figure { padding: 12px; overflow-x: auto; }
}
