@charset "UTF-8";

/*
  株式会社エビア コーポレートサイト（C案） 共通CSS
  画面幅の条件（依頼書 第2部 技術条件）
    [W] 広い画面 : screen and (min-width: 1024px) and (hover: hover),
                   screen and (min-width: 768px) and (orientation: landscape)
    [T] タブレット縦 : screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
                   screen and (min-width: 1024px) and (orientation: portrait) and (hover: none)
    無印 : スマホ
  寸法の calc(var(--px) * 48) は min(100vw * 48 / 1300, 66.46px) と同じ（1800px相当で止まる）
*/

/* ===== 変数 ===== */
:root {
  --color-text: #231815;
  --color-bg: #ffffff;
  --color-panel: #f2f2f2;
  --color-line: #d8d8d8;
  --color-term: #f5f5f5;
  --color-sub: #767676;
  --color-accent-text: #8a6d00;
  --color-main: #ffe601;
  --color-accent: #f8c820;
  --color-dark: #231815;
  --color-icon: #e0b400;
  --color-nav-hover: #fff4b3;
  --color-overlay: rgba(35, 24, 21, 0.4);
  --ribbon-1: #ffe601;
  --ribbon-2: #f8c820;
  --ribbon-3: #fff0a0;
  --ribbon-4: #d8d8d8;
  --font-en: "Manrope", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --px: min(100vw / 1300, 1.384615px);
  --side: 24px;
  --fs-body: clamp(1.3rem, 1.2257rem + 0.1905vw, 1.5rem);
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none) {
  :root {
    --side: 44px;
  }
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  :root {
    --side: 6.1538%;
    --fs-body: clamp(1.161rem, 0.0011rem + 1.1327vw, 2.04rem);
  }
}

/* ===== リセット ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

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

picture {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ===== ユーティリティ ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--color-dark);
  color: #fff;
  font-size: 1.4rem;
}

.skip-link:focus {
  top: 8px;
}

.u-nobr {
  display: inline-block;
}

.u-wide {
  display: none;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .u-wide {
    display: inline;
  }

  .u-narrow {
    display: none;
  }
}

.main {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

/* 冒頭の曲線（.page-overview の飾り）が後ろのセクションに重ならないよう、各セクションを手前に置く */
.main > * {
  position: relative;
  z-index: 1;
}

.main > .page-overview {
  z-index: 0;
}

.inner {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--side);
}

.img-cover {
  width: 100%;
  height: 100%;
}

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

/* ===== 準備中ラベル（採用情報の枠のみ） ===== */
.soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: var(--color-panel);
  color: var(--color-sub);
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

.is-pending {
  cursor: default;
}

/* ===== 仮原稿の札（修正2：本文に【サンプル】を入れず、文の前に札を付ける） ===== */
.sample-tag {
  display: block;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: #8b6d4f;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-indent: 0;
  white-space: nowrap;
  text-box: none;
}

/* 中央・右に寄せた文では、札も同じ側に寄せる */
.cta__heading .sample-tag,
.cta__lead .sample-tag {
  margin-right: auto;
  margin-left: auto;
}

/* ===== 見出しの組 ===== */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sec-head__titles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-head__en {
  font-family: var(--font-en);
  font-size: clamp(4.7rem, 3.92rem + 2vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.sec-head__ja {
  color: var(--color-accent-text);
  font-size: clamp(1.3rem, 1.1514rem + 0.381vw, 1.7rem);
  font-weight: 600;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.sec-head__lead {
  font-size: clamp(1.3rem, 1.2257rem + 0.1905vw, 1.5rem);
  font-weight: 500;
  line-height: 1.8;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .sec-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .sec-head__titles {
    flex-flow: row wrap;
    align-items: baseline;
    gap: 8px clamp(1.813rem, -0.0001rem + 1.7706vw, 3.187rem);
  }

  .sec-head__en {
    font-size: clamp(5.136rem, 0.0002rem + 5.0155vw, 9.028rem);
  }

  .sec-head__ja {
    font-size: clamp(1.297rem, -0.0002rem + 1.2668vw, 2.28rem);
  }

  .sec-head__lead {
    font-size: clamp(1.161rem, 0.0011rem + 1.1327vw, 2.04rem);
    line-height: 1.7;
    text-align: right;
  }

  .sec-head__lead .sample-tag {
    margin-left: auto;
  }

  .sec-head--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--px) * 24);
  }

  .sec-head--stack .sec-head__titles {
    flex-direction: column;
    gap: calc(var(--px) * 24);
  }

  .sec-head--stack .sec-head__lead {
    text-align: left;
  }

  .sec-head--stack .sec-head__lead .sample-tag {
    margin-left: 0;
  }
}

