@charset "UTF-8";

/* 社会システム事業部 座談会（src/pages/crosstalk/index.astro の <style>） */

  .subpage-mv-crosstalk{
    height: 68rem;
    position: relative;
    @media screen and (max-width: 768px) {
      height: 43rem;
    }
    &> picture{
      height: 100%;
      position: absolute;
      inset: 0;
      z-index: 0;
      img{
        height: 100%;
        object-fit: cover;
      }
    }
    .images{
      position: absolute;
      z-index: 1;
      inset: 0;
      @media screen and (max-width: 768px) {
        display: none;
      }
      .diamond{
        --parallax-max: 6rem;
        &:nth-child(1){
          --w: 2.4rem; --x: 6; --y: 38;
          @media screen and (max-width: 768px) {
          }
        }
        &:nth-child(2){
          --w: 10rem; --x: 10; --y: 48;
          @media screen and (max-width: 768px) {
          }
        }
        &:nth-child(3){
          --w: 3rem; --x: 94; --y: 71;
          @media screen and (max-width: 768px) {
          }
        }
        &:nth-child(4){
          --w: 14.2rem; --x: 90; --y: 81;
          @media screen and (max-width: 768px) {
          }
        }
      }
    }
    .inner{
      position: relative;
      z-index: 2;
      height: 100%;
    }
    .texts{
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-block: max(8rem,80px) 4rem;
      @media screen and (max-width: 768px) {
        padding-block: 7rem 2rem;
      }
      .title{
        .en{
          font-size: 4.4rem;
          @media screen and (max-width: 768px) {
            font-size: 2.4rem;
          }
        }
        h1{
          font-size: 1.6rem;
          margin-top: 0.5em;
          @media screen and (max-width: 768px) {
            font-size: 1.3rem;
          }
        }
      }
      .copy{
        font-size: 6.6rem;
        line-height: 1.35;
        font-feature-settings: "palt";
        @media screen and (max-width: 768px) {
          font-size: 2.8rem;
        }
      }
    }
  }

  .page-crosstalk{
    /* members */
    .members{
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10rem;
      padding-block: 5rem 5rem;
      @media screen and (max-width: 768px) {
        padding-inline: 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding-block: 3rem;
      }
      .member{
        position: relative;
        display: flex;
        align-items: flex-end;
        gap: 2rem;
        @media screen and (max-width: 768px) {
          gap: 1rem;
        }
        img{
          width: 11.6rem;
          @media screen and (max-width: 768px) {
            width: 7rem;
          }
        }
        .name{
          font-size: 2.8rem;
          margin-bottom: 0.5em;
          @media screen and (max-width: 768px) {
            font-size: 2rem;
            margin-bottom: 0.25em;
          }
        }
        .join, .dept{
          font-size: 1.4rem;
          line-height: 1.75;
          @media screen and (max-width: 768px) {
            font-size: 1.2rem;
          }
        }
        &+ .member{
          &::before{
            content: "×";
            font-size: 3.6rem;
            font-weight: 300;
            color: var(--white);
            position: absolute;
            top: calc(50% - 0.5em);
            left: calc(-5rem - 0.5em );
            @media screen and (max-width: 768px) {
              display: none;
            }
          }
        }
      }
    }

    /* crosstalk */
    .crosstalk{
      padding-bottom: 10rem;
      @media screen and (max-width: 768px) {
        padding-bottom: 4rem;
      }
      .contents{
        padding-top: 10rem;
        display: grid;
        grid-template-columns: 1fr 83rem;
        @media screen and (max-width: 768px) {
          display: block;
          padding-top: 4rem;
        }
      }
      aside{
        .en{
          font-size: 1.6rem;
          line-height: 1;
        }
        h2{
          font-size: 2.8rem;
          display: flex;
          flex-direction: column;
          margin-top: 1rem;
          @media screen and (max-width: 768px) {
            font-size: 2rem;
          }
          span{
            display: inline-block;
            width: fit-content;
            background-color: var(--accent);
            padding: 0.35em 0.5em;
            font-feature-settings: "palt";
            letter-spacing: 0.02em;
            &+ span{
              padding-top: 0;
            }
          }
        }
        .copy{
          font-size: 2.4rem;
          line-height: 1.5;
          margin-top: 4rem;
          @media screen and (max-width: 768px) {
            font-size: 1.8rem;
            margin-top: 2rem;
          }
        }
      }
      article{
        ul{
          padding-top: 2.6rem;
          @media screen and (max-width: 768px) {
            padding-top: 4rem;
          }
          li{
            display: flex;
            gap: 3rem;
            @media screen and (max-width: 768px) {
              gap: 2rem;
            }
            .icon{
              flex-shrink: 0;
              img{
                width: 5.8rem;
                @media screen and (max-width: 768px) {
                  width: 4.8rem;
                }
              }
              p{
                font-size: 1.4rem;
                @media screen and (max-width: 768px) {
                  font-size: 1.2rem;
                }
                text-align: center;
                margin-top: 0.75em;
              }
            }
            .readText{
              margin-top: calc((1em - 1lh) / 2);
            }
            &+ li{
              margin-top: 5rem;
              @media screen and (max-width: 768px) {
                margin-top: 4rem;
              }
            }
          }
        }
      }
      .image-wrap{
        margin-top: 10rem;
        position: relative;
        @media screen and (max-width: 768px) {
          margin-top: 5rem;
        }
        .images{
          position: absolute;
          z-index: 2;
          inset: 0;
          .diamond{
            &:nth-child(1){
              --w: 2.4rem;
              @media screen and (max-width: 768px) {
                --w: 1.4rem;
              }
            }
            &:nth-child(2){
              --w: 10rem;
              @media screen and (max-width: 768px) {
                --w: 4rem;
              }
            }
            &:nth-child(3){
              --w: 2.4rem;
              @media screen and (max-width: 768px) {
                --w: 1.4rem;
              }
            }
            &:nth-child(4){
              --w: 10rem;
              @media screen and (max-width: 768px) {
                --w: 4rem;
              }
            }
          }
        }
        &.image01,
        &.image03{
          .images .diamond{
            &:nth-child(1){
              --x: 105; --y: 13;
              @media screen and (max-width: 768px) {
                --x: 102; --y: 0;
              }
            }
            &:nth-child(2){
              --x: 101; --y: 23;
              @media screen and (max-width: 768px) {
                --x: 97; --y: 22;
              }
            }
            &:nth-child(3){
              --x: -3; --y: 52;
              @media screen and (max-width: 768px) {
                --x: -2; --y: 58;
              }
            }
            &:nth-child(4){
              --x: 1; --y: 62;
              @media screen and (max-width: 768px) {
                --x: 3; --y: 80;
              }
            }
          }
        }
        &.image02{
          .images .diamond{
            &:nth-child(1){
              --x: 21; --y: -9;
              @media screen and (max-width: 768px) {
                --x: 15; --y: -12;
              }
            }
            &:nth-child(2){
              --x: 17; --y: 1;
              @media screen and (max-width: 768px) {
                --x: 10; --y: 5;
              }
            }
            &:nth-child(3){
              --x: 78; --y: 80;
              @media screen and (max-width: 768px) {
                --x: 88; --y: 82;
              }
            }
            &:nth-child(4){
              --x: 82; --y: 90;
              @media screen and (max-width: 768px) {
                --x: 94; --y: 95;
              }
            }
          }
        }
      }
    }


  }
