@charset "utf-8";

:root {
  --bl: #000000;
  --transition: all 0.3s ease-in-out;
  --oversize: calc((100% - 100vw) / 2);
  --grad-01: linear-gradient(60deg, var(--MAIN) 0%, var(--MAIN) 40%, var(--ACC) 100%);
  --grad-02: linear-gradient(90deg, var(--MAIN) 0%, var(--ACC) 100%);
}

/* ==================================
リセット・調整
===================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}
@media print, screen and (min-width: 992px) {
  html {
    scroll-padding-top: 11rem;
  }
}

:where(img) {
  /* max-width: 100%; */
  height: auto;
  vertical-align: middle;
}

/* @media print, screen and (min-width: 1400px) {
  #contents,
  .container {
    max-width: 105rem;
  }
} */

/*---------- アクセシビリティ ----------*/
/* アイコンを読み上げさせない */
i,
[class*="material-icons"],
[class*="material-symbols"] {
  speak: none;
}

/* ==================================
タイポ
===================================== */
.ff-notoserif {
  font-family: "Noto Serif JP", serif;
}
.ff-lato {
  font-family: "Lato", sans-serif;
  /* letter-spacing: 0.05rem; */
}
.ff-oswald {
  font-family: "Oswald", sans-serif;
}
.fw-600 {
  font-weight: 600 !important;
}
.fw-900 {
  font-weight: 900 !important;
}

/* ==================================
ユーティリティー
===================================== */
/*---------- 画像の比率 ----------*/
.u-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.u-aspect.--contain img {
  object-fit: contain;
}
.u-aspect.--16x9 img {
  aspect-ratio: 16 / 9;
}
.u-aspect.--4x3 img {
  aspect-ratio: 4 / 3;
}
.u-aspect.--21x9 img {
  aspect-ratio: 21 / 9;
}
.u-aspect.--2x1 img {
  aspect-ratio: 2 / 1;
}
.u-aspect.--3x1 img {
  aspect-ratio: 3 / 1;
}
.u-aspect.--1x1 img {
  aspect-ratio: 1 / 1;
}
.u-aspect.--7x8 img {
  aspect-ratio: 7 / 8;
}
.u-aspect.--9x16 img {
  aspect-ratio: 9 / 16;
}
.u-aspect.--3x4 img {
  aspect-ratio: 3 / 4;
}

/*---------- はみ出させる ----------*/
.u-over {
  margin-inline: var(--oversize);
}
/* 右に */
.u-r-over {
  margin-right: var(--oversize);
}
@media print, screen and (min-width: 768px) {
  .u-r-md-over-50 {
    margin-right: var(--oversize);
    flex-basis: 50%;
    flex-grow: 1;
  }
}
/* 左に */
.u-l-over {
  margin-left: var(--oversize);
}
@media (min-width: 768px) {
  .u-l-md-over-50 {
    margin-left: var(--oversize);
    flex-basis: 50%;
    flex-grow: 1;
  }
}

/* ========================================
パーツ
======================================== */
/*---------- 背景のベース ----------*/
.p-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}
.p-bg::before,
.p-bg::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  speak: none;
}
/* 黒透明フィルター */
.p-bg.--bl::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}
.p-bg.--bl.--md::before {
  background-color: rgba(0, 0, 0, 0.5);
}
.p-bg.--bl.--strong::before {
  background-color: rgba(0, 0, 0, 0.7);
}
.p-bg.--bl.--strongest::before {
  background-color: rgba(0, 0, 0, 0.9);
}
/* 白透明フィルター */
.p-bg.--wh::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}
.p-bg.--wh.--md::before {
  background-color: rgba(255, 255, 255, 0.5);
}
.p-bg.--wh.--strong::before {
  background-color: rgba(255, 255, 255, 0.7);
}
.p-bg.--wh.--strongest::before {
  background-color: rgba(255, 255, 255, 0.9);
}

/*---------- ホバーアクション ----------*/
.c-hover {
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}
.c-hover:hover {
  text-decoration: none;
}
.c-hover.--underline:hover {
  text-decoration: underline;
}
.c-hover.--bg-lmain:hover {
  background-color: var(--LMAIN);
}
.c-hover.--opacity:hover {
  opacity: 0.8;
}
.c-hover.--up:hover {
  transform: translateY(-0.125rem);
}
.c-hover.--scale-up img {
  transition: var(--transition);
}
.c-hover.--scale-up:hover img {
  transform: scale(1.1);
}

/*---------- 正方形アイコン ----------*/
.c-icon {
  aspect-ratio: 1 / 1;
  speak: none;
}

