/* Shared layout, header, footer, components and palette. */

body {
  margin: 0;
}

/* header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: fixed;
  width: 96%;
}

.header-logo img {
  height: 40px;
  width: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.header-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #334155;
  font-weight: 500;
}

.header-menu li {
  cursor: pointer;
  font-size: 15px;
}

.header-menu a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.header-menu a:hover {
  color: #2D6FA8;
}

.recruit-section {
  max-width: 1300px;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding: 80px 20px;
}

.recruit-section h1 {
  margin: 0;
  padding: 0 0 20px 0;
  text-align: left;
  color: #183855;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.4;
}

.recruit-section h2 {
  font-size: 42px;
}

.recruit-grid {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recruit-grid li {
  list-style: none;
  transition: all 0.3s ease;
}

.recruit-grid li:hover {
  border-color: #00a0e9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recruit-grid a:hover {
  color: #2D6FA8;
}

.recruit-other {
  display: flex;
  gap: 50px;
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
}

.recruit-other h3 {
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.recruit-other p {
  font-weight: 350;
}

.recruit-other-wrap {
  width: 50%;
  padding: 0px 10px 10px 10px;
}

.job-list {
  list-style: none;
  border-radius: 16px;
}

.job-list h4 {
  font-size: 1.7rem;
  font-weight: 600;
}

.job-list a,
.job-list a:visited {
  color: #333;
  display: block;
  text-decoration: none;
}

.job-list a:hover {
  color: #0066cc;
  transform: translateX(8px);
}

.job-card h3:hover {
  transform: scale(1.05);
}

.job-card h3 {
  width: auto;
  font-size: 2rem;
  text-align: center;
}

.job-card {
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.job-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  padding: 4px 10px;
  background: #2e7d32;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
}

.n-status-badge {
  padding: 4px 10px;
  background: gray;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
}

.job-details {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
}

.job-details dt,
.job-details dd {
  margin: 0;
}

.job-details dt {
  font-weight: bold;
}

.recruit-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-card {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.data-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.data-card img {
  width: 130px;
  height: auto;
}

.data-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.data-icon {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-content {
  flex: 0 0 65%;
}

.number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Oswald", sans-serif;
  text-align: center;
}

.number span {
  font-size: 1.2rem;
  margin-left: 4px;
}

.note {
  font-size: 0.9rem;
}

.interview-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.interview-card > li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.interview-card a {
  box-sizing: border-box;
  height: 100%;
  text-decoration: none;
}

.interview-card-image {
  overflow: hidden;
}

.interview-card .interview-card-image img {
  display: block;
  height: auto;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

.interview-card-li {
  transition: 0.3s;
}

.interview-card-li:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.interview-card-box {
  padding: 10px 24px;
}

/* footer */
footer {
  background-color: #fff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
}

footer .column_2box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 50px 30px 0 30px;
}

footer .column_2box .map_item {
  width: 35%;
  align-items: center;
}

footer .column_2box .address_item {
  width: 60%;
  font-size: 0.9rem;
}

footer .column_2box .address_item .address_group {
  display: flex;
  justify-content: space-between;
}

footer .column_2box .address_item .address_group.first {
  border-bottom: 2px dotted #35578f;
}

footer .column_2box .address_item .address_group .address_box {
  width: 46%;
}

footer .column_2box .address_item .address_group .address_box li {
  margin-bottom: 15px;
}

footer .column_2box .address_item p {
  padding: 2.5px 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

footer .column_2box .address_item p.m_txt {
  font-size: 0.9rem;
  font-weight: bold;
}

footer p.f_bar {
  color: #fff;
  background-color: #35578f;
  padding: 10px 0;
  font-size: 0.7rem;
  text-align: center;
}

.job-information {
  margin: 0 auto;
}

@media screen and (max-width: 1200px) {
  body {
    margin: 0;
    overflow-wrap: anywhere;
  }

  header,
  header *,
  main,
  main *,
  footer,
  footer * {
    box-sizing: border-box;
  }

  header {
    position: relative;
    width: 100%;
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .header-logo {
    max-width: 100%;
  }

  .header-logo img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 48px;
    padding: 0;
  }

  .header-menu {
    width: 100%;
  }

  .header-menu ul {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .header-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 0;
  }

  h1 {
    padding: 64px 20px 32px;
    font-size: 2.75rem;
  }

  .recruit-section {
    padding: 32px 24px;
  }

  .recruit-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .data-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    min-width: 0;
    gap: 12px;
    padding: 20px 16px;
  }

  .data-icon,
  .data-content {
    min-width: 0;
  }

  .data-card img {
    width: 100%;
    max-width: 130px;
    height: auto;
  }

  .recruit-other {
    gap: 24px;
  }

  .recruit-other-wrap {
    flex: 1;
    min-width: 0;
  }

  .job-header {
    flex-wrap: wrap;
  }

  footer .column_2box {
    gap: 24px;
    padding: 32px 24px 0;
  }

  footer .column_2box .map_item,
  footer .column_2box .address_item {
    width: 100%;
    min-width: 0;
  }

  footer p.f_bar {
    margin-bottom: 0;
    padding: 12px 20px;
  }
}

