@charset "UTF-8";

:root {
  interpolate-size: allow-keywords;
  --bl: #000;
  --gray-02: #ccc;
  --grad-01: linear-gradient(90deg, var(--MAIN) 0%, var(--LMAIN) 100%);
  --grad-01-rev: linear-gradient(0deg, var(--MAIN) 0%, var(--LMAIN) 100%);
  --grad-02: linear-gradient(90deg, var(--ACC) 0%, var(--LACC) 100%);
  --grad-02-rev: linear-gradient(0deg, var(--ACC) 0%, var(--LACC) 100%);
  --grad-03: linear-gradient(90deg, var(--OTH) 0%, var(--LOTH) 100%);
  --grad-03-rev: linear-gradient(0deg, var(--OTH) 0%, var(--LOTH) 100%);
  --transition: all 0.3s ease-in-out;
  --oversize: calc((100% - 100vw) / 2);
}

/* ==================================
リセット・調整・ファンデーション
===================================== */

/* ---260108hori追記↓--- */
body:has(.--recruit) {
  font-size: 17px;
}
/* ---260108hori追記↑--- */

/* 高さを画像自体の高さにする */
:where(img) {
  vertical-align: bottom;
}
:where(.thumb),
:where([class*="__thumb"]) {
  vertical-align: bottom;
  background-color: unset;
}

/*---------- アクセシビリティ ----------*/
/* アイコンをスクリーンリーダーに読み上げられないようにする */
i,
[class*="material-icons"],
[class*="material-symbols"] {
  speak: none;
}

/*---------- AOSアニメーション用のCSSの初期状態を管理画面のみリセット ----------*/
#tinymce,
.editor_block {
  [data-aos] {
    opacity: 1;
    transform: unset;
  }
}

/*---------- BMパーツの調整 ----------*/
/* 疑似要素の削除 */
.no-before::before,
.no-after::after {
  content: unset !important;
}

/* スクロールした後のヘッダーのボタンの高さが変わるときにイージング */
.lib-induce__outer li:has(.lib-induce__btn) {
  transition: all 0.2s;
}

/*---------- BMパーツのパターン増設 ----------*/
/* 見出しのあしらい ■パターン */
.lib-title__outer.--type-square :where(.title) {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* color: var(--DEF); */
}
.lib-title__outer.--type-square :where(.title)::before {
  content: "";
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 0.5em;
  height: 0.5em;
  position: relative;
  /* border-radius: 50%; */
  top: 0.4em;
  background-color: var(--MAIN);
  margin-right: 8px;
  display: block;
}

/* ボタンのアイコンに■の背景色を入れる */
.bg-wht[class*="__btn"] {
  color: var(--DEF);
}
:where(.lib-link__btn):not([class*="ico-after-"]):not([class*="ico-before-"]) {
  > .txt::after {
    color: var(--MAIN);
    background-color: var(--WHT);
    padding: 0.5em;
    /* border-radius: 50%; */
    margin-top: -0.875em;
    line-height: 1;
    font-size: 0.675em;
    transition: var(--transition);
  }
  &:hover > .txt::after {
    color: var(--WHT);
    background-color: var(--MAIN);
  }
  &.bg-wht > .txt::after {
    color: var(--WHT);
    background-color: var(--MAIN);
  }
  &.bg-wht:hover > .txt::after {
    color: var(--MAIN);
    background-color: var(--WHT);
  }
  &.border-accent > .txt::after {
    color: var(--ACC);
  }
  &.border-accent:hover > .txt::after {
    color: var(--WHT);
    background-color: var(--ACC);
  }
  &.border-accent.bg-wht > .txt::after {
    color: var(--WHT);
    background-color: var(--ACC);
  }
  &.border-accent.bg-wht:hover > .txt::after {
    color: var(--ACC);
    background-color: var(--WHT);
  }
}

/* 採用ページのボタンのアイコンを「→」、●に変更 */
html:has(.p-header.--recruit) {
  :where(.lib-link__btn):not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt:after {
    content: "\ea03";
    /* font-size: 1em; */
    border-radius: 50%;
  }
}

:where(.ico-before-globe):before {
  font-family: "Material Symbols Rounded" !important;
  content: "\e64c";
  /* margin-right: 10px; */
  /* margin-top: .1em; */
}

/* メディアのスライダーをリストにする */
.lib-blog-001.--list {
  .swiper-wrapper {
    flex-direction: column;

    .swiper-slide {
      width: 100%;
    }
  }

  .lib-media__thumb,
  .lib-media__tag,
  .lib-swiper__control,
  .lib-media__txt {
    display: none;
  }

  .lib-media__txtarea {
    display: flex;
    flex-direction: column;
    gap: 0.25em 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--GRY);

    .lib-media__category {
      order: 2;
    }
    .lib-media__title {
      order: 3;
    }
    .lib-media__txt {
      order: 4;
    }
    .lib-media__time {
      order: 1;
      align-items: flex-start;
      margin-top: 0;
      padding-top: 0;
      border-top: unset;
      min-height: unset;
    }
  }
}
@media print, screen and (min-width: 992px) {
  .lib-blog-001.--list {
    .lib-media__txtarea {
      flex-direction: row;
      align-items: center;

      .lib-media__category .lib-badge__category,
      .lib-media__time {
        text-wrap: nowrap;
      }
    }
  }
}
/* 「記事公開日」のみ表示させる */
.lib-blog-001.--list {
  .lib-media__time:has(p + p) p:nth-of-type(2),
  .lib-media__time:has(p + p) p span {
    display: none;
  }
}

/* ①②③...のリストマーカー */
:where(.lib-indent__list).--circle > li::before {
  content: counter(ol-bullet);
  text-align: center;
  border: 1px solid var(--DEF);
  border-radius: 50%;
  font-size: 0.75em;
  line-height: 1;
  width: 1.5em;
  height: 1.5em;
  aspect-ratio: 1/1;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.4%;
  /* margin-top: 2px; */
}

