@charset "UTF-8";

/* 社員インタビュー一覧（src/pages/interview/index.astro の <style>） */

  .page-intervew-index{
    padding-block: 8rem;
    @media screen and (max-width: 768px) {
      padding-block: 5rem;
    }
    .contents{
      display: grid;
      grid-template-columns: 24rem 116rem;
      @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;
            }
            &.current{
              color: var(--black);
              .diamond{
                width: 1em;
              }
            }
            @media (any-hover: hover) {
              &:hover{
                span{
                  color: var(--accent);
                }
              }
              
            }
          }
          &+ li{
            margin-top: 2rem;
          }
        }
      }
    }

    article{
      ul{
        li{
          padding-left: 6rem;
          position: relative;
          scroll-margin-top: var(--header-height);
          @media screen and (max-width: 768px) {
            padding: 4rem 0;
          }
          .images{
            position: absolute;
            inset: 8rem 0;
            @media screen and (max-width: 768px) {
              position: relative;
              inset: auto;
              height: 28rem;
            }
            .diamond{
              &:nth-child(1){
                --w: 4.4rem; --x: 89; --y: 14;
                @media screen and (max-width: 768px) {
                  --w: 2.5rem; --x: 90; --y: 15;
                }
              }
              &:nth-child(2){
                --w: 25rem; --x: 92; --y: 46;
                @media screen and (max-width: 768px) {
                  --w: 12rem; --x: 88; --y: 50;
                }
              }
              &:nth-child(3){
                --w: 3rem; --x: 88; --y: 71;
                @media screen and (max-width: 768px) {
                  --w: 2rem; --x: 92; --y: 80;
                }
              }
              &:nth-child(4){
                --w: 3rem; --x: 47; --y: 82;
                @media screen and (max-width: 768px) {
                  --w: 2rem; --x: 14; --y: 73;
                }
              }
              &:nth-child(5){
                --w: 9rem; --x: 43; --y: 89;
                @media screen and (max-width: 768px) {
                  --w: 5rem; --x: 10; --y: 85;
                }
              }
              &:is(.image){
                img{ transition: transform 0.6s var(--easing); }
                --w: 60rem; --x: 66; --y: 50;
                @media screen and (max-width: 768px) {
                  --w: 28rem; --x: 50; --y: 50;
                }
              }
            }
          }
          .texts{
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 76rem;
            padding-block: 8rem;
            isolation: isolate;
            pointer-events: none;
            @media screen and (max-width: 768px) {
              height: auto;
              padding-block: 0;
              margin-top: 2rem;
            }
            .en{
              display: flex;
              align-items: center;
              gap: 1rem;
              .bar{
                display: block;
                width: 1em;
                height: 1px;
                background-color: var(--gray);
              }
            }
            .copy{
              font-size: 4.8rem;
              margin-top: 0.25em;
              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;
              }
            }
            .dept{
              background-color: var(--white);
              &.social{
                background-image: var(--grad-blue);
                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{
              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;
                }
              }
            }
          }
          &> .view-btn{
            position: absolute;
            right: 0;
            bottom: 8rem;
            @media screen and (max-width: 768px) {
              position: static;
              width: fit-content;
              margin: 3rem 0 0 auto;
            }
          }
          &:first-child{
            @media screen and (max-width: 768px) {
              padding-top: 0;
            }
            .images{
              inset: 0 0 8rem 0;
              @media screen and (max-width: 768px) {
                inset: auto;
              }
            }
            .texts{
              height: 68rem;
              padding-block: 0 8rem;
              @media screen and (max-width: 768px) {
                height: auto;
                padding-block: 0;
              }
            }
          }
          &+ li{
            @media screen and (max-width: 768px) {
              border-top: 1px dotted #a7a7a7;
            }
            .texts{
              border-top: 1px dotted #a7a7a7;
              @media screen and (max-width: 768px) {
                border-top: none;
              }
            }
          }
          @media (any-hover: hover) {
            &:has(a:hover){
              .copy{
                color: var(--accent);
              }
              .image img{
                transform: scale(1.05);
              }
              /* 写真hover時もViewBtnのhoverを再現（common.css の .view-btn:hover / globals.css の [data-arrow-hover]:hover と同じ値） */
              a.view-btn{
                background-size: 100% 100%;
                background-position: left;
                color: var(--btn-bg);
              }
              .arrow-wrap::before,
              .arrow-wrap::after{
                animation: arrow-in var(--duration) var(--easing) both;
              }
            }
          }
        }
      }
    }
  }
