/* プロジェクト紹介
=========================================================================
=========================================================================*/
/* Page title
-----------------------------------------------------------*/
article {
  margin-top: 0;
}

.page_title {
  position: relative;
  width: 100vw;
  height: 660px;
  text-align: center;
  overflow: hidden;
}

.project01 .page_title {
  background: url(../images/job/projects/01_title_bg.jpg) center center no-repeat;
  background-size: cover;
}

.project02 .page_title {
  background: url(../images/job/projects/02_title_bg.jpg) center center no-repeat;
  background-size: cover;
}

.project03 .page_title {
  background: url(../images/job/projects/03_title_bg.jpg) center center no-repeat;
  background-size: cover;
}

.page_title::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5);

}

.page_title h1 {
  position: absolute;
  top: calc(152 / 660 * 100%);
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 526px;
  z-index: 4;
}

/* Project Title
-----------------------------------------------------------*/
.project_title {
  position: relative;
  padding: 0 0 60px;
  background:
      linear-gradient(to bottom,
        transparent 0px,
        transparent 162px,
        #EDF8F9 162px,
        #EDF8F9 100%
      );
  z-index: 2;
}

.project_title .inner {
  position: relative;
  margin: -162px auto 0;
  max-width: 1144px;
}

@media screen and (max-width:1174px) {
  .project_title .inner {
    padding: 0 15px;
  }
}

.project_title .title_area {
  position: relative;
}

.project_title picture {
  display: block;
  margin: 0 auto;
  max-width: 840px;
}

.project_title figure {
  position: absolute;
  top: 27px;
  left: 143px;
  left: calc(143 / 1144 * 100%);
  width: calc(167 / 1144 *100%);
}

.project_title .text {
  margin: 0 auto;
  max-width: 840px;
}

.project_title h2 {
  position: absolute;
  top: 200px;
  left: 143px;
  left: calc(143 / 1144 * 100%);
  font-weight: 600;
  font-size: 35px;
  line-height: 1.6em;
}

.project03 .project_title h2 {
  position: absolute;
  top: 240px;
}

.project_title h2 span {
  display: inline-block;
  padding: 0 0.25em;
  background-color: #FFF;
}

.project_title h2 span:first-child {
  margin-bottom: 10px;
  padding: 0.1em 0.25em;
  font-size: 22px;
  line-height: 2em;
}

.project_title h3 {
  margin: 60px 0 0.75em;
  font-weight: 600;
  font-size: 14px;
}

.project_title p {
  line-height: 1.875em;
}

/* Navigation
-----------------------------------------------------------*/
.project_title ul.navigation_top {
  position: absolute;
  top: calc(122 / 421 * 100%);
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 6px;
  z-index: 2;
}

.project_title ul.navigation_top li a {
  display: block;
  max-width: 113px;
}

.project_title ul.navigation_top li a.prev {
  position: absolute;
  top: 0;
  left: 0;
}

.project_title ul.navigation_top li a.next {
  position: absolute;
  top: 0;
  right: 0;
}

@media screen and (max-width:1174px) {
  .project_title ul.navigation_top li a.prev {
    left: -15px;
  }
  .project_title ul.navigation_top li a.next {
    right: -15px;
  }
}

.project_title ul.navigation_top li a span {
  overflow: hidden;
  position: relative;
  display: block;
  margin: 0 auto 12px;
  width: 70px;
  height: 68px;
  background-color: #404040;
  transition: 0.3s;
}

.project_title ul.navigation_top li a.next span {
  transform: scale(-1, 1);
}

.project_title ul.navigation_top li a span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: right;
  background-color: #008CD6;
  transition: 0.3s;
}

@media(hover: hover) {
  .project_title ul.navigation_top li a:hover span::before {
    transform: scale(1, 1);
  }
}

.project_title ul.navigation_top li a span img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 30px;
  transition: 0.3s;
}

/* hover時の適用 */
@media (hover: hover) {
  .project_title ul.navigation_top li a:hover span img {
    animation: arrow-anime 0.5s ease-out forwards;
  }
}

/* Scroll
-----------------------------------------------------------*/
.scrolling_wrapper {
  position: relative;
  padding: 46px 0;
  background-color: #0D3F78;
}

