:root {
  --content-width: 1200px;
  --inner-width: 1088px;
  --page: 1280px;
  --bg: #f8f8f8;
  --red: #c70010;
  --hero-red: #ca0010;
  --text: #364153;
  --muted: #2e2e2e;
  --black: #000;
  --ink: #231815;
  --brown: #25010a;
  --border: #e0e0e0;
  --line: #d0d0d0;
  --button-hover: #4a4a4a;
  --heading-ink: #16181d;
  --heading-sub: #878d96;
  --heading-rule: #e4e6ea;
  --footer: #101828;
  --footer-line: #364153;
  --footer-main: #d1d5dc;
  --footer-sub: #99a1af;
  --footer-muted: #6a7282;
  --footer-dim: #4a5565;
  --font-jp:
    "Yu Gothic Pr6N", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --font-en: "DIN Alternate", "Arial Narrow", Arial, sans-serif;

  /* リキッド用トークン。いずれも上限値がデザイン基準幅1512px時の実寸で、
     幅が狭くなるほど同じ比率で縮む。固定pxを直接書かず、これらを介して指定すること。
     ページ幅に上限は設けない（ヘッダー・ヒーロー・フッターは画面幅いっぱい）。
     1512px超では 50% - (1512/2 - 余白) が clamp の上限を上回り、1512px幅の
     デザインキャンバスが画面中央に置かれた状態と同じ位置にセクションが収まる
     （% は使用先の包含ブロック幅基準なので、.site 直下のセクションでのみ使うこと） */
  --gutter: max(clamp(24px, 10.32vw, 156px), calc(50% - 600px)); /* セクション左右の余白 156px */
  --gutter-narrow: max(
    clamp(16px, 6.61vw, 100px),
    calc(50% - 656px)
  ); /* オフセット型セクションの左余白 100px */
  --panel-padding-x: clamp(16px, 3.7vw, 56px); /* 白パネルの左右padding 56px */
  --panel-padding-y: clamp(32px, 4.23vw, 64px); /* 白パネルの上下padding 64px */
}

* {
  box-sizing: border-box;
}

/* ヘッダーが固定なので、ページ内アンカーの着地点をその高さぶん下げる */
html {
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-jp);
}

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

