@charset "UTF-8";

/* 社員インタビュー詳細（src/pages/interview/[slug].astro の <style>） */

  :root{
    --grad1: linear-gradient(120deg, #1d9ddd 40%, #0c5093 110%);
  }
  .subpage-mv-interview{
    height: calc(max(12rem,120px) + 68rem);
    background-image: var(--grad-blue);
    position: relative;
    z-index: 2;
    @media screen and (max-width: 768px) {
      height: auto;
    }
    .inner{
      position: relative;
      z-index: 1;
      &.texts{
        @media screen and (max-width: 768px) {
          order: 2;
        }
      }
    }
    .title{
      padding-block: max(12rem,120px) 10rem;
      @media screen and (max-width: 768px) {
        display: flex;
        flex-direction: column;
        padding-block: 8rem 4rem;
      }
      .en{
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 2.4rem;
        @media screen and (max-width: 768px) {
          font-size: 1.6rem;
        }
        .bar{
          display: block;
          width: 1em;
          height: 1px;
          background-color: currentColor;
        }
      }
      .copy{
        font-size: 4.8rem;
        margin-top: 14rem;
        line-height: 1.625;
        transition: color var(--duration) var(--easing);
        .yakumono{
          font-feature-settings: "palt";
          font-family: var(--font-noto);
          font-weight: 300;
          letter-spacing: 0.05em;
        }
        @media screen and (max-width: 768px) {
          font-size: 2.4rem;
          margin-top: 3rem;
        }
      }
      .dept{
        background-color: var(--white);
        padding: 0.5em 1em;
        width: fit-content;
        margin-top: 4rem;
        @media screen and (max-width: 768px) {
          margin-top: 2rem;
          font-size: 1.4rem;
        }
      }
      .profile{
        font-weight: 400;
        display: flex;
        align-items: flex-end;
        gap: 2rem;
        margin-top: 2rem;
        @media screen and (max-width: 768px) {
          gap: 1.5rem;
          margin-top: 1.5rem;
        }
        span{
          display: inline-block;
        }
        .name{
          font-size: 4rem;
          line-height: 0.95;
          @media screen and (max-width: 768px) {
            font-size: 2.8rem;
          }
        }
        .join,.area{
          font-size: 1.4rem;
          @media screen and (max-width: 768px) {
            font-size: 1.2rem;
          }
        }
      }
    }
    .images{
      position: absolute;
      z-index: 0;
      inset: 0;
      &:nth-child(1){
        overflow: clip;
        .diamond{
          --parallax-max: 6rem;
          &:nth-child(1){
            background-image: var(--grad1);
            --w: 115rem; --x: 11.25; --y: -10;
            @media screen and (max-width: 768px) {
              --w: 60rem; --x: 45; --y: 10;
            }
          }
          &:nth-child(2){
            --w: 91rem; --x: 102; --y: 62.5;
            @media screen and (max-width: 768px) {
              --w: 28rem; --x: 92; --y: 92;
            }
          }
        }
      }
      &:nth-child(2){
        @media screen and (max-width: 768px) {
          order: 1;
          position: relative;
          inset: auto;
          height: 32rem;
          margin-top: 3rem;
        }
        .diamond{
          --parallax-max: 6rem;
          &:nth-child(1){ /* 画像 */
            --w: 87.6rem; --x: 67.5; --y: 41;
            @media screen and (max-width: 768px) {
              --w: 40rem; --x: 64; --y: 50;
            }
          }
          &:nth-child(2){
            --w: 25.5rem; --x: 38; --y: 9;
            @media screen and (max-width: 768px) {
              --w: 8rem; --x: 18; --y: 22;
            }
          }
          &:nth-child(3){
            --w: 3.6rem; --x: 32; --y: 27;
            @media screen and (max-width: 768px) {
              --w: 1.6rem; --x: 10; --y: 32;
            }
          }
          &:nth-child(4){
            --w: 10.8rem; --x: 99; --y: 58;
            @media screen and (max-width: 768px) {
              --w: 4.4rem; --x: 98; --y: 64;
            }
          }
          &:nth-child(5){
            --w: 3.6rem; --x: 93; --y: 73;
            @media screen and (max-width: 768px) {
              --w: 1.6rem; --x: 96; --y: 76;
            }
          }
          &:nth-child(6){
            --w: 10.8rem; --x: 50; --y: 78;
            @media screen and (max-width: 768px) {
              --w: 4.4rem; --x: 18; --y: 76;
            }
          }
          &:nth-child(7){
            --w: 27.4rem; --x: 86; --y: 91;
            @media screen and (max-width: 768px) {
              --w: 10rem; --x: 90; --y: 96;
            }
          }
        }

      }
    }
  }

  .page-intervew-page{
    .interview{
      padding-block: 8rem;
      @media screen and (max-width: 768px) {
        padding-block: 3rem 0;
      }
      .contents{
        display: grid;
        grid-template-columns: 27rem 93rem;
        @media screen and (max-width: 768px) {
          display: block;
        }
      }
      aside{
        padding-top: 4rem;
        padding-bottom: 8rem;
        position: relative;
        border-right: 1px solid #a7a7a7;
        @media screen and (max-width: 768px) {
          display: none;
        }
        ul{
          height: fit-content%;
          position: sticky;
          top: calc(var(--header-height) + 4rem);
          li{
            a{
              display: flex;
              align-items: center;
              font-size: 1.8rem;
              gap: 0.5rem;
              color: var(--gray);
              .diamond{
                width: 0;
                transition: width 0.2s ease;
              }
              span{
                font-weight: 500;
                display: inline-block;
                transition: color 0.1s;
                line-height: 1.35;
              }
              &.current{
                color: var(--black);
                .diamond{
                  width: 1em;
                }
              }
              @media (any-hover: hover) {
                &:hover{
                  span{
                    color: var(--accent);
                  }
                }
              }
            }
            &+ li{
              margin-top: 2rem;
            }
          }
        }
      }
      article{
        padding-left: 10rem;
        padding-bottom: 8rem;
        @media screen and (max-width: 768px) {
          padding-left: 0;
          padding-bottom: 5rem;
        }
        .item{
          padding-top: 4rem;
          position: relative;
          @media screen and (max-width: 768px) {
            padding-top: 2rem;
          }
          &+ .item{
            margin-top: 6rem;
            @media screen and (max-width: 768px) {
              margin-top: 4rem;
            }
          }
          .title{
            display: flex;
            align-items: center;
            gap: 1.5rem;
            @media screen and (max-width: 768px) {
              gap: 1rem;
            }
            p{
              font-size: 3.4rem;
              @media screen and (max-width: 768px) {
                font-size: 2.4rem;
              }
            }
            h2{
              font-size: 3rem;
              line-height: 1.35;
              @media screen and (max-width: 768px) {
                font-size: 1.9rem;
              }
            }
          }
          &> .readText{
            margin-top: 2rem;
            @media screen and (max-width: 768px) {
              margin-top: 1.5rem;
            }
          }
          .image-wrap{
            margin-top: 8rem;
            position: relative;
            @media screen and (max-width: 768px) {
              margin-top: 4rem;
            }
          }
          .profile-wrap{
            margin-top: 16rem;
            position: relative;
            @media screen and (max-width: 768px) {
              margin-top: 8rem;
            }
            .profile{
              padding: 4rem 5rem;
              @media screen and (max-width: 768px) {
                padding: 2.5rem 2rem;
              }
              h2{
                font-size: 2.1rem;
                @media screen and (max-width: 768px) {
                  font-size: 1.8rem;
                }
              }
              .readText{
                margin-top: 1rem;
              }
            }
          }
          .images{
            position: absolute;
            inset: 0;
            pointer-events: none;
            .diamond{
              &:nth-child(1){
                --w: 2.4rem;
                --parallax: 1.5;
                @media screen and (max-width: 768px) {
                  --w: 1.4rem;
                }
              }
              &:nth-child(2){
                --w: 10rem;
                @media screen and (max-width: 768px) {
                  --w: 5rem;
                }
              }
            }
            &.section01{
              .diamond{
                &:nth-child(1){
                  --x: -4.2;
                  --y: 22;
                  @media screen and (max-width: 768px) {
                    --x: -3; --y: 18;
                  }
                }
                &:nth-child(2){
                  --x: 2;
                  --y: 33;
                  @media screen and (max-width: 768px) {
                    --x: 3; --y: 33;
                  }
                }
              }
            }
            &.section02{
              .diamond{
                &:nth-child(1){
                  --x: 108.2;
                  --y: 24;
                  @media screen and (max-width: 768px) {
                    --x: 103; --y: 20;
                  }
                }
                &:nth-child(2){
                  --x: 102;
                  --y: 35;
                  @media screen and (max-width: 768px) {
                    --x: 97; --y: 33;
                  }
                }
              }
            }
            &.section03{
              .diamond{
                &:nth-child(1){
                  --x: 4.2;
                  --y: 19;
                  @media screen and (max-width: 768px) {
                    --x: 6; --y: 14;
                  }
                }
                &:nth-child(2){
                  --x: -2;
                  --y: 30;
                  @media screen and (max-width: 768px) {
                    --x: 1; --y: 30;
                  }
                }
              }
            }
            &.section04{
              .diamond{
                &:nth-child(1){
                  --x: 78.8;
                  --y: -28;
                  @media screen and (max-width: 768px) {
                    --x: 76; --y: -14;
                  }
                }
                &:nth-child(2){
                  --x: 85;
                  --y: -5;
                  @media screen and (max-width: 768px) {
                    --x: 88; --y: -4;
                  }
                }
              }
            }
          }
        }
      }
    }

    .schedule{
      position: relative;
      padding-block: 15rem;
      @media screen and (max-width: 768px) {
        padding-block: 6rem;
      }
      .bg-text{
        position: absolute;
        left: 0;
        right: 0;
        display: flex;
        overflow: hidden;
        &.top{
          top: 0;
        }
        &.bottom{
          bottom: 1rem;
          p{
            animation-direction: reverse;
          }
        }
        p{
          padding-inline-end: 0.3em;
          font-size: 7.5rem;
          color: #0069b7;
          @media screen and (max-width: 768px) {
            font-size: 4rem;
          }
          line-height: 0.75;
          white-space: nowrap;
          animation: schedule-marquee 40s linear infinite;
          @media (prefers-reduced-motion: reduce) {
            animation: none;
          }
        }
      }

      .inner{
        display: flex;
        justify-content: space-between;
        position: relative;
        z-index: 1;
        @media screen and (max-width: 768px) {
          flex-direction: column;
          gap: 4rem;
        }
      }
      .title{
        text-align: center;
        .sub{
          font-size: 3.2rem;
          @media screen and (max-width: 768px) {
            font-size: 2rem;
          }
          span{
            font-size: 0.75em;
            display: inline-block;
            transform: translateY(-10%);
          }
        }
        h2{
          font-size: 4.8rem;
          margin-top: 0.35em;
          @media screen and (max-width: 768px) {
            font-size: 3rem;
          }
        }
        img{
          margin-inline: auto;
          margin-top: 3rem;
          width: 12.6rem;
          @media screen and (max-width: 768px) {
            margin-top: 2rem;
            width: 8rem;
          }
        }
      }
      .schedule-cols{
        width: 90rem;
        display: flex;
        gap: 6rem;
        @media screen and (max-width: 768px) {
          width: auto;
          flex-direction: column;
          gap: 0;
        }
        ul{
          flex: 1;
          min-width: 0;
          @media screen and (max-width: 768px) {
            flex: none;
          }
          &:last-child li:last-child::before{
            display: none;
          }
        }
        li{
          display: grid;
          grid-template-columns: 9rem 1.8rem 1fr;
          gap: 1.8rem;
          position: relative;
          @media screen and (max-width: 768px) {
            grid-template-columns: 5.5rem 1.4rem 1fr;
            gap: 1.2rem;
          }
          &::before{
            content: "";
            width: 1px;
            height: 100%;
            position: absolute;
            left: calc(11.7rem - 0.5px);
            top: 1.5rem;
            background-color: var(--white);
            @media screen and (max-width: 768px) {
              left: calc(7.4rem - 0.5px);
              top: 1.2rem;
            }
          }
          .time{
            font-size: 2.8rem;
            text-align: right;
            @media screen and (max-width: 768px) {
              font-size: 2rem;
              white-space: nowrap;
            }
          }
          .dot{
            width: 1.8rem;
            height: 1.8rem;
            border-radius: 50%;
            background-color: var(--white);
            margin-top: 0.6rem;
            @media screen and (max-width: 768px) {
              width: 1.4rem;
              height: 1.4rem;
              margin-top: 0.5rem;
            }
          }
          .texts{
            padding-bottom: 6rem;
            @media screen and (max-width: 768px) {
              padding-bottom: 4rem;
            }
            h3{
              font-size: 2rem;
              line-height: 1.4;
              @media screen and (max-width: 768px) {
                font-size: 1.6rem;
              }
            }
            .readText{
              line-height: 1.5;
              margin-top: 1rem;
            }
          }
        }
      }
    }

    .other{
      padding-block: 10rem 6rem;
      @media screen and (max-width: 768px) {
        padding-block: 4rem 4rem;
      }
      h2{
        font-size: 3rem;
        font-weight: 500;
        margin-top: 1rem;
        @media screen and (max-width: 768px) {
          font-size: 2.2rem;
          margin-top: 0.5rem;
        }
      }
      .links{
        margin-top: 6rem;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 5rem;
        @media screen and (max-width: 768px) {
          margin-top: 3rem;
          grid-template-columns: 1fr;
          gap: 2rem;
        }
        a{
          display: flex;
          height: 17rem;
          @media screen and (max-width: 768px) {
            height: 12rem;
          }
          .texts{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 2.5rem 0 2.5rem 2.5rem;
            background-color: var(--white);
            flex-grow: 1;
            @media screen and (max-width: 768px) {
              padding: 1.5rem 0 1.5rem 1.5rem;
            }
            .dept{
              display: inline-block;
              width: fit-content;
              background-image: var(--grad-blue);
              font-size: 1.6rem;
              font-weight: 500;
              color: var(--white);
              padding: 0.5em 0.75em;
              @media screen and (max-width: 768px) {
                font-size: 1.2rem;
              }
            }
            .profile{
              .name{
                font-size: 3rem;
                margin-bottom: 1rem;
                @media screen and (max-width: 768px) {
                  font-size: 2.4rem;
                  margin-bottom: 0.5rem;
                }
              }
              span{
                font-size: 1.4rem;
                font-weight: 500;
                @media screen and (max-width: 768px) {
                  font-size: 1.2rem;
                }
              }
            }
          }
          &.industrial .texts{
            background-image: var(--grad-blue);
            .dept{
              background-image: none;
              background-color: var(--white);
              color: var(--black);
            }
            .profile{
              color: var(--white);
            }
          }
          &[aria-current="page"]{
            pointer-events: none;
            opacity: 0.5;
          }
          .image{
            position: relative;
            width: 17rem;
            flex-shrink: 0;
            overflow: hidden;
            @media screen and (max-width: 768px) {
              width: 12rem;
            }
            img{
              transition: transform 0.6s var(--easing);
            }
          }
          @media (any-hover: hover) {
            &:hover{
              .image img{
                transform: scale(1.05);
              }
            }
          }
        }
      }
    }
  }

  @keyframes schedule-marquee {
    to { translate: -100% 0; }
  }