.scrolling {
  text-align: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  cursor: grab;

  /* 親へのスクロール連鎖は許可（auto） */
  overscroll-behavior: auto;
  overscroll-behavior-inline: auto;

  /* 縦スクロールも許可 */
  touch-action: pan-x pan-y;
  /* or auto */

  /* 見た目でスクロールバーを消すなら */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrolling img {
  display: inline-block;
  user-select: none;
  /*pointer-events: none;*/
}

.scrolling img.modal_open {
  cursor: pointer;
}

/* 01-01 */
.project01 .scroll01 .scrolling ul.scroll01_01 {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 960px;
  user-select: none;
}

.project01 .scroll01 .scrolling ul.scroll01_01 li:nth-child(1) {
  width: 384px;
}

.project01 .scroll01 .scrolling ul.scroll01_01 li:nth-child(2) {
  width: 207px;
}

.project01 .scroll01 .scrolling ul.scroll01_01 li:nth-child(3) {
  width: 206px;
}

/* 01-02 */
.project01 .scroll02 .scrolling img {
  width: 900px;
}

/* 02-01 */
.project02 .scroll01 .scrolling img {
  width: 1189px;
}

/* 02-02 */
.project02 .scroll02 .scrolling img {
  width: 900px;
}

/* 03-01 */
.project03 .scroll01 .scrolling ul.scroll01_01 {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 1054px;
  user-select: none;
}

.project03 .scroll01 .scrolling ul.scroll01_01 li:nth-child(1) {
  width: 295px;
}

.project03 .scroll01 .scrolling ul.scroll01_01 li:nth-child(2) {
  width: 395px;
}

.project03 .scroll01 .scrolling ul.scroll01_01 li:nth-child(3) {
  width: 240px;
}

/* 03-02 */
.project03 .scroll02 .scrolling img {
  width: 900px;
}

.scrolling::-webkit-scrollbar {
  display: none;
}

/* カスタムスクロールバー */
/* 既存CSSのままでもOKですが、念のため */
.scrollbar {
  position: absolute;
  bottom: 20px;
  right: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  height: 6px;
  background-color: rgba(212, 212, 212, 0.4);
  border-radius: 3px;
  visibility: hidden;
  /* 初期は非表示にしておく */
}

.scrollbar.visible {
  visibility: visible;
}

.scrollbar .thumb {
  height: 100%;
  width: 50px;
  background-color: rgba(180, 180, 180, 1);
  border-radius: 3px;
  transition: width .12s ease, transform .12s ease;
}

/* Modal
-----------------------------------------------------------*/
.modal-container {
  position: fixed;
  inset: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(13, 63, 120, 1);
  overflow: auto;
  /* 画面よりモーダルが大きい時だけスクロール */
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 1000;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-container.is-show {
  opacity: 1;
  visibility: visible;
}

/* ★ ここで「最大 960×640 の枠」をしっかり作る */
.modal-content {
  width: min(960px, 100vw - 40px);
  /* 画面より狭ければ 960px、狭ければ縮む */
  height: min(640px, 100vh - 40px);
  /* 同じく縦は最大 640px */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 枠いっぱい＝960×640(以下) の箱 */
.modal-content figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ★ 画像を「枠内におさめる」設定（トリミングしない） */
.modal-content figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* ← ここが超重要 */
  display: block;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 65px;
  cursor: pointer;
  transition: all .5s;
  z-index: 2;
}

@media(hover:hover) {
  .modal-close:hover {
    opacity: 0.8;
  }
}


/* Project Interview
-----------------------------------------------------------*/
.project_interview {
  position: relative;
  padding: 120px 0;
}

.project_interview .bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #EDF8F9;
  max-width: 800px;
  width: 100%;
  height: 100%;
}

@media screen and (max-width:1442px) {
  .project_interview .bg {
    width: calc(800 / 1142 * 100%);
  }
}

.project_interview .inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* ← 写真とテキストの上端を揃える */
  position: relative;
  margin: 0 auto;
  max-width: 1074px;
}

@media screen and (max-width:1104px) {
  .project_interview .inner {
    padding: 0 15px;
  }
}

.project_interview .text_area {
  width: calc(540 / 1074 * 100%);
}

.project_interview .text:first-child {
  margin-bottom: 120px;
}

.project_interview figure {
  margin-bottom: 37px;
  max-width: 167px;
}

.project_interview h3 {
  margin-bottom: 0.75em;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.4em;
}

.project_interview p {
  font-size: 18px;
  line-height: 2em;
}

.project_interview p:not(:first-of-type) {
  margin-top: 2em;
}

