@charset "utf-8";

/* 追加 */
body.scroll-lock {
  overflow: hidden;
}

/* モバイルのみ：スクロールロック時に position: fixed を適用 */
@media (max-width: 767px) {
  body.scroll-lock {
    position: fixed;
    width: 100%;
    top: 0;
  }
}

#top-head a,
#top-head {
  color:#fff;
}
#nav-toggle span { background:#fff; }


/* 固定背景 */
.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("../img/himeji.jpg") center/cover no-repeat;
  z-index: -1;
}

/* モバイルのみ：背景を scroll に */
@media (max-width: 767px) {
  .bg-fixed {
    background-attachment: scroll;
  }
}

/* ヒーローオーバーレイ（画面に固定） */
.top_wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  color: #fff;
  overflow: hidden;
  z-index: 5;
}

/* box1, box2 をオーバーレイ内で重ねる */
.box1,
.box2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transform: scale(2);
  transform-origin: center center;
  transition: opacity 0.3s ease, transform 0s; /* transformは即座に変更 */
}

/* box1 を消す用（JSで付く） */
.box1.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* box2 初期状態は透明（見えない） */
.box2 {
  opacity: 0;
  pointer-events: none;
  transform: scale(2); /* 初期状態を明示 */
}

/* box2 を表示するときに付与（JS） */
.box2.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* トップの画像・タイトル */
.top_wrap .message {
  width: 80vw;
  margin: 0 auto;
  display: block;
}

@media (min-width: 768px) {
  .top_wrap .message {
    width: 50vw;
    margin: 0 auto;
  }
}

.top_wrap h1 {
  width: 100%;
  font-size: 36px;
  text-align: center;
}



/* top_spacer は使わないが、残っていても邪魔しないように */
.top_spacer {
  height: 0;
}

/* ここから下はコンテンツ部分 */

.contents_wrap {
  /* background: rgba(0, 0, 0, 0.8); */
  background: url(../img/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10; /* オーバーレイより後ろだが、オーバーレイが消えたら普通に見える */
}

.contents {
  width: 90%;
  display: flex;
  color: #fff;
  flex-wrap: wrap;
  margin-bottom: 160px;
}

.contents p {
  line-height: 1.83em;
  text-align: justify;
}

h2 {
  font-size: 32px;
  line-height: 1.3em;
  margin-bottom: 40px;
}

.ceo {
  width: 100%;
  font-size: 30px;
  display: block;
  padding-bottom:40px; 
}

.ceo.original {
  -webkit-text-stroke: 0;
}

.ceo span {
  font-size: 16px;
}

@media (min-width: 768px) {
  .contents {
    width: 80%;
    justify-content: space-between;
    margin-bottom: 30vw;
  }

  .contents.marginbottom {
    margin-bottom: 200px;
  }

  .contents div {
    width: 50%;
  }

  .contents div p {
    width: 100%;
    font-size: 20px;
  }

  .contents div p .ceo {
    width: 100%;
  }

  h2 {
    font-size: 54px;
  }

  .ceo {
    font-size: 50px;
  }

  .ceo span {
    font-size: 18px;
  }

  .ceo.original {
    -webkit-text-stroke: initial; margin-bottom:160px; 
  }
}

.top_spacer {
  height: 100vh;   /* トップビジュアルぶんの高さをレイアウト上で確保 */
}


/* 社長の写真の上の英語 */
.ceo-visual {
  position: relative;
  width: 100%;
}

.ceo-photo {
  width: 100%;
  display: block;
}

.ceo-hard {
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  pointer-events: none;
}


/* 共通 popin アニメーション */
.popin {
  animation: pop2 0.6s ease-out forwards;
}

@keyframes pop2 {
  0% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}

footer { position:relative; z-index:5; }



/* 20251222kojima追加 */
/* スクロール完全ロック用 */
.scroll-lock {
  overflow: hidden;
  height: 100vh;
}

/* box2 初期状態 */
.box2 {
  opacity: 0;
  pointer-events: none;
}

/* box2 表示 */
.box2.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* popin アニメーション（例） */
.popin {
  animation: popin 0.6s ease forwards;
}

@keyframes popin {
  0% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}


/* box1 非表示 */
.box1.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.box2 {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.box2.is-active {
  opacity: 1;
}

.box2.is-hide {
  opacity: 0;
  pointer-events: none;
}

.box1 {
  transition: opacity 0.6s ease;
}

.box1.is-hidden {
  opacity: 0;
  pointer-events: none;
}
