@charset 'utf-8';
/* Times New Roman が無い環境（Android等）用のフォールバック */
@font-face {
  font-family: "Liberation Serif";
  src: url(../font/LiberationSerif-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Liberation Serif";
  src: url(../font/LiberationSerif-Italic.ttf) format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --black: #000;
  --color-primary: #003c87;
  --container: 1080px;
  --sidebar-w: 100px;
  --header-h-sp: 64px;
  --section-side-w-sp: 50px;
  --white: #fff;
  --font_size-sm: 0.75rem;
  --font_en: "Montserrat", sans-serif;
  --font_serif: "Times New Roman", "Liberation Serif", serif;
}

html {
  scroll-behavior: smooth;
  /* トラックパッドの横スワイプで画面が弾んで背景が見えるのを防ぐ */
  overscroll-behavior-x: none;
}
html.is_no_smooth {
  scroll-behavior: auto;
}
body, h1, h2, h3, h4, p, blockquote, dl, dd {
  margin-block-end: 0;
}
figure {
  margin: 0;
}
body, h1, h2, h3, h4 {
  margin-block-start: 0;
}
body, p, ul, ol, td, th {
  margin: 0;
  padding: 0;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}
a {
  color: currentColor;
  text-decoration: none;
}
img,
picture {
  max-width: 100%;
  vertical-align: bottom;
  height: auto;
}
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}
:target {
  scroll-margin-block: 5ex;
}
address {
  font-style: normal;
}

body {
  color: var(--black);
  font-size: 0.875rem;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.15em;
  min-height: 100vh;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

@media screen and (max-width: 767px) {
  body {
    font-size: var(--font_size-sm);
    line-height: 1.8;
  }
  .pc {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .sp {
    display: none;
  }
}

/*html.is_drawer-open {
  overflow: hidden;
}*/

/* ========================================
  背景動画（FV・フッターで表示）
======================================== */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--black);
}
.bg-video_media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
  ヘッダー
======================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}
.header_inner {
  padding: 28px 25px;
}
.header_logo {
  display: block;
  width: 208px;
}
.header_btn {
  display: none;
}

/* PC：FV通過後に左サイドバーとして表示 */
.header_nav {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100svh;
  padding: 35px 0 46px;
  background-color: rgb(from var(--color-primary) r g b / .98);
  /* お問い合わせ（同じ青の背景）でもサイドバーの端がわかるように */
  border-right: 1px solid rgb(255 255 255 / .2);
  color: var(--white);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .4s ease, visibility .4s;
}
.header.is_scrolled .header_nav {
  transform: none;
  visibility: visible;
}
.header_nav-logo {
  display: block;
  width: 52px;
  transition: opacity .3s;
}
.header_list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin-top: auto;
  padding: 0;
}
.header_item-contact {
  position: relative;
  padding-top: 36px;
}
.header_item-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 1px;
  background-color: rgb(255 255 255 / .5);
  translate: -50% 0;
}
.header_link {
  position: relative;
  display: block;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
  transition: opacity .3s;
}
.header_link-ja {
  display: block;
}
/* PCサイドバーでは英語・ページトップ・コピーライトは出さない */
.header_link-en,
.header_item-top,
.header_copyright {
  display: none;
}
/* 表示中のセクションの項目：PCはサイドバー左端に短い縦ライン */
.header_link::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(6px - var(--sidebar-w) / 2);
  width: 2px;
  height: 20px;
  background-color: var(--white);
  opacity: 0;
  transition: opacity .3s;
}
.header_item.is_current .header_link::before {
  opacity: 1;
}

@media (hover: hover) {
  .header_nav-logo:hover,
  .header_link:hover {
    opacity: .6;
  }
}

/* SP：ハンバーガーメニュー */
@media screen and (max-width: 767px) {
  .header {
    width: 100%;
  }
  .header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h-sp);
    padding: 0 16px;
  }
  .header_logo {
    width: 160px;
  }
  /* スクロールに追従するのはハンバーガーのみ */
  .header_btn {
    position: fixed;
    top: 10px;
    right: 6px;
    z-index: 3;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .header_btn-line {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background-color: var(--white);
    transition: transform .3s, opacity .3s, background-color .3s;
  }
  /* 白背景のセクション（.js-btn-primary）に重なっている間はprimaryカラー。メニュー展開中は白のまま */
  .header.is_btn-primary:not(.is_open) .header_btn-line {
    background-color: var(--color-primary);
  }
  .header_btn-line:nth-child(1) { top: 17px; }
  .header_btn-line:nth-child(2) { top: 25px; }
  .header.is_open .header_btn-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .header.is_open .header_btn-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .header_nav {
    align-items: flex-start;
  }
  /* 右から60%幅でスライドイン */
  .header_nav,
  .header.is_scrolled .header_nav {
    left: auto;
    right: 0;
    z-index: 2;
    width: 60%;
    max-width: 500px;
    padding: var(--header-h-sp) 30px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s ease, visibility .4s;
  }
  .header.is_open .header_nav {
    transform: none;
    visibility: visible;
  }
  .header_nav-logo {
    display: none;
  }
  .header_list {
    align-items: flex-start;
    gap: 30px;
    margin-block: auto;
  }
  .header_item-top {
    display: block;
  }
  .header_item-contact {
    padding-top: 0;
  }
  .header_item-contact::before {
    content: none;
  }
  .header_link {
    padding-left: 12px;
    font-size: 1rem;
    letter-spacing: .15em;
    line-height: 1.4;
    writing-mode: horizontal-tb;
  }
  .header_link-en {
    display: block;
    margin-top: 4px;
    font-family: var(--font_en);
    font-size: .6875em;
    font-weight: 500;
    letter-spacing: .05em;
  }
  /* 表示中のセクションの項目：SPは項目の高さいっぱいの縦ライン */
  .header_link::before {
    left: 0;
    height: 100%;
  }
  .header_copyright {
    display: block;
    align-self: stretch;
    padding-top: 16px;
    border-top: 1px solid rgb(255 255 255 / .4);
    text-align: center;
    font-family: var(--font_en);
    font-size: .5625rem;
    font-weight: 500;
    letter-spacing: .05em;
    white-space: nowrap;
  }
  .header_copyright small {
    font-size: inherit;
  }
}