/* ※のリストマーカー */
:where(.lib-indent__list).--asterisk {
  > li {
    padding-left: 1.8em;
    position: relative;
  }
  > li::before {
    /* counter-increment: ol-bullet; */
    content: "※";
    display: block;
    width: 2em;
    text-align: center;
    text-align: right;
    position: absolute;
    left: 0;
    top: 0;
    padding-right: 0.5em;
  }
}

/* 「―」（横線）のリストマーカー */
:where(.lib-indent__list).--line {
  > li {
    position: relative;
    padding-left: 0.75em;
  }
  > li::before {
    content: "-";
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* table 罫線パターン */
:where(table).--border {
  > thead,
  th {
    background-color: unset;
  }
  th,
  td {
    border: unset;
    border: 1px solid var(--GRY);
  }
  th {
    color: var(--DEF);
  }
  tbody > tr > th:first-child {
    border-left-color: var(--GRY);
  }
}

/* table 下線パターン */
:where(table).--border-bottom {
  border: unset;
  th,
  > thead {
    background-color: unset;
  }
  th,
  td {
    border: unset;
    border-bottom: 1px solid var(--GRY);
  }
  th {
    color: var(--DEF);
  }
  &.--even tbody > tr:nth-child(even) > th {
    background-color: var(--LGRY);
  }
}

/* table 見出し"列"だけグレー */
:where(table.--gry) {
  tbody > tr > th {
    background-color: var(--GRY);
    color: var(--DEF);
    &:first-child {
      border-left-color: var(--GRY);
    }
  }
}

/* table .lib-table__03に少し余白を入れる */
:where(.lib-table__03).--padding {
  --cell-padding: 0.5em;
  td,
  th {
    padding: var(--cell-padding);
  }
}

/* ==================================
タイポ
===================================== */
/* ゴシックとか */
.ff-notosans {
  font-family: "Noto Sans JP", serif;
}
.ff-lato {
  font-family: "Lato", sans-serif;
  /* letter-spacing: 0.05rem; */
}
.ff-oswald {
  font-family: "Oswald", sans-serif;
}
.ff-poppins {
  font-family: "Poppins", sans-serif;
}
.ff-zenmarugo {
  font-family: "Zen Maru Gothic", sans-serif;
}
.ff-zenkakugo {
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.ff-montserrat {
  font-family: "Montserrat", sans-serif;
}
.ff-staatliches {
  font-family: "Staatliches", sans-serif;
}
.ff-m-plus-rounded-1c {
  font-family: "M PLUS Rounded 1c", sans-serif;
  transform: rotate(0.07deg);
}
.ff-inter {
  font-family: "Inter";
}
/* 明朝とか */
.ff-notoserif {
  font-family: "Noto Serif JP", serif;
}
.ff-yumincho {
  font-family: "Yu Mincho", "YuMincho", serif;
}
.ff-shippori {
  font-family: "Shippori Mincho", serif;
}
.ff-shippori-b1 {
  font-family: "Shippori Mincho B1", serif;
}

/* font-weight */
.fw-600 {
  font-weight: 600 !important;
}
.fw-800 {
  font-weight: 800 !important;
}
.fw-900 {
  font-weight: 900 !important;
}

/* font-size */
@media print, screen and (min-width: 992px) {
  .fs-lg-50 {
    font-size: 3.125rem;
  }
}
@media print, screen and (min-width: 992px) {
  .fs-lg-60 {
    font-size: 3.75rem;
  }
}

/* 縦書き */
.vertical-rl {
  writing-mode: vertical-rl;
}

.text-hukuro {
  /* -webkit-text-stroke: 2px var(--bl2);
     text-stroke: 2px var(--bl2); */
  text-shadow: 2px 2px 1px var(--bl2), -2px 2px 1px var(--bl2), 2px -2px 1px var(--bl2), -2px -2px 1px var(--bl2), 2px 0px 1px var(--bl2), 0px 2px 1px var(--bl2), -2px 0px 1px var(--bl2),
    0px -2px 1px var(--bl2);
}

/* box-decoration-break */
.decoration-break {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* マーカーのあしらい */
mark {
  background: linear-gradient(transparent 60%, yellow 60%);
}

/* テキストをグラデーションにするベース */
.text-grad {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

/* ==================================
ユーティリティー
===================================== */
/*---------- 画像の比率 ----------*/
.u-aspect-text {
  /* 縦横比はstyleでCSS変数を書き換える
     ex) style="--aspect: 2.51 / 1;" */
  --aspect: auto;
  @media print, screen and (min-width: 576px) {
    --aspect-sm: var(--aspect);
  }
  @media print, screen and (min-width: 768px) {
    --aspect-md: var(--aspect-sm);
  }
  @media print, screen and (min-width: 992px) {
    --aspect-lg: var(--aspect-md);
  }
  @media print, screen and (min-width: 1200px) {
    --aspect-xl: var(--aspect-lg);
  }
  @media print, screen and (min-width: 1400px) {
    --aspect-xxl: var(--aspect-xl);
  }

  aspect-ratio: var(--aspect);
  @media print, screen and (min-width: 576px) {
    aspect-ratio: var(--aspect-sm);
  }
  @media print, screen and (min-width: 768px) {
    aspect-ratio: var(--aspect-md);
  }
  @media print, screen and (min-width: 992px) {
    aspect-ratio: var(--aspect-lg);
  }
  @media print, screen and (min-width: 1200px) {
    aspect-ratio: var(--aspect-xl);
  }
  @media print, screen and (min-width: 1400px) {
    aspect-ratio: var(--aspect-xxl);
  }
}

.u-aspect {
  /* 縦横比はstyleでCSS変数を書き換える
     ex) style="--aspect: 2.51 / 1;" */
  --aspect: auto;
  @media print, screen and (min-width: 576px) {
    --aspect-sm: var(--aspect);
  }
  @media print, screen and (min-width: 768px) {
    --aspect-md: var(--aspect-sm);
  }
  @media print, screen and (min-width: 992px) {
    --aspect-lg: var(--aspect-md);
  }
  @media print, screen and (min-width: 1200px) {
    --aspect-xl: var(--aspect-lg);
  }
  @media print, screen and (min-width: 1400px) {
    --aspect-xxl: var(--aspect-xl);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: var(--aspect);
    @media print, screen and (min-width: 576px) {
      aspect-ratio: var(--aspect-sm);
    }
    @media print, screen and (min-width: 768px) {
      aspect-ratio: var(--aspect-md);
    }
    @media print, screen and (min-width: 992px) {
      aspect-ratio: var(--aspect-lg);
    }
    @media print, screen and (min-width: 1200px) {
      aspect-ratio: var(--aspect-xl);
    }
    @media print, screen and (min-width: 1400px) {
      aspect-ratio: var(--aspect-xxl);
    }
  }

  &.--4x3 img {
    aspect-ratio: 4 / 3;
  }
  &.--3x2 img {
    aspect-ratio: 3 / 2;
  }
  &.--16x9 img {
    aspect-ratio: 16 / 9;
  }
  &.--21x9 img {
    aspect-ratio: 21 / 9;
  }
  &.--1x1 img {
    aspect-ratio: 1 / 1;
  }
  &.--2x1 img {
    aspect-ratio: 2 / 1;
  }
  &.--3x1 img {
    aspect-ratio: 3 / 1;
  }
  &.--4x1 img {
    aspect-ratio: 4 / 1;
  }
  &.--7x8 img {
    aspect-ratio: 7 / 8;
  }
  &.--9x16 img {
    aspect-ratio: 9 / 16;
  }
  &.--2x3 img {
    aspect-ratio: 2 / 3;
  }
  &.--3x4 img {
    aspect-ratio: 3 / 4;
  }

  /* 画像全体を枠内に入れたいとき */
  &.--contain img,
  .--contain img {
    object-fit: contain;
  }
}

/*---------- 角丸 ----------*/
[class*="u-rounded"] {
  overflow: clip;
}
.u-rounded {
  --round: 0.625rem;
  border-radius: var(--round);
  @media print, screen and (min-width: 576px) {
    --round-sm: var(--round);
    border-radius: var(--round-sm);
  }
  @media print, screen and (min-width: 768px) {
    --round-md: var(--round-sm);
    border-radius: var(--round-md);
  }
  @media print, screen and (min-width: 992px) {
    --round-lg: var(--round-md);
    border-radius: var(--round-lg);
  }
  @media print, screen and (min-width: 1200px) {
    --round-xl: var(--round-lg);
    border-radius: var(--round-xl);
  }
  @media print, screen and (min-width: 1400px) {
    --round-xxl: var(--round-xl);
    border-radius: var(--round-xxl);
  }
}

.u-rounded-_25 {
  border-radius: 0.25rem !important;
}
.u-rounded-_5 {
  border-radius: 0.5rem !important;
}
.u-rounded-_75 {
  border-radius: 0.75rem !important;
}
.u-rounded-1 {
  border-radius: 1rem !important;
}
.u-rounded-1_5 {
  border-radius: 1.5rem !important;
}
.u-rounded-1_25 {
  border-radius: 1.25rem !important;
}
.u-rounded-2 {
  border-radius: 2rem !important;
}
.u-rounded-3 {
  border-radius: 3rem !important;
}

.--round-top {
  border-bottom-right-radius: unset !important;
  border-bottom-left-radius: unset !important;
}
.--round-bottom {
  border-top-right-radius: unset !important;
  border-top-left-radius: unset !important;
}
.--round-right {
  border-top-left-radius: unset !important;
  border-bottom-left-radius: unset !important;
}
.--round-left {
  border-top-right-radius: unset !important;
  border-bottom-right-radius: unset !important;
}
.--round-trans-up {
  border-top-left-radius: unset !important;
  border-bottom-right-radius: unset !important;
}
.--round-trans-down {
  border-top-right-radius: unset !important;
  border-bottom-left-radius: unset !important;
}

/*---------- はみ出させる ----------*/
.u-over {
  margin-inline: var(--oversize);
}
/* 右に */
.u-r-over {
  margin-right: var(--oversize);
}
@media print, screen and (min-width: 768px) {
  .u-r-md-over {
    margin-right: var(--oversize);
  }
}
@media print, screen and (min-width: 992px) {
  .u-r-lg-over {
    margin-right: var(--oversize);
  }
}
/* 左に */
.u-l-over {
  margin-left: var(--oversize);
}
@media print, screen and (min-width: 768px) {
  .u-l-md-over {
    margin-left: var(--oversize);
  }
}
@media print, screen and (min-width: 992px) {
  .u-l-lg-over {
    margin-left: var(--oversize);
  }
}

/*---------- Swiper ----------*/
/* 滑らかに */
.u-swiper-liner .swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  -o-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
}

/* ========================================
パーツ
======================================== */
/*---------- アイコン（アイコンフォント想定。大きさはp-*やfs-*、個別にwidth・height指定して調整。） ----------*/
.c-icon {
  aspect-ratio: 1 / 1;
  speak: none;
  display: inline-block;
  vertical-align: bottom;
  line-height: 1;

  --icon-size: 1.5em;
  width: var(--icon-size);
  height: var(--icon-size);
  @media print, screen and (min-width: 576px) {
    --icon-size-sm: var(--icon-size);
    width: var(--icon-size-sm);
    height: var(--icon-size-sm);
  }
  @media print, screen and (min-width: 768px) {
    --icon-size-md: var(--icon-size-sm);
    width: var(--icon-size-md);
    height: var(--icon-size-md);
  }
  @media print, screen and (min-width: 992px) {
    --icon-size-lg: var(--icon-size-md);
    width: var(--icon-size-lg);
    height: var(--icon-size-lg);
  }
  @media print, screen and (min-width: 1200px) {
    --icon-size-xl: var(--icon-size-lg);
    width: var(--icon-size-xl);
    height: var(--icon-size-xl);
  }
  @media print, screen and (min-width: 1400px) {
    --icon-size-xxl: var(--icon-size-xl);
    width: var(--icon-size-xxl);
    height: var(--icon-size-xxl);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    speak: none;
  }

  &.--cover img {
    object-fit: cover;
  }
}

/*---------- アイコンとテキスト（ボタンによく使う） ----------*/
/* 余白の微調整は「gap-*」 */
.c-icon-text {
  display: grid !important;
  grid-template-columns: repeat(2, auto);
  column-gap: 0.75em;
  justify-content: center;
  align-items: center;

  /* アイコンだけ右寄せ */
  &.--r {
    grid-template-columns: 1fr auto;
  }
  /* アイコンだけ左寄せ */
  &.--l {
    grid-template-columns: auto 1fr;
  }
}

/*---------- 背景のベース ----------*/
/* 背景画像を敷く場合、
   背景画像に各色のフィルターをかける場合
   疑似要素を配置したいときのベース */
.p-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  /* opacity（濃さ）はstyleでCSS変数を書き換える
     ex) style="--bg-opacity: 0.5;" */
  --bg-opacity: 0.3;

  /* 疑似要素のファンデーション */
  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    pointer-events: none;
    speak: none;
    opacity: var(--bg-opacity);
  }
  /* 画像の時 */
  &.--img::before,
  &.--img::after {
    z-index: 1;
  }
  /* グレースケール透明フィルター */
  &.--bl::before {
    background-color: var(--bl);
  }
  &.--def::before {
    background-color: var(--DEF);
  }
  &.--dgry::before {
    background-color: var(--DGRY);
  }
  &.--gry::before {
    background-color: var(--GRY);
  }
  &.--lgry::before {
    background-color: var(--LGRY);
  }
  &.--wh::before {
    background-color: var(--WHT);
  }
  /* メインカラーフィルター */
  &.--main::before {
    background-color: var(--MAIN);
  }
  &.--lmain::before {
    background-color: var(--LMAIN);
  }
  /* アクセントカラーフィルター */
  &.--accent::before {
    background-color: var(--ACC);
  }
  &.--laccent::before {
    background-color: var(--LACC);
  }
  /* 補助色カラーフィルター */
  &.--other::before {
    background-color: var(--OTH);
  }
  &.--lother::before {
    background-color: var(--LOTH);
  }
  /* グラデーションカラーフィルター */
  &.--grad-01::before {
    background: var(--grad-01);
  }
  &.--grad-01-rev::before {
    background: var(--grad-01-rev);
  }
  &.--grad-02::before {
    background: var(--grad-02);
  }
  &.--grad-02-rev::before {
    background: var(--grad-02-rev);
  }
  &.--grad-03::before {
    background: var(--grad-03);
  }
  &.--grad-03-rev::before {
    background: var(--grad-03-rev);
  }

  /* ぼかしフィルター
     強さはstyleでCSS変数を書き換える
     ex) style="--blur: 1em;" */
  &.--blur {
    --blur: 0.5rem;
  }
  &.--blur::after {
    backdrop-filter: blur(var(--blur));
    opacity: 1;
  }
}

/*---------- ホバーアクション ----------*/
.c-hover {
  transition: var(--transition);
  text-decoration: none;
  &:hover {
    text-decoration: none;
  }
  /* 背景色 */
  &.--bg-bl:hover {
    background-color: var(--bl);
  }
  &.--bg-def:hover {
    background-color: var(--DEF);
  }
  &.--bg-dgry:hover {
    background-color: var(--DGRY);
  }
  &.--bg-gry:hover {
    background-color: var(--GRY);
  }
  &.--bg-lgry:hover {
    background-color: var(--LGRY);
  }
  &.--bg-wh:hover {
    background-color: var(--WHT);
  }
  &.--bg-main:hover {
    background-color: var(--MAIN);
  }
  &.--bg-lmain:hover {
    background-color: var(--LMAIN);
  }
  &.--bg-accent:hover {
    background-color: var(--ACC);
  }
  &.--bg-laccent:hover {
    background-color: var(--LACC);
  }
  &.--bg-other:hover {
    background-color: var(--OTH);
  }
  &.--bg-lother:hover {
    background-color: var(--LOTH);
  }
  /* 動き */
  &.--up,
  .--up {
    --translate-up: -0.125rem;
    transition: var(--transition);
  }
  &.--up:hover,
  &:hover .--up {
    transform: translateY(var(--translate-up));
  }
  &.--down,
  .--down {
    --translate-down: 0.125rem;
    transition: var(--transition);
  }
  &.--down:hover,
  &:hover .--down {
    transform: translateY(var(--translate-down));
  }
  &.--right,
  .--right {
    --translate-right: 0.125rem;
    transition: var(--transition);
  }
  &.--right:hover,
  &:hover .--right {
    transform: translateX(var(--translate-right));
  }
  &.--left,
  .--left {
    --translate-left: -0.125rem;
    transition: var(--transition);
  }
  &.--left:hover,
  &:hover .--left {
    transform: translateX(var(--translate-left));
  }
  &.--scale-up,
  .--scale-up {
    --scale: scale(1.1);
    img {
      transition: var(--transition);
    }
    &:hover img {
      transform: var(--scale);
    }
  }
  /* あしらい */
  &.--underline:hover {
    text-decoration: underline;
  }
  &.--opacity {
    --opacity: 0.8;
    &:hover {
      opacity: var(--opacity);
    }
  }
}

/*---------- レイアウト ----------*/
/* display: grid;で重ねる */
.l-overlap {
  display: grid;
  > * {
    grid-area: 1 / -1;
  }
}

.c-hover.--overlap {
  .--after {
    opacity: 0;
    transition: var(--transition);
  }
  &:hover .--after {
    opacity: 1;
  }
}

#tinymce,
.editor_block {
  .l-overlap > * {
    grid-area: unset !important;
    z-index: 1 !important;
    opacity: 1 !important;
  }
}

/* 子要素を中央配置 */
/* 縦 */
.l-v-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* 縦横中央 */
.l-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==================================
ヘッダー
===================================== */
.p-header {
  @media print, screen and (max-width: 991.8px) {
    .lib-utility__list:has(.lib-induce__btn):not(.is-only) .lib-utility__item:has(.lib-induce__btn) {
      width: 100%;
    }
  }
  .lib-search__btn {
    background-color: var(--MAIN) !important;
    &::before {
      color: var(--WHT);
    }
  }
  .lib-menu__btn > .line {
    background-color: currentColor;
  }
  .lib-menu__btn[aria-expanded="false"] > .line:nth-of-type(2) {
    width: calc(50% * (2 / 3));
  }
  .lib-menu__btn[aria-expanded="false"] > .line:nth-of-type(3) {
    width: calc(50% * (1 / 3));
  }
}
.is-scroll .p-header {
  @media print, screen and (min-width: 992px) {
    .lib-nav__list {
      .lib-nav__item:has(.lib-induce__btn) {
        /* margin-top: -.625rem; */
        margin-bottom: 0.625rem;
      }
    }
    &.lib-header__outer.lib-header-BS02 {
      .lib-induce__btn:before {
        margin-top: 0.2em;
        margin-right: 5px;
      }
    }
  }
}
html:not(.is-scroll) .p-header {
  .lib-nav__list {
    .lib-nav__btn {
      @media print, screen and (min-width: 992px) {
        padding-top: 1rem !important;
      }
    }
  }
}

/* メガメニュー */
.p-header {
  .lib-child__item.--headline {
    background-color: var(--MAIN);
    padding-block: 5vw !important;
  }
  .lib-child__outer .row .col-12.--contents {
    padding-block: 5vw !important;
    .lib-child__item > a .txt {
      padding-left: 0;
      &::before {
        left: unset;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--MAIN);
        padding: 0.5em;
        color: var(--WHT);
      }
    }
  }
  @media print, screen and (min-width: 992px) {
    &.lib-header__outer.typeM .lib-child__panel[aria-hidden="false"] {
      padding: 0;
    }
    .lib-child__item.--headline {
      position: relative;
      &::before {
        content: "";
        display: block;
        position: absolute;
        background-color: inherit;
        inset: 0;
        left: -50vw;
        z-index: -1;
      }
    }
    .lib-child__outer .row .col-12.--contents {
      padding-block: 5vw !important;
    }
  }
  @media print, screen and (max-width: 991px) {
    .lib-child__list {
      border-bottom: var(--GRY) 1px solid;
      border-right: var(--GRY) 1px solid;
    }
  }
}

/* ========================================
フッター
======================================== */
.p-footer {
  .lib-search__btn::before {
    color: inherit;
  }
  &.lib-footer__outer.lib-footer-BS02 {
    .lib-footer__utility {
      /* @media print, screen and (min-width: 576px) { */
      background-color: var(--MAIN);
      /* } */
      @media print, screen and (max-width: 575px) {
        margin-top: 2rem;
      }
      .lib-footer__guidance {
        @media print, screen and (max-width: 575px) {
          padding-top: 0.625rem;
        }
        a {
          color: var(--WHT);
        }
      }
    }
    .lib-footer__copyright {
      background-color: var(--MAIN);
      margin-top: 0;
      @media print, screen and (max-width: 575px) {
        width: 100%;
      }
    }
    .lib-footer__guidance > li ~ li:before {
      background-color: var(--WHT);
    }
  }
  .lib-footer__nav {
    width: 100%;
    margin-inline: 0;
    .lib-footer__title > a {
      justify-content: flex-start;
      border-top: unset;
      background-color: unset;
      border-bottom: 2px solid var(--MAIN);
      padding: 0 0 1em 0;
      width: 100%;
    }
    .lib-footer__list {
      display: block;
      margin-top: 1rem;
    }
  }
  @media print, screen and (max-width: 575px) {
    .lib-title__outer.--type-square :where(.title)::before {
      top: 0;
    }
  }
  @media print, screen and (min-width: 768px) {
    .lib-toggle__outer {
      position: relative;
      .lib-toggle__panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
      }
    }
  }
  .lib-footer__guidance > li ~ li::before {
    background-color: currentColor;
  }
}

