/* =========================================
  COMPANY (anchor version)
  ※ company.css だけ編集可能 前提
========================================= */
:root{
  --lapone-orange: #ff9700;
  --ink: #00000A;
  --company-text: #111;
  --company-muted: rgba(0,0,0,.65);
}



/* =========================
  Header color switch
========================= */
.header{
  --header-fg: #fff; /* 黒背景上のデフォルト */
}

.header.is-on-light{
  --header-fg: #000; /* 白背景上 */
}
section, main{
  background: #fff;
}
/* 文字色 */
.header--right,
.header--right__sns .nav,
.header .drawer__btn .drawer__btn-inner span:first-child{
  color: var(--header-fg) !important;
}

/* ハンバーガー線 */
.header .drawer__btn .drawer__btn-inner span{
  background: var(--header-fg) !important;
}

/* 言語メニューのトグル側 */
.wovn-languages,
.wovn-languages .nav{
  color: var(--header-fg) !important;
}

/* もしドロップダウン自体の背景が白固定なら、ここは黒固定の方が安全 */
.wovn-languages.visible .nav-dropdown .list--language li{
  color: #000 !important;
}

.wovn-languages .nav-dropdown .list--language li{
  color: currentColor !important;
}
/* 通常文字：13〜15px帯 */
.section--list.page--future.company{
  font-size: 22px;
  color: var(--company-text);
  background: #fff;
}
@media (max-width: 640px){
  .section--list.page--future.company{ font-size: 13px; }
}

/* 通常文字：13〜15px帯 */
.section--list.page--future.company{
  font-size: 22px;
  color: var(--company-text);
}
@media (max-width: 640px){
  .section--list.page--future.company{ font-size: 13px; }
}

/* =========================
  COMPANY Hero (Title + Breadcrumb)
========================= */
.company-hero{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 18px 18px;
}