/* ========================================
  FV
======================================== */
.mv {
  position: relative;
  height: 100vh;
  height: 100svh;
  color: var(--white);
}
.mv_inner {
  position: relative;
  width: calc(97% - var(--sidebar-w));
  max-width: 1250px;
  height: 100%;
  margin-left: var(--sidebar-w);
}
.mv_title {
  position: absolute;
  bottom: 11%;
  left: 0;
}
/* 右上：回転する「SCROLL FOR CONTENTS」＋中央の矢印 */
.mv_scroll {
  position: absolute;
  top: 21%;
  right: 0;
  display: grid;
  place-items: center;
  width: 159px;
  aspect-ratio: 1;
}
.mv_scroll > * {
  grid-area: 1 / 1;
}
.mv_scroll-circle {
  width: 100%;
  animation: mv-scroll-rotate 20s linear infinite;
}
.mv_scroll-arrow {
  width: 13px;
}
@keyframes mv-scroll-rotate {
  to { rotate: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .mv_scroll-circle {
    animation: none;
  }
}

@media screen and (max-width: 767px) {
  .mv_inner {
    width: auto;
    margin-left: 3%;
  }
  .mv_title {
    bottom: 32px;
    left: 16px;
  }
  /* SPは右上にハンバーガーがあるので、その下に配置 */
  .mv_scroll {
    top: calc(50% - 60px);
    right: 5%;
    width: 120px;
  }
}

/* ========================================
  共通パーツ
======================================== */
/* セクション左の縦列（ラベル）。セクションの上端から下端まで伸ばす
   PC：背景なし / SP：左端の青い縦帯 */
.c-section-side {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* ラベルを画面に追従させる。1画面分の高さの箱を画面の上端に固定するので、
   セクションの下端が画面の下端に来たところで止まり、そこからはセクションと一緒に流れる */
.c-section-side_sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
/* PC：文字色はセクションの color を引き継ぐ（暗い背景は白、白背景は黒） */
@media screen and (min-width: 768px) {
  .c-section-side {
    left: 44px;
  }
  .c-section-side_sticky {
    padding-top: 52px;
  }
}
@media screen and (max-width: 767px) {
  .c-section-side {
    color: var(--white);
    left: 0;
    align-items: center;
    width: var(--section-side-w-sp);
    background-color: var(--color-primary);
  }
  /* 縦帯の幅いっぱいに広げ、ラベルはその中で左右中央に置く
     （箱をラベルの幅に縮めて中央寄せすると、iOS Safari では縦書きの幅の計算がフォントの読み込みなどでずれ、中心からずれて見える） */
  .c-section-side_sticky {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 18px;
  }
}

/* セクションラベル（縦書き：日本語 ー 英語） */
.c-section-label {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  writing-mode: vertical-rl;
}
.c-section-label_en {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font_en);
}
.c-section-label_en::before {
  content: "";
  width: 1.334em;
  height: 1px;
  background-color: currentColor;
}

@media screen and (max-width: 767px) {
  .c-section-label {
    font-size: 0.625rem;
  }
}

/* Scroll（矢印＋テキスト） */
.c-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 矢印は mask で描画し、文字色（currentColor）に合わせる */
.c-scroll_icon {
  display: block;
  width: 13px;
  height: 15px;
  background-color: currentColor;
  mask: url(../img/arrow.svg) no-repeat center / contain;
  animation: c-scroll 2s ease-in-out infinite;
}
.c-scroll_text {
  font-family: var(--font_en);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .1em;
}
@keyframes c-scroll {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-scroll_icon {
    animation: none;
  }
}

/* 左下に固定して追従する Scroll（セクション左の縦列の位置）
   表示中の画面に is_show、会社案内の下端では --page-scroll-y で一緒に上へ送る（main.js） */
.page-scroll {
  position: fixed;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  translate: 0 var(--page-scroll-y, 0px);
  transition: opacity .4s ease, visibility .4s, color .4s ease;
}
.page-scroll.is_show {
  opacity: 1;
  visibility: visible;
}
@media screen and (min-width: 768px) {
  .page-scroll {
    bottom: 32px;
    left: calc(var(--sidebar-w) + 52px);
  }
}
/* SP：左端の青い縦帯の中に縦書きで置く */
@media screen and (max-width: 767px) {
  .page-scroll {
    bottom: 24px;
    left: calc(var(--section-side-w-sp) / 2);
    translate: -50% var(--page-scroll-y, 0px);
    writing-mode: vertical-rl;
  }
}

/* ブランドのタイトル（信頼のその先へ／TRUST & BEYOND／会社名）：FV・フッターで共通
   位置は使う側（.mv_title / .footer_title）で指定する */
.c-brand_catch {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .15em;
}
.c-brand_copy {
  margin-top: 30px;
  font-family: var(--font_en);
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: .05em;
  position: relative;
  isolation: isolate;
}
/* & は TRUST / BEYOND の後ろに重ねる（位置は & 自身のフォントサイズ基準のem） */
.c-brand_amp {
  position: absolute;
  top: -0.12em;
  left: 1.73em;
  z-index: -1;
  color: var(--color-primary);
  font-family: var(--font_serif);
  font-size: 2em;
  font-weight: 400;
  line-height: 0.8;
}
.c-brand_company {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .1em;
}
.c-brand_company-name {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.c-brand_company-desc {
  display: flex;
  align-items: center;
  font-size: .98em;
}
/* 会社名との区切りの縦線 */
.c-brand_company-desc::before {
  content: "";
  width: 1px;
  height: 1.4em;
  margin-inline: 1.2em;
  background-color: currentColor;
}

@media screen and (max-width: 767px) {
  .c-brand_catch {
    font-size: 1rem;
  }
  .c-brand_copy {
    margin-top: 18px;
  }
  .c-brand_company {
    font-size: 0.625rem;
    margin-top: 16px;
  }
}

/* 英字の大見出し（頭文字だけ Times New Roman のイタリック） */
.c-title {
  color: var(--color-primary);
  font-family: var(--font_en);
  font-size: 5rem; /* 80px */
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.c-title_initial {
  font-family: var(--font_serif);
  font-size: 1.8em;
  font-style: italic;
  font-weight: 400;
  line-height: 0;
}
@media screen and (max-width: 767px) {
  .c-title {
    font-size: 2.5rem;
  }
}

/* ========================================
  コンセプト
======================================== */
/* 全画面のセクションはナビからジャンプした際に上端ぴったりで止める */
main > section:target {
  scroll-margin-block: 0;
}
.concept {
  position: relative;
  isolation: isolate;
  padding-left: var(--sidebar-w);
  background-color: #031d26;
  color: var(--white);
}
/* 背景のスライド：セクション全体（PCサイドバーの下も含めて画面幅いっぱい）に敷く */
.concept_bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
/* 文字を読みやすくするための暗い膜 */
.concept_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: rgb(3 29 38 / .7);
}
/* 表示中の画像は is_current、出ていく画像は is_leave（main.js） */
.concept_bg-item {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.concept_bg-item.is_current {
  z-index: 1;
  opacity: 1;
}
.concept_bg-item.is_leave {
  z-index: 2;
  opacity: 1;
}
.concept_bg-picture {
  position: absolute;
  inset: 0;
}
.concept_bg-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 入ってから出ていき終わるまで（1.6秒＋1.4秒＋1.6秒）一定の速さで拡大し続ける
   出ていく間も同じアニメーションのまま続ける。セクションが見えていないときは止める（main.js で is_bg-play） */
.concept_bg-item:is(.is_current, .is_leave) img {
  animation: concept-bg-zoom 4.6s linear both;
  animation-play-state: paused;
}
.concept.is_bg-play .concept_bg-item img {
  animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
  .concept_bg-item img {
    animation: none !important;
  }
}
/* 入れ替わり：出ていく画像はぼやけながら消え、入ってくる画像はぼやけた状態からはっきりする */
.concept_bg-item.is_leave {
  animation: concept-bg-leave 1.6s cubic-bezier(.4, 0, .2, 1) both;
}
.concept_bg-item.is_current.is_enter {
  animation: concept-bg-enter 1.6s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes concept-bg-zoom {
  from { scale: 1; }
  to { scale: 1.15; }
}
@keyframes concept-bg-leave {
  from { filter: blur(0); opacity: 1; }
  to { filter: blur(20px); opacity: 0; }
}
@keyframes concept-bg-enter {
  from { filter: blur(12px); }
  to { filter: blur(0); }
}
.concept_inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 40px;
}
.concept_body {
  display: flex;
  align-items: flex-start;
  gap: 92px;
  width: 792px;
  position: relative;
}
.concept_catch {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.54;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
  position: relative;
}
.concept_text {
  line-height: 2.7;
  position: relative;
  max-width: 35em;
}

@media screen and (min-width: 768px) {
  .concept_catch {
    top: 18px;
  }
  .concept_text {
    top: 8px;
  }
}

@media screen and (max-width: 767px) {
  .concept {
    padding-left: 0;
  }
  .concept_inner {
    align-items: flex-start;
    /* 上下の余白とgapは画面の高さに連動させ、背の低い端末でも100svhに収める */
    padding: 82px 24px 80px calc(var(--section-side-w-sp) + 24px);
    /* 画面の高さ 812px → 550px（ブラウザの上下のバーが出ている状態の小さい端末）で 82px/80px → 32px */
    padding-block: clamp(32px, calc(19svh - 72px), 82px) clamp(32px, calc(18svh - 66px), 80px);
  }
  .concept_body {
    flex-direction: column;
    gap: 88px;
    /* 812px → 550px で 88px → 28px */
    gap: clamp(28px, calc(23svh - 98px), 88px);
    width: auto;
  }
  .concept_catch {
    align-self: flex-end;
    font-size: 1.7rem;
    /* 812px → 550px で 1.7rem → 1.375rem */
    font-size: clamp(1.375rem, calc(2svh + 0.6875rem), 1.7rem);
    line-height: 1.8;
  }
  .concept_text {
    line-height: 2;
  }
}

/* ========================================
  画面切り替え（FV → コンセプト → 事業案内 → 事業の一覧 → 会社案内）
  html.is_scene のときだけ有効（main.js。動きを減らす設定では付けない）
======================================== */
/* FV ⇄ コンセプトの切り替え中は、コンセプトを画面に固定して FV の上に重ねる（main.js） */
.concept.is_floating {
  position: fixed;
  inset: 0;
  z-index: 150;
}
/* 切り替え時に画面を覆う縦の帯（main.js で生成） */
.scene-curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  pointer-events: none;
}
.scene-curtain_panel {
  flex: 1;
  background-color: #031d26;
  /* 帯の境目に隙間が出ないように */
  box-shadow: 0 0 0 1px #031d26;
  transform: scaleY(0);
}

/* 表示前の状態。画面に is_show が付いたら --scene-delay の順に表示
   （隠すときは帯の下なので、トランジションなしで一瞬で戻す） */
.is_scene :is(
  .mv_title > *, .mv_scroll,
  .concept .c-section-side_sticky, .concept_text > p,
  .business .c-section-side_sticky, .business_title, .business_lead, .business_text, .business_flow,
  .business_slider-arrows, .business_slide,
  .company_inner .c-section-side_sticky, .company_container > .c-title, .company_nav, .company_philosophy
) {
  opacity: 0;
  /* 表示前のずれ。要素ごとに --scene-y で変えられる（マイナスで上から入る） */
  translate: 0 var(--scene-y, 24px);
}
.is_scene .is_show :is(
  .mv_title > *, .mv_scroll,
  .concept .c-section-side_sticky, .concept_text > p,
  .business .c-section-side_sticky, .business_title, .business_lead, .business_text, .business_flow,
  .company_inner .c-section-side_sticky, .company_container > .c-title, .company_nav, .company_philosophy
),
/* 事業の一覧は事業案内の中でスクロールして見えてから表示（main.js） */
.is_scene .business_service.is_show :is(.business_slider-arrows, .business_slide) {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1s ease, translate 1.2s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--scene-delay, 0s);
}
/* コンセプトの縦書きキャッチは上から現れる */
.is_scene .concept_catch {
  clip-path: inset(0 0 100% 0);
}
.is_scene .concept.is_show .concept_catch {
  clip-path: inset(0);
  transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1);
}