/* ========================================
CTA
======================================== */

/* ========================================
TOP
======================================== */
/*---------- MV ----------*/
/*---------- 260114追記 ----------*/
.lib-fv__inside {
  padding-bottom: 18px;
}
/*---------- 260114追記 ----------*/

.p-mv {
  .lib-fv__thumb {
    height: unset;
    aspect-ratio: unset;
    @media print, screen and (min-width: 768px) {
      aspect-ratio: 4/3;
    }
    @media print, screen and (min-width: 992px) {
      aspect-ratio: 16/9;
    }
    @media print, screen and (min-width: 1400px) {
      aspect-ratio: 2.51/1;
    }
  }
}

/*---------- 260122追記 ----------*/
.lib-rss__list li {
  column-gap: 1rem !important;
}

@media (min-width: 768px) {
  .lib-rss__list li {
    display: flex;
    align-items: center;
  }

  .lib-rss__title {
    width: 30%;
    margin-top: 0;
  }
}

/*ニュース機能*/
/* htmlタグまたはbodyタグにlang属性がある場合を広くカバー */
/* 英語(en)または中国語(zh)のページで、最初のliと、その左側に回り込んでいるafterを消す */
:is([lang="en"], [lang="zh"]) .lib-breadcrumb__list li:first-child,
:is([lang="en"], [lang="zh"]) .lib-breadcrumb__list li:nth-child(2):after {
    display: none !important;
}