/* ===== ラベル（英字＋和文。下層のセクション） ===== */
.label {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.label__en {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 2.7943rem + 1.8095vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-box: trim-both cap alphabetic;
}

.label__ja {
  color: var(--color-accent-text);
  font-size: clamp(1.3rem, 1.1886rem + 0.2857vw, 1.6rem);
  font-weight: 600;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .label {
    gap: 24px;
  }

  .label__en {
    font-size: clamp(4.054rem, 0.0002rem + 3.9588vw, 7.126rem);
  }

  .label__ja {
    font-size: clamp(1.229rem, 0.0005rem + 1.1997vw, 2.16rem);
  }
}

/* ===== 丸矢印 btn-arrow ===== */
.btn-arrow {
  --size: 22px;
  --glyph-w: 9.67px;
  --glyph-h: 9.33px;
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  overflow: hidden;
  border-radius: 9999px;
  background: var(--color-dark);
  color: #fff;
  transition:
    background-color 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.btn-arrow svg {
  display: block;
  width: var(--glyph-w);
  height: var(--glyph-h);
  transition: transform 0.6s var(--ease-out);
}

.btn-arrow svg + svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transform: translateX(calc(var(--size) * -1));
}

.btn-arrow--18 {
  --size: 18px;
  --glyph-w: 8.24px;
  --glyph-h: 8.02px;
}

.btn-arrow--20 {
  --size: 20px;
  --glyph-w: 8.95px;
  --glyph-h: 8.68px;
}

.btn-arrow--26 {
  --size: 26px;
  --glyph-w: 11.1px;
  --glyph-h: 10.64px;
}

.btn-arrow--28 {
  --size: 28px;
  --glyph-w: 10.19px;
  --glyph-h: 9.97px;
}

.btn-arrow--36 {
  --size: 36px;
  --glyph-w: 12.41px;
  --glyph-h: 12px;
}

@media (hover: hover) {
  .btn-arrow:hover,
  .js-hoverArrow:hover .btn-arrow {
    transform: scale(1.12);
  }

  .btn-arrow:hover svg:first-of-type,
  .js-hoverArrow:hover .btn-arrow svg:first-of-type {
    transform: translateX(var(--size));
  }

  .btn-arrow:hover svg + svg,
  .js-hoverArrow:hover .btn-arrow svg + svg {
    transform: translateX(0);
  }
}

/* ===== 斜めの帯（btn-view・btn-contact 共通） ===== */
.btn-view,
.btn-contact {
  --band-color: var(--color-main);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-view::before,
.btn-contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 240%;
  aspect-ratio: 2 / 1;
  border-radius: 60% 40% 55% 45% / 100%;
  background: var(--band-color);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-22deg) translateX(-110%);
  transition: transform 0.45s var(--ease-out);
}

.btn-view > *,
.btn-contact > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  a.btn-view:hover::before,
  button.btn-view:hover::before,
  a.btn-contact:hover::before,
  button.btn-contact:hover::before {
    transform: translate(-50%, -50%) rotate(-22deg) translateX(0);
    transition: transform 1.2s cubic-bezier(0.3, 0.55, 0.25, 1);
  }
}

a.btn-view:focus-visible::before,
button.btn-view:focus-visible::before,
a.btn-contact:focus-visible::before,
button.btn-contact:focus-visible::before {
  transform: translate(-50%, -50%) rotate(-22deg) translateX(0);
  transition: transform 1.2s cubic-bezier(0.3, 0.55, 0.25, 1);
}

/* ===== btn-view ===== */
.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 48px;
  padding: 0 20px 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-view__label {
  position: relative;
  display: inline-block;
  font-size: clamp(1.4rem, 1.3629rem + 0.0952vw, 1.5rem);
}

/* 帯が来たときに広がる文字の間の分だけ、先に幅を取っておく */
.btn-view__label::before {
  content: attr(data-label);
  display: block;
  visibility: hidden;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
}

.btn-view__text {
  position: absolute;
  inset: 0;
  letter-spacing: 0.03em;
  text-indent: 0.03em;
  text-align: center;
  transition:
    letter-spacing 0.45s var(--ease-out),
    text-indent 0.45s var(--ease-out);
}

.btn-view__arrow {
  position: relative;
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  overflow: hidden;
}

.btn-view__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.btn-view__arrow svg + svg {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}

.btn-view--sm {
  gap: 0;
  height: 36px;
  padding: 0 20px;
}

.btn-view--sm .btn-view__label {
  font-size: 1.3rem;
}

@media (hover: hover) {
  a.btn-view:hover,
  button.btn-view:hover {
    color: var(--color-text);
  }

  a.btn-view:hover .btn-view__text,
  button.btn-view:hover .btn-view__text {
    letter-spacing: 0.15em;
    text-indent: 0.15em;
    transition:
      letter-spacing 0.3s var(--ease-out),
      text-indent 0.3s var(--ease-out);
  }

  a.btn-view:hover .btn-view__arrow svg:first-of-type,
  button.btn-view:hover .btn-view__arrow svg:first-of-type {
    transform: translateX(100%);
  }

  a.btn-view:hover .btn-view__arrow svg + svg,
  button.btn-view:hover .btn-view__arrow svg + svg {
    transform: translateX(0);
  }
}

a.btn-view:focus-visible {
  color: var(--color-text);
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .btn-view {
    gap: calc(var(--px) * 24);
    height: calc(var(--px) * 48);
    padding: 0 calc(var(--px) * 20) 0 calc(var(--px) * 24);
  }

  .btn-view__label {
    font-size: clamp(1.171rem, 0.0005rem + 1.143vw, 2.058rem);
  }

  .btn-view__arrow {
    width: calc(var(--px) * 12);
    height: calc(var(--px) * 12);
  }

  .btn-view--sm {
    gap: 0;
    height: 36px;
    padding: 0 20px;
  }
}

/* ===== btn-contact ===== */
.btn-contact {
  --band-color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--color-main);
  color: var(--color-text);
  cursor: pointer;
}

.btn-contact__label {
  letter-spacing: 0.05em;
  text-indent: 0.05em;
  transition:
    letter-spacing 0.45s var(--ease-out),
    text-indent 0.45s var(--ease-out);
}