/* 表示の順番 */
.mv_title > :nth-child(2) { --scene-delay: .15s; }
.mv_title > :nth-child(3) { --scene-delay: .3s; }
.mv_scroll { --scene-delay: .45s; }
.concept_text > p:nth-child(1) { --scene-delay: .5s; }
.concept_text > p:nth-child(2) { --scene-delay: .62s; }
.concept_text > p:nth-child(3) { --scene-delay: .74s; }
.concept_text > p:nth-child(4) { --scene-delay: .86s; }
.concept_text > p:nth-child(5) { --scene-delay: .98s; }
.concept .c-section-side_sticky { --scene-delay: .8s; }
.business_lead { --scene-delay: .15s; }
.business_text { --scene-delay: .3s; }
.business_flow { --scene-delay: .45s; }
.business .c-section-side_sticky { --scene-delay: .6s; }
.business_slide:nth-child(2) { --scene-delay: .12s; }
.business_slide:nth-child(3) { --scene-delay: .24s; }
/* 事業の一覧のスライドは上下交互に入る（1・3枚目は上から、2枚目は下から） */
/* 100svh：画面の上端・下端の外から入る */
.business_slide { --scene-y: 100svh; }
.business_slide:nth-child(odd) { --scene-y: -100svh; }
.business_slider-arrows { --scene-delay: .4s; }
.company_nav { --scene-delay: .15s; }
.company_philosophy { --scene-delay: .3s; }
.company_inner .c-section-side_sticky { --scene-delay: .5s; }

