/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B365D;
  --primary-dark: #0F2240;
  --accent: #9B1B30;
  --accent-light: #B92A42;
  --text: #2D3748;
  --text-light: #718096;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --bg-dark: #1A202C;
  --border: #E2E8F0;
  --max-width: 1100px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

ul, ol { list-style: none; }

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
}

.section__subtitle {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.section__lead {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 640px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__logo-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.header__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.header__link:hover,
.header__link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header__contact {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}

.header__contact:hover {
  background: var(--accent-light);
  color: var(--bg);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}


/* ===== Dropdown Menu ===== */
.header__dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.header__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header__arrow {
  transition: transform 0.2s;
  opacity: 0.5;
  flex-shrink: 0;
}

.header__dropdown:hover .header__arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateY(4px);
  z-index: 200;
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.header__dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.header__dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}
/* ===== Hero ===== */
.hero {
  position: relative;
  height: 440px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,54,93,0.85) 0%, rgba(27,54,93,0.6) 100%);
}

.hero__content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}

.hero__tagline {
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero__desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 560px;
}

/* ===== Hero (Sub pages) ===== */
.hero--sub {
  height: 200px;
  background: var(--primary);
}

.hero--sub::before {
  display: none;
}

.hero--sub .hero__title {
  font-size: 28px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb__list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
}

.breadcrumb__list a { color: var(--text-light); }
.breadcrumb__list a:hover { color: var(--accent); }

/* ===== Stats ===== */
.stats {
  background: var(--primary);
  padding: 48px 0;
}

.stats__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stats__item {
  text-align: center;
  color: #fff;
}

.stats__number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stats__label {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__body {
  padding: 20px;
}

.card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(155,27,48,0.08);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.card__text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Info Table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 180px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-alt);
  white-space: nowrap;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 24px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline__year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.timeline__text {
  font-size: 14px;
  color: var(--text);
}

/* ===== News List ===== */
.news-list {
  border-top: 1px solid var(--border);
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.news-item__date {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 100px;
}

.news-item__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--bg);
  background: var(--primary);
  padding: 1px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.news-item__title {
  font-size: 14px;
  color: var(--text);
}

.news-item__title a:hover {
  color: var(--accent);
}

/* ===== Two Column ===== */
.two-col {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.two-col__main {
  flex: 1;
}

.two-col__side {
  width: 320px;
  flex-shrink: 0;
}

.two-col__side img {
  width: 100%;
  border-radius: 6px;
}

/* ===== Process Steps ===== */
.process-steps {
  display: flex;
  gap: 16px;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.process-step__text {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Spec Table ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.spec-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.spec-table tbody th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

/* ===== Recruit ===== */
.recruit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 24px;
}

.recruit-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-label .required {
  font-size: 11px;
  color: var(--accent);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row > * {
  flex: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-light);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: #CBD5E0;
  padding: 60px 0 0;
}

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__brand-text {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.7;
}

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer__link {
  display: block;
  font-size: 13px;
  color: #A0AEC0;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer__copy {
  font-size: 11px;
  opacity: 0.5;
}

/* ===== Sustainability ===== */
.policy-section {
  margin-bottom: 48px;
}

.policy-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.policy-list {
  counter-reset: policy;
}

.policy-list li {
  counter-increment: policy;
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}

.policy-list li::before {
  content: counter(policy);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Sub Navigation ===== */
.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.subnav .container {
  display: flex;
  gap: 0;
}

.subnav__link {
  font-size: 13px;
  color: var(--text-light);
  padding: 12px 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.subnav__link:hover {
  color: var(--text);
}

.subnav__link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.gap-24 { gap: 24px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header__nav { display: none; height: auto; }
  .header__burger { display: flex; }

  .header__dropdown {
    height: auto;
    display: block;
  }

  .header__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: unset;
    display: none;
  }

  .header__dropdown.is-open .header__dropdown-menu {
    display: block;
  }

  .header__dropdown.is-open .header__arrow {
    transform: rotate(180deg);
  }

  .header__dropdown-menu a {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-light);
  }

  .header__nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .hero { height: 320px; }
  .hero__title { font-size: 24px; }

  .stats__grid { flex-wrap: wrap; gap: 24px 40px; }

  .card-grid { grid-template-columns: 1fr; }

  .two-col { flex-direction: column; }
  .two-col__side { width: 100%; }

  .process-steps { flex-direction: column; }

  .info-table th { width: 120px; }

  .form-row { flex-direction: column; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .news-item { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .stats__grid { gap: 20px; }
  .stats__number { font-size: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
}
