@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #132445;
  --navy-deep: #0b1730;
  --slate: #4a5568;
  --slate-light: #7b8794;
  --gold: #b9964f;
  --gold-light: #d4b876;
  --bg: #f7f7f5;
  --bg-warm: #f4f1ea;
  --white: #ffffff;
  --ink: #1c2333;
  --line: #e4e1d8;
  --shadow: 0 20px 50px -25px rgba(11, 23, 48, 0.25);
  --serif: 'Shippori Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-weight: 300;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
}
.brand .mark {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.brand .sub {
  font-size: 11px;
  color: var(--slate-light);
  font-family: var(--sans);
  letter-spacing: 0.1em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 34px;
}
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy); font-weight: 500; }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background .3s ease, transform .3s ease;
}
.nav-cta:hover { background: var(--gold); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 1px;
  background: var(--navy);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,23,48,0.55) 0%, rgba(11,23,48,0.35) 45%, rgba(11,23,48,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 90px;
  width: 100%;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.55;
  font-weight: 600;
  max-width: 820px;
  margin-bottom: 26px;
}
.hero p {
  max-width: 520px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.scroll-cue .line {
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -50px; left: 0;
  width: 100%; height: 50px;
  background: var(--gold-light);
  animation: cueMove 2.2s infinite ease-in-out;
}
@keyframes cueMove { to { top: 100px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 500;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Sections ---------- */
section { padding: 120px 0; position: relative; }
.section-alt { background: var(--white); }
.section-warm { background: var(--bg-warm); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.section-navy h2 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.6;
  margin-bottom: 20px;
}
.section-head p { color: var(--slate); font-size: 14.5px; }
.section-navy .section-head p { color: rgba(255,255,255,0.7); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Value / service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px 34px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 22px;
  display: block;
}
.value-card h3 { font-size: 19px; margin-bottom: 14px; color: var(--navy); }
.value-card p { font-size: 13.5px; color: var(--slate); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img { width: 100%; height: 460px; object-fit: cover; }
.split-copy .eyebrow { margin-bottom: 16px; }
.split-copy h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 22px; line-height: 1.7; }
.split-copy p { color: var(--slate); font-size: 14.5px; margin-bottom: 18px; }
.split-copy ul { margin-top: 24px; }
.split-copy li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  gap: 12px;
}
.split-copy li span.tag {
  color: var(--gold);
  font-family: var(--serif);
  flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.stat-item { padding: 40px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,0.15); }
.stat-item:first-child { border-left: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 10px;
}
.stat-label { font-size: 12px; letter-spacing: 0.05em; color: rgba(255,255,255,0.65); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
  background: var(--white);
  padding: 38px 32px;
  border: 1px solid var(--line);
  position: relative;
}
.testi-card::before {
  content: '”';
  font-family: var(--serif);
  font-size: 60px;
  color: var(--line);
  position: absolute;
  top: 8px; right: 20px;
  line-height: 1;
}
.testi-card p { font-size: 13.5px; color: var(--ink); margin-bottom: 22px; position: relative; z-index: 1; }
.testi-who { font-size: 12px; color: var(--slate-light); letter-spacing: 0.04em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 36px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 28px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .mark { font-family: var(--serif); font-size: 22px; color: var(--white); margin-bottom: 14px; display:block; }
.footer-brand p { max-width: 280px; color: rgba(255,255,255,0.5); font-size: 12.5px; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; color: var(--gold-light); margin-bottom: 20px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-note {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 20px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 30px;
  border-radius: 2px;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  color: var(--white);
  margin-top: 84px;
  overflow: hidden;
}
.page-hero .hero-media::after { background: linear-gradient(120deg, rgba(11,23,48,0.75), rgba(11,23,48,0.55)); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 42px); }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 16px; letter-spacing: 0.05em; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Table (会社概要) ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-top: 1px solid var(--line); }
.info-table tr:last-child { border-bottom: 1px solid var(--line); }
.info-table th, .info-table td { text-align: left; padding: 22px 24px; font-size: 14px; vertical-align: top; }
.info-table th {
  width: 220px;
  color: var(--slate);
  font-weight: 500;
  font-family: var(--serif);
  letter-spacing: 0.04em;
  background: var(--bg-warm);
}
.info-table td { color: var(--ink); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -40px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
}
.timeline-year { font-family: var(--serif); color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.timeline-item p { color: var(--slate); font-size: 13.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  padding: 32px 26px;
  border-left: 1px solid var(--line);
  position: relative;
}
.step:first-child { border-left: none; }
.step .step-no { font-family: var(--serif); font-size: 26px; color: var(--gold); margin-bottom: 14px; display: block; }
.step h4 { font-size: 15px; margin-bottom: 10px; color: var(--navy); }
.step p { font-size: 12.5px; color: var(--slate); }

/* ---------- Job cards (recruit) ---------- */
.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.job-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.job-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tag {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--slate);
  border-radius: 20px;
}
.job-arrow { font-family: var(--serif); font-size: 22px; color: var(--gold); flex-shrink: 0; }

.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.perk { padding: 30px 0; border-top: 1px solid var(--line); }
.perk h4 { font-size: 14.5px; color: var(--navy); margin-bottom: 10px; }
.perk p { font-size: 13px; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 26px 0;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-q .icon { font-family: var(--serif); font-size: 20px; color: var(--gold); transition: transform .3s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 26px; font-size: 13.5px; color: var(--slate); max-width: 620px; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.contact-side h3 { color: var(--navy); font-size: 18px; margin-bottom: 20px; }
.contact-info-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info-item .label { font-size: 11px; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; display: block; }
.contact-info-item .val { font-size: 15px; color: var(--ink); }
.contact-info-item .val.phone { font-family: var(--serif); font-size: 22px; color: var(--navy); }

.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: 13px; color: var(--slate); margin-bottom: 8px; }
.form-row label .req { color: #b3543f; margin-left: 6px; font-size: 11px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .3s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row.full { grid-column: 1 / -1; }
.form-note { font-size: 11.5px; color: var(--slate-light); margin-top: -8px; margin-bottom: 22px; }
.form-submit { border: none; cursor: pointer; }
.form-success {
  display: none;
  background: var(--bg-warm);
  border: 1px solid var(--gold-light);
  padding: 30px;
  text-align: center;
  color: var(--navy);
  font-size: 14px;
}
.form-success.show { display: block; }
.contact-form.hidden { display: none; }

/* ---------- Policy text ---------- */
.policy-block { max-width: 780px; }
.policy-block h2 { font-size: 18px; color: var(--navy); margin: 44px 0 16px; }
.policy-block h2:first-child { margin-top: 0; }
.policy-block p, .policy-block li { font-size: 13.5px; color: var(--slate); margin-bottom: 10px; }
.policy-block ul { padding-left: 20px; margin-bottom: 16px; }
.policy-block .updated { font-size: 12px; color: var(--slate-light); margin-bottom: 50px; display: block; }

/* ---------- Misc ---------- */
.divider-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.divider-label::after { content:''; flex:1; height:1px; background: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .testi-grid { grid-template-columns: 1fr; }
  .grid-2, .split, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media, .split.reverse .split-copy { order: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: none; }
  .step:nth-child(1), .step:nth-child(3){ margin-top:0;}
  .perk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .main-nav ul, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    display: flex; flex-direction: column;
    padding: 40px 32px;
    z-index: 199;
  }
  .main-nav.open ul { display: flex; flex-direction: column; gap: 26px; }
  .main-nav.open .nav-cta { display: inline-flex; margin-top: 30px; width: fit-content; }
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .step:first-child { border-top: none; }
  .form-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