/* ========================================
  事業案内
======================================== */
.business {
  position: relative;
  padding-left: var(--sidebar-w);
  background-color: var(--white);
  color: var(--black);
}
/* 縦列は事業案内全体で1つ（.business の直下）。PCはサイドバーの分だけ右へ */
@media screen and (min-width: 768px) {
  .business > .c-section-side {
    left: calc(var(--sidebar-w) + 44px);
  }
}
.business_inner {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 160px 40px 160px;
}
/* PC：画面の高さが足りないときは上下の余白を詰めて1画面に収める（高さ740pxくらいまで）
   592px は中身（.business_container）の高さ。912px 以上は 160px のまま */
@media screen and (min-width: 768px) {
  .business_inner {
    padding-block: clamp(74px, calc(50svh - 296px), 160px);
  }
}
.business_container {
  width: 1020px;
  max-width: 100%;
}
/* 「Our Business」は文字数が多いので基本（80px）より小さく */
@media screen and (min-width: 768px) {
  .business_title {
    font-size: 4.375rem; /* 70px */
  }
}
.business_body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 96px;
}
.business_lead {
  font-size: 2.375rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .1em;
}
.business_text {
  max-width: 38.2em;
  margin-top: 56px;
  line-height: 2.4;
  padding-left: 0.7em;
}
.business_text p + p {
  margin-top: 1.85em;
}

/* 右側：3ステップのフロー（グレーの箱の上にカードを重ねる） */
.business_flow {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  width: 366px;
  padding-top: 72px;
}
.business_flow::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  z-index: -1;
  width: 288px;
  height: 352px;
  background-color: #f7f7f7;
  border-radius: 20px;
}
.business_flow-label {
  position: absolute;
  top: 58px;
  right: 48px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
}
.business_flow-list {
  width: 260px;
  padding: 0;
}
.business_flow-item {
  position: relative;
  display: grid;
  place-content: center;
  height: 100px;
  background-color: var(--white);
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  text-align: center;
}
.business_flow-item + .business_flow-item {
  margin-top: 27px;
}
/* カード間の矢印 */
.business_flow-item + .business_flow-item::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 11px;
  height: 12px;
  background: url(../img/arrow-black.svg) no-repeat center / contain;
  translate: -50% 0;
}
.business_flow-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
}
.business_flow-text {
  margin-top: 4px;
  font-size: .94em;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .05em;
}

/* 画面が狭いと中央寄せのコンテンツが左の縦ラベルに重なるので、左の余白を広げる */
@media screen and (max-width: 1199px) and (min-width: 768px) {
  .business_inner {
    padding-left: 100px;
  }
}
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .business_body {
    flex-direction: column;
    align-items: center;
    gap: 64px;
  }
}

@media screen and (max-width: 767px) {
  .business {
    padding-left: 0;
  }
  .business_inner {
    padding: 80px 24px 80px calc(var(--section-side-w-sp) + 24px);
  }
  .business_body {
    flex-direction: column;
    align-items: center;
    gap: 56px;
    margin-top: 48px;
  }
  .business_lead {
    font-size: 1.375rem;
  }
  .business_text {
    margin-top: 32px;
    font-size: .75rem;
    line-height: 2;
    letter-spacing: .05em;
  }
  /* フローは画面幅に合わせて縮める（PCと同じ重なり具合を保つ） */
  .business_flow {
    width: 100%;
    max-width: 342px;
  }
  .business_flow::before {
    width: calc(100% - 54px);
  }
  .business_flow-label {
    right: 28px;
  }
  .business_flow-list {
    width: calc(100% - 80px);
  }
  .business_flow-title {
    font-size: .9375rem;
  }
}

