:root {
  color-scheme: dark;
  --gutter: clamp(18px, 4vw, 64px);
  --header-top: max(clamp(16px, 3vw, 36px), env(safe-area-inset-top));
  --header-left: max(var(--gutter), env(safe-area-inset-left));
  --header-right: max(var(--gutter), env(safe-area-inset-right));
  --control-size: 48px;
  --header-height: calc(var(--header-top) + var(--control-size) + 24px);
  --menu-duration: 360ms;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color:#222; 
}
.sp{ display:none}
a{text-decoration: none;}
img { max-width: 100%; height:auto; display: block; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* ヘッダーとロゴは、ページと一緒にスクロールする。 */
.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: transparent;
  pointer-events: none;
}

body:has(.about-page__main) .site-header {
  background: #000;
}

.site-logo {
  position: absolute;
  z-index: 2;
  top: var(--header-top);
  left: var(--header-left);
  display: flex;
  align-items: center;
  height: var(--control-size);
  pointer-events: auto;
}

.site-logo img {
  display: block;
  width: clamp(130px, 20vw, 240px);
  height: auto;
}

/* 開閉ボタンを、メニューパネルの外側で画面右上に固定する。 */
.site-menu {
  position: fixed;
  z-index: 3;
  top: var(--header-top);
  right: var(--header-right);
  pointer-events: auto;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: var(--control-size);
  height: var(--control-size);
  list-style: none;
  cursor: pointer;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: rgb(0 0 0 / 78%);
  color: #fff;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-icon {
  position: relative;
  width: 22px;
  height: 16px;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  inset: 7px 0 auto;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform var(--menu-duration);
}

.menu-icon::before {
  transform: translateY(-4px);
}

.menu-icon::after {
  transform: translateY(4px);
}

.site-menu[open] .menu-icon::before {
  transform: rotate(45deg);
}

.site-menu[open] .menu-icon::after {
  transform: rotate(-45deg);
}

/* パネルを画面右側に固定し、収まらない項目を縦スクロールする。 */
.menu-panel {
  position: fixed;
  z-index: 1;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-top) + var(--control-size) + 34px)
    var(--header-right)
    max(36px, env(safe-area-inset-bottom))
    var(--header-left);
  background: #000;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform var(--menu-duration) ease,
    visibility 0s var(--menu-duration);
}

.site-menu[open] + .menu-panel {
  z-index: 2;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

body:has(.site-menu[open]) .site-logo {
  z-index: 1;
}

.menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.menu-panel a {
  display: block; padding: 4px 0 12px; border-bottom: 1px solid #0cede5; font-family: 'Josefin Sans', sans-serif;font-weight: 900; text-decoration: none !important; color:#fff;
}
.menu-panel a small{ display: block;font: 12px/1.8 sans-serif; letter-spacing: .06em; color: #eee; }
.menu-panel a:hover,
.menu-panel a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}
.menu-panel a:hover{opacity: .8;}

/* トップページの全画面スライド */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  padding-inline: var(--gutter);
}

.hero__slides {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 55%),
    rgb(0 0 0 / 33%) 28%,
    rgb(0 0 0 / 42%)
  );
  content: "";
}

.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation:
    hero-image 20s linear infinite,
    hero-layer 20s steps(1, end) infinite;
  animation-delay: var(--slide-delay);
}

.hero__slides img:nth-child(1) {
  --slide-delay: -1s;
}

.hero__slides img:nth-child(2) {
  --slide-delay: -16s;
}

.hero__slides img:nth-child(3) {
  --slide-delay: -11s;
}

.hero__slides img:nth-child(4) {
  --slide-delay: -6s;
}