/*---------- アイコンとテキスト（ボタンによく使う） ----------*/
.c-icon-text {
  display: grid !important;
  grid-template-columns: repeat(2, auto);
  column-gap: 0.5em;
  justify-content: center;
  align-items: center;
}
/* アイコンだけ右寄せ */
.c-icon-text.--r {
  grid-template-columns: 1fr auto;
}
/* アイコンだけ左寄せ */
.c-icon-text.--l {
  grid-template-columns: auto 1fr;
}
@media print, screen and (min-width: 992px) {
  .c-icon-text {
    column-gap: 1em;
  }
}

/*---------- グラデーション ----------*/
.text-grad-01 {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background: var(--grad-01);
  display: inline-block;
}
.bg-grad-01 {
  background: var(--grad-01);
}

/* ========================================
TOP
======================================== */
/*---------- MV ----------*/
/* レイアウト */
.l-mv {
  display: grid;
}
.l-mv .l-text,
.l-mv .l-img,
.l-mv .l-color {
  grid-area: 1 / 1 / 2 / 2;
}
.l-mv .l-text {
  z-index: 6;
}
.l-mv .l-img {
  z-index: 2;
}
.l-mv .l-color {
  z-index: 4;
  pointer-events: none;
  speak: none;
}

/* .lib-fv__thumb {
  height: 80svh;
} */
/* @media print, screen and (max-width: 992px) { */
.lib-fv__thumb {
  height: auto;
}
/* .lib-fv__thumb img {
  aspect-ratio: 21/9;
} */
/* } */

/* .swiper-pagination-bullet {
  width: 2em !important;
  height: 2em !important;
  margin-left: 1em !important;
  border-color: var(--ACC);
} */

/* あしらいのレイアウト */
body:has(.p-bg.--mv-ap)::before,
body:has(.p-bg.--mv-ap)::after {
  content: "";
  display: block;
  position: fixed;
}
body:has(.p-bg.--mv-ap)::before {
  background-color: var(--ACC);
  right: 0;
  bottom: 0;
  width: min(80%, 40rem);
  aspect-ratio: 2/1;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  z-index: -1;
}
body:has(.p-bg.--mv-ap)::after {
  background-color: var(--LMAIN);
  inset: 0;
  clip-path: polygon(30% 0%, 100% 60%, 100% 100%, 80% 100%, 0 30%, 0 0);
  opacity: 1;
  visibility: visible;
  z-index: -2;
}
/* .p-bg.--mv-ap::before {
  background-color: var(--ACC);
  right: 0;
  bottom: 0;
  width: min(80%, 40rem);
  aspect-ratio: 2/1;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  z-index: -1;
}
.p-bg.--mv-ap::after {
  background-color: var(--LMAIN);
  right: 0;
  bottom: 0;
  width: 200%;
  aspect-ratio: 4/1;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: translateY(min(15%, 4rem));
  z-index: -2;
} */