/* ---------- 事業の一覧（カルーセル） ---------- */
.business {
  /* 子要素の cqw を .business の幅（サイドバー分を除いた幅）基準にする */
  container-type: inline-size;
  /* 左右の余白：1枚目の左端・ナビの右端・最後のスライドの右端をイントロ部分のコンテンツ幅にそろえる。
     使う要素ごとに 100% の基準が変わらないよう、% ではなく cqw で計算する */
  --business-gutter: max(40px, calc((100cqw - 1020px) / 2));
  /* スライダーを最後まで送ったときに残す右の余白 */
  --business-slider-end: 80px;
  /* 区切り線の色（白背景なので薄いグレー） */
  --business-line: rgb(0 0 0 / .12);
}
.business_service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 120px var(--business-gutter);
  overflow: hidden;
}
/* splide-core の position: relative を外し、ナビの基準をパネル（.business_service）にする */
.splide.business_slider {
  position: static;
  margin-top: 5.6%;
}
/* splide-core の overflow: hidden を横方向だけにする（表示アニメーションで上下から入るスライドを途中で切らない）
   縦にはみ出した分は .business_service の overflow: hidden で切れる */
.business_slider .splide__track {
  overflow-x: clip;
  overflow-y: visible;
}
/* 右上のナビゲーション */
.business_slider-arrows {
  position: absolute;
  top: 56px;
  right: var(--business-gutter);
  display: flex;
  gap: 12px;
}
.business_slider-arrow {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding: 0;
  color: var(--black);
  background: none;
  border: 1px solid #888;
  border-radius: 50%;
  cursor: pointer;
  transition: color .3s, border-color .3s, background-color .3s;
}
.business_slider-arrow:disabled {
  color: #ccc;
  border-color: #e5e5e5;
  cursor: default;
}
@media (hover: hover) {
  .business_slider-arrow:not(:disabled):hover {
    color: var(--white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
  }
}
/* 下向きの矢印SVGを回転させて左右に使う */
.business_slider-arrow-icon {
  display: block;
  width: 11px;
  height: 12px;
  background-color: currentColor;
  mask: url(../img/arrow-black.svg) no-repeat center / contain;
}
.splide__arrow--prev .business_slider-arrow-icon {
  rotate: 90deg;
}
.splide__arrow--next .business_slider-arrow-icon {
  rotate: -90deg;
}

.business_slide {
  position: relative;
}
/* スライド間の区切り線（gap 80px の中央） */
.business_slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  bottom: 0;
  width: 1px;
  background-color: var(--business-line);
}
.business_slide-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .05em;
}
.business_slide-lead {
  margin-top: 28px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .05em;
}
.business_slide-text {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: .08em;
}
.business_slide-img {
  display: block;
  width: 100%;
  margin-top: 42px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .business_slide {
    min-width: 328px;
  }
  /* 画面の高さが足りないときは画像を低くして1画面に収める（最小160px。はみ出す分は object-fit で切り抜き）
     495px：上下の余白＋スライドの文字部分、5.6cqw：.business_slider の margin-top */
  .business_slide-img {
    max-height: max(160px, calc(100svh - 495px - 5.6cqw));
  }
}

@media screen and (max-width: 1199px) and (min-width: 768px) {
  .business {
    --business-gutter: 100px;
  }
}

@media screen and (max-width: 767px) {
  .business {
    --business-gutter: 24px;
    --business-slider-end: 24px;
  }
  .business_service {
    padding: 32px 0 72px calc(var(--section-side-w-sp) + var(--business-gutter));
  }
  /* SPは右上にハンバーガーがあるので、ナビはスライダーの上に置く */
  .business_slider-arrows {
    position: static;
    justify-content: flex-end;
    margin: 0 var(--business-gutter) 32px 0;
  }
  .business_slider-arrow {
    width: 48px;
    height: 48px;
  }
  .business_slide::after {
    right: -20px;
  }
  .business_slide-title {
    font-size: 1rem;
  }
  .business_slide-lead {
    margin-top: 20px;
    font-size: .875rem;
  }
  .business_slide-text {
    margin-top: 12px;
    font-size: .75rem;
    line-height: 2;
  }
  .business_slide-img {
    margin-top: 32px;
  }
}

/* ========================================
  会社案内
======================================== */
.company {
  --company-line: #e5e5e5;
  --company-nav-top: 100px;
  /* .company_inner の下の余白（追従ナビの止まる位置の計算にも使う） */
  --company-pad-bottom: 140px;
  padding-left: var(--sidebar-w);
  background-color: var(--white);
  color: var(--black);
}
.company_inner {
  position: relative;
  display: flex;
  justify-content: center;
  /* 左は縦列（ラベル・Scroll）と追従ナビが重ならない幅を確保 */
  padding: 130px 40px var(--company-pad-bottom);
}
.company_container {
  width: 1000px;
  max-width: 100%;
}
.company_body {
  display: flex;
  margin-top: 136px;
}