img {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sp-only {
  display: none;
}

.pc-only {
  display: initial;
}

.site {
  width: 100%;
  margin: 0 auto;
  padding-top: 78px; /* 固定ヘッダーが浮くぶんの高さを確保する */
  background: var(--bg);
}

/* header */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 78px;
  margin: 0 auto;
  padding: 16px 32px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link,
.footer-logo-link {
  display: block;
  line-height: 0;
}

.brand-logo {
  position: relative;
  display: block;
  width: 213.401px;
  height: 32px;
  overflow: hidden;
}

.brand-logo-mark,
.brand-logo-text {
  position: absolute;
  display: block;
}

.brand-logo-mark {
  inset: 0 auto 0 0;
  width: 32px;
  height: 32px;
}

.brand-logo-text {
  top: 2.85%;
  right: 0;
  bottom: 2.85%;
  left: 18.4%;
  width: 174.136px;
  height: 30.176px;
}

.brand-logo-sp {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}

.global-nav {
  display: flex;
  align-items: center;
}

/* 直下の子だけを対象にする（.sp-nav-accordion 内のサブメニューのリンクを巻き込まないため） */
.global-nav > a {
  padding: 0 16px;
  border-right: 1px solid var(--text);
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.global-nav > a:nth-last-child(2) {
  border-right: 0;
}

.global-nav > a:last-child {
  border-right: 0;
  border-left: 1px solid var(--text);
}

/* ヘッダーのサブナビゲーション（全ページ共通）
   「企業情報」「事業内容」の2つが同じ仕組みで動く。
   PC: トリガー（.global-nav__company / .global-nav__business）をホバー／フォーカスすると
       対になるパネル（.header-subnav--company / .header-subnav--business）がポップアップ表示される。
   SP（ハンバーガーメニュー内）: 同じ内容を .sp-nav-accordion（details/summary）のタップ開閉で表示する。
   開閉のJSロジックは assets/script.js に集約する（SP側はブラウザネイティブのdetails挙動のみでJS不要）。
   JSは開いているパネル名を .site-header の data-subnav-open に入れる。
   トリガーとパネルの対応はCSSの値では表現できないため、2組ぶんを明示的に列挙している。
   ヘッダーの高さがページごとに異なる場合は、.header-subnav の top を各ページ側で上書きする。 */

.global-nav a:hover,
.site-header[data-subnav-open="company"] .global-nav__company,
.site-header:has(.header-subnav--company:hover) .global-nav__company,
.site-header:has(.header-subnav--company:focus-within) .global-nav__company,
.site-header[data-subnav-open="business"] .global-nav__business,
.site-header:has(.header-subnav--business:hover) .global-nav__business,
.site-header:has(.header-subnav--business:focus-within) .global-nav__business {
  color: #f00;
}

.header-subnav {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 86px; /* ヘッダー高さ78px + 8px。ヘッダー高さが異なるページは top を上書きする */
  min-height: 148px;
  padding: 32px;
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 128px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.header-subnav::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 8px;
  content: "";
}

.site-header:has(.global-nav__company:hover) .header-subnav--company,
.site-header:has(.global-nav__company:focus) .header-subnav--company,
.site-header[data-subnav-open="company"] .header-subnav--company,
.site-header:has(.header-subnav--company:hover) .header-subnav--company,
.site-header:has(.header-subnav--company:focus-within) .header-subnav--company,
.site-header:has(.global-nav__business:hover) .header-subnav--business,
.site-header:has(.global-nav__business:focus) .header-subnav--business,
.site-header[data-subnav-open="business"] .header-subnav--business,
.site-header:has(.header-subnav--business:hover) .header-subnav--business,
.site-header:has(.header-subnav--business:focus-within)
  .header-subnav--business {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-subnav__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-subnav__top img {
  width: 29px;
  height: 9px;
}

.header-subnav__groups {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

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

.header-subnav__heading,
.header-subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.header-subnav__heading {
  width: 100%;
  min-height: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--red);
  font-size: 16px;
  font-weight: 700;
}

.header-subnav__link {
  min-height: 24px;
  font-size: 14px;
  font-weight: 500;
}

.header-subnav__heading img,
.header-subnav__link img {
  width: 12px;
  height: 4px;
}

.site-header.is-open .global-nav > a.global-nav__company,
.site-header.is-open .global-nav > a.global-nav__business,
.site-header.is-open .header-subnav {
  display: none;
}

/* SPアコーディオン（企業情報・事業内容）。既定では非表示にし、各ページのSPメニュー内で表示を切り替える。 */
.sp-nav-accordion {
  display: none;
}

.contact-button {
  min-width: 148px;
  height: 46px;
  padding: 16px 32px;
  border: 1px solid #000;
  border-radius: 99px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* タッチ環境ではタップ後にホバーが残るため、ホバーを持つ環境だけに限定する */
@media (hover: hover) {
  .contact-button:hover {
    border-color: var(--button-hover);
    background: var(--button-hover);
  }
}

.menu-button {
  display: none;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* 閉じるアイコンはメニュー展開時（.site-header.is-open）だけ差し替えて表示する */
.close-icon {
  display: none;
  width: 24px;
  height: 24px;
}

/* hero */

.hero {
  position: relative;
  height: 266px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--hero-red) 0%, red 100%);
}

.hero-inner {
  padding: 40px 0 0 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #fff;
}

.hero-title {
  margin: 32px 0 0;
  color: #fff;
  font-size: clamp(48px, 4.76vw, 72px);
  font-weight: 700;
  line-height: 1;
}

/* 背景の英字はFigma同様、ベースラインを赤エリアの下端にぴったり付ける
   （ディセンダは .hero の overflow: hidden で切れる）。
   top ではなく bottom 基準にして、ページごとのヒーロー高さに依存しないようにする。
   line-height: 1 のとき、ベースラインはボックス下端から約0.14〜0.15em上に来る
   （DIN Alternate 0.147 / Arial Narrow 0.140 / Arial 0.155 を実測）ので、その分下げる */
.hero-bg-text {
  position: absolute;
  left: 50%;
  bottom: -0.15em;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-en);
  font-size: clamp(72px, 11.11vw, 168px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  animation: hero-bg-text-fade-in 1s ease-out 0.2s forwards;
}

@keyframes hero-bg-text-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-text {
    opacity: 1;
    animation: none;
  }
}

/* スクロール連動フェードイン（JS: assets/script.js の data-reveal 処理とセット）
   is-revealed は画面内に入ったタイミングでJSが付与する */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal="left"] {
  transform: translateX(-64px);
}

[data-reveal="right"] {
  transform: translateX(64px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* section layout */

.content-section {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(1256px, calc(100% - var(--gutter) - 32px));
  margin: 16px auto 0 var(--gutter);
}

.section-ring {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  pointer-events: none;
}

.section-ring.red {
  top: 0;
  right: 0;
}

.section-ring.orange {
  top: 0;
  left: 0;
}

.section-ring.blue {
  top: 0;
  right: 0;
  width: 293.939px;
  height: 293.939px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-ring.blue .section-ring-image {
  width: 240px;
  height: 240px;
  transform: rotate(-15deg);
}

.section-ring.green {
  top: -43.923px;
  left: -43.923px;
  width: 327.846px;
  height: 327.846px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-ring.green .section-ring-image {
  width: 240px;
  height: 240px;
  transform: rotate(-30deg);
}

.section-heading {
  position: relative;
  z-index: 4;
  padding-top: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.section-heading.align-right {
  justify-content: flex-end;
  padding-right: clamp(0px, 5.29vw, 80px);
}

.section-heading.align-left {
  justify-content: flex-start;
  padding-left: clamp(0px, 5.29vw, 80px);
}

.section-title-en {
  margin: 0;
  color: #000;
  font-family: var(--font-en);
  font-size: clamp(44px, 4.76vw, 72px);
  font-weight: 700;
  line-height: 1.1667;
}

.label-ja {
  height: 32px;
  margin: 0;
  color: var(--brown);
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
}

.section-panel {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), 100%);
  margin-top: -28px;
  padding: var(--panel-padding-y) var(--panel-padding-x);
  background: #fff;
}

/* panel heading (白パネル内の見出し) */

/* PCは 和文 / 英字 / 罫線 を横一列。SPは英字だけ和文の下に落とす（罫線は残す） */
.panel-heading {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading-ja {
  color: var(--heading-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
}

.panel-heading-en {
  padding-top: 2px;
  color: var(--heading-sub);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.panel-heading-line {
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
  margin-left: 4px;
  background: var(--heading-rule);
}

/* table of contents */

.toc {
  width: min(var(--content-width), calc(100% - 64px));
  margin: 80px auto 0;
  padding: var(--panel-padding-y) clamp(16px, 2.12vw, 32px);
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.toc-title-en {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: clamp(32px, 3.17vw, 48px);
  font-weight: 700;
  line-height: 1.1667;
}

.toc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.toc-link {
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-link-text {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.toc-number {
  color: var(--red);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
}

.toc-name {
  color: #0b0b0b;
  font-size: 14px;
  font-weight: 700;
}

/* tabs */

.tabs {
  display: flex;
  align-items: flex-start;
  height: 47px;
}

.tab {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
}

.tab:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.tab-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
}

.tab-title .tab-number {
  color: var(--red);
  font-family: var(--font-en);
  font-size: 24px;
  line-height: 1;
}

.tab-line {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: #cacaca;
}

.tab.is-active .tab-line {
  background: #e60012;
}

.tab.is-active .tab-line::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top: 8px solid #e60012;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
}

.tab-panel[hidden] {
  display: none;
}

/* related pages */

.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: var(--inner-width);
}

.related-card {
  min-height: 93px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-card-title {
  display: block;
  margin: 0;
  color: var(--footer);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.related-card-sub {
  display: block;
  margin: 2px 0 0;
  color: var(--footer-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16.5px;
  white-space: nowrap;
}

.arrow-icon {
  width: 24px;
  height: 24px;
}

.link-icon {
  width: 16px;
  height: 16px;
}

/* 写真ギャラリー（左右の矢印はパネルの余白側にはみ出す） */

.gallery {
  position: relative;
  margin: 32px calc(-1 * var(--panel-padding-x)) 0;
}

.gallery-scroller {
  width: var(--inner-width);
  max-width: calc(100% - 2 * var(--panel-padding-x));
  margin: 0 auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* mandatory だと最後のコマのスナップ位置がスクロール可能量を超えるため、
     矢印送りの途中位置が常に先頭へ引き戻される。proximity にして回避する */
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroller::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 16px;
}

.gallery-item {
  position: relative;
  flex: 0 0 400px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
}

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

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  padding: 18px 16px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.75;
}

.gallery-arrow {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 40px;
  height: 200px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-arrow:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.gallery-arrow.prev {
  left: 0;
}

.gallery-arrow.next {
  right: 0;
}

.gallery-arrow img {
  width: 40px;
  height: 200px;
}

.gallery-dots {
  display: none;
}

/* footer */

.site-footer {
  margin-top: 104px;
  background: transparent;
  color: #333;
}

.footer-box {
  padding: 40px 32px;
  background: #efefef;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  row-gap: 16px;
}

.footer-nav a {
  padding: 0 16px;
  border-right: 1px solid #000;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.footer-nav a:nth-last-child(2) {
  border-right: 0;
}

.footer-nav a:last-child {
  border-right: 0;
  border-left: 1px solid #000;
}

/* ヘッダーのグローバルナビ（.global-nav a:hover）と同じ赤。
   区切り線は #000 固定なので、変わるのは文字色だけ */
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #f00;
}

.footer-company-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #333;
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.footer-company-info p {
  margin: 0;
}

.footer-copyright {
  padding: 40px 121px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.copyright {
  margin: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  /* ヘッダーがヒーローに重なるため、ヒーロー内の要素をヘッダーの高さ（68px）ぶん下げる。
     この幅では .site 側の余白は不要（ヘッダーは重ねる前提のレイアウト） */

  html {
    scroll-padding-top: 68px;
  }

  .site {
    padding-top: 0;
  }

  .hero {
    height: 334px;
  }

  .hero-inner {
    padding-top: 108px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 68px;
    padding: 16px 24px 8px;
    background: #fff;
    gap: 16px;
  }

  .site-header::after {
    content: none;
  }

  .header-logo-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-logo {
    width: min(213.401px, calc(100vw - 116px));
    height: 32px;
  }

  .brand-logo-pc {
    display: block;
  }

  .brand-logo-sp {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
    position: absolute;
    top: 16px;
    right: 24px;
    left: auto;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .global-nav {
    display: none;
  }

  .site-header .contact-button {
    display: none;
  }

  .site-header .menu-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 99px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
  }

  .site-header .menu-button::before {
    content: none;
  }

  /* ハンバーガーメニュー展開時
     ヘッダー自体を全画面の白パネルに切り替える。
     マークアップは閉じている時と同じで、以下の3ブロックにグリッドで組み替える。
       1行目: ロゴ ／ 閉じるボタン
       2行目: グローバルナビ
       3行目: お問い合わせボタン
     .header-actions は display: contents で箱を消し、
     中のナビ・ボタン類を直接ヘッダーのグリッドアイテムにしている。 */

  .site-header.is-open {
    position: fixed;
    inset: 0;
    z-index: 10;
    height: 100%;
    padding: 64px 24px 40px;
    background: #fff;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: safe center;
    justify-items: center;
    row-gap: 40px;
  }

  .site-header.is-open .header-actions {
    position: static;
    display: contents;
  }

  .site-header.is-open .header-logo-link {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .site-header.is-open .menu-button {
    grid-column: 2;
    grid-row: 1;
    border: 1px solid #fff;
    border-radius: 99px;
    background: #fff;
  }

  .site-header.is-open .menu-icon {
    display: none;
  }

  .site-header.is-open .close-icon {
    display: block;
  }

  .site-header.is-open .global-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* PCの区切り線（左右ボーダー）を打ち消して、下線付きの縦積みリストにする。
     直下の子だけを対象にする（.sp-nav-accordion 内のサブメニューのリンクを巻き込まないため）。
     .global-nav__company / .global-nav__business はPC専用のホバートリガーで、SPでは
     .sp-nav-accordion が同じ内容を担う。ここで拾うと上の display: none を打ち消して
     「企業情報」「事業内容」が二重に出るため、除外する。 */
  .site-header.is-open
    .global-nav
    > a:not(.global-nav__company):not(.global-nav__business) {
    padding: 32px 0;
    border: 0;
    border-bottom: 1px solid #333;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    line-height: 18px;
    display: flex;
    align-items: center;
  }

  /* 一部のブラウザ（モバイルSafari等）でツールバーぶんだけ実際の表示領域が
     height: 100% より小さくなり、ボタンが下端に張り付いて背面のフッターと
     重なって見える不具合の回避。ボタンの下に逃げ場となる余白を確保する。 */
  .site-header.is-open .contact-button {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-bottom: 82px;
    display: flex;
  }

  /* SPアコーディオン。ネイティブの details/summary なのでJSは不要 */
  .site-header.is-open .sp-nav-accordion {
    display: block;
    border-bottom: 1px solid #333;
  }

  .sp-nav-accordion summary {
    display: flex;
    align-items: center;
    padding: 32px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    line-height: 18px;
    list-style: none;
    cursor: pointer;
  }

  .sp-nav-accordion summary::-webkit-details-marker {
    display: none;
  }

  .sp-nav-accordion[open] {
    padding-bottom: 32px;
  }

  .sp-nav-accordion[open] summary {
    margin-bottom: 32px;
    border-bottom: 1px solid #333;
    color: var(--red);
  }

  .sp-subnav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 8px;
  }

  .sp-subnav a {
    color: #333;
  }

  .sp-subnav__top,
  .sp-subnav__heading,
  .sp-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    white-space: nowrap;
  }

  .sp-subnav__top {
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
  }

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

  .sp-subnav__heading {
    width: 100%;
    padding: 0 8px 8px 0;
    border-bottom: 1px solid var(--red);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
  }

  .sp-subnav__link {
    min-height: 16px;
    padding-right: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  .sp-subnav img {
    width: 12px;
    height: 4px;
    flex: 0 0 auto;
  }

  /* 展開中は背面のページがスクロールしないようにする */
  body.is-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .site {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .sp-only {
    display: block;
  }

  .pc-only {
    display: none;
  }

  /* SPのヒーローは Figma の ScreenHeader（device=mobile, 809:1909）に合わせる。
     高さは固定せず内容なり: 上32 → パンくず14 → 40 → 見出し48 →（16 → リード文）
     → 16 → 背景英字72（ボックス下端＝赤の下端）。上32には固定ヘッダー68pxを足す。
     背景英字は absolute のままなので、その分（16 + 72）を .hero-inner の下パディングで確保する */
  .hero {
    height: auto;
  }

  .hero-inner {
    padding: 100px 20px 88px;
  }

  .breadcrumb {
    font-size: 14px;
  }

  .hero-title {
    margin-top: 40px;
    font-size: 48px;
    padding-bottom: 0;
  }

  /* SPはFigmaどおりボックス下端を赤の下端に揃える（ベースラインは約10px上） */
  .hero-bg-text {
    bottom: 0;
    font-size: 72px;
  }

  /* 375〜767px は幅リキッド。上限を設けず画面幅いっぱいに使う */
  .content-section {
    width: 100%;
    height: auto;
    margin-top: 32px;
    margin-right: auto;
    margin-left: auto;
  }

  /* SPのセクション骨格は Figma 企業情報_SP（968:3290）に合わせる。
     リング184pxを左右いずれかに -64px、見出しは上48pxで中央寄せ（英字64px + 和文14px）、
     白パネルは上端120pxから padding 64px 20px 40px（本文の頭が184px）。
     見出しは高さ120pxの箱に収めず下へはみ出させ、パネルに重ねる（z-index は見出しが上） */
  .section-ring,
  .section-ring.red,
  .section-ring.orange {
    width: 184px;
    height: 184px;
  }

  .section-ring.red {
    top: 0;
    right: -64px;
  }

  .section-ring.orange {
    top: 0;
    left: -64px;
  }

  /* 回転させる青・緑は、回転後の外接箱の中に184pxの画像を置く（PCと同じ構造） */
  .section-ring.blue {
    top: 0;
    right: -84.677px;
    width: 225.353px;
    height: 225.353px;
  }

  .section-ring.blue .section-ring-image {
    width: 184px;
    height: 184px;
    transform: rotate(-15deg);
    aspect-ratio: 1/1;
  }

  .section-ring.green {
    top: -20.677px;
    left: -84.677px;
    width: 225.353px;
    height: 225.353px;
  }

  .section-ring.green .section-ring-image {
    width: 184px;
    height: 184px;
    transform: rotate(-30deg);
    aspect-ratio: 1/1;
  }

  .section-heading {
    width: 100%;
    height: 120px;
    min-height: 0;
    padding: 48px 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    white-space: normal;
  }

  .section-heading.align-right,
  .section-heading.align-left {
    padding: 48px 0 0;
    align-items: center;
    justify-content: flex-start;
  }

  .section-title-en {
    width: auto;
    max-width: 100%;
    font-size: 64px;
    line-height: 1.1;
    text-align: center;
  }

  .label-ja {
    height: auto;
    line-height: 1.8;
  }

  .section-panel {
    width: 100%;
    margin-top: 0;
    padding: 64px 20px 40px;
  }

  /* 和文＋罫線を1行目、英字を2行目に。マークアップは共通のままグリッドで組み替える */
  .panel-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }

  .panel-heading-ja {
    grid-area: 1 / 1;
  }

  .panel-heading-en {
    grid-area: 2 / 1;
    padding-top: 0;
  }

  /* 罫線は2行ぶんにまたがらせ、ブロック全体の縦中央に置く（Figma実測 48pxの中央） */
  .panel-heading-line {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  /* Figma（968:4667）: ヒーローから40px空けて、枠線なしの白ベタ。padding 40px 20px */
  .toc {
    width: 100%;
    height: auto;
    margin-top: 40px;
    padding: 40px 20px;
    border: 0;
    gap: 24px;
  }

  /* Figmaは左寄せで、「目次」は英字のすぐ右（gap 16px）に置く */
  .toc-title {
    min-width: 0;
    overflow: hidden;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  /* min-content で「TABLE OF / CONTENTS」の2行に折り、
     ボックス幅を折り返し後の実寸に合わせる（余白が空かず「目次」が続けて並ぶ） */
  .toc-title-en {
    width: min-content;
    font-size: 48px;
    line-height: 1.1667;
    white-space: normal;
  }

  .toc-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toc-link {
    height: 48px;
  }

  .tabs {
    height: auto;
    align-items: stretch;
  }

  .tab-title {
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
  }

  .tab-title .tab-number {
    font-size: 24px;
  }

  .related-cards {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .related-card {
    height: auto;
    min-height: 0;
    padding: 16px 24px;
  }

  .gallery {
    margin: 24px -20px 0;
  }

  .gallery-scroller {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    /* スナップ位置も左の余白ぶんずらす。指定がないと先頭のコマが
       画面の左端に貼り付いて20pxの余白が消える */
    scroll-padding-left: 20px;
  }

  .gallery-track {
    gap: 8px;
  }

  .gallery-item {
    flex: 0 0 240px;
    height: 120px;
  }

  /* SPはコマが240pxしかなく、長いキャプションは2行になる。
     1行のときの見えかたは32px固定のときと変わらない */
  .gallery-caption {
    height: auto;
    min-height: 32px;
    padding: 4px 16px 6px;
  }

  .gallery-arrow {
    display: none;
  }

  .gallery-dots {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
  }

  .gallery-dot.is-active {
    background: var(--red);
  }

  /* 最後のセクションとフッターの間（Figma 企業情報_SP は32px） */
  .site-footer {
    margin-top: 32px;
  }

  .footer-box {
    width: 100%;
    padding: 64px 32px;
    gap: 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav {
    width: 100%;
    justify-content: flex-start;
    row-gap: 16px;
  }

  .footer-nav a {
    padding: 0 16px;
    font-size: 14px;
  }

  .footer-company-info {
    gap: 12px;
    font-size: 14px;
    line-height: 1.65;
  }

  .footer-copyright {
    padding: 40px 28px;
  }

  .copyright {
    font-size: 12px;
    text-align: center;
  }
}