/* お知らせ */
.p-top-news {
  @media print, screen and (min-width: 992px) {
    transform: translateY(-50%);
  }
  .lib-blog-001.--list {
    .lib-media__txtarea {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: baseline;
      padding: 0;
      border: unset;
      .lib-media__time {
        justify-content: flex-start;
      }
      .lib-media__category {
        .badge {
          background-color: var(--LGRY);
          color: var(--DEF);
          border-color: var(--LGRY);
          font-weight: bold;
          &:hover {
            background-color: var(--MAIN);
            color: var(--WHT);
            border-color: var(--MAIN);
          }
        }
      }
      .lib-media__title {
        width: 100%;
        font-size: 1rem;
        flex-grow: 1;
        > a {
          display: flex;
          justify-content: space-between;
          width: 100%;
          text-decoration: none;
          &::after {
            font-family: "Material Symbols Rounded";
            content: "\e5e1";
            display: block;
            color: var(--MAIN);
          }
        }
        @media print, screen and (min-width: 992px) {
          width: auto;
        }
      }
    }
  }
}

/*---------- ピックアップ ----------*/
.p-top-pickup {
  .lib-sld-001__slider {
    @media print, screen and (max-width: 559px) {
      overflow-x: clip;
    }
    .swiper-slide {
      transition: var(--transition);
      &:not(.swiper-slide-active) {
        scale: 0.8;
      }
    }
    .lib-swiper__btn {
      @media print, screen and (min-width: 1200px) {
        width: 3rem;
        height: 3rem;
      }
      &::before,
      &::after {
        @media print, screen and (min-width: 1200px) {
          font-size: 1.25rem;
        }
      }
      &.--prev {
        @media print, screen and (min-width: 1200px) {
          left: 28vw;
        }
      }
      &.--next {
        @media print, screen and (min-width: 1200px) {
          right: 28vw;
        }
      }
    }
    .lib-swiper__pagination {
      /* width: 100%;
      max-width: unset; */
      .swiper-pagination-bullet {
        /* flex-grow: 1; */
        border-radius: unset;
        min-width: 2rem;
        height: 2px !important;
        @media print, screen and (min-width: 992px) {
          min-width: 4rem;
        }
        &:not(.swiper-pagination-bullet-active) {
          background-color: var(--GRY) !important;
        }
      }
    }
  }
}