/*---------- 見出し ----------*/
.c-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 0.25em;
  color: var(--DEF);
}
.c-head.--size {
  /* font-size: clamp(1.875rem, calc(1.1931818181818183rem + 2.909090909090909vw), 3.375rem); */
  font-size: clamp(1.875rem, calc(1.4772727272727273rem + 1.6969696969696972vw), 2.75rem);
}
.c-head::before {
  content: "";
  display: inline-block;
  aspect-ratio: 1/1;
  height: 1em;
  /* background-image: url("/dcms_media/image/icon-head.png"); */
  background-image: url("../../dcms_media/image/icon-head.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/*---------- YouTube埋め込み ----------*/
.p-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding-top: 56.25%;
}
.p-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*---------- NEWS ----------*/
.l-broken-grid.--l-img-r-text {
  grid-template-columns: 1fr 1fr 2fr;
}
.l-broken-grid.--l-img-r-text .l-img {
  grid-area: 1 / 1 / 2 / 3;
  z-index: 1;
  opacity: 0.7;
}
.l-broken-grid.--l-img-r-text .l-text {
  grid-area: 1 / 2 / 2 / 4;
  z-index: 2;
}

.c-h-news {
  font-size: clamp(5rem, calc(4.090909090909091rem + 3.878787878787879vw), 7rem);
}

/* .l-broken-grid.--l-img-r-text {
  display: grid;
  grid-template-columns: 1fr 10fr 1fr;
  grid-template-rows: repeat(12, 1fr);
}
.l-broken-grid.--l-img-r-text .l-text {
  grid-area: 2 / 2 / 12 / 4;
  z-index: 2;
}
.l-broken-grid.--l-img-r-text .l-img {
  grid-area: 1 / 1 / 13 / 3;
  z-index: 1;
}
@media print, screen and (min-width: 768px) {
  .l-broken-grid.--l-img-r-text {
    grid-template-columns: 1fr 1fr 2fr;
  }
  .l-broken-grid.--l-img-r-text .l-text {
    grid-area: 2 / 2 / 12 / 4;
  }
} */

/*---------- 製品画像スライダー ----------*/
/* 滑らかに */
.u-swiper-liner .swiper-wrapper {
  transition-timing-function: linear;
}

/*---------- 事業内容 ----------*/
.c-h-business {
  /* font-size: clamp(2rem, calc(0.8636363636363635rem + 4.848484848484849vw), 4.5rem); */
  font-size: clamp(2rem, calc(1.3181818181818183rem + 2.909090909090909vw), 3.5rem);
}

/*---------- ヘッダー ----------*/
/* レイアウト */
.l-header {
  display: grid;
  grid-template-columns: 1fr 3rem;
}
.l-logo {
  grid-area: 1/1/2/2;
}
.l-btn {
  grid-area: 1/2/2/3;
  /* width: 3rem; */
}
.l-menu {
  grid-area: 2/1/3/3;
}
@media print, screen and (min-width: 992px) {
  .l-header {
    grid-template-columns: auto 1fr;
  }
  .l-menu {
    display: contents;
  }
  .l-menu-1 {
    grid-area: 1/2/2/3;
  }
  .l-menu-2 {
    grid-area: 2/1/3/3;
  }
}

/* ロゴ */
.c-logo {
  height: 3rem;
}
@media print, screen and (min-width: 992px) {
  .c-logo {
    height: 4rem;
  }
}
.c-logo img {
  max-height: 100%;
  width: auto;
  max-width: unset;
}

/* ハンバーガーボタン */
.p-header button:has(.c-hamburger) {
  background-color: var(--MAIN);
  color: var(--WHT);
}
.p-header button:has(.c-hamburger)::after {
  content: "Menu";
  font-size: 0.75rem;
  text-transform: uppercase;
}
.p-header button:has(.c-hamburger)[aria-expanded="true"]::after {
  content: "Close";
}
.c-hamburger-box {
  height: 1.125em;
}
.c-hamburger {
  position: relative;
  display: block;
  width: 1.5em;
  height: 2px;
  border-radius: 0.25em;
  background-color: currentColor;
  transition: var(--transition);
}
.c-hamburger::before,
.c-hamburger::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.25em;
  background-color: currentColor;
  transition: var(--transition);
}
.c-hamburger::before {
  top: 0.5em;
}
.c-hamburger::after {
  bottom: 0.5em;
}
.c-hamburger.is-active {
  background-color: rgba(0, 0, 0, 0);
}
.c-hamburger.is-active:before,
.c-hamburger.is-active:after {
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: currentColor;
}
.c-hamburger.is-active::before {
  transform: rotate(-25deg);
}
.c-hamburger.is-active::after {
  transform: rotate(25deg);
}

/* 開閉ボタン */
.c-btn-accordion {
  /* top: 0; */
  top: 0.5em;
  right: 0;
  height: 2.5em;
  width: 2.5em;
  /* transform: translateY(-50%); */
  background-color: transparent;
  border: none;
}
.c-accordion-icon {
  display: block;
  width: 100%;
  height: 100%;
}
.c-accordion-icon::before,
.c-accordion-icon::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  background-color: currentColor;
  transition: all 0.3s ease-in-out;
}
.c-accordion-icon::before {
  width: 1em;
  height: 2px;
}
.c-accordion-icon::after {
  width: 2px;
  height: 1em;
}
/* .c-accordion-icon::before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	right: 50%;
	width: .75em;
	height: .75em;
	border-bottom: 2px solid var(--color-main);
	border-right: 2px solid var(--color-main);
	transform: translate(50%, -75%) rotate(45deg);
	transition: var(--transition);
} */
/* .c-accordion-icon.is-active::after {
opacity: 0;
} */
/* .c-accordion-icon.is-active::before {
	transform: translate(50%, -25%) rotate(225deg);
} */

/* メニュー部分 */
.p-header-menu {
  display: none;
  max-height: 100svh;
  overflow-y: auto;
}
.p-header .c-text {
  transition: var(--transition);
}
.p-header .c-menu-item {
  display: inline-block;
  min-height: 2rem;
}
@media print, screen and (min-width: 992px) {
  .p-header-menu {
    display: contents;
  }
  .p-header .c-menu-item {
    min-height: 3rem;
  }
}