@media screen and (max-width: 767px) {
  .header-menu li {
    min-width: 0;
  }

  h1 {
    padding: 40px 16px 24px;
    font-size: 2rem;
    margin-bottom: 16px;
  }

  h1::after {
    width: 80px;
    border-bottom-width: 4px;
  }

  .recruit-section {
    padding: 24px 16px;
  }

  .recruit-section h2 {
    font-size: 1.75rem;
  }

  .recruit-grid,
  .recruit-data {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .data-content h3 {
    font-size: 1.125rem;
  }

  .number {
    font-size: 2.5rem;
  }

  .number span {
    font-size: 1rem;
  }

  .note {
    font-size: 0.8125rem;
  }

  .recruit-other {
    flex-direction: column;
    gap: 20px;
  }

  .recruit-other-wrap {
    width: 100%;
    padding: 0;
  }

  .recruit-other h3 {
    padding: 12px;
    font-size: 1.25rem;
  }

  .recruit-other p,
  .recruit-other li {
    line-height: 1.8;
  }

  .recruit-other ul {
    padding-left: 24px;
  }

  .job-card {
    margin-bottom: 20px;
  }

  .job-card h3 {
    font-size: 1.5rem;
  }

  .job-card h3:hover {
    transform: none;
  }

  .job-list h4 {
    font-size: 1.25rem;
  }

  footer .column_2box {
    padding: 24px 16px 0;
  }

  footer .map_item iframe {
    display: block;
    height: 250px;
  }

  footer .column_2box .address_item .address_group {
    flex-direction: column;
  }

  footer .column_2box .address_item .address_group .address_box {
    width: 100%;
    margin: 0;
    padding-left: 20px;
  }

  .header-menu-toggle[hidden],
  .header-menu[hidden] {
    display: none !important;
  }

  header {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #fff;
  }

  .header-logo {
    flex: 1;
    min-width: 0;
  }

  .header-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 48px;
    padding: 0;
  }

  /* スマホ用メニューボタン */
.header-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #2D6FA8;
    border-radius: 6px;
    background: #fff;
    color: #0066cc;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
  }

  .menu-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  .header-menu-toggle:focus-visible,
  .header-menu a:focus-visible {
    outline: 3px solid #35578f;
    outline-offset: 3px;
  }

  .header-menu {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #ddd;
  }

  .header-menu ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header-menu li {
    text-align: left;
    font-size: 0.875rem;
  }

  .header-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 12px;
    border-radius: 4px;
  }

  .header-menu a:hover {
    background: #f0f6fc;
  }
}

/* Career job details */
.recruit-body .job-list li {
  border: 1px solid #eadcc0;
  border-left: 5px solid #d49535;
  border-radius: 12px;
  margin: 16px 0;
  padding: 16px 20px;
}

.recruit-body .job-list h4 {
  margin: 0 0 12px;
}

.recruit-body .job-details {
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 0;
}

.recruit-body .job-details dt {
  border-radius: 6px;
  padding: 8px 10px;
}

.recruit-body .job-details dd {
  padding: 8px 0;
}

.recruit-body .job-list a,
.recruit-body .job-list a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  box-sizing: border-box;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.recruit-body .job-list a:hover {
  color: #fff;
  transform: none;
}

@media (max-width: 767px) {
  .recruit-body .job-list li {
    padding: 14px;
  }

  .recruit-body .job-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .recruit-body .job-details dd {
    padding: 2px 4px 10px;
  }
}

/* Career category cards */
.recruit-body .job-card {
  background: #fff;
  border: 1px solid #d6e2ef;
  padding: 8px;
}

/* Reduce nested gutters to keep job descriptions readable on small phones. */
.recruit-body .job-card h3 {
  margin: 0;
  padding: 18px 24px;
  border-radius: 10px;
}

.recruit-body .job-card h3:hover {
  transform: none;
}

.recruit-body .job-list {
  background: #fff;
  margin: 0;
  padding: 0 16px;
}

/* Shared recruitment palette: index, career and job detail pages. */
:root {
  --recruit-heading: #183855;
  --recruit-primary: #35578f;
  --recruit-primary-hover: #244371;
  --recruit-text: #263746;
  --recruit-muted: #5b6a7b;
  --recruit-label: #24466b;
  --recruit-background: #DCEEF7;
  --recruit-soft: #f0f5fa;
  --recruit-summary: #e8eff7;
  --recruit-border: #d9e3ee;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--recruit-background);
  color: var(--recruit-text);
}

/* Consistent spacing between section headings and their content. */
.recruit-section > h2 {
  color: var(--recruit-heading);
  border-left: 4px solid var(--recruit-primary);
  padding: 0 0 0 14px;
  line-height: 1.5;
}

