@charset "UTF-8";

/* ===================================
	File Name   : exhibition.css
	Description : Exhibition Page CSS
	Editor      : Bface Nakamura
	
	Update Description :
	[2025/07/10] 新規作成
====================================== */

/*========== Style Contents ==========

	1. Redefinition
  2. Section [reason]
  3. Section [solution]
  4. Section [schedule]
  5. Section [apply]
  6. Section [position]
 
====================================== */



/*===== 1. Redefinition =====*/


/*===== 2. Section [reason]  =====*/

#reason {
  .lattice {
    display: grid;
    grid-template: "content01 image01" auto
                   "image02   content02" auto
                   "content03 image03" auto
                   "image04   content04" auto /
                   1fr        1fr;
    padding: 5rem 4rem;
    border: 5rem solid var(--GCl);
    > div {
      position: relative;
      &::before {
        position: absolute;
        bottom: 0;
        width: calc(100% - 4rem);
        height: 0.1rem;
        background: var(--GCl);
        content: "";
      }
      &:last-of-type::before {content: none;}
      &:nth-of-type(odd) {
        padding: 4rem 4rem 4rem 0;
        &::before { left: 0;}
        &::after {
          position: absolute;
          top: 2rem;
          right: 0;
          width: 0.1rem;
          height: calc(100% - 4rem);
          background: var(--GCl);
          content: "";
        }
      }
      &:nth-of-type(even) {
        padding: 4rem 0 4rem 4rem;
        ::before { right: 0;}
      }
      &:nth-of-type(1){ grid-area: content01;}
      &:nth-of-type(2){ grid-area: content02;}
      &:nth-of-type(3){ grid-area: content03;}
      &:nth-of-type(4){ grid-area: content04;}
    }
    > figure {
      position: relative;
      padding: 4rem;
      &::before {
        position: absolute;
        bottom: 0;
        width: calc(100% - 4rem);
        height: 0.1rem;
        background: var(--GCl);;
        content: "";
      }
      &:last-child::before {content: none;}
      &:nth-of-type(even)::before { left: 0;}
      &:nth-of-type(even)::after {
        position: absolute;
        top: 2rem;
        right: 0;
        width: 0.1rem;
        height: calc(100% - 4rem);
        background: var(--GCl);
        content: "";
      }
      &:nth-of-type(odd)::before { right: 0;}
      img {
        object-fit: contain;
        height: fit-content;
      }
      &:nth-of-type(1){ grid-area: image01;}
      &:nth-of-type(2){ grid-area: image02;}
      &:nth-of-type(3){ grid-area: image03;}
      &:nth-of-type(4){ grid-area: image04;}

    }
  }
}

@media (max-width: 768px) {
  #reason {
    .lattice {
      display: grid;
      grid-template: "content01" auto
                     "image01" auto
                     "content02" auto
                     "image02" auto
                     "content03" auto
                     "image03" auto
                     "content04" auto
                     "image04" auto /
                     1fr;
      padding: 0;
      border: 1.5rem solid var(--GCl);
      > div {
        &::before { content: none;}
        &:nth-of-type(odd) {
          padding: 2rem 1rem 0;
          &::after { content: none;}
        }
        &:nth-of-type(even) { padding: 2rem 1rem 0;}
      }
      > figure {
        padding: 1rem;
        &::before {
          width: 100%;
        }
        &:nth-of-type(even) {
          padding: 1rem 1rem 2rem;
          &::after {
            content: none;
          }
        }
        &:nth-of-type(odd) { padding: 1rem 1rem 2rem;}
      }
    }
  }
}