@media (hover: hover) {
  a.btn-contact:hover .btn-contact__label,
  button.btn-contact:hover .btn-contact__label {
    letter-spacing: 0.15em;
    text-indent: 0.15em;
    transition:
      letter-spacing 0.3s var(--ease-out),
      text-indent 0.3s var(--ease-out);
  }
}

.btn-contact:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 3px;
}

/* ヘッダー用 */
.btn-contact--header {
  flex: none;
  width: 90px;
  height: 44px;
  border-radius: 6px;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .btn-contact--header {
    width: max(140px, min(10.7692308vw, 194px));
    height: max(54px, min(4.1538462vw, 75px));
    border-radius: 9999px;
    font-size: clamp(1.7rem, 0.01rem + 1.3vw, 2.35rem);
  }
}

/* 大（CTA・フォームの送信） */
.btn-contact--large {
  justify-content: space-between;
  width: 270px;
  height: 62px;
  padding: 0 16px 0 36px;
  border-radius: 8px;
}

.btn-contact--large .btn-contact__label {
  flex: 1 0 0;
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 1.9771rem + 0.5714vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-indent: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-box: trim-both cap alphabetic;
}

.btn-contact--large .btn-arrow {
  background: #fff;
  color: var(--color-text);
}

.btn-contact--ja .btn-contact__label {
  font-family: var(--font-ja);
  font-weight: 700;
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none) {
  .btn-contact--large {
    width: 320px;
    height: 74px;
    padding: 0 20px 0 44px;
  }

  .btn-contact--large .btn-arrow {
    --size: 24px;
  }
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .btn-contact--large {
    width: calc(var(--px) * 360);
    height: calc(var(--px) * 90);
    padding: 0 calc(var(--px) * 24) 0 calc(var(--px) * 54);
    border-radius: 12px;
  }

  .btn-contact--large .btn-contact__label {
    font-size: clamp(2.143rem, 0.0013rem + 2.0915vw, 3.766rem);
  }

  .btn-contact--large .btn-arrow {
    --size: calc(var(--px) * 26);
    --glyph-w: calc(var(--px) * 11.1);
    --glyph-h: calc(var(--px) * 10.64);
  }
}

/* ===== link-panel ===== */
.link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.link-panel__text {
  font-size: clamp(1.103rem, 0.0011rem + 1.076vw, 1.938rem);
  font-weight: 600;
  line-height: 1;
}

.link-panel__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-panel__en {
  font-family: var(--font-en);
  font-size: clamp(1.418rem, 0.0008rem + 1.384vw, 2.492rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .link-panel {
    height: calc(var(--px) * 80);
    padding: 0 calc(var(--px) * 32);
  }

  .link-panel__end {
    gap: calc(var(--px) * 16);
  }

  .link-panel .btn-arrow {
    --size: calc(var(--px) * 28);
    --glyph-w: calc(var(--px) * 10.19);
    --glyph-h: calc(var(--px) * 9.97);
  }
}

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  padding: 0 8px 0 12px;
  background: #fff;
}

.site-header__logo {
  margin: 0;
  line-height: 0;
}

.site-header__logo a {
  display: inline-block;
}

.site-header__logo img {
  width: auto;
  height: 28px;
}

.site-header__nav {
  display: none;
}

.site-header__contact {
  margin-left: auto;
}

.site-header__menu-btn {
  position: relative;
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--color-dark);
  color: #fff;
  cursor: pointer;
}

.site-header__menu-btn svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.site-header__menu-close {
  opacity: 0;
  visibility: hidden;
  transform: rotate(-90deg);
}

.site-header__menu-btn.is-active .site-header__menu-open {
  opacity: 0;
  visibility: hidden;
  transform: rotate(90deg);
}

.site-header__menu-btn.is-active .site-header__menu-close {
  opacity: 1;
  visibility: visible;
  transform: rotate(0deg);
}

.site-header__menu-btn:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none) {
  .site-header {
    height: 72px;
    padding: 12px 18px 0 22px;
  }

  .site-header__logo img {
    height: 32px;
  }
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .site-header {
    align-items: flex-start;
    height: 66px;
    padding: 12px 10px 0 22px;
  }

  .site-header__logo {
    padding-top: calc((max(54px, min(4.1538462vw, 75px)) - max(32px, calc(var(--px) * 32))) / 2);
  }

  .site-header__logo img {
    height: max(32px, calc(var(--px) * 32));
  }

  .site-header__menu-btn {
    display: none;
  }

  .site-header__nav {
    --nav-h: clamp(3.2rem, 2.0451rem + 1.5038vw, 4rem);
    position: absolute;
    top: calc(12px + clamp(0.56rem, 0.3579rem + 0.2632vw, 0.7rem));
    left: 50%;
    display: block;
    transform: translateX(-50%);
  }
}

@media screen and (min-width: 1300px) {
  .site-header__nav {
    --nav-h: clamp(40px, 100vw * 40 / 1300, 55.38px);
    top: calc(12px + clamp(7px, 100vw * 7 / 1300, 9.69px));
  }
}

.site-header__nav-list {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  background: #fff;
}

.site-header__nav-items {
  display: flex;
  align-items: center;
}

.site-header__nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 0;
  height: var(--nav-h);
  margin-top: calc(var(--nav-h) / -2);
  border-radius: 9999px;
  background: var(--color-nav-hover);
  opacity: 0;
  pointer-events: none;
}

.site-header__nav-indicator.is-visible {
  opacity: 1;
}

.site-header__nav-item {
  position: relative;
  z-index: 1;
}

