:root {
  --navy: #1e3a8a;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --sky: #dbeafe;
  --line: #bfdbfe;
  --text: #1a2550;
  --muted: #3a5090;
  --white: #ffffff;
  --bg: #f0f4ff;
  --shadow-s: 0 2px 14px rgba(30,58,138,.07);
  --shadow-m: 0 8px 32px rgba(30,58,138,.11);
  --radius: 10px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#top, #work, #flow, #recruit, #faq, #greeting, #access, #form {
  scroll-margin-top: 82px;
}
@media (max-width: 860px) {
  #top, #work, #flow, #recruit, #faq, #greeting, #access, #form {
    scroll-margin-top: 74px;
  }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

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

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }

.brand__sub {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .06em;
}

.brand__name {
  font-size: 21px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #445261;
}

.site-nav a { transition: color .18s; }
.site-nav a:hover { color: var(--navy); }

.btn-contact {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
  transition: background .18s;
}

.btn-contact:hover { background: var(--blue); }

/* ─── HERO ─── */
.hero {
  background: #1e3a8a;
  color: #fff;
  padding: 56px 0 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 52px;
  align-items: center;
}

.hero__label {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: .02em;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero__tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 30px;
  background: #fff;
  color: var(--navy);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.btn-apply svg { width: 16px; height: 16px; }

.hero__photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── PAGE LAYOUT ─── */
.page-layout {
  display: grid;
  gap: 20px;
  padding: 28px 0 48px;
}

/* ─── CARD ─── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 28px;
  overflow: hidden;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.sec-head::before {
  content: "";
  display: block;
  width: 4px;
  height: 22px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

/* ─── WORK LIST ─── */
.work-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.work-item__img { aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.work-item__img img { width: 100%; height: 100%; object-fit: cover; }

.work-item__body { padding: 18px 20px; flex: 1; }

.work-item__num {
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.work-item__title {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
}

.work-item__text {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-item {
  padding: 24px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item__icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
  flex-shrink: 0;
}

.feature-item__icon svg { width: 20px; height: 20px; }

.feature-item__title {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
}

.feature-item__text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── NUMBERS ─── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.number-item {
  padding: 18px 16px;
  background: #e8eeff;
  border-radius: 8px;
  text-align: center;
}

.number-item__value {
  font-size: 34px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: .01em;
}

.number-item__unit {
  font-size: 20px;
  font-weight: 900;
}

.number-item__label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* ─── FLOW ─── */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-item {
  position: relative;
  text-align: center;
  padding: 20px 12px;
  background: #e8eeff;
  border-radius: 8px;
}

.flow-item + .flow-item {
  margin-left: 10px;
}

.flow-item + .flow-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid var(--line);
}

.flow-item__step {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.flow-item__icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #fff;
}

.flow-item__icon svg { width: 22px; height: 22px; }

.flow-item__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 5px;
  line-height: 1.4;
}

.flow-item__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── FAQ ─── */
.faq-list { margin-top: -4px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  position: relative;
  line-height: 1.5;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "Q.";
  color: var(--blue);
  margin-right: 8px;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 22px;
  color: var(--blue);
  font-weight: 300;
  line-height: 1;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-answer {
  padding: 4px 0 16px 24px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
}

/* ─── SIDEBAR RECRUIT TABLE ─── */
.recruit-table { font-size: 16px; }

.recruit-table tr { border-bottom: 1px solid var(--line); }
.recruit-table tr:last-child { border-bottom: none; }

.recruit-table th {
  padding: 13px 16px;
  background: #f0f4ff;
  color: var(--navy);
  font-weight: 800;
  width: 160px;
  vertical-align: top;
  white-space: nowrap;
  text-align: left;
}

.recruit-table td {
  padding: 13px 16px;
  color: var(--muted);
}

/* ─── GALLERY (お仕事風景) ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ─── GREETING (代表者挨拶) ─── */
.greeting-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.greeting-photo {
  text-align: center;
}

.greeting-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--line);
  display: block;
  margin: 0 auto;
}

.greeting-photo__name {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.greeting-body p {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}

.greeting-body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .greeting-layout {
    grid-template-columns: 1fr;
  }
  .greeting-photo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
  }
  .greeting-photo img {
    width: 100px;
    height: 100px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* ─── VOICE (社員の声) ─── */
.voice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

@media (max-width: 860px) {
  .voice-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .voice-list { grid-template-columns: 1fr; }
}

.voice-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-item__photo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #dce8f0;
  border: 2px solid var(--line);
}

.voice-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-item__name {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.voice-item__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  background: var(--sky);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .04em;
}

.voice-item__text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.68;
}

/* ─── FORM ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group { margin-bottom: 12px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  appearance: none;
  transition: border-color .18s;
}

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

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

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  margin-top: 16px;
  letter-spacing: .04em;
  transition: background .18s;
}

.btn-submit:hover { background: var(--blue); }

/* ─── COMPANY / ACCESS ─── */
.company-section {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
}

.company-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.company-section__head::before {
  content: "";
  display: block;
  width: 4px;
  height: 24px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.company-section__head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
}

.company-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.company-table { font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.company-table tr { border-bottom: 1px solid var(--line); }
.company-table tr:last-child { border-bottom: none; }

.company-table th {
  padding: 13px 16px;
  background: #f0f4ff;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
  width: 130px;
  vertical-align: top;
  white-space: nowrap;
}

.company-table td {
  padding: 13px 16px;
  color: var(--muted);
}

.company-map-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.company-map-box img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.company-info {
  padding: 18px;
  background: #f0f4ff;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  padding: 30px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer__name {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
}

.footer__sub {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

.footer__copy {
  font-size: 15px;
  color: #fff;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .company-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero { padding: 40px 0 44px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .flow-item + .flow-item { margin-left: 0; }
  .flow-item + .flow-item::before { display: none; }
  .site-nav { display: none; }
  .work-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .flow-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ─── LINE CTA ─── */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__cta-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  background: #22c55e;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: background .18s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.btn-line:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.btn-line svg { width: 20px; height: 20px; flex-shrink: 0; }

.line-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.line-banner__icon {
  width: 48px;
  height: 48px;
  background: #22c55e;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.line-banner__icon svg { width: 26px; height: 26px; }

.line-banner__body { flex: 1; min-width: 200px; }

.line-banner__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
}

.line-banner__text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.btn-line-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  background: #22c55e;
  color: #fff;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  flex-shrink: 0;
  transition: background .18s;
}
.btn-line-sm:hover { background: #16a34a; }
.btn-line-sm svg { width: 18px; height: 18px; }

@media (max-width: 500px) {
  .line-banner { flex-direction: column; align-items: flex-start; }
  .btn-line-sm { width: 100%; justify-content: center; }
}

/* ─── FORMERLY INLINE STYLES ─── */
.link-inherit { color: inherit; }

.company-info__name {
  color: var(--navy);
  font-size: 15px;
}

.map-wrapper { line-height: 0; }

.map-iframe {
  border: 0;
  display: block;
}

.form-required {
  color: #e53e3e;
  font-size: 13px;
}

.footer__privacy-link {
  color: #fff;
  text-decoration: underline;
  margin-right: 20px;
}
