@charset "UTF-8";

/* 社長メッセージ（src/pages/top-message/index.astro の <style>） */

  .subpage-mv-top-message{
    height: 80rem;
    position: relative;
    @media screen and (max-width: 768px) {
      height: 48rem;
    }
    img{
      position: absolute;
      inset: 0;
      height: 100%;
      object-fit: cover;
      @media screen and (max-width: 768px) {
        object-position: 64% 50%;
      }
    }
    .images{
      position: absolute;
      z-index: 1;
      inset: 0;
      @media screen and (max-width: 768px) {
        display: none;
      }
      .diamond{
        --parallax-max: 6rem;
        &:nth-child(1){
          --w: 3.2rem; --x: 26; --y: 82;
          @media screen and (max-width: 768px) {
          }
        }
        &:nth-child(2){
          --w: 9.6rem; --x: 32; --y: 86;
          @media screen and (max-width: 768px) {
          }
        }
        &:nth-child(3){
          --w: 21.2rem; --x: 91; --y: 106;
          @media screen and (max-width: 768px) {
          }
        }
      }
    }
    .inner{
      position: relative;
      z-index: 2;
      height: 100%;
    }
    .texts{
      height: 100%;
      display: flex;
      flex-direction: column;
      padding-block: max(10rem,100px) 4rem;
      @media screen and (max-width: 768px) {
        padding-block: 8rem 1.5rem;
      }
      .title{
        .en{
          font-size: 1.6rem;
          @media screen and (max-width: 768px) {
            font-size: 1.4rem;
          }
        }
        h1{
          font-size: 3rem;
          margin-top: 0.25em;
          @media screen and (max-width: 768px) {
            font-size: 2.1rem;
          }
        }
      }
      .copy{
        font-size: 3.4rem;
        line-height: 1.6;
        font-feature-settings: "palt";
        margin-top: 8rem;
        @media screen and (max-width: 768px) {
          font-size: 1.9rem;
          font-weight: 900;
          margin-top: 10rem;
        }
        span{
          @media screen and (max-width: 768px) {
            display: inline-block;
            width: fit-content;
            padding-inline: 0.25em 0;
            padding-bottom: 0.15em;
            background-color: #ffffffbf;
            &:first-child{
              padding-top: 0.15em;
            }
          }
        }
      }
      .name{
        font-size: 3.2rem;
        line-height: 1.5;
        margin-top: 6rem;
        @media screen and (max-width: 768px) {
          font-size: 2rem;
          margin-block: auto 0;
        }
        span{
          display: block;
        }
        .sub{
          font-size: 0.6em;
        }
      }
    }
  }

  .page-top-message{
    .message{
      position: relative;
      .images{
        position: absolute;
        z-index: 0;
        inset: 0;
        @media screen and (max-width: 768px) {
          display: none;
        }
      }
      .texts{
        position: relative;
        z-index: 1;
        h2{
          font-size: 3.2rem;
          line-height: 1.6;
          @media screen and (max-width: 768px) {
            font-size: 2rem;
          }
          .yakumono{
            font-family: var(--font-noto);
            font-feature-settings: "palt";
            font-weight: 400;
          }
        }
        .readText{
          margin-top: 4rem;
          @media screen and (max-width: 768px) {
            margin-top: 3rem;
          }
        }
      }
      &.message01{
        padding-top: 12rem;
        @media screen and (max-width: 768px) {
          padding-top: 4rem;
        }
        .images .diamond{
          &:nth-child(1){
            --w: 2.4rem; --x: 84; --y: 55;
            @media screen and (max-width: 768px) {
            }
          }
          &:nth-child(2){
            --w: 10rem; --x: 79; --y: 64;
            @media screen and (max-width: 768px) {
            }
          }
        }
        .texts{
          width: 73rem;
          @media screen and (max-width: 768px) {
            width: 100%;
          }
        }
      }
      &.message02{
        padding-top: 10rem;
        @media screen and (max-width: 768px) {
          padding-top: 4rem;
        }
        .images .diamond{
          &:nth-child(1){
            --w: 2.4rem; --x: 110; --y: 20;
            @media screen and (max-width: 768px) {
            }
          }
          &:nth-child(2){
            --w: 10rem; --x: 105; --y: 30;
            @media screen and (max-width: 768px) {
            }
          }
          &:nth-child(3){
            --w: 2.4rem; --x: 20; --y: 65;
            @media screen and (max-width: 768px) {
            }
          }
          &:nth-child(4){
            --w: 10rem; --x: 25; --y: 75;
            @media screen and (max-width: 768px) {
            }
          }
        }
        .texts{
          width: 73rem;
          margin-inline: auto 0;
          @media screen and (max-width: 768px) {
            width: 100%;
          }
        }
      }
      &.message03{
        padding-top: 14rem;
        display: flex;
        justify-content: space-between;
        gap: 8rem;
        @media screen and (max-width: 768px) {
          padding-top: 4rem;
          flex-direction: column-reverse;
          gap: 4rem;
        }
        .texts{
          width: 70rem;
          flex-shrink: 0;
          @media screen and (max-width: 768px) {
            width: 100%;
          }
        }
        .image{
          width: 100%;
        }
      }
    }

    .middle-image{
      margin-top: 12rem;
      @media screen and (max-width: 768px) {
        margin-top: 4rem;
      }
    }
  }
