/* ========================================
   OOTSUBOSPORTS - Liquid Layout
   ======================================== */

/* --- Variables --- */
:root {
  --color-primary: #0d3ca6;
  --color-primary-dark: #07247f;
  --font-en: 'Montserrat', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --container-max: 1200px;
  --container-padding: clamp(1rem, 3vw, 5rem);
  /* ブレイクポイント（参照用・media queryでは数値指定） */
  --bp-sp: 1200px;
  --bp-pc: 1024px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 5rem;
  font-family: var(--font-jp);
  font-weight: 400;
  color: #111827;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

/* SP時のみ改行（PCは非表示） */
.u-sp-br {
  display: none;
}

/* --- Section Inner（共通） --- */
.p-service_inner,
.p-works_inner,
.p-company_inner,
.p-policy_inner,
.l-footer_inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* --- Section Padding（共通） --- */
.p-service,
.p-company,
.p-policy {
  padding: clamp(4rem, 10vw, 8.75rem) var(--container-padding);
}
/* p-worksとの接続：事業内容の下余白 = p-worksのpadding-top */
.p-service {
  padding-bottom: clamp(3rem, 6vw, 4.375rem);
}
/* p-worksとの接続：会社概要の上余白 = p-worksのpadding-bottom */
.p-company {
  padding-top: clamp(3rem, 6vw, 4.375rem);
}

/* ========================================
   Header
   ======================================== */

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--color-primary-dark);
}

.l-header_inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 5rem;
}

.l-header_main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--container-padding);
}

.l-header_logo-link {
  display: block;
}

.l-header_logo-img {
  height: 1.5rem;
  width: auto;
  max-width: 18.75rem;
}

.l-header_nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.l-header_nav-link:not(:first-child)::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 8px;
  background: #fff;
  margin-right: 24px;
  vertical-align: middle;
}

