@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);
}

/* AOSで3500msの遅延を有効にするための追加CSS */
body [data-aos][data-aos][data-aos-delay="3500"].aos-animate,
body [data-aos][data-aos][data-aos-delay="3500"] {
  transition-delay: 3500ms;
}

/* ==================================
リセット・調整・ファンデーション
===================================== */
/* 高さを画像自体の高さにする */
: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;
}

/*---------- BMパーツの調整 ----------*/
/* 疑似要素の削除 */
.no-before::before,
.no-after::after {
  content: unset !important;
}

/* スクロールした後のヘッダーのボタンの高さが変わるときにイージング */
.lib-induce__outer li:has(.lib-induce__btn) {
  transition: all 0.2s;
}

/* ボタンのアイコンを「→」に変更 */
/* :where(.lib-link__btn):not([class*="ico-after-"]):not([class*="ico-before-"]) > .txt::after {
  content: "\ea03";
  font-size: 1em;
} */

/* ボタンのアイコンに●の背景色を入れる */
/* :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);
  }
  &.border-def > .txt::after {
    color: var(--DEF);
  }
  &.border-def:hover > .txt::after {
    color: var(--WHT);
    background-color: var(--DEF);
  }
} */

/*---------- BMパーツのパターン増設 ----------*/
/* ①②③...のリストマーカー */
: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: 2em;
  }
  > li::before {
    content: "―";
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* table 罫線パターン */
:where(table).--border {
  > thead,
  th {
    background-color: unset;
  }
  > thead th:first-child {
    border-left-color: var(--GRY);
  }
  > thead th:last-child {
    border-right-color: var(--GRY);
  }
  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 下線パターン2 見出しセルの下線はメインカラー */
:where(table).--border-bottom-main {
  border: unset;
  th,
  > thead {
    background-color: unset;
  }
  th,
  td {
    border: unset;
    border-bottom: 1px solid var(--GRY);
  }
  th {
    color: var(--DEF);
    border-bottom: 1px solid var(--MAIN);
  }
  &.--even tbody > tr:nth-child(even) > th {
    background-color: var(--LGRY);
  }
}

/* table .lib-table__03に少し余白を入れる */
:where(.lib-table__03).--padding {
  --cell-padding: 0.5em;
  td,
  th {
    padding: var(--cell-padding);
  }
}

/* メディアのスライダーをリストにする */
/* swiper用のclassを削除or無効にした上で利用 */
.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);
    @media print, screen and (min-width: 992px) {
      flex-direction: row;
      align-items: center;
    }
    .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) {
        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;
  }
}

/* ==================================
タイポ
===================================== */
/* ゴシックとか */
.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: "Staatliches", sans-serif;
}
.ff-montserrat {
  font-family: "Montserrat", sans-serif;
}
.ff-staatliches {
  font-family: "Zen Maru Gothic", 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;
}

/* 縦書き */
.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%);
}

/* ==================================
ユーティリティー
===================================== */
/*---------- 画像の比率 ----------*/
.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.625em;
  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;
  }
}

/*---------- アイコンとテキスト（ボタンによく使う） ----------*/
/* 余白の微調整は「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;
  }
}

/*---------- レイアウト ----------*/
/* display: grid;で重ねる */
.l-overlap {
  display: grid;
  > * {
    grid-area: 1 / -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-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);
    }
  }

  &.--overlap {
    .--after {
      opacity: 0;
      transition: var(--transition);
    }
    &:hover .--after {
      opacity: 1;
    }
  }
}

/* ==================================
ヘッダー
===================================== */
/*追加修正SP*/
.lib-nav__panel {
  background-color: var(--MAIN);
  z-index: 11;
  height: calc(100dvh - 100px);
  top: 0;
  border-bottom-left-radius: 30px;
}

.lib-nav__btn {
  width: 100%;
  padding: 14px 55px;
  font-weight: 400;
  color: var(--WHT);
}

.lib-nav__list {
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
  margin-left: -10px;
  margin-right: -10px;
  border-bottom: none;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,.3);
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.header-before {
  padding-left: 0; 
  position: relative;
  line-height: 1.5;
}

.header-before:after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--WHT);
  border-radius: 0;
  top: 50%;
  position: absolute;
  left: -1rem;
  transform: translateY(-50%);
  opacity: 0;
    transition: 0.3s;
}

.header-before:hover::after {
  opacity: 1;
  transition: 0.3s;
}

.lib-menu__btn {
  background-color: transparent;
  border: none;
  
}

