:root{
  --header-height-pc: 95px;
  --header-height-sp: 104px;
}

body {
  overflow-x: hidden;
}

main {
  padding-block-end: 0;
}

/* --------------------------------------------------------------
  Header
---------------------------------------------------------------- */
header {
  margin-bottom: 0;
  padding-block: 20px;
}

.hamburger__bar {
  background: var(--color-white);
}

.gnav__list a {
  color: var(--color-white);
}

/* --------------------------------------------------------------
  Hero / Main Visual
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 60svh;
  height: calc(100svh - 120px);
  overflow: hidden;
  margin-top: calc(var(--header-height-pc) * -1);
  padding-top: var(--header-height-pc);
  z-index: 0;
}

/* 背景動画 */
.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__inner {
  width: var(--container-width);
  margin: auto;
}

.hero__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  top: calc(50% + 5%);
  left: calc(50% - 2%);
  transform: translate(-50%, -50%);
}
.eyecatch {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--color-text);
}
.lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--color-text);
  margin-top: 1em;
}


/* 低速回線や動きを減らす設定の配慮：動画を停止してポスターのみ表示 */
@media (prefers-reduced-motion: reduce){
  .hero__video{
    display:none;
  }
  .hero__overlay{
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0));
  }
}



@media screen and (max-width: 699px) {
  .hero {
    margin-top: calc(var(--header-height-sp) * -1);
    padding-top: var(--header-height-sp);
  }
  .hero__copy {
    width: 85%;
  }
  .eyecatch {
    font-size: 30px;
  }
  .lead {
    font-size: 16px;
    line-height: 1.7;
  }
}



:root {
  --eyecatch-mask-dur: 1.4s;
  --eyecatch-stagger : 0.24s;
  --eyecatch-txt-ease: cubic-bezier(0.37,0,0.63,1);
}

