@charset "UTF-8";
/* ===========================================
 * 
	----------------------------------
  Structure
  ----------------------------------
  00_aboutのみ適応
  01_bg
  02_about contents
 * ======================================== */

/* ===========================================
 * 00_aboutのみ適応
 * ======================================== */
 /* header */
 /* ======================================== */
.header {
  container-type: inline-size;
  background: transparent;
}
.header.is-moving {
  background: var(--color-bg-wh);
}

/* ロゴの色を変更 */
.header__logo-link img {
  filter: brightness(0) invert(1);
}
.header__nav-lists > li {
  background-image: linear-gradient(var(--color-font-wh), var(--color-font-wh));
}
.header__nav-lists > li > a {
  color: var(--color-font-wh);
}
/* spハンバーガメニュー */
.button-icon::before,
.button-icon::after  {
  background: var(--color-font-wh);
  box-shadow:
  0 -6px 0 var(--color-font-wh),
  0 6px 0 var(--color-font-wh);
}
.menu__drawer[open] .button-icon::before,
.menu__drawer[open] .button-icon::after {
  background: var(--color-font-gr);
  box-shadow:
  0 -6px 0 transparent,
  0 6px 0 transparent;
}

/* footer */
/* ======================================== */
.footer {
  position: relative;
  z-index: 10;
}

/* ===========================================
 * 01_bg
 * ======================================== */
.bg {
  position: absolute;
  left: 0;  
  z-index: 1;
  width: 100%;
  height: auto;
}
.bg__video {
  width: 100%;
  height: auto;
  display: block;
  position: relative;

  video {
  width: 100%;
  min-height: 100vh; 
  height: auto;
  object-fit: cover;
  display: block;
  }
}

/* デフォルト（PC向け） */
.bg__media.--video {
  display: block;
}
.bg__media.--image {
  display: none;
}

/* タブレット・SP向け */
@media (max-width: 1024px) {
  .bg {
    height: 100vh;
  }
  .bg__media.--video {
    display: none;
  }
  .bg__media.--image {
    display: block;
    height: 100%;
  }

  .bg__imgs {
    display: grid;
    height: 100%;
  }
  .bg__img-text {
    width: 80%;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    place-self: center;
    padding-bottom: var(--spc-140-70);
  }
  .bg__img {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    height: 100%;
  }

  .bg__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }
}

/* ===========================================
 * 02_about contents
 * ======================================== */
.main-contents {
  position: relative;
  z-index: 2;
  padding-top: 100vh;
}

.about {
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (max-width: 1024px) {
  .main-contents {
    padding-top: 100vh;
  }
  .about {
    min-height: 100vh;
  }
}
.about::after {
  content: '';
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.about__contents {
  margin-inline: auto;
}

.about__phrase {
  display: grid;
  gap: var(--spc-60-30);
  padding-bottom: var(--spc-100-50);
}

.about__title {
  --clamp-min: 40;
  --clamp-max: 60;
  font-weight: bold;
  color: var(--color-font-wh);
  text-align: center;
}

.about__text {
  --clamp-min: 20;
  --clamp-max: 30;
  color: var(--color-font-wh);
  max-width: 550px;
  width: 100%;
  margin-inline: auto;
}

.about__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
  justify-items: center;
  gap: var(--spc-40-20);
}

.about__item {
  display: flex;
  justify-content: center;
  width: 100%;
}

.about__btn {
  --clamp-min: 20;
  --clamp-max: 30;
  width: 100%;
  max-width: 380px;
  display: block;
  font-weight: bold;
  color: var(--color-font-wh);
  background-color: rgb(0 0 0 / 65%);
  border: 1px solid var(--color-font-wh);
  padding: var(--spc-10-5) var(--spc-40-20);
  border-radius: 9999px;
  text-align: center;
  transition: background-color 0.3s ease, border 0.3s ease;
}
@media (hover: hover) {
  .about__btn:hover {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
  }
}
@container (width <= 768px) {
  .about__items {
    grid-template-columns: 1fr;
    gap: var(--spc-80-40);
  }
  .about__btn {
      padding: var(--spc-20-10) var(--spc-40-20);
  }
}

/* dialog内 */
/* ======================================== */
.about__dialog {
  width: 55%;
  max-height: calc(100dvh - var(--spc-80-40));
  display: flex;
  flex-direction: column;

  &.--brand-essay {
    inset: 0 0 0 auto;
    margin: auto 0 auto auto;
    border-radius: 40px 0 0 40px;
  }
  &.--our-values {
    inset: var(--spc-40-20) 0 0 0; 
    margin: 0 auto 0 auto; 
    border-radius: 40px 40px 0 0;
    max-height: calc(100dvh - var(--spc-40-20));
  }
  &.--business-concept {
    inset: 0 auto 0 0; 
    margin: auto 0 auto auto;
    border-radius: 0 40px 40px 0;
  }
}
@container (width <= 768px) {
  .about__dialog {
    width: 90%;

    &.--brand-essay,
    &.--our-values,
    &.--business-concept {
      inset: 0;
      margin: auto; 
      border-radius: 40px;
    }
  }
}

.about-item__wrap {
  padding: var(--spc-60-30) var(--spc-10-5) var(--spc-60-30) var(--spc-40-20);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.about-item__inner {
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr var(--spc-20-10) 1fr;
}
@container (width <= 768px) {
  .about-item__wrap {
    padding: var(--spc-60-30) var(--spc-40-20);
  }
  .about-item__inner {
    padding-right: var(--spc-10-5);
  }
}
.about-item__img {
  max-width: 100%;
  padding-right: var(--spc-60-30);
  grid-row: 1 / -1;
  align-self: start;
  justify-self: end;
  z-index: 1;
  position: fixed;
  top: 56%;
  transform: translateY(-50%);
  right: 0;
  grid-column: 1 / -1;
}
.about-item__phrase {
  display: grid;
  gap: var(--spc-60-30);

  grid-column: 1 / 2;
  grid-row: 1 / -1;
  z-index: 2; 
  position: relative;

  grid-column: 1 / -1;
}
.about-item__title {
  --clamp-min: 30;
  --clamp-max: 60;
  font-weight: 900;
}
.about-item__sub-title {
  --clamp-min: 20;
  --clamp-max: 30;
  font-weight: bold;
  color: var(--color-primary);

}
.about-item__text {
  --clamp-min: 16;
  --clamp-max: 24;
  line-height: 2;
}



/* 閉じるボタン */
/* ======================================== */
.close-btn {
  position: absolute;
  top: 0;
  right: 40px;
  width: var(--len-60-30);
  height: var(--len-60-30);
  background: var(--color-bg-bk);
  border: 1px solid transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border 0.3s ease, background-color 0.3s ease;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  width: var(--len-24-12);  /* ×の線の長さ */
  height: 3px;  /* ×の線の太さ */
  background: var(--color-bg-wh);
  transition: background-color 0.3s ease;
}
.close-btn::before {
  transform: rotate(45deg);
}
.close-btn::after {
  transform: rotate(-45deg);
}

@media (hover: hover) {
  .close-btn:hover {
    border: 1px solid var(--color-bg-bk);
    background: var(--color-bg-wh);
  }
  .close-btn:hover::before,
  .close-btn:hover::after {
    background: var(--color-bg-bk);
  }
}