.project_interview .parallax_photo.pc {
  position: sticky;
  top: 120px;
  /* ← 固定したい位置（画面上から120px） */
  margin-bottom: 50vh;
  width: calc(460 / 1074 * 100%);
}


/* 画像3枚を重ねる */
.project_interview .parallax_photo.pc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
}

/* 最初は1枚目だけ表示 */
.project_interview .parallax_photo.pc img:nth-child(1) {
  opacity: 1;
}

/* Project Ending
-----------------------------------------------------------*/
.project_ending {
  position: relative;
  padding: 120px 0 80px;
  background-color: #EDF8F9;
}

.project_ending .inner {
  position: relative;
  margin: 0 auto;
  max-width: 1120px;
}

@media screen and (max-width:1150px) {
  .project_ending .inner {
    padding: 0 15px;
  }
}

.project_ending .text {
  margin-left: auto;
  max-width: 540px;
  width: calc(540 / 1120 * 100%);
}

.project_ending h3 {
  margin-bottom: 0.75em;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.4em;
}

.project_ending p {
  font-size: 18px;
  line-height: 2em;
}

.project_ending p:not(:first-of-type) {
  margin-top: 2em;
}

.project_ending picture {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  max-width: 540px;
  width: calc(540 / 1120 * 100%);
}

@media screen and (max-width:1150px) {
  .project_ending picture {
    left: 15px;
  }
}

.project_ending .profile {
  margin: 110px 0 0 auto;
  padding-top: 48px;
  max-width: 434px;
  width: calc(434 / 540 * 100%);
  border-top: 1px solid #000;
}

.project_ending .profile h4 {
  margin-bottom: 1.4em;
  font-family: "Lexend Mega", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1em;
}

.project_ending .profile h4 img {
  margin-bottom: 16px;
  width: 74px;
}

.project_ending .profile p {
  font-size: 16px;
  line-height: 1.625em;
}

/* Navigation
-----------------------------------------------------------*/
.navigation_bottom {
  position: relative;
  padding: 80px 35px;
}

.navigation_bottom ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 358px;
}

.navigation_bottom ul li {
  max-width: 113px;
}

.navigation_bottom ul li a {
  display: block;
}

.navigation_bottom ul li a span {
  overflow: hidden;
  position: relative;
  display: block;
  margin: 0 auto;
  width: 70px;
  height: 68px;
  background-color: #404040;
  transition: 0.3s;
}

.navigation_bottom ul li a span.next {
  transform: scale(-1, 1);
}

.navigation_bottom ul li a span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: right;
  background-color: #008CD6;
  transition: 0.3s;
}

@media(hover: hover) {
  .navigation_bottom ul li a:hover span::before {
    transform: scale(1, 1);
  }
}

.navigation_bottom ul li a span img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 30px;
  transition: 0.3s;
}

@keyframes arrow-anime {
  0% {
    transform: translateX(0);
  }

  49% {
    transform: translateX(-40px);
  }

  50% {
    transform: translateX(40px);
  }

  100% {
    transform: translateX(0);
  }
}

/* hover時の適用 */
@media (hover: hover) {
  .navigation_bottom ul li a:hover span img {
    animation: arrow-anime 0.5s ease-out forwards;
  }
}