.smooth {
  display: block;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition: clip-path var(--eyecatch-mask-dur) var(--eyecatch-txt-ease);
  -webkit-transition: -webkit-clip-path var(--eyecatch-mask-dur) var(--eyecatch-txt-ease);
  will-change: clip-path;
  line-height: 1.1;
  margin-top: 12px;
  backface-visibility: hidden;
}
.smooth.is-animated {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

.smooth .eyecatch {
  display:inline-block;
  transform: translateX(8px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
}
.smooth.is-animated .eyecatch {
  transform: translateX(0);
  opacity: 1;
  transition-delay: .12s; /* マスクが動き始めてすぐ文字も出す */
}

.smooth + .smooth {
  margin-top: 0.4em;
}

@media (prefers-reduced-motion: reduce) {
  .smooth,
  .smooth.is-animated,
  .smooth .eyecatch,
  .smooth.is-animated .eyecatch{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
}


/* --------------------------------------------------------------
  Information
---------------------------------------------------------------- */
.information {
  margin-top: 80px;
}
.information_inner {
  background: var(--color-white);
  max-width: 700px;
  width: 80%;
  padding: 1.5em 2em .5em;
  margin-inline: auto;
}
.information_inner dl {
  display: flex;
  margin-block-end: 1em;
}

.information_inner dt {
  margin-inline-end: 2em;
  font-size: 13px;
  color: var(--color-light-gray);
}
.information_inner dd {
  font-size: 14px;
}

@media screen and (max-width: 499px) {
  .information_inner dl {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------
  intro
---------------------------------------------------------------- */
.intro {
  position: relative;
  padding: var(--space-xl) 0;
  margin-top: 80px;
}

.intro__lead {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  width: 90%;
  margin: auto;
}

.intro__text h2 {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-corporate);
  margin-bottom: 2em;
}
.intro__text p {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 1em;
}

.intro__image {
  max-width: 350px;
}

.intro__gallery {
  position: relative;
}
.intro__gallery.row_1 {
  height: 400px;
  margin-top: 100px;
}
.intro__gallery.row_2 {
  height: 450px;
  margin-top: 50px;
}

.intro__gallery figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
}
.intro__gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.intro__gallery .ph1 {
  top: 0;
  left: calc(50% + 7%);
  transform: translateX(-50%);
  max-width: 300px;
  width: 50%;
}
.intro__gallery .ph2 {
  bottom: 0;
  left: calc(50% - 40%);
  transform: translateX(-50%);
  max-width: 420px;
  width: 50%;
}
.intro__gallery .ph3 {
  top: 0;
  left: calc(50% - 45%);
  transform: translateX(-50%);
  max-width: 250px;
  width: 50%;
}
.intro__gallery .ph4 {
  bottom: 0;
  left: calc(50% + 5%);
  transform: translateX(-50%);
  max-width: 436px;
  width: 50%;
}

@media (max-width: 1080px) {
  .intro__gallery .ph2 {
    left: calc(50% - 40%);
  }
  .intro__gallery .ph3 {
    left: calc(50% - 47%);
  }
  .intro__gallery .ph4 {
    left: calc(50% - 2%);
  }
}

@media (max-width: 950px) {
  .intro__gallery .ph1 {
    max-width: 290px;
  }
  .intro__gallery .ph2 {
    left: calc(50% - 42%);
  }
  .intro__gallery .ph3 {
    top: 270px;
    left: calc(50% - 40%);
    width: 45%;
  }
  .intro__gallery .ph4 {
    max-width: 420px;
  }
}


@media (max-width: 699px) {
  .intro {
    overflow-x: hidden;
    margin-top: 70px;
  }
  .intro__lead {
    flex-direction: column;
    width: 100%;
  }
  .intro__text h2 {
    font-size: 20px;
    margin-bottom: 1.5em;
  }
  .intro__image {
    padding-top: 50px;
    max-width: 300px;
    width: 220px;
  }

  .intro__gallery.row_1 {
    margin-top: 50px;
    width: 100%;
  }
  .intro__gallery .ph1 {
    left: calc(50% - 15%);
    width: 70%;
  }

  .intro__gallery .ph2 {
    left: calc(50% - 55%);
    width: 70%;
  }

  .intro__gallery .ph3 {
    bottom: 0;
    left: calc(50% - 55%);
    width: 70%;
  }
  .intro__gallery .ph4 {
    top: 270px;
    left: calc(50% - 50%);
    width: 80%;
  }
}


@media (max-width: 499px) {
  .intro__image {
    padding-top: 50px;
    max-width: 300px;
    width: 300px;
  }

  .intro__gallery.row_1 {
    /*
    margin-top: 100px;
    */
    padding-bottom: 50px;
    width: 100%;
  }
  .intro__gallery .ph1 {
    left: calc(50% - 15%);
    max-width: 300px;
    width: 100%;
  }

  .intro__gallery.row_2 {
    padding-bottom: 85px;
  }

  .intro__gallery .ph2 {
    top: 250px;
    left: calc(50% - 60%);
    left: calc(50% - 56%)!important;
    max-width: 300px;
    width: 100%;
    height: 100%;
  }

  .intro__gallery .ph3 {
    top: 0;
    left: calc(50%)!important;
    max-width: 300px;
    width: 50%;
  }
  .intro__gallery .ph4 {
    /*top: 270px;
    */
    top: 300px;
    left: calc(50% - 50%);
    max-width: 300px;
    width: 80%;
  }
}


/* gallery はフェードのみ。スライドを完全に無効化 */
.intro__gallery figure[data-aos="fade"],
.intro__gallery figure[data-aos="fade"].aos-init,
.intro__gallery figure[data-aos="fade"].aos-animate {
  transform: none !important;
  transition-property: opacity !important;
}

/* 念のため初期/完了の不透明度も明示 */
.intro__gallery figure[data-aos="fade"] {
  opacity: 0;
}
.intro__gallery figure[data-aos="fade"].aos-animate {
  opacity: 1;
}

.intro__image .parallax-wrap svg {
  display:block;
}
/* 余白チラ見え防止 */
.intro__image .parallax-wrap [data-hero-img] {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .intro__image .parallax-wrap [data-hero-img] {
    transform:none !important;
  }
}



/* --------------------------------------------------------------
  Business
---------------------------------------------------------------- */
.business-wrap {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-block-end: 2em;
}
.section__title h2 {
  font-size: 30px;
  font-weight: 400;
  color: var(--color-corporate);
  margin-inline-end: 1.5em;
}
.section__title .button-arrow-right {
  width: 160px;
  border: solid 1px var(--color-primary);
}
.section__title .button-arrow-right span {
  color: var(--color-black);
  line-height: 1;
  font-size: 12px;
  font-weight: 400;
}

/* Biz本体 */
.biz {
  position: relative;
  z-index: 2;
  max-width: 450px;
  width: 60%;
  margin-bottom: 70px;
}
.biz__title {
  display: flex;
  align-items: baseline;
  flex-direction: column;
  margin-bottom: 16px;
}
.biz__title h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.biz__title span {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: .05em;
}


.biz__body {
}
.biz__body p {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text);
}

/* 浮遊画像レイヤー */
.biz__float {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.biz__float > * {
  position: absolute;
  margin: 0;
  overflow: hidden;
}
.biz__float img {
  display: block;
  width: 100%;
  height: auto;
}


.biz__float .ph1 {
  top: calc(50% - 29%);
  top: 0;
  left: calc(50% + 0%);
  transform: translateX(-50%);
  max-width: 460px;
  width: 40%;
}
.biz__float .ph2 {
  top: calc(50% + 10%);
  left: calc(50% + 10%);
  transform: translate(-50%, -50%);
  max-width: 420px;
  max-width: 450px;
  width: 35%;
}



@media(max-width: 1080px) {
  .biz {
    max-width: 400px;
    margin-bottom: 120px;
  }

  .biz__float .ph1 {
    top: calc(50% - 24%);
    left: calc(50% + 3%);
  }
  .biz__float .ph2 {
    top: calc(50% + 5%);
    left: calc(50% + 7%);
  }
}


@media (max-width: 950px) {
  .intro__gallery .ph1 {
    max-width: 290px;
  }
  .intro__gallery .ph2 {
    left: calc(50% - 42%);
  }
  .intro__gallery .ph3 {
    left: calc(50% - 40%);
    max-width: 240px;
  }
  .intro__gallery .ph4 {
    max-width: 420px;
  }
}

@media (max-width: 850px) {
  .business-wrap {
    padding-bottom: 330px;
  }
  .section__title {
    flex-direction: column;
    align-items: flex-start;
  }
  .section__title h2 {
    font-size: 20px;
  }
  .biz {
    width: 100%;
    margin-bottom: 50px;
  }
  .biz__title {
  }
  .biz__title h3 {
    font-size: 18px;
    font-weight: 600;
  }
  .biz__title span {
    font-size: 11px;
  }
  .biz__body p {
    font-size: 11px;
  }
  .biz__float .ph1 {
    top: auto;
    bottom: 10px;
    left: calc(50% - 10%);
    width: 67%;
  }
  .biz__float .ph2 {
    top: auto;
    bottom: 0;
    left: calc(50% - 2%);
    width: 60%;
  }

  .business-btn-wrap {
    padding: 60px 0 0;
    text-align: center;
  }
  .button {
    width: 60%;
  }
}

@media (max-width: 650px) {
  .business-wrap {
    padding-bottom: 250px;
  }
  .biz__float .ph1 {
    top: auto;
    bottom: 40px;
    left: calc(50% - 55%);
    width: 67%;
  }

  .business-btn-wrap {
    padding: 60px 0 0;
    text-align: center;
  }
  .button {
    width: 60%;
  }
}

@media (max-width: 500px) {
  .biz__float .ph1 {
    bottom: -150px;
    width: 95%;
  }

}


/* ===============================
  Business Animation
=============================== */
.biz__float svg image[data-hero-img]{
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.biz__float .parallax-wrap {
  will-change: auto;
  transform: none !important; /* 念のため */
}

.business .biz-list [data-aos]{
  opacity: 0;
  transform: none !important;
  transition: opacity .7s cubic-bezier(.25,.8,.25,1);
}
.business .biz-list [data-aos].aos-animate{
  opacity: 1;
}

.biz-list.aos-stagger > * { --d: 0ms; }
.biz-list.aos-stagger > *:nth-child(2) { --d: 150ms; }
.biz-list.aos-stagger > *:nth-child(3) { --d: 300ms; }

.biz-list.aos-stagger [data-aos]{
  transition-delay: var(--d, 0ms);
}

.business .biz__float [data-aos] {
  opacity: 0;
  transition-property: opacity !important;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(.33,.84,.58,1);
  will-change: opacity;
}
.business .biz__float [data-aos].aos-animate {
  opacity: 1;
}



/* ============================================================
  Loading
============================================================ */
#loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.loading__bg {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  opacity: 1;
  transition: opacity .1s ease;
  z-index: 1;
}
.loading__inner {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.loading__logo {
  width: min(150px, 40vw);
  opacity: 1;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  animation: loadingCurtainUp .8s ease-out forwards;
}
#loading.is-hide .loading__bg {
  opacity: 0;
}

@keyframes loadingCurtainUp {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
