/* ============================================================
   STAR CAREER - Recruiting Site Template
   Design tokens (Studio "スタイル" 相当) + コンポーネント
   ============================================================ */

:root {
  /* --- Color tokens (Studioの「スタイル」で色を一元管理する想定) --- */
  --color-primary: #182747;
  --color-primary-light: #2b3e6b;
  --color-primary-dark: #0e1830;
  --color-accent: #f2b705;
  --color-accent-dark: #d49c00;
  --color-bg: #faf9f6;
  --color-bg-alt: #f1efe8;
  --color-surface: #ffffff;
  --color-text: #1f2430;
  --color-text-muted: #666c7a;
  --color-border: #e4e1d8;
  --color-white: #ffffff;

  /* --- Typography tokens --- */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;

  /* --- Spacing / shape tokens --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(24, 39, 71, 0.06);
  --shadow-md: 0 8px 30px rgba(24, 39, 71, 0.1);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.4; }
p { margin: 0; }

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

.section { padding: 96px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-primary); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--color-accent); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: 34px; font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--color-text-muted); font-size: 16px; }
.section--dark .section-head p { color: rgba(255,255,255,.75); }

/* ---------- Buttons (Component) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--accent { background: var(--color-accent); color: var(--color-primary-dark); }
.btn--accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: var(--color-primary-light); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 16px; }

/* ---------- Header (Component) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--color-primary); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.brand__sub { font-size: 11px; font-weight: 500; color: var(--color-text-muted); letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 600; color: var(--color-text); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--color-accent); transition: width .2s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--color-primary); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14,24,48,.92) 10%, rgba(24,39,71,.78) 55%, rgba(24,39,71,.45) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 680px; padding: 0 24px; }
.hero__content .eyebrow { color: var(--color-accent); }
.hero h1 { font-size: 54px; font-weight: 800; margin-bottom: 24px; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.82); margin-bottom: 40px; max-width: 540px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; margin-top: 64px; position: relative; z-index: 2; }
.hero__stat b { display: block; font-size: 30px; font-family: var(--font-display); color: var(--color-accent); }
.hero__stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Cards (Component) ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img { height: 200px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 26px; }
.card__tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--color-primary);
  background: var(--color-bg-alt); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.card__body h3 { font-size: 19px; margin-bottom: 10px; }
.card__body p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 18px; }
.card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.card__meta span { display: flex; align-items: center; gap: 5px; }
.card__link { font-size: 14px; font-weight: 700; color: var(--color-primary); display: inline-flex; align-items: center; gap: 6px; }

.card--person .card__img { height: 260px; }
.card--person .card__body { text-align: center; }
.card--person .role { color: var(--color-accent-dark); font-weight: 700; font-size: 13px; margin-bottom: 4px; display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--color-text-muted); padding: 22px 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--color-primary); font-weight: 600; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.25), transparent 70%);
}
.page-hero h1 { font-size: 38px; font-weight: 800; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 560px; position: relative; z-index: 1; }

/* ---------- Filter tabs ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filters button {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--color-border);
  background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .2s;
}
.filters button.is-active, .filters button:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Job detail / LP ---------- */
.job-detail__hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 360px; margin-bottom: 48px;
}
.job-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.job-detail__hero .overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,24,48,.85), transparent 60%);
  display: flex; align-items: flex-end; padding: 36px;
}
.job-detail__hero .overlay h1 { color: #fff; font-size: 32px; }
.job-detail__hero .overlay .card__tag { margin-bottom: 14px; }

.job-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.job-info-box {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px;
}
.job-info-box dt { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.job-info-box dd { font-size: 15px; font-weight: 700; margin: 0; }

.job-body h2 { font-size: 22px; margin: 44px 0 18px; padding-top: 4px; }
.job-body h2:first-child { margin-top: 0; }
.job-body p { color: var(--color-text-muted); margin-bottom: 14px; }
.job-body ul.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--color-text-muted);
}
.job-body ul.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-accent-dark); font-weight: 900;
}

.apply-card {
  position: sticky; top: 104px; background: var(--color-primary); color: #fff;
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md);
}
.apply-card h3 { font-size: 19px; margin-bottom: 6px; }
.apply-card p { color: rgba(255,255,255,.7); font-size: 13.5px; margin-bottom: 22px; }
.apply-card .field { margin-bottom: 14px; }
.apply-card label { display: block; font-size: 12.5px; margin-bottom: 6px; color: rgba(255,255,255,.85); }
.apply-card input, .apply-card select, .apply-card textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: 14px;
}
.apply-card input::placeholder, .apply-card textarea::placeholder { color: rgba(255,255,255,.45); }
.apply-card .note { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 14px; text-align: center; }

/* ---------- Sticky mobile CTA (Component) ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
  padding: 12px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}

/* ---------- Interview / article ---------- */
.article-hero { margin-bottom: 36px; }
.article-hero img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); }
.article-meta { display: flex; align-items: center; gap: 14px; margin: 24px 0 8px; }
.article-meta img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 22px; margin: 40px 0 16px; }
.article-body p { color: var(--color-text-muted); margin-bottom: 16px; font-size: 15.5px; }
.pull-quote {
  border-left: 4px solid var(--color-accent); padding: 4px 0 4px 24px; margin: 32px 0;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-primary);
}

/* ---------- Values / culture icons ---------- */
.value-card { text-align: center; padding: 36px 24px; }
.value-card .icon-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--color-primary);
}
.value-card h3 { font-size: 17px; margin-bottom: 10px; }
.value-card p { font-size: 13.5px; color: var(--color-text-muted); }

/* ---------- Company data table ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table tr { border-bottom: 1px solid var(--color-border); }
.data-table th {
  text-align: left; padding: 18px 20px; width: 180px; font-size: 13.5px; color: var(--color-text-muted); font-weight: 600;
  vertical-align: top;
}
.data-table td { padding: 18px 0; font-size: 14.5px; font-weight: 600; }

/* ---------- Timeline (business) ---------- */
.step-row { display: flex; gap: 24px; margin-bottom: 36px; }
.step-num {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display);
}
.step-row h3 { font-size: 17px; margin-bottom: 6px; }
.step-row p { color: var(--color-text-muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(242,183,5,.25), transparent 50%);
}
.cta-band h2 { font-size: 30px; margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 30px; position: relative; }
.cta-band .hero__actions { justify-content: center; position: relative; }

/* ---------- Footer (Component) ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid li a:hover { color: var(--color-accent); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 13.5px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ============================================================
   Responsive (SP)
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero h1 { font-size: 36px; }
  .hero__stats { gap: 28px; flex-wrap: wrap; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .job-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 44px 24px; }
  .job-info-box { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
  .article-hero img { height: 220px; }
}

/* 職種詳細ページ: SPでは応募ボタンを画面下部に固定 */
body.has-mobile-cta { padding-bottom: 0; }
@media (max-width: 860px) {
  body.has-mobile-cta { padding-bottom: 86px; }
  body.has-mobile-cta .mobile-cta { display: flex; align-items: center; gap: 12px; }
  body.has-mobile-cta .apply-card { display: none; }
}