.site-header__nav-trigger,
.site-header__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 max(10px, min(1.5384615vw, 20px));
  border: 0;
  border-radius: 9999px;
  background: none;
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 0.7669rem + 0.5639vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.site-header__nav-link.is-pending {
  cursor: default;
}

.site-header__nav-trigger:focus-visible,
.site-header__nav-link:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: -2px;
}

.site-header__nav-icon {
  display: inline-flex;
  flex: none;
  width: clamp(0.72rem, 0.4602rem + 0.3383vw, 0.9rem);
  height: clamp(0.72rem, 0.4602rem + 0.3383vw, 0.9rem);
  color: var(--color-icon);
}

.site-header__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header__nav-trigger.is-open .site-header__nav-icon {
  transform: rotate(45deg);
}

@media screen and (min-width: 1300px) {
  .site-header__nav-trigger,
  .site-header__nav-link {
    font-size: clamp(1.5rem, -0.0002rem + 1.154vw, 2.077rem);
  }

  .site-header__nav-icon {
    width: clamp(9px, 100vw * 9 / 1300, 12.46px);
    height: clamp(9px, 100vw * 9 / 1300, 12.46px);
  }
}

/* ===== メガメニュー ===== */
.mega-menu {
  display: none;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .site-header__nav-trigger.is-open::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 20px;
  }

  .mega-menu {
    position: absolute;
    top: 79px;
    left: 50%;
    display: block;
    width: min(1140px, 100vw - 32px);
    max-height: calc(100dvh - 79px - 24px);
    padding: clamp(34.8px, (100vw - 32px) * 0.0350877, 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 12px;
    background: var(--color-panel);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
  }

  .mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10.4px, (100vw - 32px) * 0.0105263, 12px);
}

.mega-menu__card {
  display: flex;
  align-items: center;
  gap: clamp(10.4px, (100vw - 32px) * 0.0105263, 12px);
  min-height: clamp(60.9px, (100vw - 32px) * 0.0614035, 70px);
  padding: clamp(17.4px, (100vw - 32px) * 0.0175439, 20px);
  border-radius: 12px;
  background: #fff;
}

.mega-menu__card .btn-arrow {
  --size: clamp(19.1px, (100vw - 32px) * 0.0192982, 22px);
  --glyph-w: clamp(8.41px, (100vw - 32px) * 0.0084825, 9.67px);
  --glyph-h: clamp(8.12px, (100vw - 32px) * 0.0081842, 9.33px);
}

