:root {
  --red: #d71920;
  --deep-red: #8f1016;
  --ink: #171717;
  --muted: #666;
  --line: #e5e5e5;
  --paper: #fff;
  --soft: #f6f6f6;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: block;
  width: 132px;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav-apply {
  padding: 14px 22px;
  color: var(--red);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(22px, 6vw, 88px) 72px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(80, 0, 4, 0.88) 0%, rgba(120, 8, 14, 0.68) 35%, rgba(0, 0, 0, 0.18) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 36%);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-title {
  font-size: clamp(40px, 6.3vw, 78px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.heading-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.lead {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid currentColor;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.small {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-size: 14px;
}

.section {
  padding: clamp(70px, 10vw, 130px) clamp(22px, 6vw, 88px);
}

.section-head {
  max-width: 980px;
  margin-bottom: 38px;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: end;
  max-width: 1120px;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(280px, 1fr);
  gap: 54px;
  align-items: start;
  background: var(--soft);
}

.intro-copy {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 2.1;
  font-weight: 700;
}

.intro-copy p {
  margin-bottom: 18px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.jobs {
  background: #fff;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.job-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.job-card span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.job-card h3 {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
}

.job-card p {
  min-height: 82px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.job-card.is-closed {
  background: #f7f7f7;
  box-shadow: none;
}

.job-card.is-closed h3,
.job-card.is-closed p {
  color: #777;
}

.employment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.employment-tabs.single,
.apply-tabs.single {
  grid-template-columns: minmax(120px, 1fr);
}

.employment-tabs span,
.apply-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--red);
  color: var(--red);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.employment-tabs span:first-child,
.apply-tabs a:first-child {
  color: #fff;
  background: var(--red);
}

.closed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #777;
  font-size: 13px;
  font-weight: 900;
}

.requirements {
  padding-top: 0;
  background: #fff;
}

.requirement {
  border-top: 3px solid var(--ink);
  padding: 46px 0 62px;
}

.role-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

.role-title .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.role-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin-bottom: 28px;
}

.role-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  background: var(--soft);
}

.apply-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
}

.detail-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-table div {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1px solid var(--line);
}

.detail-table dt,
.detail-table dd {
  margin: 0;
  padding: 22px 24px;
  line-height: 1.8;
}

.detail-table dt {
  color: var(--deep-red);
  font-weight: 900;
  background: #fafafa;
}

.detail-table dd {
  color: #333;
  overflow-wrap: anywhere;
}

.note-line {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 0.95em;
  line-height: 1.75;
}

.culture {
  background:
    linear-gradient(rgba(16, 16, 16, 0.52), rgba(16, 16, 16, 0.62)),
    url("./assets/culture-bg.jpg") center / cover no-repeat;
  color: #fff;
}

.culture .eyebrow {
  color: #ff7378;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.culture-item {
  min-height: 220px;
  padding: 28px;
  background: rgba(20, 20, 20, 0.68);
  backdrop-filter: blur(2px);
}

.culture-item strong {
  display: block;
  margin-bottom: 24px;
  color: #ff7378;
  font-size: 28px;
}

.culture-item span {
  line-height: 1.9;
}

.flow {
  background: var(--soft);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  min-height: 150px;
  padding: 24px;
  background: #fff;
  border-left: 5px solid var(--red);
  font-size: 20px;
  font-weight: 900;
}

.flow-list span {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.entry {
  background:
    linear-gradient(135deg, rgba(143, 16, 22, 0.72), rgba(215, 25, 32, 0.48)),
    url("./assets/entry-bg.jpg") center / cover no-repeat;
}

.entry-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(300px, 1fr);
  gap: 54px;
  max-width: 1180px;
  margin: 0 auto;
  color: #fff;
}

.entry-panel .eyebrow {
  color: #fff;
}

.entry-panel p {
  max-width: 520px;
  line-height: 1.9;
}

.entry-title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.entry-panel > div > p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.26);
}

.entry-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  color: var(--ink);
  background: #fff;
}

.entry-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.schedule-field {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d8d8d8;
}

.schedule-field legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 900;
}

.interview-grid {
  display: grid;
  gap: 10px;
}

.aptitude-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.interview-row {
  display: grid;
  grid-template-columns: 86px minmax(145px, 1fr) minmax(135px, 0.82fr);
  gap: 10px;
  align-items: end;
}