.lib-menu__btn.is-open{
  border: var(--WHT) 1px solid;
  background-color: transparent;
  color: var(--WHT);
  -webkit-transition: .3s;
  transition: .3s;
  width: 125px;
  height: 28px;
  left: 96%;
  transform: translateX(-100%);
  top: 2%;
}

.lib-menu__btn>.line:nth-of-type(1) {
  top: calc(50% - 1px - 3px);
}

.lib-menu__btn>.line:nth-of-type(2) {
  top: calc(50% - 1px - -6px);
}

.lib-menu__btn.is-open>.line:nth-of-type(1) {
  top: calc(50% - 1px - 10px);
  width: 15%;
  left: 15%;
}

.lib-menu__btn.is-open>.line:nth-of-type(2) {
  top: calc(50% - 1px);
  width: 15%;
  left: 15%;
  opacity: 1;
  transform: rotate(-135deg);
}

.lib-menu__btn.is-open>.line:nth-of-type(32) {
  width: 15%;
  left: 15%;
}

.lib-menu__btn>.line {
  background-color: #4072b3;
}



.lib-menu__btn.is-open>.line {
  background-color: var(--WHT);
}

.lib-nav__item {
  border-top: none;
}

.headerlist-01 {
  color: var(--WHT);
}

.lib-header__outer {
  transition: 0.3s;
}

/* スクロールしてないとき */
&:not(.is-scroll) {
  .p-header {
    &.lib-header__outer.lib-header-BS02 {
      box-shadow: unset;
      background-color: unset;
      
    }
  }
}

@media print, screen and (max-width: 991px) {
html:has(.p-mv) {
  .p-header {
    &.lib-header__outer.lib-header-BS02 {
      .lib-nav__panel.is-open,
      .lib-nav__list {
        box-shadow: unset;
      }
    }
  }
  &:not(.is-scroll) {
    .p-header {
      &.lib-header__outer.lib-header-BS02 {
        .lib-header__bar {
          -webkit-box-shadow: none;
          box-shadow: none;
        }
      }
    }
  }
}
}

/* 992px以上のウィンドウ幅で適用 */
@media (min-width: 992px) {
   /*追加ヘッダー修正*/
   .headerlist-01 {
    color: var(--MAIN);
  }

   .header-before:after {
    background-color: var(--MAIN);
  }

  .lib-header__outer.lib-header-BS02 .lib-nav__outer:not(:has(.lib-search__outer)):not(:has(.lib-lang__outer)):not(:has(.lib-utility__outer)) {
    margin-top: 30px;
    box-shadow: none;
}

.lib-nav__outer {
    padding: 0;
    padding-right: 0;
}

.lib-header__outer.lib-header-BS02 .lib-header__bar {
    width: 100%;
}

.lib-header__outer.lib-header-BS02 .lib-header__logo {
    margin: 0 auto;
}

.is-scroll .lib-header__logo img {
    width: 200px;
}

.lib-nav__panel {
  top: 60px;
    position: absolute;
    -webkit-transform: unset;
    transform: unset;
    height: unset;
    background: 0 0;
    -webkit-box-shadow: unset;
    box-shadow: unset;
    padding: 20px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: unset;
    width: 100%;
    margin-left: unset;
}

.lib-nav__panel:has(.lib-induce__outer) {
    padding-right: 0;
}

.lib-header__outer.lib-header-BS02 .lib-nav__list {
    margin-bottom: -10px;
    width: 80%;
    margin: 0 auto 0 auto;
}

.lib-header__outer nav a {
    padding: 15px 15px;
}

.lib-header__outer.lib-header-BS02 .lib-nav__outer:not(:has(.lib-search__outer)):not(:has(.lib-lang__outer)):not(:has(.lib-utility__outer)) .lib-nav__list {
    margin-top: 10px;
    margin-bottom: -10px;
}

.lib-header__outer.lib-header-BS02 .lib-induce__outer {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: unset;
    right: 0;
    top: 0;
    margin: 3rem auto 0 auto;
    width: 180px;
    z-index: 1;
    height: 60px;
    -webkit-transition: height .3s;
    transition: height .3s;
}

.lib-header__outer.lib-header-BS02 .lib-nav__list>li~li {
    margin-left: 0;
}

.lib-header__bar {
    height: auto;
    -webkit-transition: height .3s;
    transition: height .3s;
    background: unset;
    -webkit-box-shadow: unset;
    box-shadow: unset;
    position: absolute;
    left: 0;
    top: 5%;
    transform:translateY(-50%);
}

.is-scroll:not(.is-gnav__open) .lib-header__outer {
    height: 100vh;
}

.lib-header__outer.lib-header-BS02 .lib-nav__btn {
    margin-bottom: 2px;
}

#wrapper:has(.lib-header-BS02) {
    padding-top: 0;
}

