@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@500;700&display=swap');

:root {
  --navy: #0B2545;
  --navy-deep: #13315C;
  --blue: #3E7CB1;
  --blue-soft: #8AA9C7;
  --green: #1B4B43;
  --green-soft: #7FA89C;
  --grey-line: #D9DCD6;
  --white: #FFFFFF;
  --ink: #1C2733;
  --paper: #F6F7F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-line);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero (slideshow) */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0.35) 0%, rgba(11,37,69,0.55) 45%, rgba(11,37,69,0.92) 100%);
  z-index: 1;
}

.hero-progress {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-progress-bar {
  width: 56px;
  height: 3px;
  background: rgba(255,255,255,0.28);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-progress-bar .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--white);
  transform-origin: left;
}
.hero-progress-bar.is-done .fill { width: 100%; }
.hero-progress-bar.is-active .fill {
  animation: heroProgress var(--hero-interval, 6s) linear forwards;
}
@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-progress-bar.is-active .fill { animation: none; width: 100%; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 32px;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-soft);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero h1 {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.4;
  max-width: 18ch;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.25s forwards;
}

.hero p {
  color: var(--blue-soft);
  font-size: 1.04rem;
  max-width: 46ch;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero p { animation: none; opacity: 1; }
}

/* Split (pharma / IT) */
.split-section { padding: 100px 0; }

.split-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 64px;
}
.split-head .eyebrow { justify-content: center; display: flex; }
.split-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); margin-bottom: 14px; }
.split-head p { color: #4A5568; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--grey-line);
}

.split-card {
  padding: 56px 44px;
  position: relative;
}
.split-card + .split-card { border-left: 1px solid var(--grey-line); }

.split-card.pharma { background: var(--white); }
.split-card.it { background: var(--paper); }

.split-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid currentColor;
}
.split-card.pharma .split-tag { color: var(--blue); }
.split-card.it .split-tag { color: var(--green); }

.split-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.split-card.it h3 { color: var(--green); }

.split-card p {
  color: #4A5568;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.split-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.split-card.it .split-link { color: var(--green); }
.split-link::after { content: '\2192'; transition: transform 0.2s ease; }
.split-link:hover::after { transform: translateX(4px); }

@media (max-width: 780px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-card + .split-card { border-left: none; border-top: 1px solid var(--grey-line); }
}

/* Signature connecting line */
.signature-line { display: flex; justify-content: center; padding: 0 0 8px; }
.signature-line svg { width: 100%; max-width: 700px; height: 32px; }

/* News */
.news-section { background: var(--paper); padding: 88px 0; }
.news-list { border-top: 1px solid var(--grey-line); }
.news-item {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--grey-line);
  align-items: baseline;
}
.news-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--blue-soft);
  min-width: 96px;
  flex-shrink: 0;
}
.news-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 2px 8px;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}
.news-title { font-size: 0.94rem; color: var(--ink); }
.news-more { text-align: right; margin-top: 28px; }

/* Section generic */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); margin-bottom: 18px; }
.section-lead { max-width: 56ch; color: #4A5568; margin-bottom: 56px; }

/* Company info table */
.info-table { width: 100%; border-collapse: collapse; max-width: 720px; }
.info-table tr { border-bottom: 1px solid var(--grey-line); }
.info-table tr:first-child { border-top: 1px solid var(--grey-line); }
.info-table th, .info-table td { text-align: left; padding: 20px 0; font-weight: 400; vertical-align: top; }
.info-table th {
  width: 160px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: uppercase;
}

/* Greeting */
.greeting-section { padding: 96px 0; }
.greeting-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
.greeting-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}
.greeting-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px dashed var(--grey-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-soft);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-align: center;
  padding: 16px;
}
.greeting-body p {
  color: #4A5568;
  max-width: 68ch;
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.greeting-body p:last-child { margin-bottom: 0; }
.greeting-signoff {
  margin-top: 32px;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 780px) {
  .greeting-grid { grid-template-columns: 1fr; gap: 32px; }
  .greeting-photo { max-width: 240px; }
}

/* History timeline */
.timeline { border-left: 2px solid var(--grey-line); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 40px 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background: var(--blue);
  border-radius: 50%;
}
.timeline-year {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.timeline-desc { color: #4A5568; font-size: 0.92rem; }

/* Business detail page — photo hero */
.biz-hero {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.biz-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.biz-hero-overlay {
  position: absolute;
  inset: 0;
}
.biz-hero.pharma .biz-hero-overlay {
  background: linear-gradient(180deg, rgba(11,37,69,0.25) 0%, rgba(11,37,69,0.5) 55%, rgba(11,37,69,0.95) 100%);
}
.biz-hero.it .biz-hero-overlay {
  background: linear-gradient(180deg, rgba(27,75,67,0.25) 0%, rgba(27,75,67,0.5) 55%, rgba(15,42,37,0.95) 100%);
}
.biz-hero-inner {
  position: relative;
  width: 100%;
  padding: 56px 32px 48px;
  max-width: 1160px;
  margin: 0 auto;
}
.biz-hero .eyebrow { color: rgba(255,255,255,0.7); }
.biz-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; max-width: 20ch; }

/* Intro card overlapping the hero */
.biz-intro-wrap { padding: 64px 0 0; }
.biz-intro {
  max-width: 68ch;
}
.biz-intro p { font-size: 1.02rem; color: #2c3949; }

@media (max-width: 780px) {
  .biz-intro-wrap { padding: 40px 0 0; }
}

.stack { display: flex; flex-direction: column; gap: 56px; }
.block h3 { color: var(--navy); font-size: 1.12rem; font-weight: 700; margin-bottom: 12px; }
.block p { color: #4A5568; max-width: 64ch; }

/* Simple page hero (company / news / recruit) */
.page-hero {
  padding: 72px 0 64px;
  color: var(--white);
}
.page-hero.pharma { background: var(--navy); }
.page-hero.it { background: var(--green); }
.page-hero .eyebrow { color: rgba(255,255,255,0.65); }
.page-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }

.point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
  margin-top: 40px;
}
.point-card { background: var(--white); padding: 32px 28px; }
.point-card .num {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-soft);
  margin-bottom: 16px;
}
.point-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.point-card p { font-size: 0.88rem; color: #556072; }

@media (max-width: 780px) {
  .point-grid { grid-template-columns: 1fr; }
}

/* Recruit */
.recruit-list { display: flex; flex-direction: column; gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); }
.recruit-item { background: var(--white); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.recruit-item h4 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.recruit-item p { color: #556072; font-size: 0.88rem; }
.recruit-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border: 1px solid var(--grey-line);
  color: #7A8699;
  text-transform: uppercase;
  white-space: nowrap;
}
.recruit-status.is-open {
  border-color: var(--blue);
  color: var(--blue);
}

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--grey-line); padding: 56px 0 40px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.footer-desc { color: #7A8699; font-size: 0.85rem; max-width: 32ch; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--ink); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--grey-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-family: 'Inter', sans-serif; font-size: 0.76rem; color: #7A8699; }
.footer-old { font-size: 0.76rem; color: #B7BFC7; }
.footer-old a { opacity: 0.7; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 8px 16px rgba(11,37,69,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--grey-line); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a {
    display: block;
    padding: 16px 32px;
    font-size: 0.95rem;
  }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--blue); font-weight: 700; }

  .section { padding: 64px 0; }
  .split-section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .radio-row { flex-direction: column; gap: 12px; }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