/*===== 3. Section [solution]  =====*/
#solution {
  .card_wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3rem;
  }
  dl.card_general {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--baseC);
    counter-increment: num;
    width: calc(100% / 4);
    &::before {
      position: absolute;
      top: 2rem;
      left: 2rem;
      font-weight: bold;
      font-size: 4rem;
      content: "0"counter(num);
      line-height: 1;
    }
    dt {
      display: flex;
      flex-direction: column-reverse;
      min-height: 27rem;
      padding: 5rem 2rem 2rem;
      font-size: 2.2rem;
      font-weight: bold;
      line-height: 1.54;
      text-align: center;
      span {
        display: inline-block;
        margin: 0 auto 3rem;
      }
    }
    &:nth-of-type(1) dt span {max-width: 14rem;}
    &:nth-of-type(2) dt span {max-width: 9rem;}
    &:nth-of-type(3) dt span {max-width: 10rem;}
    &:nth-of-type(4) dt span {max-width: 9rem;}
    dd { 
      flex-grow: 1;
      margin: 0 .3rem .3rem;
      padding: 3rem;
      background: var(--GCl);
      line-height: 1.625;
    }
  }
}

@media (max-width: 1024px) {
  #solution {
    .card_wrapper {
      flex-wrap: wrap;
    }
    dl.card_general {
      width: calc(50% - 2rem);
    }
  }
}

@media (max-width: 768px) {
  #solution {
    .card_wrapper{
      flex-direction: column;
      gap: 1rem;
      &::before { content: none;}
    }
    dl.card_general {
      width: 100%;
      &::before {
        position: absolue;
        top: 1rem;
        left: 1rem;
        font-size: 3rem;
      }
      dt {
        min-height: auto;
        padding: 1rem;
        font-size: 1.8rem;
        span { margin-bottom: 1rem;}
      }
      dd { 
        min-height: auto;
        padding: 1rem;
      }
    }
  }
}



/*===== 4. Section [schedule]  =====*/
#schedule {
  .table_flow {
    width: 100%;
    height: 100%;
    li {
      position: relative;
      display: flex;
      justify-content: space-between;
      border-bottom: .2rem solid var(--GCd);
      padding: .5rem .7rem;
      margin-bottom: 3rem;
      &::after, &::before {
        position: absolute;
        bottom: 0;
        width: .2rem;
        height: 1rem;
        background: var(--GCd);
        content: "";
      }
      &::before {left: 0;}
      &::after {right: 0;}
      div{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25%;
        padding: 1.5rem 1rem ;
        background: var(--GCd);
        color: var(--baseC);
        font-weight: 700;
        font-size: 1.6rem;
        text-align: center;
      }
      p {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        margin-left: 2rem;
        font-weight: bold;
        font-size: 1.8rem;
        > span {
          margin-top: .5rem;
          font-size: 1.4rem;
          font-weight: initial;
        }
      }
      > span{
        position: absolute;
        top: 100%;
        right: calc(50% - 3rem);
        content: '';
        border-top: 2rem solid #ccc;
        border-right: 3rem solid transparent;
        border-left: 3rem solid transparent;
        z-index: -1;
      }
    }
  }
}

@media (max-width: 768px){
  #schedule {
    .table_flow {
      li {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: .2rem solid var(--GCd);
        margin-bottom: 2rem;
        &::after, &::before {
          width: .2rem;
          height: 1rem;
        }
        div {
          display: block;
          width: 100%;
          margin-bottom: 1rem;
          padding: 1.5rem 1rem;
          font-size: 1.6rem;
        }
        p {
          flex: 1;
          margin-left: 0;
          font-weight: bold;
          font-size: 1.6rem;
          text-align: center;
          > span { text-align: left;}
        }
        > span{
          position: absolute;
          right: calc(50% - 2rem);
          border-top: 1.5rem solid #ccc;
          border-right: 2rem solid transparent;
          border-left: 2rem solid transparent;
        } 
      }
    }
  }
}



/*===== 5. Section [apply]  =====*/
#apply {
  ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    align-items: center;
    justify-content: center;
    li {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 4;
      row-gap: 1rem;
    }
  }
}

@media (max-width: 768px) {
  #apply {
    ul {
      grid-template-columns: 1fr;
      column-gap: 1rem;
   }
  }
}



/*===== 6. Section [position]  =====*/
#position {
  > div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
    align-items: center;
    justify-content: center;
    dl {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
    }
  }
}

@media (max-width: 768px) {
  #position {
    > div {
      grid-template-columns: 1fr;
      column-gap: 1rem;
   }
  }
}