.p-bg {
  &.--pickup::before {
    background: linear-gradient(180deg, transparent 0%, var(--WHT) 100%);
  }
}

/*---------- 製品情報 ----------*/
.p-top-products {
  .lib-fv__slider {
    .swiper-wrapper {
      z-index: 3;
      height: 100% !important;
    }
    .lib-fv__slide {
      @media print, screen and (min-width: 992px) {
        position: absolute;
        inset: 0;
        z-index: 3;
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        &.is-active {
          opacity: 1;
          visibility: visible;
          pointer-events: auto;
        }
      }
    }
  }
  /* &:has(.p-btn-list .col:nth-child(1) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(1),
  &:has(.p-btn-list .col:nth-child(2) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(2),
  &:has(.p-btn-list .col:nth-child(3) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(3),
  &:has(.p-btn-list .col:nth-child(4) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(4),
  &:has(.p-btn-list .col:nth-child(5) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(5),
  &:has(.p-btn-list .col:nth-child(6) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(6),
  &:has(.p-btn-list .col:nth-child(7) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(7),
  &:has(.p-btn-list .col:nth-child(8) .lib-link__btn:hover) .lib-fv__slider .lib-fv__slide:nth-child(8) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  } */
}
#tinymce,
.editor_block {
  .p-top-products {
    .lib-fv__slider {
      .lib-fv__slide {
        width: calc(50% - 15px);
        height: auto !important;
        @media print, screen and (min-width: 992px) {
          position: static;
          opacity: 1;
          visibility: visible;
          pointer-events: auto;
        }
      }
    }
  }
}