.lib-nav__btn {
  color: var(--DEF);
}

  
  /* -----------------------
     1. ヘッダーエリアの縦型化
     ----------------------- */
 .lib-header__outer { /* 実際のヘッダーのクラス名/IDに合わせて調整してください */
    position: fixed;     /* 画面に固定 */
    top: 0;
    left: 0;
    width: 260px;        /* サイドバーの幅（お好みで調整） */
    height: 100vh;       /* 高さを画面いっぱいにする */
    overflow-y: auto;    /* 内容が多い場合はスクロールさせる */
    box-shadow: none !important; /* 右側に影をつける */
    z-index: 1;       /* 他の要素より手前に表示 */
    
    /* 中身のレイアウト調整（Flexboxと仮定） */
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    align-items: center;    /* 中央揃え */
    padding: 20px 0;
  }

  /* -----------------------
     2. ナビゲーションの縦並び
     ----------------------- */
  /* ヘッダー内のナビゲーションやリストを縦並びにする */
.lib-header__outer nav ul {
    display: flex;
    flex-direction: column; /* メニュー項目を縦並び */
    width: 100%;
    padding: 0;
  }

.lib-header__outer nav li {
    width: 100%;
    list-style: none;
  }

.lib-header__outer nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  /* -----------------------
     3. メインコンテンツの余白確保
     ----------------------- */
  /* ヘッダーが左に来る分、コンテンツを右にずらす */
  body {
    /* padding-left: 260px;  */
    width: calc(100% - 260px);
    margin-left: auto;
  }

  /* もしbodyへのpaddingで崩れる場合は、以下のメインラッパーへの指定を試してください */
  /* 対象サイトの構造から推測されるメインコンテンツのID */
  #dcms_layoutPageBlock {
    width: auto; /* 幅の自動調整 */
    max-width: 100%;
  }
  
  /* フッターも右にずらす必要がある場合 */
  footer, #footer {
    width: auto;
  }

}

/*MV↓*/
.fs-mv-1 {
  font-size: clamp( 3.75rem, calc( 2.483108108108108rem + 5.405405405405405vw ), 6.875rem );
}

.fs-mv-2 {
  font-size: clamp( 30px, calc( 21.89189189189189px + 2.1621621621621623vw ), 50px );
}

.lib-fv__inside {
  max-width: 1000px;
}

.lib-fv__txtarea {
  align-items: flex-start;
}

.lib-fv__thumb {
  height: 60vh;
}

@media print, screen and (min-width: 576px) {
.lib-fv__thumb {
  height: 832px;
}
}
/*MV↑*/

/*---------- Scroll down ----------*/
.l-mv-scroll-down {
  left: 5%;
  bottom: 5%;
  /* transform: translateX(max(-45vw, -40rem)); */
  z-index: 2;
}

.c-scroll-down {
  position: relative;
}
.c-scroll-down:after {
  position: absolute;
  left: 0;
  top: 0;
  left: 0;
  margin-inline: auto;
  width: 1px;
  height: 5em;
  background-color: var(--WHT);
  content:
  "";
  transform-origin: center top;
  animation: scroll 2s ease-in-out infinite both;
}
@keyframes scroll {
  0% {
    transform: scaleY(0);
  }
  50% {
    height: 5rem;
    transform: scaleY(1);
  }
  100% {
    height: 0;
  }
}

@media print, screen and (max-width: 991px) {
.border-whtcolor {
  border: 1px solid var(--WHT) !important;
}
}

/* ========================================
フッター
======================================== */
.lib-footer__guidance > li ~ li::before {
  background-color: currentColor;
}

.lib-footer__utility {
  max-width: calc(1120px + .75rem * 2);
  margin: 0 auto;
}

.lib-footer__title>a {
  border-top: 0;
  border-bottom: 0;
  background-color: transparent;
}

.lib-footer__logo {
  width: 350px;
}

@media print, screen and (max-width: 768px) {
.lib-footer__gnav {
max-width: 250px;
margin: 0 auto;
}
}

.footer-before {
  padding-left: 0; 
  position: relative;
  line-height: 1.5;
}

.footer-before:before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--WHT);
  border-radius: 0;
  top: 50%;
  position: absolute;
  left: -1rem;
  transform: translateY(-50%);
  opacity: 0;
  transition: 0.3s;
}

.footer-before:hover::before {
   opacity: 1;
  transition: 0.3s;
}

:where(a):has(.txt):hover :where(.txt) {
  text-decoration: none;
}