.l-header_nav-link {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.l-header_contact-slant {
  display: none;
}

.l-header_contact {
  position: relative;
  flex-shrink: 0;
  background: var(--color-primary);
  padding: 1.5rem 3rem;
  min-width: 15rem;
}

.l-header_contact_time {
  font-size: 0.8125rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.l-header_contact_number {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.5vw, 1.375rem);
}

.l-header_contact_number a {
  color: #fff;
}

.l-header_border {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.l-header_hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
}

.l-header_hamburger-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.l-header_drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 5rem;
  z-index: 1000;
  background: var(--color-primary) url('../images/hm-bg.webp') center center / cover no-repeat;
  padding: 2rem var(--container-padding);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.l-header_drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.l-header_drawer-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.l-header_drawer-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.l-header_drawer-en {
  font-family: var(--font-en);
  font-size: clamp(1.25rem, 6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.l-header_drawer-ja {
  font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
}

.l-header_drawer_contact {
  border: 2px solid #fff;
  padding: 1.25rem;
  text-align: center;
}

.l-header_drawer_time {
  font-size: clamp(0.75rem, 2.5vw, 0.75rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.5rem;
}

.l-header_drawer_tel {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(1.125rem, 5vw, 1.5rem);
  color: #fff;
}

.l-header_drawer_tel-prefix {
  font-size: clamp(0.75rem, 2.5vw, 0.75rem);
  font-weight: 700;
  margin-right: 0.25em;
  color: #fff;
}

.l-header_drawer_tel a {
  color: #fff;
}

/* ========================================
   MV Section
   ======================================== */

.p-mv {
  position: relative;
  width: 100%;
  height: 720px;
  background-color: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.p-mv_bg-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.p-mv_bg-image picture {
  position: absolute;
  inset: 0;
  display: block;
}

.p-mv_bg-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-mv_content {
  position: relative;
  z-index: 1;
  padding: 5rem var(--container-padding) 5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.p-mv_title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 2rem;
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.25);
}

.p-mv_title span {
  display: block;
}

.p-mv_lead {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.6;
  max-width: 40em;
}

.p-mv_scroll {
  position: fixed;
  bottom: 3rem;
  right: var(--container-padding);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  color: #fff;
}

.p-mv_scroll-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.p-mv_scroll:not(:has(.p-mv_scroll-icon))::after {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

/* ========================================
   Section Header（共通）
   ======================================== */

.c-section-header {
  margin-bottom: 1.5rem;
}

.c-section-header_title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.c-section-header_sub {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

.c-section-header_sub::before {
  content: '';
  width: 6px;
  height: 22px;
  transform: skewX(-24deg);
  transform-origin: center;
  background: var(--color-primary);
}

.c-section-header--light .c-section-header_title,
.c-section-header--light .c-section-header_sub {
  color: #fff;
}

.c-section-header--light .c-section-header_sub::before {
  background: #fff;
}

.c-section-header--slash .c-section-header_title {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0 0.35em;
  margin-bottom: 0;
}

.c-section-header--slash .c-section-header_en {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
}

.c-section-header--slash .c-section-header_sep {
  font-family: var(--font-en);
  font-size: clamp(0.875rem, 1.75vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.9;
}

.c-section-header--slash .c-section-header_ja {
  font-family: var(--font-jp);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 500;
}

.c-section-header--light.c-section-header--slash .c-section-header_en,
.c-section-header--light.c-section-header--slash .c-section-header_sep,
.c-section-header--light.c-section-header--slash .c-section-header_ja {
  color: #fff;
}

.c-section-header--slash + .c-deco-line {
  width: 6em;
  margin-top: 1rem;
}

.c-deco-line {
  width: 3rem;
  height: 2px;
  background: var(--color-primary);
  margin: 1.5rem 0;
}

.c-deco-line--light {
  background: #fff;
}

/* ========================================
   Service Section
   ======================================== */

.p-service_header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.p-service_header .c-section-header {
  margin-bottom: 0;
  flex-shrink: 0;
}

.p-service_lead {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 500;
  margin: 0;
}

.p-service_cards {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.p-service_card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.p-service_card-img {
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 4 / 3;
}

.p-service_card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-service_card-title {
  position: relative;
  padding-bottom: 20px;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.p-service_card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
}

.p-service_card-desc {
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.8;
}

.p-service_card-list {
  margin: 0;
  padding: 1.5rem;
  background: #f8fafc;
  list-style: none;
}

.p-service_card-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.p-service_card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.p-service_card-list li:last-child {
  margin-bottom: 0;
}

/* ========================================
   Works Section
   ======================================== */

.p-works {
  position: relative;
  background: #f1f6fb;
  padding: clamp(3rem, 6vw, 4.375rem) var(--container-padding);
  /* 斜め区切り（傾斜強めの固定値・コンテンツ増加時も傾斜一定） */
  -webkit-clip-path: polygon(0 120px, 100% 0, 100% 100%, 0 calc(100% - 120px));
  clip-path: polygon(0 120px, 100% 0, 100% 100%, 0 calc(100% - 120px));
}

/* 傾斜8%の1.5〜2倍の余白（12〜16vh） */
.p-works_inner {
  margin: clamp(5rem, 14vh, 10rem) auto;
}

.p-works_deco {
  height: 10rem;
  background: linear-gradient(180deg, rgba(241, 246, 251, 0) 0%, #f1f6fb 100%);
}

.p-works_deco--top {
  background: linear-gradient(180deg, #fff 0%, #f1f6fb 100%);
}

.p-works_deco--bottom {
  background: linear-gradient(0deg, #fff 0%, #f1f6fb 100%);
  transform: scaleY(-1);
}

.p-works_header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.p-works_header .c-section-header {
  margin-bottom: 0;
  flex-shrink: 0;
}

.p-works_lead {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.p-works_filter {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  border-bottom: 1px solid rgba(13, 60, 166, 0.3);
  margin-bottom: 3rem;
}

.p-works_filter-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 3rem);
  font-family: var(--font-jp);
  font-size: clamp(0.75rem, 2.5vw, 1.125rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
}

.p-works_filter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

.p-works_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.c-work-card {
  background: #fff;
  overflow: hidden;
}

.c-work-card_img {
  aspect-ratio: 19 / 10;
  overflow: hidden;
  background: #eeeaea;
}

.c-work-card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-work-card_body {
  padding: 1.5rem;
}

.c-work-card_category {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  background: #eeeaea;
  margin-bottom: 1rem;
}

.c-work-card_title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.c-work-card_details {
  margin: 0;
}

.c-work-card_detail {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eeeaea;
  font-size: 0.875rem;
}

.c-work-card_detail dt {
  flex-shrink: 0;
  width: 3.5rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

.c-work-card_detail dd {
  margin: 0;
  flex: 1;
}

.p-works_more {
  text-align: center;
}

/* ========================================
   Button
   ======================================== */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}

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

.c-btn--primary::after {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.c-btn--primary .c-btn_icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.c-btn--primary .c-btn_icon.is-close {
  transform: rotate(180deg);
}

.c-btn--primary:has(.c-btn_icon)::after {
  display: none;
}

/* ========================================
   Company Section
   ======================================== */

.p-company .c-section-header {
  margin-bottom: 4rem;
}

.p-company_table-wrap {
  overflow-x: auto;
}

.p-company_table {
  width: 100%;
  border-collapse: collapse;
}

.p-company_table th,
.p-company_table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(13, 60, 166, 0.3);
  text-align: left;
  font-size: 1rem;
  vertical-align: top;
}

.p-company_table th {
  width: 25%;
  max-width: 6.25rem;
  font-weight: 400;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.p-company_table td {
  color: #111827;
}

.p-company_link {
  text-decoration: underline;
  color: var(--color-primary);
}

/* ========================================
   Policy Page
   ======================================== */

.p-policy_header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.p-policy_title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.p-policy_header-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.c-deco-line--policy {
  display: inline-block;
  width: 0.9375rem;
  height: 2px;
  margin: 0;
  background: var(--color-primary);
}

.p-policy_sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--color-primary);
}

.p-policy_body {
  width: 100%;
}

.p-policy_intro {
  font-size: 1rem;
  line-height: 1.875;
  color: #383434;
  margin: 0 0 3rem;
}

.p-policy_section {
  margin-bottom: 3rem;
}

.p-policy_section:last-of-type {
  margin-bottom: 2rem;
}

.p-policy_heading {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
}

.p-policy_text {
  font-size: 1rem;
  line-height: 1.875;
  color: #383434;
  margin: 0;
}

.p-policy_text p {
  margin: 0 0 1rem;
}

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

.p-policy_list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style: none;
}

.p-policy_list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.p-policy_list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.p-policy_date {
  text-align: right;
  font-size: 0.875rem;
  color: #383434;
  margin: 2rem 0 0;
}

/* ========================================
   Recruit / Contact Section
   ======================================== */

.p-recruit-contact {
  position: relative;
  z-index: 10;
  width: 100%;
}

.p-recruit-contact_inner {
  position: relative;
  display: flex;
  min-height: 100%;
  z-index: 1;
}

.p-recruit_content,
.p-contact_content {
  position: relative;
  z-index: 1;
  max-width: 808px;
  width: 100%;
}

.p-recruit_text,
.p-recruit_text a {
  font-size: 0.875rem;
  color: #fff;
  margin: 0;
  line-height: 1.6;
}

.p-recruit_text a {
  text-decoration: underline;
}

.p-contact_time {
  font-size: 0.875rem;
  color: #fff;
  margin: 0;
}

.p-contact_tel {
  margin: 0.5rem 0 0;
}

.p-contact_tel-prefix {
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: #fff;
  margin-right: 0.25em;
}

.p-contact_tel a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Footer
   ======================================== */

.l-footer {
  position: relative;
  z-index: 1;
  background: #111827;
  color: #fff;
  padding: clamp(3rem, 6vw, 5.5rem) var(--container-padding) 3rem;
}

.l-footer_top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.l-footer_logo img {
  height: 1.2rem;
  width: auto;
  max-width: 15rem;
}

.l-footer_nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.l-footer_address {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.l-footer_address-label {
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.l-footer_address p {
  margin: 0;
}

.l-footer_copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ========================================
   Media Queries
   ======================================== */

/* --- PC: 1024px以上 --- */
@media (min-width: 1024px) {
  .p-service_header,
  .p-works_header {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .p-service_card--reverse .p-service_card-img {
    order: -1;
  }
  .p-service_card:nth-child(2) .p-service_card-img {
    order: 1;
  }
  .p-service_card-img {
    aspect-ratio: 4 / 3;
  }

  .p-company_table-wrap {
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* --- SP: 1023px以下（Service card 1列） --- */
@media (max-width: 1023px) {
  .p-service_card {
    grid-template-columns: 1fr;
  }
  .p-service_card:nth-child(2) .p-service_card-img {
    order: 0;
  }
  .p-service_card-img {
    aspect-ratio: 16 / 9;
  }
}

/* --- PC: 1201px以上 --- */
@media (min-width: 1201px) {
  .l-header_hamburger {
    display: none;
  }
  .l-header_contact_number a {
    pointer-events: none;
    cursor: default;
  }

  .p-recruit-contact {
    background-image: url('../images/recruit-contact-bg.webp'), linear-gradient(to bottom, #fff 0%, #fff 50%, #111827 50%, #111827 100%);
    background-size: 100% auto, 100% 100%;
    background-position: top center, 0 0;
    background-repeat: no-repeat;
    aspect-ratio: 2880 / 808;
    min-height: max(28.06vw, 22.5rem);
  }

  .p-recruit,
  .p-contact {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    padding: 0 clamp(1rem, 8.33vw, 120px);
  }
  .p-recruit {
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: clamp(1rem, 8.33vw, 120px);
    padding-top: clamp(1.5rem, 5vw, 72px);
    padding-bottom: clamp(3rem, 8vw, 128px);
  }
  .p-contact {
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: clamp(1rem, 8.33vw, 120px);
    padding-top: clamp(3rem, 8vw, 128px);
    padding-bottom: clamp(1.5rem, 5vw, 72px);
  }
}

@media (min-width: 1440px) {
  .p-recruit,
  .p-contact {
    align-items: center;
  }
  .p-recruit {
    padding-top: clamp(2rem, 6.94vw, 100px);
    padding-bottom: clamp(2rem, 6.94vw, 100px);
  }
  .p-contact {
    padding-top: clamp(2rem, 6.94vw, 100px);
    padding-bottom: clamp(2rem, 6.94vw, 100px);
  }
}

/* --- SP: 1200px以下（ハンバーガー・SP全般） --- */
@media (max-width: 1200px) {
  .u-sp-br {
    display: inline;
  }

  /* Header */
  .l-header_main {
    padding: 0.75rem var(--container-padding);
    min-height: 3.25rem;
    gap: 1rem;
  }
  .l-header_inner {
    min-height: 3.25rem;
  }
  .l-header_logo-img {
    height: 1.25rem;
    max-width: 11.5rem;
  }
  .l-header_hamburger {
    display: flex;
  }
  .l-header_nav,
  .l-header_contact {
    display: none;
  }
  .l-header_drawer {
    display: block;
    top: 3.25rem;
  }
  body {
    padding-top: 3.25rem;
  }
  .l-header_hamburger.is-active .l-header_hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .l-header_hamburger.is-active .l-header_hamburger-line:nth-child(2) {
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0);
  }
  .l-header_hamburger.is-active .l-header_hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* MV（実機で余白が大きくなりすぎないよう調整） */
  .p-mv {
    height: 75vh;
    max-height: 700px;
  }
  .p-service {
    padding-top: clamp(2.5rem, 5vw, 4rem);
  }
  .p-mv_content {
    padding: 5rem var(--container-padding) 5rem;
  }
  .p-mv_title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  /* Section Header */
  .c-section-header {
    margin-bottom: 0.75rem;
  }
  .c-section-header_title {
    margin-bottom: 0.5rem;
  }
  .p-service_header,
  .p-works_header {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  /* Service */
  .p-service_cards {
    gap: 2rem;
  }
  .p-service_card {
    gap: clamp(1rem, 3vw, 2rem);
  }
  .p-service_card-title {
    margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  }
  .p-service_card-desc {
    margin-bottom: clamp(0.75rem, 2vw, 2rem);
  }
  .p-service_card-list {
    padding: 1rem;
  }

  /* Works（SP: 傾斜強めの固定値） */
  .p-works {
    -webkit-clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 calc(100% - 50px));
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 calc(100% - 50px));
  }
  .p-works_inner {
    margin: clamp(2.5rem, 2vh, 4rem) auto;
  }
  .p-works_grid {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .c-work-card_body {
    padding: 1rem;
  }

  /* Company */
  .p-company .c-section-header {
    margin-bottom: 2rem;
  }
  .p-company_table,
  .p-company_table thead,
  .p-company_table tbody,
  .p-company_table tr {
    display: block;
  }
  .p-company_table tr {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(13, 60, 166, 0.3);
  }
  .p-company_table tr:last-child {
    margin-bottom: 0;
  }
  .p-company_table th,
  .p-company_table td {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0.25rem 0 0.5rem;
    border-bottom: none;
  }
  .p-company_table th {
    padding-top: 0;
    font-size: 0.875rem;
  }
  .p-company_table td {
    padding-left: 0;
  }

  /* Recruit / Contact */
  .p-recruit-contact {
    background: linear-gradient(to bottom, #fff 0%, #fff 50%, #111827 50%, #111827 100%);
    aspect-ratio: auto;
    min-height: 0;
  }
  .p-recruit-contact_inner {
    flex-direction: column;
  }
  .p-recruit,
  .p-contact {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 3rem var(--container-padding);
  }
  .p-recruit {
    background: #07247F;
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%);
  }
  .p-contact {
    background: #2E6BC7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50px 100%, 0 calc(100% - 50px));
  }
  .p-recruit_content,
  .p-contact_content {
    max-width: none;
    text-align: center;
  }
  .p-recruit .c-section-header--slash .c-section-header_title,
  .p-contact .c-section-header--slash .c-section-header_title {
    justify-content: center;
    flex-wrap: wrap;
  }
  .p-recruit .c-deco-line,
  .p-contact .c-deco-line {
    margin-left: auto;
    margin-right: auto;
  }

  /* ページトップへ戻る（SP: 画面下寄りに配置） */
  .p-mv_scroll {
    bottom: 1.5rem;
  }

  /* Footer */
  .l-footer_top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .l-footer_nav {
    display: none;
  }
  .l-footer_address {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* 本文：最小14px / サブ：最小12px */
  .p-mv_lead,
  .p-service_lead,
  .p-service_card-desc,
  .p-service_card-list li,
  .p-works_lead,
  .p-company_table th,
  .p-company_table td,
  .c-work-card_title,
  .c-work-card_detail,
  .p-policy_intro,
  .p-policy_text,
  .p-recruit_text,
  .p-recruit_text a,
  .p-contact_time,
  .p-contact_tel-prefix,
  .l-footer_address,
  .p-policy_date,
  .l-header_drawer-ja {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  }
  .l-header_drawer_time,
  .l-header_drawer_tel-prefix,
  .p-works_filter-btn,
  .c-work-card_category,
  .l-footer_copyright,
  .c-section-header--slash .c-section-header_ja {
    font-size: clamp(0.75rem, 2vw, 1rem);
  }
}