/* 各画像は1秒間背面に入り、前面で4秒表示してから1秒でフェードする。 */
@keyframes hero-image {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  25% {
    opacity: 1;
  }

  30%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes hero-layer {
  0% {
    z-index: 1;
  }

  5% {
    z-index: 2;
  }

  30%,
  100% {
    z-index: 0;
  }
}

.hero__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 110px 24px 130px; }
.hero__copy { max-width: 1180px; text-shadow: 0 2px 18px rgba(0,0,0,.2); color: #fff; }
.hero__copy-en { margin: 0; font-size: clamp(30px, 5vw, 64px); line-height: 1.2; font-family: 'Josefin Sans', sans-serif; font-weight: 900;}
.hero__copy-ja { margin: 20px 0 0; font-size: clamp(13px, 1.5vw, 18px); font-weight: 700; }

/* 下層ページでは黒いヘッダーの高さを本文の上に確保する。 */
.low-page__main {
  padding-top: var(--header-height);
}
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(75px, 9vw, 130px) 0; }
.section--soft { background: #f6f7f8; }
.section-heading { text-align: center; margin-bottom: clamp(42px, 5vw, 66px); }
.section-heading h1, .section-heading h2 { margin: 0;font-size: clamp(30px, 5vw, 64px);font-family: 'Josefin Sans', sans-serif; }
.section-heading p { margin: 12px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .18em; }
.section-lead { max-width: 760px; margin: 0 auto 52px; text-align: center; color: #626b75; font-size: 15px; line-height: 2.4; }
.more-wrap { text-align: center; margin-top: 54px; }
.more-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 42px; min-width: 195px; padding: 15px 22px; border: 1px solid #0cede5; font: 14px/1.4 Georgia, "Times New Roman", serif; letter-spacing: .16em; transition: background .25s, color .25s; color:#0cede5; }
.more-button::after { content: ''; width: 22px; height: 1px; background: currentColor; transform: rotate(-35deg); transform-origin: right; }
.more-button:hover { background: #0cede5; color: #000; }

#about{background:#000}
#about .section-heading h1, #about .section-heading h2, #about .section-heading p, #about .section-lead{color:#fff}
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.about-card { border: 1px solid #0cede5; padding: clamp(25px, 3vw, 40px) clamp(20px, 2.8vw, 34px); min-height: 250px; }
.about-card h3 { margin: 0 0 8px; color:#0cede5; font-size: clamp(20px, 4vw, 40px);font-family: 'Josefin Sans', sans-serif; }
.about-card__ja { margin: 0 0 23px; font-size: 12px; color: #fff; }
.about-card__desc { margin: 0; font-size: 14px; line-height: 2;color: #fff; }
.service-stack { display: grid; gap: 58px; }
.service-item { display: flex; align-items: flex-start; gap: clamp(25px, 4.5vw, 65px); }
.service-item__body { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; padding: 0 0 2em; }
.service-item__index { color: #626b75; font-family: 'Josefin Sans', sans-serif; letter-spacing: .1em; }
.service-item__body h3 { margin: 17px 0 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: .03em; line-height: 1.5; }
.service-item__body p { margin: 0; max-width: 440px; color: #626b75; font-size: 14px; line-height: 2.2; }
.service-item__image { flex: 1 1 50%; min-width: 0; min-height: 310px; aspect-ratio: 16/10; display: grid; place-items: center; background-size: cover; background-position: center; }
.site-footer { background: #1e242a; color: white; padding: 36px 24px; text-align: center; font-size: 12px; letter-spacing: .1em; }
#company{background:#eee}
.company-item{padding:4%}
.company-item table{ width:100%;border-collapse: collapse;border-spacing: 0;}
.company-item table tr {border-bottom: 1px solid #ddd;}
.company-item table th {width: 30%;padding: 2%;}
.company-item table td {padding: 2%;}
#recruit{background:#000}
#recruit-title{color: #fff;}
#recruit p{color: #fff;}
.subpage_hero .site-header{position: absolute; z-index: 100; pointer-events: none; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 26px clamp(24px, 5vw, 76px);}
.subpage_hero .nav-overlay{ position: fixed; z-index: 80; inset: 0; background: rgba(0,0,0,.48); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; cursor: pointer;}
.subpage_hero .nav-panel{ position: fixed; z-index: 90; top: 0; right: 0; width: min(440px, 88vw); height: 100dvh; min-height: 0; overflow-y: auto; background: #fff; color: #20242a; padding: 110px clamp(30px, 5vw, 64px) 60px; transform: translateX(100%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility .45s; box-shadow: -15px 0 55px rgba(0,0,0,.08);}
.subpage_hero .site-header .nav-button {position: relative; z-index: 45; pointer-events: auto; display: grid; align-content: center; justify-items: center; gap: 7px; width: 56px; height: 52px; cursor: pointer; color: #fff;}
.subpage_hero_h {height: 160px;background: linear-gradient(to bottom, #000 0%, #222 100%);}
@media (max-width: 760px) {
.sp{display:block}
.hero { min-height: 570px; }
.site-header { padding: 18px 20px; }
.site-logo{width: 60%;}
.site-logo__placeholder { font-size: 16px; }
.hero__copy-en { font-size: clamp(29px, 8vw, 44px); }
.hero__copy-ja { letter-spacing: .1em; }
.swiper-more { bottom: 25px; transform: translateX(-50%) scale(.72); }
.about-grid { grid-template-columns: 1fr; gap: 16px; }
.about-card { min-height: auto; }
.service-stack { gap: 48px; }
.service-item { flex-direction: column; gap: 18px; }
.service-item__body { padding: 0; }
.service-item__image { flex-basis: auto; min-height: inherit; }
.section-lead { text-align: left; }
.nav-panel { min-height: 570px; }
.company-item{ padding:4% 0}
.company-item table{font-size:.8em}
.company-item table th, .company-item table td {width: 100%;display: block; text-align:left}
iframe {width: 100%;height: auto;}
.subpage_hero_h {height: 140px;}
}