@media print, screen and (max-width: 425px) {
.footer-before:before {
  left: 0rem;
}
}

/* ========================================
CTA
======================================== */

/* ========================================
TOP
======================================== */


/*roadhing*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1.5s 2.5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading__logo {
  opacity: 0;
  animation: logo_fade 3.5s 0.5s forwards;
  width: 300px;
}

@keyframes logo_fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  60% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
  }
}

/* .design01 .aos-init {
  transition-delay: 6000ms;
} */




/*strength*/
.top-title {
  font-size: clamp( 2.5rem, calc( 1.8918918918918919rem + 2.5945945945945943vw ), 4rem );
}

.before-square {
  padding-left: 1rem;
  position: relative;
  line-height: 1.5
}

.before-square:before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--MAIN);
  border-radius: 0;
  top: 50%;
  position: absolute;
  left: 0;
  transform: translateY(-50%);
}

.before-square.--whtsquere:before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--WHT);
  border-radius: 0;
  top: 50%;
  position: absolute;
  left: 0;
  transform: translateY(-50%);
}

/*service*/
@media print, screen and (min-width: 992px) {
.top-service .lib-card__inside {
  margin-right: 200px;
}
}

@media print, screen and (min-width: 576px) {
/*recruit*/
.top-recruit .lib-fv__thumb {
height: 660px;
}
}

.top-recruit  .lib-fv__inside {
  max-width: 600px;
}

/*ボタン*/
:where(.lib-link__btn) {
  background-color: transparent;
  color: var(--DEF);
  border: var(--DEF) 1px solid;
  border-radius: 9px;
  font-weight: 400;
  padding: 20px;
      max-width: 400px;
}

.lib-link__btn.--whtbtn {
  background-color: transparent;
  color: var(--WHT);
  border: var(--WHT) 1px solid;
  border-radius: 9px;
  font-weight: 400;
}

.lib-link__btn.--mainbtn {
  background-color: var(--MAIN);
  color: var(--WHT);
  border: var(--MAIN) 1px solid;
  border-radius: 9px;
  font-weight: 400;
}

@media print, screen and (min-width: 768px) {
:where(.lib-link__btn) {
  max-width: 305px;
  padding: 20px;
}
}

@media print and (hover: hover) and (pointer: fine), screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
:where(.lib-link__btn):hover {
  background-color: var(--DEF);
  color: var(--WHT);
}

.lib-link__btn.--whtbtn:hover {
  background-color: var(--WHT);
  color: var(--DEF);
}

.lib-link__btn.--mainbtn:hover {
  background-color: var(--WHT);
  color: var(--MAIN);
}
}

:where(.lib-link__btn):not([class*=ico-after-]):not([class*=ico-before-])>.txt {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding-left: 12px;
}

:where(.lib-link__btn):not([class*="ico-after-"]):not([class*="ico-before-"]):not([target="_blank"]) > .txt::after {
  content: "" !important;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  width: 2em;
  height: 0.5em;
  transform: skewX(45deg);
}

.lib-induce__btn {
    background-color: var(--MAIN);
  color: var(--WHT);
  border: var(--MAIN) 1px solid;
  border-radius: 9px !important;
  font-weight: 400;
}

:where(.lib-induce__btn):not([class*=ico-after-]):not([class*=ico-before-])>.txt {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding-left: 12px;
}

:where(.lib-induce__btn):not([class*="ico-after-"]):not([class*="ico-before-"]):not([target="_blank"]) > .txt::after {
  content: "" !important;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  width: 2em;
  height: 0.5em;
  transform: skewX(45deg);
}

@media print and (hover: hover) and (pointer: fine), screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
.lib-induce__btn:hover {
  background-color: var(--WHT);
  color: var(--MAIN);
}
}

/*あしらい*/
@media print, screen and (min-width: 992px) {
  /* :has()を使用して条件を指定 */
  #wrapper:has(.lib-fv-002) {
    overflow-x: visible;
  }
}

.design01 {
  position: relative;
}

.--design01 {
  content: '';
  position: absolute;
  width: 70%;
  height: 50%;
  background-image: url(/dcms_media/image/design01.png);
  background-repeat: no-repeat;
  background-size: contain;
  top: -31%;
  left: 41%;
  z-index: -1;
}

@media print, screen and (min-width: 992px) {
  .--design01 {
width: 50%;
height: 100%;
top: -85%;
left: -15%;
}
}

.design02 {
  position: relative;
}

.--design02 {
  content: '';
  position: absolute;
  width: 100%;
  height: 50%;
  background-image: url(/dcms_media/image/design02.png);
  background-repeat: no-repeat;
  background-size: contain;
  top: 80%;
  left: -15%;
  z-index: -1;
}