/*---------- お知らせ ----------*/
.p-top-news-02 {
  /* @media print, screen and (min-width: 992px) {
    transform: translateY(-50%);
  } */
  .lib-blog-001.--list {
    .lib-media__txtarea {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: baseline;
      /* padding: 0; */
      /* border: unset; */
      @media print, screen and (min-width: 992px) {
        padding-block: 1.75rem;
      }
      .lib-media__time {
        justify-content: flex-start;
      }
      .lib-media__category {
        .badge {
          background-color: var(--LGRY);
          color: var(--DEF);
          border-color: var(--LGRY);
          font-weight: bold;
          &:hover {
            background-color: var(--MAIN);
            color: var(--WHT);
            border-color: var(--MAIN);
          }
        }
      }
      .lib-media__title {
        width: 100%;
        font-size: 1rem;
        flex-grow: 1;
        > a {
          display: flex;
          justify-content: space-between;
          width: 100%;
          text-decoration: none;
          &::after {
            font-family: "Material Symbols Rounded";
            content: "\e5e1";
            display: block;
            color: var(--MAIN);
          }
        }
        @media print, screen and (min-width: 992px) {
          width: auto;
        }
      }
    }
  }
}

/*---------- 新着情報 ----------*/
.p-loop-text {
  speak: none;
}
.p-loop-text .p-loop-box {
  display: flex;
}
.p-loop-text .c-loop-text {
  display: flex;
  /* スライドの枚数 ÷ 表示させたい枚数 × 100vw */
  width: 300vw;
}
@media print, screen and (min-width: 768px) {
  .p-loop-text .c-loop-text {
    width: 150vw;
  }
}
/* @media print, screen and (min-width: 992px) {
   .p-loop-text .c-loop-text {
     width: 100vw;
   }
} */