.p-header-menu-1 .c-menu-item {
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.p-header-menu-1 .c-menu-item:hover {
  opacity: 0.7;
}

.p-header-menu-2 .c-menu-item {
  color: var(--WHT);
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.l-has-child-menu {
  display: grid;
  grid-template-columns: 1fr 2rem;
}
.l-has-child-menu .l-link {
  grid-area: 1/1/2/2;
}
.l-has-child-menu .l-btn {
  grid-area: 1/2/2/3;
}
.l-has-child-menu .l-child-menu {
  grid-area: 2/1/3/3;
}

/* .p-header .p-header-menu-2-child {
  display: none;
} */
@media print, screen and (min-width: 992px) {
  .p-header-menu-child {
    position: absolute;
    top: 100%;
    background-color: var(--WHT);
  }
  .p-header .p-header-menu-child.--2 .c-text {
    color: var(--DEF);
  }
  .p-header .p-header-menu-child.--2 .c-text:hover {
    color: var(--MAIN);
  }
}

.p-header-menu-2 .c-menu-item[data-hover-text],
.p-header-menu-2 .c-menu-item[data-hover-text] .c-text,
.p-header-menu-2 .c-menu-item[data-hover-text]::before {
  height: 2rem;
  transition: var(--transition);
}
@media print, screen and (min-width: 992px) {
  .p-header-menu-2 .c-menu-item[data-hover-text],
  .p-header-menu-2 .c-menu-item[data-hover-text] .c-text,
  .p-header-menu-2 .c-menu-item[data-hover-text]::before {
    height: 3rem;
    transition: var(--transition);
  }
}
.p-header-menu-2 .c-menu-item[data-hover-text] .c-text,
.p-header-menu-2 .c-menu-item[data-hover-text]::before {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}
@media print, screen and (min-width: 992px) {
  .p-header-menu-2 .c-menu-item[data-hover-text] .c-text,
  .p-header-menu-2 .c-menu-item[data-hover-text]::before {
    text-align: center;
    padding-inline: 3vw;
  }
}
.p-header-menu-2 .c-menu-item[data-hover-text] {
  overflow: hidden;
  justify-content: flex-start;
}
.p-header-menu-2 .c-menu-item[data-hover-text]:hover .c-text,
.p-header-menu-2 .c-menu-item[data-hover-text]:hover::before {
  transform: translateY(-100%);
}
.p-header-menu-2 .c-menu-item[data-hover-text] .c-text,
.p-header-menu-2 .c-menu-item[data-hover-text]::before {
  background-color: var(--WHT);
  color: var(--MAIN);
}
.p-header-menu-2 .c-menu-item[data-hover-text]::before {
  content: attr(data-hover-text);
  transition: var(--transition);
  background-color: var(--MAIN);
  color: var(--WHT);
}

#wrapper:has(.p-header) {
  padding-top: 3rem;
}
@media print, screen and (min-width: 992px) {
  #wrapper:has(.p-header) {
    padding-top: 7rem;
  }
}

/* ========================================
下層
======================================== */
/*---------- MV ----------*/
/* .lib-hero__inner {
  color: var(--ACC);
} */
/* .lib-hero__title {
  font-size: 1rem;
} */
/* .c-under-mv-text-en {
  font-size: clamp(2.5rem, calc(2.272727272727273rem + 0.9696969696969697vw), 3rem);
  font-weight: bold;
  text-transform: uppercase;
} */

.lib-fv__slider .lib-swiper__btn {
  top: 98%;
}
@media print, screen and (min-width: 992px) {
  .lib-fv__slider .lib-swiper__btn {
    top: 80%;
  }
}

.u-iframe {
  overflow-y: clip;
}
.u-iframe iframe {
  height: 200%;
  transform: translateY(-25%);
}

@media print, screen and (min-width: 992px) {
  .u-mv-sp {
    display: none;
  }
}
@media print, screen and (max-width: 991px) {
  .u-mv-pc {
    display: none;
  }
}
#tinymce .u-mv-sp,
.editor_block .u-mv-sp,
#tinymce .u-mv-pc,
.editor_block .u-mv-pc {
  display: block !important;
}
#tinymce .u-mv-sp .lib-wide__outer,
.editor_block .u-mv-sp .lib-wide__outer {
  max-width: 30rem;
  margin-inline: auto;
}
#tinymce .u-mv-pc .lib-wide__outer,
.editor_block .u-mv-pc .lib-wide__outer {
  max-width: 50rem;
  margin-inline: auto;
}