.company-hero__title{
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.company-hero__en{
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.05;
}

.company-hero__jp{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .75;
}

.company-hero__breadcrumb{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.company-hero__home{
  text-decoration: none;
  color: inherit;
  opacity: .7;
  transition: .2s ease;
}
.company-hero__home:hover{
  opacity: 1;
  text-decoration: underline;
}

/* 現在地：矢印 */
.company-hero__current{
  position: relative;
  padding-left: 22px;
  font-weight: 700;
  opacity: .9;
}
.company-hero__current::before{
  content: "";
  display: inline-block;
  height: 0.65rem;
  width: 0.65rem;
  border-top: 1px solid #00000A;
  border-right: 1px solid #00000A;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5rem;
  margin: auto;
}

@media (max-width: 640px){
  .company-hero{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .company-hero__en{ font-size: 34px; }
  .company-hero__breadcrumb{ align-self: flex-start; }
}

/* =========================
  Tab (anchor links)
========================= */
.company-tab-header{
  display: flow;
  gap: 0;
  margin-top: 28px;
  margin-bottom: 50px;
}

.company-tab-link{
  flex: 1;
  padding: 16px 90px 16px 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;

  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: .2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.25); /* 常時うっすら */
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.company-tab-link::after{
  content:"";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .7;
  margin-top: -2px;
  transition: transform .22s cubic-bezier(.2,.9,.2,1), opacity .22s ease;
  transform: translateY(0) rotate(45deg);
  transform-origin: center;
}

/* アクティブは少し強調 */
.company-tab-link.is-active::after{
  opacity: 1;
}

/* hoverで“ぴょこん” */
.company-tab-link:hover::after{
  transform: translateY(3px) rotate(45deg);
}

/* キーボード操作でも気持ちよく */
.company-tab-link:focus-visible::after{
  transform: translateY(3px) rotate(45deg);
}

.company-tab-link + .company-tab-link{
  margin-left: -1px;
}

.company-tab-link:hover{
  border-bottom-color: #000;
  width: fit-content;
  text-decoration-color: rgba(0,0,0,.9);
}
.company-tab-link.is-active{
  text-decoration-color: rgba(0,0,0,1);
}

@media (max-width: 640px){
  .company-tab-header{
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
       margin-top: 20px;
    margin-bottom: 10px;
  }
  .company-tab-link{
    flex: 0 0 auto; /* 伸びない */
    white-space: nowrap;
    padding: 16px 18px;
  }
}

/* アンカーでのズレ対策（固定ヘッダー保険） */
.company-section{
  scroll-margin-top: 120px;
}

/* =========================
  旧タブ切替UIの残骸を無効化（事故防止）
========================= */
.tab-contents-wrapper{ display: none !important; }
.tab-content{ display: block !important; }

/* =========================
  ABOUT (company-info)
========================= */
.company-info{
  background: transparent;
}

.company-info__row{
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 34px;
  padding: 20px 18px 20px;
}

.company-info__label{
  color: var(--company-text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
}

.company-info__data{
  color: var(--company-text);
  font-size: 14px;
  line-height: 1.9;
}

.company-info__data--long{
  color: var(--company-muted);
}

@media (max-width: 900px){
  .company-info__row{
    grid-template-columns: 120px 1fr;
    column-gap: 18px;
  }
}
@media (max-width: 640px){
  .company-info__row{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}

/* =========================
  HISTORY v2 (title row + sticky rail starts at 2025)
========================= */
.company-history-v2{
  padding-top: 110px;
}
.company-history-v2__body{
  grid-column: 2;
  grid-row: 2;
}
.company-history-v2__inner{
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto 1fr; /* ← 1行目: title / 2行目: rail+body */
  align-items: start;
}

/* 追従でオレンジ化（JSが付けるクラス） */
.company-history-v2__yearBlock.is-hot .company-history-v2__year,
.company-history-v2__yearBlock.is-hot .company-history-v2__date,
.company-history-v2__yearBlock.is-hot .company-history-v2__text{
  color: var(--lapone-orange);
}

.company-history-v2__title{
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 18px 2vw;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 38px;
}

.company-history-v2__yearBlock{
  padding: 10px 18px 18px 0px;
}
.company-history-v2__year{
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
}

.company-history-v2__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.company-history-v2__item{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
  font-size: 14px;
  line-height: 1.7;
}

.company-history-v2__date{
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.company-history-v2__text{
  letter-spacing: .01em;
}


@media (max-width: 640px){
  .company-history-v2__inner{
    grid-template-columns: 14px 1fr;
  }
  .company-history-v2__year{ font-size: 24px; }
  .company-history-v2__item{
    grid-template-columns: 92px 1fr;
    gap: 12px;
    font-size: 13px;
  }
}

/* =========================
  PHILOSOPHY (Black section only)
========================= */
.company-section--philosophy .company-philo{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  color: #fff;
}

.company-philo__inner{
  padding: 80px 9.38vw 110px;
}

/* HERO */
.philo-hero{
  display: grid;
  /* grid-template-columns: 1.05fr .95fr;
  gap: 6vw; */
  align-items: start;
}

.philo-block{ margin-bottom: 80px; }

.philo-kicker{
  font-weight: 700;
  font-size: clamp(70px, 6vw, 186px);
  line-height: .92;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: .02em;
}

.philo-copy{
  margin: 0;
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.55;
  font-weight: 700;
  color: #fff;
}

.philo-hero__img{
  min-height: 520px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% 30%, rgba(255,151,0,.18), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}

.philo-section-title{
  margin: 10px 0 50px;
  font-size: 45px;
  font-weight: 800;
  color: #fff;
}

/* Cards */
.philo-cards{
  display: grid;
  gap: 50px;
}

.philo-card{
  max-width: 1100px;           /* 好みで */
  width: 100%;
  justify-self: start;  
  display: flex;
  align-items: flex-start;
  gap: 40px; 
}
.philo-card:nth-child(even){
  justify-self: end;
}


.philo-card__body{
  position: relative;
  color: #fff;
  padding: 0; /* 以前のpadding-left削除 */
  max-width: 640px;
  opacity: .72;
  transform: translateY(0);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
}

.philo-card__num{
  position: static; /* ← absoluteやめる */
  flex-shrink: 0;
  font-size: clamp(64px, 15vw, 250px);
    line-height: 1;
    font-weight: bold;

    color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.95);
  text-stroke: 2px rgba(255,255,255,.95);
  transform: translateY(0) scale(1);
  transition:
    transform .45s cubic-bezier(.2,.9,.2,1),
    color .25s ease,
    -webkit-text-stroke-color .25s ease;
  will-change: transform;
}

/* “中央の主役”だけ：白塗り＋少し飛び出る */
.philo-card.is-focus .philo-card__num{
  color: #fff;
  -webkit-text-stroke-color: transparent;
  transform: translateY(-10px) scale(1.08);
}

.philo-card:nth-child(even) .philo-card__num{
  left: auto;
  right: 100px;          /* 数字の位置（必要なら調整） */
}
.philo-card:nth-child(even) .philo-card__body{
  padding-left: 0;
  padding-right: 0px;  /* 数字ぶんの余白 */
  margin-left: auto;     /* ← これで“中央から始まる”感じになる */
  margin-right: 0;
  text-align: left;      /* 念のため */
}

.philo-card__title{
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.philo-card__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: .02em;
  opacity: .95;
}

.philo-card__title{ opacity: .9; }
.philo-card__text { opacity: .78; }

@media (max-width: 640px){
  .philo-card{ justify-self: stretch; }
  .philo-card:nth-child(even) .philo-card__num{
    right: auto;
    left: 14px;
  }
  .philo-card:nth-child(even) .philo-card__body{
    padding-right: 0;
    padding-left: 0px;
    margin-left: 0;
  }
.company-philo__title{
    font-size: 28px !important;
  }

  .company-history-v2__title{
    font-size: 28px;
  }
  .philo-section-title{
    font-size: 28px;
    margin: 10px 0 25px;
  }
}



/* フォーカス：白く・少し前に出る */
.philo-card.is-focus .philo-card__body{
  opacity: 1;
  transform: translateY(-10px);
}

/* フォーカス時は文字もくっきり白 */
.philo-card.is-focus .philo-card__title,
.philo-card.is-focus .philo-card__text{
  opacity: 1;
  color: #fff;
}

/* フォーカス時：タイトル→本文でほんの少し遅らせる */
.philo-card.is-focus .philo-card__title{
  transition: opacity .25s ease;
}
.philo-card.is-focus .philo-card__text{
  transition: opacity .35s ease;
  transition-delay: .06s;
}

/* =========================
  Scroll animations（目立つように“遅れ”強め）
========================= */
.js-inview .js-inview__item{
  opacity: 0;
  transform: translateX(-34px);
  transition: transform 1.05s cubic-bezier(.2,.8,.2,1), opacity .85s ease;
  transition-delay: .18s;
  will-change: transform, opacity;
}
.js-inview.is-inview .js-inview__item{
  opacity: 1;
  transform: translateX(0);
}

/* カード：先に浮く → 文字はさらに遅れて */
.js-card{
  opacity: 0;
  transform: translateY(26px);
  transition: transform 1.05s cubic-bezier(.2,.8,.2,1), opacity .85s ease;
  will-change: transform, opacity;
}
.js-card.is-inview{
  opacity: 1;
  transform: translateY(0);
  align-items: anchor-center;
}

.js-card .philo-card__body{
  opacity: 0;
  transform: translateY(14px);
  transition: transform .95s cubic-bezier(.2,.8,.2,1), opacity .75s ease;
  transition-delay: .30s;
}
.js-card.is-inview .philo-card__body{
  opacity: 1;
  transform: translateY(0);
  align-items: anchor-center;
}

/* 低モーション */
@media (prefers-reduced-motion: reduce){
  .js-inview .js-inview__item,
  .js-inview--fadeUp,
  .js-card,
  .js-card .philo-card__body{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Responsive PHILO */
@media (max-width: 960px){
  .company-philo__inner{ padding: 56px 6.5vw 80px; }
  .philo-hero{ grid-template-columns: 1fr; gap: 28px; }
  .philo-hero__img{
    min-height: 320px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 14%);
  }
}
@media (max-width: 640px){
  .philo-card{ padding: 22px 0px; }
  .philo-card__num{ left: 14px; top: 14px; }
}

/* =========================
  PHILOSOPHY title + black bg full-bleed
========================= */

/* セクション外枠を画面幅いっぱいに */
#philosophy{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: #000;
  color: #fff;
  margin-top: 110px;
}

/* 中身は読みやすい幅で余白を持つ */
#philosophy .company-philo{
  background: transparent; /* 親が黒なので中は透明でOK */
  color: inherit;
}

#philosophy .company-philo__inner{
  padding: 80px 10.5vw 110px; /* 既存があれば上書き */
}

/* タイトル */
.company-philo__header{
  margin: 0 0 28px;
}

.company-philo__title{
  margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 38px;
}

.company-philo__subtitle{
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: .08em;
  opacity: .8;
}

/* =========================
  VISION layout (horizontal + center start)
========================= */

.philo-block--vision{
  display: flex;
  justify-content: end;  /* ブロック全体を中央に */
  align-items: flex-start;
  gap: 48px;
  text-align: left;          /* テキスト自体は左揃え */
}

/* 横並びでも幅を整える */
.philo-block--vision .philo-kicker{
  flex: 0 0 auto;
}

.philo-block--vision .philo-copy{
  max-width: 520px;
}

/* SPでは縦に戻す（崩れ防止） */
@media (max-width: 900px){
  .philo-block--vision{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
/* =========================
  VISION：右からスライド
========================= */

/* 初期位置（右側にオフセット） */
.philo-block--vision .js-inview__item{
  transform: translateX(40px);
}

/* 表示時 */
.philo-block--vision.is-inview .js-inview__item{
  transform: translateX(0);
}

.philo-block--vision .philo-kicker{
  transition-delay: .12s;
}

.philo-block--vision .philo-copy{
  transition-delay: .28s;
}

@media screen and (min-width: 961px) {
    body:not(.page--home) .wrap {
        padding-bottom: 250px;
    }
}

/* PHILOだけ：inviewは下から */
.company-section--philosophy .js-inview .js-inview__item{
  opacity: 0;
  transform: translateY(34px);
  transition: transform 1.05s cubic-bezier(.2,.8,.2,1), opacity .85s ease;
  transition-delay: .18s;
  will-change: transform, opacity;
}
.company-section--philosophy .js-inview.is-inview .js-inview__item{
  opacity: 1;
  transform: translateY(0);
}

/* 偶数だけ：本文→数字 の順にする（数字を右へ） */.philo-card
.philo-card:nth-child(even) .philo-card__body{ order: 1; }
.philo-card:nth-child(even) .philo-card__num { order: 2; }

@media (max-width: 640px){
  .philo-card{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px){

  .philo-card{
    flex-direction: column;   /* 縦並び */
    align-items: flex-start;  /* 左寄せ */
    gap: 14px;
    display: flow;
  
  }

  .philo-card__num{
    order: -1;        /* bodyより上に */
    align-self: flex-start;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .95);
  }

  .philo-card__body{
    margin-left: 0;
    padding: 0;
  }
  .js-card.is-inview {
    align-items: flex-start; /* 追従も左寄せ */
  }
}


/* =========================
  HISTORY (v1) : 1年単位で色変化
  company-history__item に is-hot が付いたらオレンジ化
========================= */
.company-history__item.is-hot .company-history__year,
.company-history__item.is-hot .company-history__cate,
.company-history__item.is-hot .company-history__event{
  color: var(--lapone-orange);
}

/* もし service.css 側で hover などで色指定が強い場合の保険 */
.company-history__item.is-hot .company-history__year,
.company-history__item.is-hot .company-history__cate,
.company-history__item.is-hot .company-history__event{
  color: var(--lapone-orange) !important;
}