.design03 {
  position: relative;
}

.--design03 {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url(/dcms_media/image/design03.png);
  background-repeat: no-repeat;
  background-size: contain;
  top: 75%;
  right: -25%;
  z-index: -1;
  background-position-x: right;
  /* background-position-y: -10%; */
  /* margin-left: auto; */
}

@media print, screen and (min-width: 992px) {
.--design03 {
  right: 10%;
  width: 50%;
}
}

/* お知らせ */
.p-top-news {
    /* transform: translateY(-100%); */
    

  .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-news .lib-media__category {
  display: none;
}

.news-title {
  position: relative;
}

.news-title::after {
  content: "";
  width: 2px;
  height: 30px;
  background-color: var(--WHT);
  border-radius: 0;
  top: 30%;
  position: absolute;
  right: 0%;
}

:where(.lib-media__time)>p {
  font-size: clamp( 0.75rem, calc( 0.597972972972973rem + 0.6486486486486486vw ), 1.125rem );
}

.p-top-news .lib-media__title {
  font-weight: normal;
}

/* ========================================
下層
======================================== */
/*---------- 下層MV ----------*/
@media print, screen and (min-width: 992px) {
  #wrapper:has(.lib-header-BS02) .lib-hero__outer {
    padding-top: 0;
    min-height: 250px;
}
}

.lib-hero__outer {
  background-color: var(--MAIN);
}

.lib-hero__outer .title {
  font-weight: bold;
}

/*---------- 私たちの強み ----------*/
.lib-title__outer.--typeC :where(.title) {
  border-bottom: var(--MAIN) 1px solid;
}

.lib-title__outer.--typeC.--wht :where(.title) {
  border-bottom: var(--WHT) 1px solid;
}


/*---------- 事業内容 ----------*/
.service .lib-grid__outer .lib-grid__col {
  position: relative;
}

.service .lib-grid__outer .lib-grid__col::after {
  content: "";
  position: absolute;
  z-index: 2;
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  /* 色は --MAIN 変数または直接指定 */
  border-color: transparent; 
  pointer-events: none;
}

@media (max-width: 767px) {  
  .service .lib-grid__outer .lib-grid__col:not(:last-child)::after {
    content: "▼";
    font-size: 40px;
    color: var(--MAIN);
    border: none;
    width: 100%;
    text-align: center;
    bottom: 0;
    left: 0;
}
}

/* --- タブレット・PC時（右向き矢印 ▶） --- */
@media (min-width: 768px) {
  .service .lib-grid__outer .lib-grid__col:nth-child(odd)::after {
    content: "▶";
    font-size: 40px;
    color: var(--MAIN);
    border: none;
    top: 30%;
    left: 97%;
    transform: translateY(-50%);
}
}

.lib-flow-001__col:nth-child(3n):after {
display: block;
}

.lib-flow-001__col:nth-child(4n):after {
  display: none;
}


/*---------- 会社概要 ----------*/
:where(table) tbody>tr>th:first-child {
    border-left-color: transparent;
}

:where(table) th, :where(table)>thead {
    border: none;
    background-color: transparent;
    color: var(--DEF);
    text-align: start;
    border-bottom: 1px solid var(--GRY);
}

:where(table) td {
    border: none;
    border-bottom: var(--GRY) 1px solid;
}

/*---------- 実績 ----------*/
.max-800 {
  max-width: 800px;
}


.loadings {
  position: fixed;
  z-index: 999;
  background-color: #FFFFFF;
  width: 100%;
  height: 100%;
  top:0;
  left: 0;
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  justify-content: center;
  .loading_content {
    max-width: 260px;
    img,svg {
      width: 100%;
      height: auto;
      display: block;
      margin:0 auto;
    }
    .loading_logo {
        path {
          opacity: 0;
        }
    }
    .loading_txt1 {
      width: 92%;
      margin:20px auto 10px;
    }
    .loading_txt2 {
      width: 20%;
      margin-bottom: 20px;
    }
    .loadingbox {
      width: 40%;
      margin:0 auto;
      position: relative;
      .loading_box {
        width: 100%;
      }
      .loading_load {
        position: absolute;
        width: 50%;
        left: 50%;
        top:50%;
        transform: translate(-50%,-50%);
      }
    }
  }
  &.ready {
    .loading_content {
      display: none;
    }
    img {
      opacity: 0;
    }
  }
  &.fin {
    transition: opacity 1s ease-in-out;
    opacity: 0;
    &.fin2 {
      display: none;
    }
  }
}