.preference-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.checkbox-field {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
  line-height: 1.5;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  padding: 14px 13px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.entry-form input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
}

.file-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.file-clear {
  min-height: 46px;
  border: 1px solid #d8d8d8;
  padding: 0 16px;
  color: var(--deep-red);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.file-clear:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.file-selected {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.hidden-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.mail-summary-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thanks-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(143, 16, 22, 0.9), rgba(215, 25, 32, 0.78)),
    url("./assets/recruit-hero.png") center / cover no-repeat;
}

.thanks-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.thanks-panel {
  width: min(860px, 100%);
  padding: clamp(34px, 6vw, 64px);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.thanks-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 12px 18px;
  background: var(--red);
}

.thanks-brand img:first-child {
  width: 42px;
  height: 44px;
  object-fit: contain;
}

.thanks-brand img:last-child {
  width: 132px;
  height: 44px;
  object-fit: contain;
}

.thanks-panel h1 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  white-space: nowrap;
}

.thanks-panel p {
  line-height: 1.9;
  font-weight: 700;
}

.thanks-panel .heading-line {
  width: auto;
  white-space: normal;
}

.thanks-note {
  color: var(--muted);
  font-size: 14px;
}

.photo-admin-page {
  background: var(--soft);
}

.photo-admin {
  padding: clamp(28px, 5vw, 72px);
}

.photo-admin-head {
  max-width: 920px;
  margin-bottom: 36px;
}

.photo-admin-head h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.photo-admin-head p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.photo-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.photo-item img {
  width: 120px;
  height: 92px;
  object-fit: cover;
  background: var(--soft);
}

.photo-item h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.photo-item code {
  display: block;
  color: var(--deep-red);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(22px, 6vw, 88px);
  color: #fff;
  background: #101010;
  font-size: 13px;
}

.site-footer a {
  color: #ff7378;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 70px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    white-space: nowrap;
  }

  .hero {
    min-height: 86vh;
    padding-top: 158px;
  }

  .intro,
  .section-head.split,
  .entry-panel {
    grid-template-columns: 1fr;
  }

  .job-grid,
  .culture-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-table div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    min-width: 0;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-text {
    width: 104px;
    height: 35px;
  }

  .brand-mark {
    width: 34px;
    height: 36px;
  }

  .site-nav {
    max-width: 100%;
    font-size: 13px;
    gap: 14px;
    padding-bottom: 4px;
  }

  .nav-apply {
    padding: 9px 12px;
  }

  .hero {
    min-height: 720px;
    padding: 150px 18px 64px;
  }

  h1 {
    font-size: 39px;
    line-height: 1.18;
  }

  h2 {
    font-size: 31px;
    line-height: 1.28;
  }

  .hero-lead,
  .hero-copy p,
  .section-head p:not(.eyebrow),
  .intro-text p,
  .entry-panel p {
    font-size: 15px;
    line-height: 1.85;
  }

  .section {
    padding: 64px 18px;
  }

  .job-grid,
  .culture-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .role-title {
    grid-template-columns: 1fr;
  }

  .role-photos {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .role-photos img {
    aspect-ratio: 16 / 10;
  }

  .detail-table dt,
  .detail-table dd {
    padding: 14px 15px;
    font-size: 14px;
  }

  .entry-form {
    padding: 18px;
  }

  .entry-title {
    font-size: 28px;
    line-height: 1.32;
  }

  .entry-form input,
  .entry-form select,
  .entry-form textarea {
    min-width: 0;
    padding: 13px 12px;
  }

  .file-control {
    grid-template-columns: 1fr;
  }

  .file-clear {
    width: 100%;
  }

  .interview-row {
    grid-template-columns: 1fr;
  }

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

  .preference-label {
    justify-content: flex-start;
    min-height: auto;
    padding: 8px 10px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 24px 18px;
  }

  .thanks-panel h1 {
    white-space: normal;
  }

  .thanks-main {
    padding: 18px;
  }

  .thanks-panel {
    width: 100%;
    padding: 28px 18px;
  }

  .thanks-brand {
    max-width: 100%;
    padding: 10px 12px;
    gap: 8px;
  }

  .thanks-brand img:first-child {
    width: 32px;
    height: 34px;
  }

  .thanks-brand img:last-child {
    width: min(112px, calc(100vw - 120px));
    height: 36px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-top: 144px;
  }

  h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
    padding-inline: 14px;
  }

  .site-nav {
    font-size: 12px;
  }
}
