:root {
  --color-primary: #29b6f6;
  --color-primary-dark: #0d8ec7;
  --color-bg: #f3f7fb;
  --color-surface: #ffffff;
  --color-text: #1b1f23;
  --color-muted: #5c6670;
  --header-height: 72px;
  --max-width: 1200px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Roboto", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
  height: var(--header-height);
}

.brand {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.brand img {
  height: 40px;
}

.site-nav {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: rgba(41, 182, 246, 0.7);
  color: #4a5568;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.home {
  min-height: 100vh;
  background-image: linear-gradient(
      120deg,
      rgba(8, 22, 36, 0.85),
      rgba(8, 22, 36, 0.6)
    ),
    url("./img/arms_grabbing.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem;
  position: relative;
}

.home-content {
  max-width: 580px;
}

.home-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.home h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.3;
}

.home-lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.home-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn.primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: #fff;
  color: #fff;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
}

.section {
  padding: 5rem 1.5rem;
}

.section + .section {
  margin-top: 0;
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

.section h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-note {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.recruit-section .grid + .grid {
  margin-top: 2rem;
}

.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background-color: var(--color-surface);
  border-radius: 1.25rem;
  padding: 1.8rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card p {
  margin-top: 0.5rem;
}

.service-card {
  min-height: 200px;
}

.service-card h3 {
  text-align: center;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
}

.emphasis {
  border: 2px solid var(--color-primary);
}

.recruit-section .card.emphasis {
  grid-column: 1 / -1;
  margin-left: auto;
  margin-right: auto;
  padding: 2.4rem;
}

.info-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: var(--color-muted);
}

.table-wrapper {
  overflow-x: auto;
}

.access-section img {
  border-radius: 0.75rem;
}

.no-wrap {
  white-space: nowrap;
}

.home-line2 {
  display: inline-block;
}

.home-line2-sp {
  display: none;
}

.home-line2-pc {
  white-space: nowrap;
}
.home-lead2 {
  display: inline-block;
}

.home-lead2-sp {
  display: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 0.5rem;
  vertical-align: top;
  text-align: left;
}

th {
  max-width: 25%;
  font-weight: 600;
  color: var(--color-muted);
}

.news-section .table-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.news-section table {
  width: 100%;
}

.news-section thead th:first-child,
.news-section tbody td:first-child {
  width: 25%;
  white-space: nowrap;
}

.news-section thead th:last-child,
.news-section tbody td:last-child {
  width: auto;
}

tbody tr + tr td,
tbody tr + tr th {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

thead th {
  color: var(--color-text);
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(41, 182, 246, 0.3);
}

.timeline li {
  margin-left: 2rem;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.timeline strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.recruit-contact-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
}

.recruit-contact-row .table-wrapper {
  margin-top: 0;
}

.recruit-contact-button {
  display: flex;
  align-items: center;
  /* justify-content: flex-end; */
}

.recruit-contact-button .btn.full {
  width: auto;
  min-width: 180px;
  margin: 0 1rem;
}

.site-footer {
  background-color: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer p:has(a) {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* フッターコピーライト用 */
.footer-copy-main,
.footer-copy-sub {
  display: inline;
}

@media (max-width: 800px) {
  .site-nav {
    position: fixed;
    top: auto;
    bottom: 70px;
    right: 10px;
    left: auto;
    width: 40%;
    max-width: 320px;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    flex-direction: column;
    padding: 2rem 1rem;
    transform: translateY(120%);
    transition: transform 0.3s ease;
  }

  .nav-cta {
    background-color: var(--color-primary);
  }

  .nav-toggle-label {
    display: inline-flex;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 110;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background-color: #fff;
    height: 2px;
    width: 24px;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background-color: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle:checked ~ .site-nav {
    transform: translateY(0);
  }

  .home {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }

  .home-actions {
    flex-direction: column;
  }

  .section {
    padding: 1.5rem 1.5rem 5rem;
  }

  .recruit-contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .recruit-contact-button .btn.full {
    width: 100%;
    margin: 0;
  }

  .recruit-section .card.emphasis {
    grid-column: auto;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  th {
    width: 20%;
  }

  .section:not(.news-section) .table-wrapper table,
  .section:not(.news-section) .table-wrapper tbody,
  .section:not(.news-section) .table-wrapper tr {
    display: block;
    width: 100%;
  }

  .section:not(.news-section) .table-wrapper tr {
    padding: 0.75rem 0;
  }

  .section:not(.news-section) .table-wrapper th,
  .section:not(.news-section) .table-wrapper td {
    display: block;
    width: 100%;
    padding: 0.2rem 0.5rem;
  }

  .section:not(.news-section) .table-wrapper th {
    max-width: none;
  }

  .section:not(.news-section) .table-wrapper td {
    padding-left: 1.5rem;
  }
  .section:not(.news-section) .table-wrapper tbody tr + tr td,
  .section:not(.news-section) .table-wrapper tbody tr + tr th {
    border-top: none;
  }
}

@media (max-width: 500px) {
  .home-line2-pc,
  .home-lead2-pc {
    display: none;
  }

  .home-line2-sp,
  .home-lead2-sp {
    display: inline-block;
  }

  .footer-copy-main,
  .footer-copy-sub {
    display: block;
  }
}