.mega-menu__label {
  font-size: clamp(1.305rem, -0.0442rem + 1.3176vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.mega-menu__card:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

/* ===== スマホのメニュー（右から出るパネル） ===== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, 100vw);
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__scroll {
  height: 100%;
  padding: 79px 24px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__list {
  display: grid;
  gap: 2px;
}

.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 55px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--color-panel);
  text-align: left;
  cursor: pointer;
}

.drawer__toggle.is-open,
.drawer__toggle--split:has(.is-open) {
  border-radius: 6px 6px 0 0;
}

.drawer__toggle--split {
  padding: 0;
  cursor: default;
}

.drawer__toggle-link {
  display: flex;
  flex: 1;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.drawer__toggle-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.drawer__toggle-btn.is-open .icon-plus__bar {
  transform: scaleY(0);
}

.drawer__toggle-link:focus-visible,
.drawer__toggle-btn:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: -2px;
}

.drawer__toggle.is-pending {
  justify-content: flex-start;
  cursor: default;
}

.drawer__toggle.is-pending .soon {
  background: #fff;
}

.drawer__toggle-label {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.drawer__toggle-icon {
  display: inline-flex;
  flex: none;
  width: 9px;
  height: 9px;
  color: var(--color-icon);
}

.drawer__toggle-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.drawer__toggle.is-open .icon-plus__bar {
  transform: scaleY(0);
}

.icon-plus__bar {
  transform-origin: center;
}

.drawer__body {
  display: grid;
  grid-template-rows: 0fr;
}

.drawer__body.is-open {
  grid-template-rows: 1fr;
}

.drawer__clip {
  min-height: 0;
  overflow: hidden;
}

.drawer__children {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
  border-radius: 0 0 6px 6px;
  background: var(--color-panel);
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
}

.drawer__link-label {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.chevron {
  display: inline-flex;
  flex: none;
  width: 5px;
  height: 9px;
  color: var(--color-icon);
}

.chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.drawer__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 32px;
  border-radius: 9999px;
  background: var(--color-main);
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .drawer {
    display: none;
  }
}

/* ===== 下層ページの冒頭 ===== */
.page-hero {
  position: relative;
  z-index: 1;
  padding-top: 94px;
}

.page-hero__head {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.page-hero__labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.page-hero__en {
  color: var(--color-accent-text);
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 1.7914rem + 1.0476vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  text-box: trim-both cap alphabetic;
}

.page-hero__ja {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.5;
  text-box: trim-both cap alphabetic;
}

.page-hero__heading {
  margin-top: 37px;
  font-size: clamp(3.8rem, 2.9457rem + 2.1905vw, 6.1rem);
  font-weight: 600;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .page-hero {
    padding-top: calc(var(--px) * 178);
  }

  .page-hero__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .page-hero__labels {
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
  }

  .page-hero__en {
    font-size: clamp(2.484rem, 0.0005rem + 2.4253vw, 4.366rem);
  }

  .page-hero__ja {
    font-size: clamp(1.182rem, 0.001rem + 1.1534vw, 2.077rem);
  }

  .page-hero__heading {
    margin-top: calc(var(--px) * 80);
    font-size: clamp(4.563rem, -0.0015rem + 4.4575vw, 8.022rem);
  }
}

/* ===== パンくず ===== */
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb__sep {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}

.breadcrumb__sep svg {
  display: block;
  width: 100%;
  height: 100%;
}

.breadcrumb__current {
  text-decoration: underline;
  text-underline-position: from-font;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .breadcrumb__list {
    font-size: clamp(0.945rem, -0.0011rem + 0.924vw, 1.662rem);
  }
}

/* ===== 下層の導入文（Overview） ===== */
.page-overview {
  position: relative;
  padding-top: 64px;
}

/* スマホは本文の右端に線が近いので、少し右へ寄せる（タブレット・PCは 0） */
.page-overview__deco {
  position: absolute;
  top: -70%;
  left: 3%;
  z-index: 0;
  width: 100%;
  height: 190%;
  pointer-events: none;
}

.page-overview__deco svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-overview__path {
  stroke-width: 24;
}

.page-overview .inner {
  position: relative;
  z-index: 1;
}

.page-overview__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-overview__label {
  color: var(--color-accent-text);
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 1.4143rem + 0.4762vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  text-box: trim-both cap alphabetic;
}

.page-overview__lead {
  font-size: clamp(1.3rem, 1.1514rem + 0.381vw, 1.7rem);
  font-weight: 500;
  line-height: 2;
}

.page-overview__actions {
  margin-top: 16px;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .page-overview {
    padding-top: calc(var(--px) * 253);
  }

  .page-overview__deco {
    left: 0;
  }

  .page-overview__path {
    stroke-width: 40;
  }

  .page-overview__body {
    gap: 40px;
    width: calc(var(--px) * 654);
    margin-left: auto;
  }

  .page-overview__label {
    font-size: clamp(1.602rem, 0.0013rem + 1.5631vw, 2.815rem);
  }

  .page-overview__lead {
    font-size: clamp(1.297rem, -0.0002rem + 1.2668vw, 2.28rem);
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none) {
  .page-overview__deco {
    left: 0;
  }
}

/* ===== 線の飾り（共通） ===== */
.deco-path {
  fill: none;
  stroke-linecap: butt;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1800px;
  min-height: 370px;
  margin: 0 auto;
  padding: 40px 24px;
  overflow: clip;
  border-radius: 32px;
  background: var(--color-panel);
}

/* 灰色の面のすぐ後に続くときは、白い余白で分ける（修正2：Other Contents を外したため） */
.feature + .cta {
  margin-top: 64px;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .feature + .cta {
    margin-top: calc(var(--px) * 120);
  }
}

.cta__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__deco svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cta__deco--wide {
  display: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cta__heading {
  font-size: clamp(2.2rem, 1.9029rem + 0.7619vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 2;
  text-align: center;
}

.cta .btn-contact--large {
  margin-top: 18px;
}

.cta__lead {
  margin-top: 25px;
  font-size: clamp(1.3rem, 1.1886rem + 0.2857vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.8;
  text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none) {
  .cta {
    min-height: 440px;
    padding: 48px 44px;
  }

  .cta .btn-contact--large {
    margin-top: 22px;
  }

  .cta__lead {
    margin-top: 30px;
  }
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .cta {
    min-height: calc(var(--px) * 500);
    padding: calc(var(--px) * 48) calc(var(--px) * 80);
  }

  .cta__deco--narrow {
    display: none;
  }

  .cta__deco--wide {
    display: block;
  }

  .cta__heading {
    font-size: clamp(2.279rem, 0.0001rem + 2.2255vw, 4.006rem);
  }

  .cta .btn-contact--large {
    margin-top: calc(var(--px) * 29);
  }

  .cta__lead {
    margin-top: calc(var(--px) * 38);
    font-size: clamp(1.229rem, 0.0005rem + 1.1997vw, 2.16rem);
    line-height: 2;
  }
}

/* ===== フッター ===== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 24px 40px;
  background: #fff;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 520px;
  margin: 0 auto;
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__logo {
  display: inline-block;
  align-self: flex-start;
}

.site-footer__logo img {
  width: auto;
  height: 36px;
}

.site-footer__sitemap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__group,
.site-footer__row {
  display: contents;
}

.site-footer__head {
  display: none;
}

.site-footer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  border: 0;
  border-radius: 6px;
  background: var(--color-panel);
  text-align: left;
  cursor: pointer;
}

.site-footer__toggle-label {
  display: block;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.site-footer__toggle.is-open {
  border-radius: 6px 6px 0 0;
}

.site-footer__toggle.is-open .icon-plus__bar {
  transform: scaleY(0);
}

.site-footer__body {
  display: grid;
  grid-template-rows: 0fr;
}

.site-footer__body.is-open {
  grid-template-rows: 1fr;
}

.site-footer__clip {
  min-height: 0;
  overflow: hidden;
}

.site-footer__list {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
  border-radius: 0 0 6px 6px;
  background: var(--color-panel);
}

.site-footer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.site-footer__ext {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-footer__ext-icon {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__copyright {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (hover: hover) {
  .site-footer__link:hover,
  .site-footer__head--link:hover {
    color: var(--color-accent-text);
  }
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .site-footer {
    padding: clamp(120px, 100vw * 120 / 1300, 166.15px) clamp(40px, 100vw * 40 / 1300, 55.38px) clamp(48px, 100vw * 48 / 1300, 66.46px);
  }

  .site-footer__inner {
    gap: clamp(48px, 100vw * 48 / 1300, 66.46px);
    max-width: none;
  }

  .site-footer__main {
    display: grid;
    grid-template:
      "logo sitemap" auto
      "nav sitemap" 1fr
      / clamp(281px, 100vw * 281 / 1300, 389.08px) minmax(0, 1fr);
  }

  .site-footer__logo {
    grid-area: logo;
  }

  .site-footer__logo img {
    height: clamp(40px, 100vw * 40 / 1300, 55.38px);
  }

  .site-footer__sitemap {
    grid-area: sitemap;
    flex-direction: row;
    align-items: stretch;
  }

  .site-footer__group {
    display: flex;
    flex: 2;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .site-footer__row {
    display: flex;
    flex: 1;
    gap: 2px;
  }

  .site-footer__block {
    flex: 1;
    padding: clamp(40px, 100vw * 40 / 1300, 55.38px) clamp(32px, 100vw * 32 / 1300, 44.31px) clamp(28px, 100vw * 28 / 1300, 38.77px);
    border-radius: 12px;
    background: var(--color-panel);
  }

  .site-footer__block--link {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 100vw * 32 / 1300, 44.31px);
  }

  .site-footer__head {
    display: block;
    margin-bottom: clamp(24px, 100vw * 24 / 1300, 33.23px);
    font-family: var(--font-en);
    font-size: clamp(1.8rem, -0.02rem + 1.4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-box: trim-both cap alphabetic;
  }

  .site-footer__block--link .site-footer__head--link {
    margin-bottom: 0;
  }

  .site-footer__toggle {
    display: none;
  }

  .site-footer__body {
    display: block;
  }

  .site-footer__list {
    display: block;
    padding: 0;
    background: none;
  }

  .site-footer__link {
    min-height: 0;
    padding: clamp(12px, 100vw * 12 / 1300, 16.62px) clamp(12px, 100vw * 12 / 1300, 16.62px) clamp(12px, 100vw * 12 / 1300, 16.62px) 2px;
    border-radius: 0;
    background: none;
    font-size: clamp(1.4rem, 0.1rem + 1vw, 1.9rem);
  }

  .site-footer__nav {
    grid-area: nav;
    align-self: start;
    align-items: flex-start;
    gap: clamp(20px, 100vw * 20 / 1300, 27.69px);
    margin-top: clamp(109px, 100vw * 109 / 1300, 150.92px);
  }

  .site-footer__ext {
    gap: clamp(5px, 100vw * 5 / 1300, 6.92px);
    font-size: clamp(1.2rem, -0.1rem + 1vw, 1.7rem);
  }

  .site-footer__ext-icon {
    width: clamp(15px, 100vw * 15 / 1300, 20.77px);
    height: clamp(15px, 100vw * 15 / 1300, 20.77px);
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: flex-start;
  }

  .site-footer__copyright {
    font-size: clamp(1.2rem, -0.1rem + 1vw, 1.7rem);
  }
}

/* ===== 灰色のパネルに白い項目（強み・4つの事業） ===== */
.feature {
  padding-top: 0;
}

.feature__panel {
  position: relative;
  padding: 64px 24px 111px;
  overflow: clip;
  border-radius: 24px;
  background: var(--color-panel);
}

.feature__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.feature__deco svg {
  display: block;
  width: 100%;
  height: 100%;
}

.feature__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature__label {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature__en {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 3.3514rem + 0.381vw, 3.9rem);
  font-weight: 700;
  line-height: 1.1;
  text-box: trim-both cap alphabetic;
}

.feature__ja {
  color: var(--color-accent-text);
  font-size: clamp(1.3rem, 1.1886rem + 0.2857vw, 1.6rem);
  font-weight: 600;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.feature__intro {
  font-size: clamp(1.3rem, 1.2257rem + 0.1905vw, 1.5rem);
  font-weight: 500;
  line-height: 1.8;
}

.feature__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.feature__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 24px 32px;
  border-radius: 12px;
  background: #fff;
  scroll-margin-top: 90px;
}

.feature__photo {
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-panel);
}

.feature__photo img {
  width: 100%;
  height: 201px;
  object-fit: cover;
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature__item-head {
  display: flex;
  align-items: flex-start;
}

.feature__number {
  position: absolute;
  top: 9.71px;
  left: 10px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 1000px;
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 1.3143rem + 0.4762vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.feature__item-label {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature__sub {
  color: var(--color-accent-text);
  font-size: clamp(1.2rem, 1.1257rem + 0.1905vw, 1.4rem);
  font-weight: 600;
  line-height: 1.7;
}

.feature__title {
  font-size: clamp(1.7rem, 1.5143rem + 0.4762vw, 2.2rem);
  font-weight: 600;
  line-height: 1.7;
}

.feature__text {
  font-size: clamp(1.3rem, 1.2257rem + 0.1905vw, 1.5rem);
  font-weight: 500;
  line-height: 1.8;
}

.feature__text p + p {
  margin-top: 1em;
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none) {
  .feature__panel {
    padding-right: 44px;
    padding-left: 44px;
  }

  .feature__photo img {
    height: auto;
    aspect-ratio: 294 / 201;
  }
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .feature {
    padding-top: calc(var(--px) * 88);
  }

  .feature__panel {
    padding: calc(var(--px) * 120) 6.1538%;
    border-radius: 32px;
  }

  .feature__deco {
    display: none;
  }

  .feature__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--px) * 56);
  }

  .feature__en {
    font-size: clamp(3.03rem, 0.0002rem + 2.9588vw, 5.326rem);
  }

  .feature__ja {
    font-size: clamp(1.229rem, 0.0005rem + 1.1997vw, 2.16rem);
  }

  .feature__intro {
    font-size: clamp(1.161rem, 0.0011rem + 1.1327vw, 2.04rem);
    line-height: 1.7;
    text-align: right;
    white-space: nowrap;
  }

  .feature__intro .sample-tag {
    margin-left: auto;
  }

  .feature__list {
    gap: calc(var(--px) * 64);
    margin-top: calc(var(--px) * 64);
  }

  .feature__item {
    position: static;
    flex-direction: row-reverse;
    align-items: center;
    gap: calc(var(--px) * 48);
    padding: calc(var(--px) * 48);
    border-radius: 20px;
    scroll-margin-top: 110px;
  }

  .feature__photo {
    flex: none;
    width: calc(var(--px) * 470);
    border-radius: 12px;
  }

  .feature__photo img {
    height: calc(var(--px) * 390);
  }

  .feature__body {
    flex: 1;
    gap: calc(var(--px) * 40);
    min-width: 0;
  }

  .feature__item-head {
    align-items: center;
    gap: calc(var(--px) * 24);
  }

  .feature__number {
    position: static;
    width: calc(var(--px) * 60);
    height: calc(var(--px) * 60);
    border-radius: 8px;
    font-size: clamp(1.523rem, 0.0002rem + 1.4871vw, 2.677rem);
  }

  .feature__sub {
    font-size: clamp(1.082rem, -0.0001rem + 1.0567vw, 1.902rem);
  }

  .feature__title {
    font-size: clamp(1.68rem, -0.0012rem + 1.6418vw, 2.954rem);
  }

  .feature__text {
    font-size: clamp(1.161rem, 0.0011rem + 1.1327vw, 2.04rem);
    line-height: 2;
  }
}

/* ===== 写真の帯（マーキー） ===== */
.marquee {
  width: 100%;
  overflow: clip;
}

.marquee__track {
  display: flex;
}

.marquee__item {
  position: relative;
  flex: none;
  overflow: hidden;
  background: var(--color-panel);
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 表（会社情報・お問い合わせフォーム） ===== */
.info {
  padding-top: 56px;
}

.info__body {
  margin-top: 40px;
}

.info__body--access {
  margin-top: 56px;
  scroll-margin-top: 90px;
}

.info__category {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 1.5886rem + 0.2857vw, 2rem);
  font-weight: 600;
  line-height: 1.7;
}

.info__category::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-accent);
}

.info__list {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
}

.info__row {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line);
}

.info__row:first-child {
  border-top: 0;
}

.info__term {
  padding: 20px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-term);
  font-size: clamp(1.3rem, 1.2257rem + 0.1905vw, 1.5rem);
  font-weight: 600;
  line-height: 1.5;
}

.info__desc {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 20px;
  background: #fff;
  font-size: clamp(1.3rem, 1.2257rem + 0.1905vw, 1.5rem);
  font-weight: 500;
  line-height: 1.8;
}

.info__desc a[href^="tel:"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.info__access {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info__map {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-panel);
}

.info__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.info__address {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.8;
}

@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .info {
    padding-top: calc(var(--px) * 88);
  }

  .info__body {
    display: flex;
    justify-content: space-between;
    margin-top: calc(var(--px) * 64);
  }

  .info__body--access {
    margin-top: calc(var(--px) * 88);
    scroll-margin-top: 110px;
  }

  .info__category {
    flex-shrink: 0;
    align-items: flex-start;
    gap: calc(var(--px) * 12);
    width: 23.4211%;
    min-height: calc(var(--px) * 35);
    margin-bottom: 0;
    font-size: clamp(1.544rem, 0.0001rem + 1.5077vw, 2.714rem);
  }

  .info__category::before {
    height: calc(var(--px) * 35);
  }

  .info__list,
  .info__access {
    flex-shrink: 0;
    width: 74.4737%;
  }

  .info__list {
    border-radius: 20px;
  }

  .info__row {
    flex-direction: row;
  }

  .info__term {
    flex-shrink: 0;
    width: 17.3145%;
    padding: calc(var(--px) * 40) calc(var(--px) * 24);
    border-right: 1px solid var(--color-line);
    border-bottom: 0;
    font-size: clamp(1.161rem, 0.0011rem + 1.1327vw, 2.04rem);
  }

  .info__desc {
    gap: calc(var(--px) * 24);
    padding: calc(var(--px) * 40) calc(var(--px) * 32);
    font-size: clamp(1.161rem, 0.0011rem + 1.1327vw, 2.04rem);
    line-height: 1.7;
  }

  .info__map {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }
}

/* =====================================================================
   フェーズ2：UIの動き（依頼書 第2部 第6項 E・F・H・I・J）
   ===================================================================== */

/* ===== ヘッダー：一番上では地なし、scrollY > 24 で白地 ===== */
.site-header {
  transition: background-color 0.3s ease;
}

.is-js .site-header:not(.is-scrolled) {
  background: none;
}

.is-js.is-menu-open .site-header {
  background: #fff;
}

.is-menu-open,
.is-menu-open body {
  overflow: hidden;
}

/* ===== ナビのすべる丸・＋アイコン ===== */
.site-header__nav-indicator {
  transition:
    opacity 0.2s ease,
    left 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-header__nav-indicator.is-instant {
  transition: none;
}

.site-header__nav-icon {
  transition: transform 0.25s ease;
}

/* ===== ハンバーガーの線と× ===== */
.site-header__menu-btn svg {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}

/* ===== メガメニュー ===== */
@media screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .mega-menu {
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
  }

  .mega-menu__card {
    transition: opacity 0.25s ease;
  }
}

/* ===== スマホのメニュー ===== */
.drawer {
  transition: visibility 0.4s;
}

.drawer__overlay {
  transition: opacity 0.3s ease;
}

.drawer.is-open .drawer__overlay {
  transition-duration: 0.4s;
}

.drawer__panel {
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.drawer__scroll > nav,
.drawer__contact {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.drawer.is-open .drawer__scroll > nav,
.drawer.is-open .drawer__contact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.drawer.is-open .drawer__contact {
  transition-delay: 0.21s;
}

/* ===== アコーディオン（スマホのメニュー・スマホのフッター） ===== */
.drawer__body,
.site-footer__body {
  transition: grid-template-rows 0.3s ease;
}

.drawer__toggle,
.site-footer__toggle {
  transition: border-radius 0.3s ease;
}

.icon-plus__bar {
  transition: transform 0.3s ease;
}

/* ===== スクロール表示 F ===== */
.is-js [data-reveal] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 800ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.is-js [data-reveal="fade-up"] {
  transform: translate3d(0, 24px, 0);
}

.is-js [data-reveal].is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.is-js [data-reveal].is-instant {
  transition-duration: 0ms;
  transition-delay: 0ms;
}

/* 見出しの英字の文字分割 */
.split.is-split {
  display: block;
  margin-top: -0.2em;
  margin-bottom: -0.32em;
  padding-top: 0.2em;
  padding-bottom: 0.32em;
  overflow: hidden;
}

.split__visual {
  display: block;
}

.split__char {
  display: inline-block;
  vertical-align: top;
}

.split__char--space {
  width: 0.32em;
}

.is-split .split__char {
  opacity: 0;
  transform: translate3d(0, calc(100% + 0.32em), 0) rotate(4deg);
  transform-origin: 50% 100%;
  transition:
    transform 950ms cubic-bezier(0.85, 0, 0.15, 1),
    opacity 450ms ease;
}

.is-split.is-shown .split__char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
  transition-delay: var(--char-delay, 0ms);
}

/* 下層ページの冒頭（開いたときに1回） */
@keyframes page-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-heading-in {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }

  30% {
    opacity: 1;
  }

  70% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.page-hero__labels {
  animation: page-fade-up 900ms var(--ease-out) 0ms both;
}

.page-hero .breadcrumb {
  animation: page-fade-up 900ms var(--ease-out) 120ms both;
}

.page-hero__heading {
  animation: page-heading-in 1200ms var(--ease-out) 240ms both;
}

/* ===== 写真の帯 H ===== */
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-100% / 3), 0, 0);
  }
}