/* ループアニメーション */
@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}
.p-loop-text .c-loop-item:first-child {
  -webkit-animation: loop 100s -50s linear infinite;
  animation: loop 100s -50s linear infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.p-loop-text .c-loop-item + .c-loop-item {
  -webkit-animation: loop2 100s linear infinite;
  animation: loop2 100s linear infinite;
}

@keyframes loop-rev {
  0% {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes loop-rev2 {
  0% {
    transform: translateX(-200%);
  }
  to {
    transform: translateX(0%);
  }
}
.p-loop-text.--rev .c-loop-item:first-child {
  -webkit-animation: loop 100s -50s linear infinite;
  animation: loop-rev 100s -50s linear infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.p-loop-text.--rev .c-loop-item + .c-loop-item {
  -webkit-animation: loop2 100s linear infinite;
  animation: loop-rev2 100s linear infinite;
}

#tinymce,
.editor_block {
  .p-top-recruit-slider {
    position: static !important;
    .p-loop-box {
      flex-direction: column;
      .c-loop-item {
        animation: unset;
        .c-loop-text {
          width: 100%;
        }
      }
    }
  }
}

/* ========================================
下層
======================================== */
/*---------- 下層MV ----------*/
.lib-hero__outer {
  background-color: unset;
  background-image: url("/dcms_media/image/mv-under.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  &::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    pointer-events: none;
    speak: none;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bl);
    opacity: 0.3;
  }
  .lib-hero__txtarea {
    color: var(--WHT);
    .lib-hero__title-en {
      text-transform: uppercase;
      font-weight: bold;
      line-height: 1;
      margin-bottom: 0.125em;
      font-size: clamp(1.875rem, calc(1.1890243902439024rem + 2.9268292682926833vw), 3.75rem);
    }
    .lib-hero__title {
      font-weight: 500;
      font-size: clamp(1.25rem, calc(1.021341463414634rem + 0.975609756097561vw), 1.875rem);
    }
  }
}
html:has(.lib-form__outer) {
  .lib-hero__outer {
    background-image: url("/dcms_media/image/mv-contact.jpg");
  }
}
html:has(.lib-column__main) {
  .lib-hero__outer {
    background-image: url("/dcms_media/image/mv-media.jpg");
  }
}

/*---------- 製品ページMV ----------*/
.lib-hero__outer.--product {
  background-image: unset;
  &::before {
    opacity: 1;
  }
}

/*---------- CSR ----------*/
.c-hover.--clear {
  .p-bg::before {
    transition: var(--transition);
  }
}
.c-hover.--clear:hover {
  img {
    opacity: 1;
  }
  .p-bg::before {
    opacity: 0;
  }
}

/*---------- 当社の強み ----------*/
.p-bg.--strengths-bg {
  &::before {
    inset: 0;
    width: auto;
    height: auto;
  }
  &.--r::before {
    right: -50vw;
  }
  &.--l::before {
    left: -50vw;
  }
}

.bg-strengths-num-cards {
  background: linear-gradient(180deg, var(--WHT) 0%, rgb(255 255 255 / 80%) 60%, transparent 100%);
  box-shadow: 0px 3px 6px rgb(0 0 0 / 15%);
}

/* ========================================
採用ヘッダー
======================================== */
@media print, screen and (min-width: 1200px) {
  .u-header-cta-vertical {
    writing-mode: sideways-rl;
    /* white-space: pre; */
  }
}

.p-header.--recruit {
  @media print, screen and (min-width: 992px) {
    &.lib-header__outer.lib-header-BS02 .lib-induce__outer {
      height: auto;
      width: auto;
    }
  }
  @media print, screen and (min-width: 992px) {
    &.lib-header__outer.lib-header-BS02.typeS .lib-child__panel {
      top: 80px;
    }
  }
}
.is-scroll {
  .p-header.--recruit {
    @media print, screen and (min-width: 1400px) {
      &.lib-header__outer.lib-header-BS02 .lib-induce__outer > li {
        /* height: auto; */
        width: 100%;
      }
    }
  }
}

html:not(.is-scroll) {
  .p-header.--recruit {
    .lib-header__bar {
      box-shadow: unset;
    }
    @media print, screen and (min-width: 992px) {
      &.lib-header__outer.lib-header-BS02 {
        box-shadow: unset;
      }
    }
  }
}

/* ========================================
採用TOP
======================================== */
/*---------- ボタン ----------*/
:where(.lib-link__btn.--recuit) {
  padding-top: 0;
  padding-inline: 0;
  /* min-height: unset; */
  background-color: unset;
  color: var(--DEF);
  border-top: unset;
  border-right: unset;
  border-left: unset;
  &:not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt {
    padding-right: 3em;
  }
  &:not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt::after {
    font-size: 1em;
    color: var(--WHT);
    background-color: var(--MAIN);
    border: 2px solid var(--MAIN);
  }
  &:hover {
    /* color: var(--WHT); */
    background-color: unset;
    &:not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt::after {
      color: var(--MAIN);
      background-color: var(--WHT);
    }
  }
}
/* 白 */
:where(.lib-link__btn.--recuit) {
  &.border-wht[class*="__btn"] {
    background-color: unset;
    color: var(--WHT);
    border-bottom-color: var(--WHT);
    &:not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt:after {
      color: var(--MAIN);
      background-color: var(--WHT);
      border-color: var(--WHT);
    }
    &:hover {
      border-bottom-color: var(--WHT);
      &:not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt:after {
        color: var(--WHT);
        background-color: var(--MAIN);
      }
    }
  }
}

/*---------- 見出し ----------*/
.fs-top-recruit-en {
  font-size: clamp(2.5rem, calc(1.1280487804878048rem + 5.853658536585367vw), 6.25rem);
}

.u-first-letter-main:first-letter {
  color: var(--MAIN);
}

/*---------- MV ----------*/
.p-mv.--recruit {
  @media print, screen and (min-width: 992px) {
    .lib-fv__thumb {
      height: calc(100svh - 120px);
    }
  }
  .l-layer {
    &.--01 {
      top: 65%;
      right: -20%;
      width: 65%;
    }
    @media print, screen and (max-width: 991px) {
      &.--01 {
        top: 35%;
        width: 100%;
      }
    }
  }
}

/* 大きなテキストを動画終了するころに消す */
@keyframes recruitMvTxt {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.c-back-text {
  animation: recruitMvTxt 13s ease-in-out both;
}

.p-mv-news {
  @media print, screen and (min-width: 992px) {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: 50%;
  }
  .lib-blog-001 {
    .lib-media__category {
      display: none;
    }
    .lib-media__title {
      font-size: 1rem;
    }
    :where(.lib-media__time) > p {
      font-size: 0.75rem;
    }
    .lib-media__txtarea {
      flex-direction: column;
      align-items: flex-start;
      border: unset;
    }
  }
}

.u-mv-copy {
  top: 100vh;
  transform: translateY(-100%);
}

/*---------- 採用メッセージ ----------*/
.p-recruit-top-message {
  .l-layer {
    &.--01 {
      bottom: 5%;
      left: 7%;
      width: 30%;
    }
    &.--02 {
      top: 10%;
      bottom: 0%;
      right: 0;
      width: 66.66%;
    }
    &.--03 {
      /* top: -11rem; */
      top: 0;
      left: 0;
      width: 40%;
    }
    &.--04 {
      bottom: 7%;
      left: -5%;
      width: 40%;
    }
    &.--05 {
      bottom: -41%;
      right: 0%;
      width: 48%;
    }
    @media print, screen and (min-width: 1400px) {
      &.--02 {
        width: 63%;
      }
    }
    @media print, screen and (max-width: 991px) {
      &.--01 {
        top: 50vw;
        bottom: unset;
        left: unset;
        right: 0;
        width: 60%;
      }
      &.--02 {
        top: 115vw;
        bottom: 0%;
        right: 0;
        width: 90%;
      }
      &.--03 {
        top: 0;
        left: 0;
        width: 66.66%;
      }
      &.--04 {
        top: 50%;
        bottom: unset;
        left: -5%;
        width: 80%;
      }
      &.--05 {
        bottom: -10%;
        right: 0%;
        width: 60%;
      }
    }
  }
}

/*---------- 会社を知る ----------*/
.p-recruit-top {
  .c-bg {
    inset: 0;
    top: 8rem;
    right: 20vw;
    @media print, screen and (min-width: 992px) {
      top: 11rem;
    }
    @media print, screen and (min-width: 1400px) {
      right: 30vw;
    }
  }
}

/*---------- こんなところに東海東洋アルミ ----------*/
/* ピンの配置 */
/* [class*="l-pin"] {
  width: 10%;
  line-height: 0;
  top: 0%;
  left: 0%;
}
.l-pin-01 {
  top: 0%;
  left: 43%;
}
.l-pin-02 {
  top: 25%;
  left: 70%;
}
.l-pin-03 {
  top: 45%;
  left: 10%;
}
.l-pin-04 {
  top: 65%;
  left: 60%;
} */
[class*="l-pin"] {
  width: 5%;
  line-height: 0;
  top: 0%;
  left: 0%;
}
.l-pin-01 {
  top: 42%;
  left: 51%;
}
.l-pin-02 {
  top: 52%;
  left: 14%;
}
.l-pin-03 {
  top: 62%;
  left: 86%;
}
.l-pin-04 {
  top: 2%;
  left: 32%;
}
/* モーダル */
#tinymce .js-modal-dialog,
.editor_block .js-modal-dialog {
  display: block !important;
  position: static !important;
}
#tinymce .js-modal-dialog[class*="translate-middle"],
.editor_block .js-modal-dialog[class*="translate-middle"] {
  transform: unset !important;
}
#tinymce .js-modal-dialog.container,
.editor_block .js-modal-dialog.container {
  margin-top: 0.5em !important;
}

/* ========================================
採用下層
======================================== */
/*---------- 採用下層MV ----------*/
.fs-top-head {
  font-size: clamp(2.5rem, calc(1.5853658536585367rem + 3.902439024390244vw), 5rem);
}

html:has(.p-header.--recruit) {
  .lib-hero__outer {
    background-color: var(--LMAIN);
    background-image: unset;
    &::before {
      content: unset;
    }
    .lib-hero__txtarea {
      color: var(--MAIN);
    }
  }
  .lib-breadcrumb__outer {
    background-color: var(--MAIN);
    color: var(--WHT);
  }
  .lib-breadcrumb__list li a {
    color: var(--WHT);
  }
}

/* エントリーフォームのページだけCTA非表示 */
html:has(.no-cta) {
  .p-cta.--recruit {
    display: none !important;
  }
}

/*----260108hori追記*/
@media print, screen and (min-width: 768px) {
.lib-cnt-020__thumb {
  width: 550px;
}
}

.link-none {
  pointer-events: none !important;
}
.lib-footer__item:has(.link-none)::before {
  display: none !important;
}