/*  スマホ（767px以下）
=========================================================================
=========================================================================*/
@media screen and (max-width:767px) {
  /* Page title
  -----------------------------------------------------------*/
  .page_title {
    height: 308px;
  }

  .project01 .page_title {
    background: url(../images/job/projects/01_title_bg@2x.jpg) center center no-repeat;
    background-size: cover;
  }

  .project02 .page_title {
    background: url(../images/job/projects/02_title_bg@2x.jpg) center center no-repeat;
    background-size: cover;
  }

  .project03 .page_title {
    background: url(../images/job/projects/03_title_bg@2x.jpg) center center no-repeat;
    background-size: cover;
  }

  .page_title h1 {
    top: calc(86 / 308 * 100%);
    max-width: 325px;
  }

  /* Project Title
  -----------------------------------------------------------*/
  .project_title {
    padding: 55px 0 60px;
    background:
      linear-gradient(to bottom,
        transparent 0px,
        #EDF8F9 100%
      );
  }

  .project_title .inner {
    margin: 0 auto;
  }

  .project_title picture {
    margin-bottom: 45px;
  }

  .project_title figure {
    position: absolute;
    top: auto;
    bottom: -39px;
    bottom: calc(-39 / 269 * 100%);
    left: 0;
    width: calc(167 / 390 *100%);
  }

  .project_title h2 {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 60px;
    font-size: 22px;
  }

  .project03 .project_title h2 {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 60px;
    font-size: 22px;
  }

  .project_title h2 span:first-child {
    font-size: 14px;
  }

  /* Navigation
  -----------------------------------------------------------*/
  .project_title ul.navigation_top {
    top: 50%;
  }

  .project_title ul.navigation_top li a.prev {
    left: -10px;
  }

  .project_title ul.navigation_top li a.next {
    right: -10px;
  }

  .project_title ul.navigation_top li a span {
    width: 35px;
    height: 34px;
  }

  .project_title ul.navigation_top li a span img {
    width: 15px;
  }

  /* Scroll
  -----------------------------------------------------------*/
  .scrolling img {
    pointer-events: none;
  }

  /* 01-01 */
  .project01 .scroll01 .scrolling ul.scroll01_01 {
    margin: 0 40px;
    width: 960px;
  }

  /* 01-02 */
  .project01 .scroll02 .scrolling img {
    margin: 0 40px;
    width: 900px;
  }

  /* 02-01 */
  .project02 .scroll01 .scrolling img {
    margin: 0 40px;
    width: 1189px;
  }

  /* 02-02 */
  .project02 .scroll02 .scrolling img {
    margin: 0 40px;
    width: 900px;
  }

  /* 03-01 */
  .project03 .scroll01 .scrolling ul.scroll01_01 {
    margin: 0 40px;
    width: 1054px;
  }

  /* 03-03 */
  .project03 .scroll02 .scrolling img {
    margin: 0 40px;
    width: 900px;
  }

  /* Project Interview
  -----------------------------------------------------------*/
  .project_interview {
    padding: 60px 0;
  }

  .project_interview .inner {
    padding: 0 15px;
    width: 100%;
  }

  .project_interview .bg {
    width: 100%;
    height: 100%;
  }

  .project_interview .text_area {
    width: 100%;

  }

  .project_interview .text:first-child {
    margin-bottom: 60px;
  }

  .project_interview .parallax_block {
    position: relative;
    width: 100%;
  }

  /* ★ 画像：上から80pxの位置に sticky（1枚ぶんの箱） */
  .project_interview .parallax_block .parallax_photo.sp {
    /*
    position: sticky;
    top: 80px;
    /* ← 固定位置（好みで 80〜120px で調整OK） */
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 20 / 19;
    /* 1280x1216 の比率 */
    overflow: hidden;
  }

  .project_interview .parallax_block .parallax_photo.sp img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ★ テキストは「画像の60px下」スタート（stickyはやめて margin だけ） */
  .project_interview .parallax_block .parallax_text {
    margin-top: 60px;
  }

  .project_interview figure {
    margin-bottom: 24px;
    max-width: 167px;
  }

  .project_interview h3 {
    font-size: 22px;
  }

  .project_interview p {
    font-size: 14px;
  }

  /* Project Ending
  -----------------------------------------------------------*/
  .project_ending {
    padding: 60px 0;
  }

  .project_ending .text {
    margin-left: auto;
    max-width: 100%;
    width: 100%;
  }

  .project_ending h3 {
    font-size: 22px;
  }

  .project_ending p {
    font-size: 14px;
  }

  .project_ending picture {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 24px;
    max-width: 100%;
    width: 100%;
  }

  .project_ending .profile {
    margin: 60px 0 0 auto;
    padding-top: 48px;
    max-width: 100%;
    width: 100%;
  }

  .project_ending .profile p {
    font-size: 14px;
  }

  /* Navigation
  -----------------------------------------------------------*/
  .navigation_bottom {
    padding: 80px 35px 126px;
  }

  .navigation_bottom ul {
    max-width: 100%;
  }

  .navigation_bottom ul li {
    max-width: 95px;
  }

  .navigation_bottom ul li a span {
    width: 35px;
    height: 34px;
  }

  .navigation_bottom ul li a span img {
    width: 15px;
  }

}

/*  スマホ（480px以下）
=========================================================================
=========================================================================*/
@media screen and (max-width:480px) {
  /* Project Title
  -----------------------------------------------------------*/
  .project_title h2 {
    font-size: calc(19 /390 * 100vw);
  }

  .project_title h2 span:first-child {
    font-size: calc(14 /390 * 100vw);
  }

  /* Project Interview
  -----------------------------------------------------------*/
  .project_interview h3 {
    font-size: calc(19 /390 * 100vw);
  }
}