.marquee__track {
  animation: marquee 24s linear infinite;
}

@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait),
  screen and (min-width: 1024px) and (orientation: portrait) and (hover: none),
  screen and (min-width: 1024px) and (hover: hover),
  screen and (min-width: 768px) and (orientation: landscape) {
  .marquee__track {
    animation-duration: 40s;
  }
}

/* ===== カードのホバー J ===== */
.top-service__photo img,
.top-company__photo img {
  transform: scale(1);
  transition: transform 0.6s var(--ease-out);
}

@media (hover: hover) {
  .top-service__panel:hover .top-service__photo img,
  .top-company__item:hover .top-company__photo img {
    transform: scale(1.08);
  }

  .mega-menu__card:hover .mega-menu__label,
  .drawer__link:hover .drawer__link-label {
    color: var(--color-accent-text);
  }
}

.mega-menu__label,
.drawer__link-label {
  transition: color 0.25s ease;
}

/* ===== 動きを減らす設定のとき ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .marquee__track {
    animation: none !important;
  }

  .is-js [data-reveal],
  .is-split .split__char {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   フェーズ3：曲線の描画・帯写真のパララックス・Lenis
   （依頼書 第2部 第6項 D・J）
   ===================================================================== */

/* ===== 下層冒頭・CTA の曲線（線が伸びて描かれる） ===== */
.is-js .js-curve.is-line-ready .page-overview__path,
.is-js .js-curve.is-line-ready .cta__path {
  stroke-dasharray: 0 1;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 1600ms var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
}

.is-js .js-curve.is-line-ready.is-line-show .page-overview__path,
.is-js .js-curve.is-line-ready.is-line-show .cta__path {
  stroke-dasharray: 1 1;
}

/* ===== 強み・4つの事業（スマホ）・沿革（PC）の曲線 ===== */
.is-js .js-curve.is-line-ready .feature__path,
.is-js .js-curve.is-line-ready .history__path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--line-delay, 0ms);
}

.is-js .js-curve.is-line-ready.is-line-show .feature__path,
.is-js .js-curve.is-line-ready.is-line-show .history__path {
  stroke-dashoffset: 0;
}

/* ===== 帯写真のパララックス ===== */
.top-recruit__bg img {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.js-parallax.is-parallax-active img {
  will-change: transform;
}

/* ===== Lenis（慣性スクロール） ===== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ===== 動きを減らす設定のとき ===== */
@media (prefers-reduced-motion: reduce) {
  .is-js .js-curve .deco-path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .top-recruit__bg img,
  .company-photo__frame img {
    --parallax-y: 0px !important;
  }
}
