@charset "UTF-8";

/* キャリアと教育研修制度（産業システム事業部）（src/pages/career-training-industrial/index.astro の <style>） */

  .page-career-training-industrial{
    .section-hd{
      .en{
        display: flex;
        align-items: center;
        gap: 0.25em;
      }
      h2{
        font-size: 4.4rem;
        margin-top: 1rem;
        @media screen and (max-width: 768px) {
          font-size: 2.8rem;
          margin-top: 0.5rem;
        }
      }
    }
    .career-model{
      position: relative;
      padding-block: 10rem;
      @media screen and (max-width: 768px) {
        padding-block: 6rem;
      }
      .inner{
        isolation: isolate;
        display: grid;
        grid-template-columns: 1fr 98rem;
        @media screen and (max-width: 768px) {
          grid-template-columns: 1fr;
        }
      }
      .images{
        position: absolute;
        inset: 0;
        .diamond{
          &:nth-child(1){
            --w: 3rem; --x: 5.6; --y: 70;
            @media screen and (max-width: 768px) {
              --w: 1.6rem; --x: 76; --y: 5;
            }
          }
          &:nth-child(2){
            --w: 14rem; --x: 9; --y: 78;
            @media screen and (max-width: 768px) {
              --w: 6rem; --x: 86; --y: 8;
            }
          }
        }
      }
      .model-wrap{
        @media screen and (max-width: 768px) {
          margin-top: 3rem;
        }
        li{
          display: grid;
          grid-template-columns: 26rem 1fr;
          border-bottom: 0.4rem solid var(--accent);
          position: relative;
          min-height: 16rem;
          @media screen and (max-width: 768px) {
            grid-template-columns: 1fr;
            min-height: 0;
          }
          &:not(:last-child){
            &::after{
              content: "";
              width: 2.6rem;
              height: 1.6rem;
              background-color: var(--accent);
              position: absolute;
              top: 100%;
              left: calc(50% - 1.3rem);
              clip-path: polygon(0 0, 100% 0, 50% 100%);
            }
          }
          &+ li{
            margin-top: 4rem;
            @media screen and (max-width: 768px) {
              margin-top: 3.5rem;
            }
          }
          .title{
            display: grid;
            grid-template-rows: 4rem 1fr;
            padding: 1rem 1rem 0 1rem;
            background-color: var(--accent);
            @media screen and (max-width: 768px) {
              grid-template-rows: 3.2rem;
              grid-template-columns: 9rem 1fr;
              gap: 1.5rem;
              padding: 0.8rem;
            }
            .year{
              display: grid;
              place-content: center;
              background-color: var(--white);
              @media screen and (max-width: 768px) {
                font-size: 1.4rem;
              }
            }
            h3{
              display: grid;
              place-content: center;
              font-size: 2.2rem;
              @media screen and (max-width: 768px) {
                place-content: center start;
                font-size: 1.8rem;
              }
            }
          }
          .readText{
            padding: 4rem;
            background-color: var(--white);
            @media screen and (max-width: 768px) {
              padding: 2rem;
            }
          }
        }
      }
    }
    .wide-image{
      position: relative;
      padding-top: 10rem;
      @media screen and (max-width: 768px) {
        padding-top: 4rem;
      }
      .images{
        position: absolute;
        inset: 0;
        .diamond{
          &:nth-child(1){
            --w: 3rem; --x: 96; --y: 72;
            @media screen and (max-width: 768px) {
              --w: 1.4rem; --x: 96; --y: 62;
            }
          }
          &:nth-child(2){
            --w: 14rem; --x: 92; --y: 83;
            @media screen and (max-width: 768px) {
              --w: 6rem; --x: 90; --y: 88;
            }
          }
        }
      }
    }
    .training{
      padding-block: 10rem 4rem;
      @media screen and (max-width: 768px) {
        padding-block: 6rem 2rem;
      }
      .training-wrap{
        margin-top: 5rem;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 0 8rem;
        @media screen and (max-width: 768px) {
          margin-top: 3rem;
          grid-template-columns: 1fr;
          gap: 0;
        }
        li{
          padding-block: 5rem;
          border-top: var(--black) 1px dotted;
          height: fit-content;
          @media screen and (max-width: 768px) {
            padding-block: 3rem;
            border-bottom: var(--black) 1px dotted;
          }
          &:nth-child(3),
          &:nth-child(4){
            border-bottom: var(--black) 1px dotted;
          }
          &+ li{
            @media screen and (max-width: 768px) {
              border-top: none;
            }
          }
          .title{
            display: flex;
            align-items: center;
            justify-content: space-between;
            @media screen and (max-width: 768px) {
              gap: 1.5rem;
            }
            h3{
              .main{
                font-size: 2.4rem;
                @media screen and (max-width: 768px) {
                  font-size: 2rem;
                }
              }
              .sub{
                font-size: 1.6rem;
                display: inline-block;
                margin-top: 1rem;
                font-feature-settings: "palt";
                @media screen and (max-width: 768px) {
                  font-size: 1.3rem;
                  margin-top: 0.5rem;
                }
              }
            }
            img{
              width: 7rem;
              @media screen and (max-width: 768px) {
                flex: none;
                width: 5rem;
              }
            }
          }
          .readText{
            margin-top: 3rem;
            @media screen and (max-width: 768px) {
              margin-top: 2rem;
            }
            &+ .readText{
              margin-top: 1lh;
            }
          }
          .num-wrap{
            margin-top: 3rem;
            display: grid;
            gap: 1.5rem;
            &+ .readText{
              margin-top: 3rem;
            }
            p{
              display: flex;
              font-size: max(1.4rem,12px);
              line-height: 1.4;
              span{
                display: inline-block;
                padding-inline: 0.5em;
                padding-block: 0.3em;
                background-color: var(--bg-gray);
                &.num{
                  width: 2.4em;
                  text-align: center;
                  white-space: nowrap;
                  background-color: #d7dbdd;
                  height: 100%;
                }
              }
            }
          }
        }
      }
    }
  }