/* 左：追従ナビ（PC） */
.company_nav {
  flex-shrink: 0;
  /* .company_body の幅に連動（1000px のとき 248px） */
  width: 24.8%;
  min-width: 180px;
  max-width: 248px;
}
.company_nav-list {
  position: sticky;
  top: var(--company-nav-top);
  /* 画面の下端から下の余白の分だけ上までの高さにして、会社案内の下端が画面の下端に来たところで止める
     （縦列のラベルと同じタイミング） */
  height: calc(100vh - var(--company-nav-top) - var(--company-pad-bottom));
  height: calc(100svh - var(--company-nav-top) - var(--company-pad-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}
.company_nav-link {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: #999;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  transition: color .3s;
}
.company_nav-link::before {
  content: "";
  position: absolute;
  top: .25em;
  bottom: .25em;
  left: 0;
  width: 2px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity .3s;
}
.company_nav-item.is_current .company_nav-link {
  color: var(--black);
}
.company_nav-item.is_current .company_nav-link::before {
  opacity: 1;
}
@media (hover: hover) {
  .company_nav-link:hover {
    color: var(--black);
  }
}

/* 右：コンテンツ（ナビとの間に縦の区切り線）
   左の余白はブロックごとに付け、ブロック上下の線を縦線につなげる */
.company_content {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--company-line);
}
.company_block {
  /* .company_content の幅に連動（752px のとき最大の 98px） */
  padding-left: min(13.1%, 98px);
  padding-block: 108px;
  /* ナビからジャンプしたとき、ブロックの見出しが追従ナビの高さにそろうように */
  scroll-margin-top: calc(var(--company-nav-top) - 88px);
}
.company_block:first-child {
  padding-top: 0;
  scroll-margin-top: var(--company-nav-top);
}
.company_block:last-child {
  padding-bottom: 0;
}
.company_message {
  border-block: 1px solid var(--company-line);
}
/* ブロック見出し：PCはナビが見出し代わりなので視覚的に隠す（読み上げは残す） */
.company_heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.company_catch {
  /* 画面幅 768px で 1.625rem（26px）→ 1440px で 2rem（32px） */
  font-size: clamp(1.625rem, 1.196rem + .893vw, 2rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .08em;
}
.company_text {
  margin-top: 50px;
  line-height: 2.4;
  letter-spacing: .1em;
}
.company_text p + p {
  margin-top: 2.4em;
}
.company_sign {
  margin-top: 40px;
  text-align: right;
}
.company_sign img {
  width: 224px;
}

/* 会社概要の表 */
.company_table {
  margin: 0;
  border-top: 1px solid var(--company-line);
  font-size: .875rem;
  line-height: 1.8;
  letter-spacing: .05em;
}
.company_table-row {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--company-line);
}
.company_table dt {
  flex-shrink: 0;
  width: 112px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.company_table dd {
  margin: 0;
  font-weight: 400;
}

/* 画面が狭いと中央寄せのコンテンツが左の縦列（ラベル・Scroll）に重なるので、左の余白を広げる */
@media screen and (max-width: 1439px) and (min-width: 768px) {
  .company_inner {
    padding-left: 160px;
  }
}

@media screen and (max-width: 767px) {
  .company {
    padding-left: 0;
  }
  .company_inner {
    display: block;
    padding: 80px 28px 80px calc(var(--section-side-w-sp) + 24px);
  }
  .company_body {
    display: block;
    margin-top: 48px;
  }
  /* SPは追従させず、各ブロックの見出しを表示する */
  .company_nav {
    display: none;
  }
  .company_content {
    border-left: none;
  }
  .company_block {
    padding-left: 0;
    padding-block: 56px;
  }
  .company_heading {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    margin-bottom: 32px;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .1em;
  }
  .company_heading::before {
    content: "";
    width: 3px;
    height: 1em;
    background-color: var(--color-primary);
  }
  .company_catch {
    font-size: 1.25rem;
    line-height: 1.7;
    letter-spacing: .05em;
  }
  .company_text {
    margin-top: 32px;
    font-size: .75rem;
    line-height: 2;
  }
  .company_sign img {
    width: 170px;
  }
  .company_table-row {
    gap: 4px;
    padding: 14px 0;
  }
  .company_table {
    font-size: .75rem;
  }
  .company_table dt {
    width: 94px;
  }
}

/* ========================================
  お問い合わせ
======================================== */
.contact {
  --contact-line: rgb(255 255 255 / .4);
  --contact-error: #ffc2c2;
  padding-left: var(--sidebar-w);
  background-color: var(--color-primary);
  color: var(--white);
}
.contact_inner {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 180px 40px 150px;
}
.contact_container {
  width: 1000px;
  max-width: 100%;
  margin-inline: auto;
}
.contact_title {
  color: var(--white);
}
.contact_lead {
  margin-top: 40px;
  font-size: .875rem;
  line-height: 2;
  letter-spacing: .08em;
}

/* ---------- フォーム ---------- */
.form {
  margin-top: 60px;
}
.form_note {
  font-size: .75rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .08em;
  text-align: right;
}
.form_row {
  margin-top: 18px;
}
.form_note + .form_row,
.form_note + .form_error-global {
  margin-top: 16px;
}
.form_fieldset {
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: none;
}
.form_label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 12px;
  padding: 0;;
  line-height: 1.5;
  letter-spacing: .08em;
}
.form_label-note {
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .05em;
}
.form_input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  color: var(--black);
  background-color: var(--white);
  border: 2px solid transparent;
  border-radius: 0;
  /*font-size: max(16px, .875rem);*/ /* iOSでフォーカス時に拡大されないよう16px以上 */
  font-size: .875rem;
  letter-spacing: .05em;
  appearance: none;
  transition: border-color .3s;
}
.form_textarea {
  height: 140px;
  padding-block: 12px;
  line-height: 1.8;
  resize: vertical;
  margin-top: 20px;
}
.form_input::placeholder {
  color: #c7c7c7;
}
.form_input:focus-visible {
  outline: none;
  border-color: #7fb0ec;
}
.form_input[aria-invalid="true"] {
  border-color: var(--contact-error);
}
.form_error {
  margin-top: 8px;
  color: var(--contact-error);
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .05em;
}
.form_error-global {
  padding: 12px 16px;
  border: 1px solid var(--contact-error);
}
/* ハニーポット：画面外に出す（display: none だとボットが無視するため） */
.form_hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ラジオボタン・チェックボックス（本物の input は透明にして上に重ねる） */
.form_radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 5px;
}

.form_radio,
.form_check {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}
.form_radio {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .05em; 
}