.recruit-section > p,
.recruit-section .number {
  color: var(--recruit-primary);
}

.recruit-section .note {
  color: var(--recruit-muted);
}

.recruit-other p {
  color: var(--recruit-text);
}

.card-body h3,
.data-content h3,
.recruit-other h3,
.recruit-body .job-list h4 {
  color: var(--recruit-heading);
}

.recruit-other h3 {
  background: var(--recruit-soft);
}

.recruit-other a {
  color: var(--recruit-primary);
  text-underline-offset: 4px;
}

.recruit-other a:hover {
  color: var(--recruit-primary-hover);
}

.recruit-body .job-list li {
  background: #fff;
  border-color: var(--recruit-border);
  border-left-color: var(--recruit-primary);
}

.recruit-body .job-details dt {
  color: var(--recruit-label);
  background: var(--recruit-soft);
}

.recruit-body .job-details dd {
  color: var(--recruit-text);
}

.recruit-body .job-card {
  border-color: var(--recruit-border);
}

.recruit-body .job-card h3,
.recruit-body .job-list a,
.recruit-body .job-list a:visited {
  background: var(--recruit-primary);
  color: #fff;
}

.recruit-body .job-card h3:hover,
.recruit-body .job-list a:hover {
  background: var(--recruit-primary-hover);
}

/* Breadcrumbs shared by career and job detail pages. */
.job-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.8125rem;
  color: #5b6a7b;
  margin-bottom: 48px;
}

.job-breadcrumb a {
  color: #35578f;
  text-underline-offset: 4px;
}

.career-breadcrumb {
  box-sizing: border-box;
  max-width: 1380px;
  margin: 0 auto;
  padding: 160px 40px 0;
  font-family: "Noto Sans JP", sans-serif;
}

@media screen and (max-width: 1200px) {
  .career-breadcrumb {
    padding: 32px 24px 0;
  }
}

@media screen and (max-width: 767px) {
  .career-breadcrumb {
    padding: 24px 16px 0;
  }
}

@media (max-width: 600px) {
  .job-breadcrumb {
    gap: 8px;
    margin-bottom: 32px;
    font-size: 0.75rem;
  }

  .career-breadcrumb {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 767px) {
  .recruit-body .job-card h3 {
    padding: 16px 12px;
  }

  .recruit-body .job-list {
    padding-left: 4px;
    padding-right: 4px;
  }

  .recruit-body .job-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .recruit-body .job-list a {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 12px;
    text-align: center;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .job-header h4 {
    min-width: 0;
  }

  .status-badge {
    flex-shrink: 0;
  }

  .recruit-other {
    padding: 16px;
  }

  .recruit-other-wrap {
    flex: auto;
  }
}

@media screen and (max-width: 600px) {
  .job-detail h1.career-heading span {
    display: block;
    margin: 8px 0 0;
  }
}

@media screen and (max-width: 767px) and (hover: none) {
  .data-card:hover,
  .interview-card-li:hover {
    transform: none;
  }
}

.recruit-text-grid > li {
  min-width: 0;
}

.recruit-text-grid .recruit-card {
  position: relative;
  display: block;
  isolation: isolate;
  transition: background-color 0.25s ease;
}

.recruit-text-grid .recruit-card::before {
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  top: -130px;
  right: -100px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.recruit-text-grid .recruit-card::after {
  position: absolute;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.recruit-text-grid .recruit-card::after {
  width: 340px;
  height: 340px;
  top: -160px;
  right: -130px;
}

.recruit-text-grid .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  height: 100%;
  border: 0;
}

.recruit-text-grid .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  line-height: 1.6;
}

.recruit-text-grid .card-arrow {
  place-items: center;
}

.recruit-text-grid .recruit-card:focus-visible {
  outline: 3px solid #35578f;
  outline-offset: 4px;
}

@media (hover: hover) {
  .recruit-text-grid .recruit-card-graduate:hover {
    background: #dce7f3;
    color: #183855;
  }

  .recruit-text-grid .recruit-card-career:hover {
    background: #245987;
    color: #fff;
  }

  .recruit-text-grid .recruit-card:hover .card-arrow {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruit-text-grid .recruit-card:hover .card-arrow {
    transform: none;
  }
}

@media screen and (max-width: 1200px) {
  .interview-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .interview-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .interview-card-box {
    padding: 10px 20px;
  }
}

.interview-section > .recruit-section {
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 100px);
}

.interview-section .interview-card {
  margin: 0;
}

.recruit-section > h2 {
  margin: 0 0 32px;
}

.recruit-section > h2 + * {
  margin-top: 0;
}

@media (max-width: 767px) {
  .recruit-section > h2 {
    margin-bottom: 24px;
  }
}

/* Shared rounded headings across recruitment pages. */
body h1,
.recruit-section h1,
.job-detail h1.career-heading,
body h2,
.recruit-section h2,
.job-detail .job-section-heading h2,
body h3,
.recruit-section h3 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
}