.form_radio input,
.form_check input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  translate: 0 -50%;
  cursor: pointer;
}
.form_radio-text::before,
.form_check-text::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--white);
  transition: background-color .2s, box-shadow .2s;
}
.form_radio-text,
.form_check-text {
  display: inline-flex;
  align-items: center;
}
.form_radio-text {
  gap: 10px;
}

.form_radio-text::before {
  border-radius: 50%;
}
.form_radio input:checked + .form_radio-text::before {
  background-color: var(--white);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.form_check input,
.form_check-text::before {
  width: 24px;
  height: 24px;
  border-radius: 2px;
}

.form_check input:checked + .form_check-text::before {
  background: var(--white) url(../img/check.svg) no-repeat center / 14px 11px;
}
.form_radio input:focus-visible + .form_radio-text::before,
.form_check input:focus-visible + .form_check-text::before {
  outline: 2px solid #7fb0ec;
  outline-offset: 2px;
}
.form_check input[aria-invalid="true"] + .form_check-text::before {
  border-color: var(--contact-error);
}

.form_agree {
  margin-top: 58px;
  text-align: center;
}
.form_check {
  letter-spacing: 0.08em;
}
/* チェックボックスの文言の中の「プライバシーポリシー」（クリックでモーダル） */
.form_privacy-btn {
  position: relative;
  z-index: 1;
  padding: 0;
  color: inherit;
  background: none;
  border: none;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: .3em;
  cursor: pointer;
  transition: opacity .3s;
  padding-left: 12px;
}
.form_submit {
  margin-top: 60px;
  text-align: center;
}
.form_submit-btn {
  width: 240px;
  height: 70px;
  color: var(--color-primary);
  background-color: var(--white);
  border: 1px solid var(--white);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
@media (hover: hover) {
  .form_privacy-btn:hover {
    opacity: .6;
  }
  .form_submit-btn:hover {
    color: var(--white);
    background-color: transparent;
  }
}

/* ---------- お電話でのお問い合わせ ---------- */
.contact_tel {
  display: flex;
  align-items: center;
  margin-top: 110px;
  padding: 30px 0 36px;
  border: 1px solid var(--contact-line);
  border-radius: 10px;
}
.contact_tel-label {
  width: 46%;
  font-size: 1.125rem;
  letter-spacing: .1em;
  text-align: right;
  padding-right: 5%;
}
.contact_tel-body {
  width: 54%;
  padding-left: 6%;
  border-left: 1px solid var(--contact-line);
}
.contact_tel-number {
  font-family: var(--font_en);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
}
.contact_tel-hours {
  margin-top: 4px;
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .1em;
}

/* 画面が狭いと中央寄せのコンテンツが左の縦列（ラベル・Scroll）に重なるので、左の余白を広げる */
@media screen and (max-width: 1439px) and (min-width: 768px) {
  .contact_inner {
    padding-left: 160px;
  }
}
@media screen and (min-width: 768px) {
  /* PCでは電話番号はリンクとして目立たせない */
  .contact_tel-number {
    pointer-events: none;
  }
}

@media screen and (max-width: 767px) {
  .contact {
    padding-left: 0;
  }
  .contact_inner {
    display: block;
    padding: 80px 24px 90px calc(var(--section-side-w-sp) + 24px);
  }
  /* SPは縦帯と背景が同じ色なので、縦帯の右端に線を引いて区切る */
  .contact_inner > .c-section-side {
    border-right: 1px solid var(--contact-line);
  }
  .contact_lead {
    margin-top: 28px;
  }
  .form {
    margin-top: 48px;
  }
  .form_note {
    text-align: left;
  }
  .form_row {
    margin-top: 24px;
  }
  .form_label {
    gap: 4px 12px;
    margin-bottom: 8px;
  }
  .form_input {
    height: 44px;
    padding-inline: 12px;
  }
  .form_textarea {
    height: 180px;
  }
  .form_radios {
    flex-direction: column;
    gap: 12px;
  }
  .form_agree {
    margin-top: 40px;
  }
  .form_check {
    font-size: .75rem;
  }
  .form_submit {
    margin-top: 50px;
  }
  .form_submit-btn {
    width: 200px;
    height: 60px;
  }
  .contact_tel {
    flex-direction: column;
    gap: 0;
    margin-top: 64px;
    padding: 24px 28px;
    border-radius: 5px;
  }
  .contact_tel-label,
  .contact_tel-body {
    width: auto;
  }
  .contact_tel-label {
    font-size: 0.875rem;
  }
  .contact_tel-body {
    padding: 12px 0 0;
    border-left: none;
    text-align: center;
  }
  .contact_tel-number {
    font-size: 1.75rem;
  }
  .contact_tel-hours {
    font-size: .625rem;
    letter-spacing: 0;
    margin-top: 0;
  }
}

/* ========================================
  プライバシーポリシー（モーダル）
======================================== */
html.is_modal-open {
  overflow: hidden;
}
.privacy {
  width: calc(100% - 160px);
  max-width: 860px;
  max-height: none;
  padding: 0;
  color: var(--black);
  background-color: var(--white);
  border: none;
  overflow: visible;
}
.privacy::backdrop {
  background-color: rgb(0 20 50 / .6);
}
.privacy[open] {
  animation: privacy-fade .3s ease;
}
@keyframes privacy-fade {
  from { opacity: 0; }
}
.privacy_inner {
  max-height: calc(100svh - 120px);
  padding: 80px 80px 64px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.privacy_title {
  font-size: 3rem;
}
.privacy_heading {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
}
.privacy_body {
  margin-top: 48px;
  font-size: .8125rem;
  line-height: 2;
  letter-spacing: .05em;
}
.privacy_block + .privacy_block {
  margin-top: 2.5em;
}
.privacy_block-title {
  margin-bottom: 1em;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}
.privacy_list {
  padding: 0;
}
/* 右上の閉じるボタン（白の×） */
.privacy_close {
  position: absolute;
  top: 0;
  right: -64px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity .3s;
}
.privacy_close::before,
.privacy_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 1px;
  background-color: var(--white);
  translate: -50% -50%;
  rotate: 45deg;
}
.privacy_close::after {
  rotate: -45deg;
}
@media (hover: hover) {
  .privacy_close:hover {
    opacity: .6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .privacy[open] {
    animation: none;
  }
}

@media screen and (max-width: 767px) {
  .privacy {
    width: calc(100% - 32px);
    margin-top: 72px;
  }
  .privacy_inner {
    max-height: calc(100svh - 104px);
    padding: 40px 24px 32px;
  }
  .privacy_title {
    font-size: 2rem;
  }
  .privacy_heading {
    margin-top: 12px;
    font-size: .875rem;
  }
  .privacy_body {
    margin-top: 32px;
    font-size: .75rem;
  }
  /* SPはボックスの右上の外（上側）に置く */
  .privacy_close {
    top: -52px;
    right: 0;
  }
}

/* ========================================
  フッター（背景は透明にして背景動画を見せる）
======================================== */
.footer {
  position: relative;
  height: 100vh;
  height: 100svh;
  color: var(--white);
}
.footer_inner {
  position: relative;
  height: 100%;
  /* 左：PAGE TOP の列＋余白 / 右：コピーライトの右端 */
  margin-inline: calc(var(--sidebar-w) + 6%) 16%;
}
.footer_title {
  position: absolute;
  bottom: 11%;
  left: 0;
}
.footer_copyright {
  position: absolute;
  right: 0;
  bottom: 12%;
  font-family: var(--font_en);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .03em;
}
.footer_copyright small {
  font-size: inherit;
}
/* スクロールに合わせて中身が下からせり上がる
   main.js が --footer-progress を 0（フッターが画面の下から入り始め）→ 1（ページの一番下）で更新する。
   50svh：入り始めのときに中身を下へずらしておく量 */
.footer {
  overflow: hidden;
}
.footer_inner,
.footer_pagetop {
  translate: 0 calc((1 - var(--footer-progress, 1)) * 50svh);
}
/* 左端の列（PCのサイドバーと同じ幅）：右に区切り線、下に PAGE TOP */
.footer_pagetop {
  position: absolute;
  bottom: 48px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: var(--sidebar-w);
  font-family: var(--font_en);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .1em;
  transition: opacity .3s;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sidebar-w);
  width: 1px;
  background-color: rgb(255 255 255 / .3);
}
.footer_pagetop-text {
  writing-mode: vertical-rl;
}
.footer_pagetop-icon {
  display: block;
  width: 13px;
  height: 15px;
  background-color: currentColor;
  mask: url(../img/arrow.svg) no-repeat center / contain;
  rotate: 180deg;
}
@media (hover: hover) {
  .footer_pagetop:hover {
    opacity: .6;
  }
}

/* SP：左端の列は各セクションの青い縦帯と同じ幅。タイトルとコピーライトは残りの幅の中央 */
@media screen and (max-width: 767px) {
  .footer_inner {
    margin-inline: var(--section-side-w-sp) 0;
  }
  .footer::before {
    left: var(--section-side-w-sp);
  }
  .footer_title {
    bottom: 16%;
    left: 50%;
    width: max-content;
    translate: -50% 0;
  }
  .footer_copyright {
    right: auto;
    bottom: 32px;
    left: 50%;
    font-size: .5625rem;
    white-space: nowrap;
    translate: -50% 0;
  }
  .footer_pagetop {
    bottom: 32px;
    width: var(--section-side-w-sp);
    font-size: .625rem;
  }
}

/* ========================================
  サンクスページ
======================================== */
/* コピーライトのみのフッター（背景はプライマリーカラー） */
.footer-simple {
  height: auto;
  padding: 24px 16px;
  background-color: var(--color-primary);
  text-align: center;
}
.footer-simple::before {
  content: none;
}
.footer-simple .footer_copyright {
  position: static;
  translate: none;
}

/* 本文＋フッターで1画面：本文が残りの高さを埋める（内容が多いときはそのまま伸びる） */
.page-thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.page-thanks main {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.thanks {
  display: flex;
  flex: 1;
  flex-direction: column;
  background-color: var(--white);
  color: var(--black);
}
.thanks_inner {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
}
.thanks_container {
  width: 880px;
  max-width: 100%;
  text-align: center;
}
.thanks_heading {
  margin-top: 48px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .1em;
}
.thanks_text {
  margin-top: 40px;
  line-height: 2.2;
  letter-spacing: .1em;
}
.thanks_text p + p {
  margin-top: 1em;
}
.thanks_note {
  margin-top: 32px;
  color: #666;
  font-size: .75rem;
  line-height: 2;
  letter-spacing: .05em;
}
.thanks_note a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.thanks_back {
  margin-top: 64px;
}
/* お問い合わせの送信ボタンと同じ形（色は反転） */
.thanks_back-btn {
  display: inline-grid;
  place-items: center;
  width: 240px;
  height: 56px;
  color: var(--white);
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 28px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .15em;
  transition: color .3s, background-color .3s;
}
@media (hover: hover) {
  .thanks_back-btn:hover {
    color: var(--color-primary);
    background-color: var(--white);
  }
}

@media screen and (min-width: 768px) {
  .thanks_note a {
    pointer-events: none;
    text-decoration: none;
  }
}

@media screen and (max-width: 767px) {
  .thanks_inner {
    padding: 80px 24px;
  }
  .thanks_heading {
    margin-top: 32px;
    font-size: 1.125rem;
  }
  .thanks_text {
    margin-top: 28px;
    font-size: .8125rem;
    line-height: 2;
    letter-spacing: .05em;
    text-align: left;
  }
  .thanks_note {
    font-size: .6875rem;
    text-align: left;
  }
  .thanks_back {
    margin-top: 48px;
  }
}
