/*
Theme Name: 九州学生映画祭ウェブサイトテーマ
Author: 田浦智大
Group
Description: 九州学生映画祭のウェブサイト用に作られたオリジナルテーマ
Version: 1.0
*/
:root{
  --LL: clamp(2.8rem, 1.382rem + 4.47vw, 6.75rem);
  --L: clamp(1.75rem, 1.553rem + 0.79vw, 2.5rem);
  --ML: calc(var(--M) * 1.2);
  --M: clamp(1.063rem, 1.032rem + 0.13vw, 1.188rem);
  --S: clamp(0.969rem, 0.938rem + 0.13vw, 1.094rem);
  --orange: #e96828;
  --pale-orange: rgb(255, 234, 221);
  --deep-orange: #c8390e;
  --white: #f8f8f8;
  --gray-1: hsl(0, 0%, 94%);
  --gray-2: hsl(0, 0%, 50%);
  --gray-3: hsl(0, 0%, 30%);
  --black: #161822;
  --japanese-fonts: "Noto Sans JP", sans-serif;
  --english-fonts: 'Segoe UI', Tahoma, Geneva, Verdana, YakuHanJPs, "Zen Kaku Gothic New", sans-serif;
  --link-underline: var(--deep-orange) 1.2px solid;
  --link-underline-transparent: transparent 1.2px solid;
  --header-vertical-size: calc(var(--M) * 3 + var(--S) / 2);
}
::selection{
  background-color: var(--orange);
  color: var(--white);
}
.link-button, .header-nav-page a, .menu-nav-page a{
  color: inherit;
  padding: calc(var(--M) / 8) calc(var(--M) / 1.4) calc(var(--M) / 4);
  border-radius: 100vmax;
  transition: all 0.1s ease-in-out;
}
.link-button:hover, .header-nav-page a:hover, .menu-nav-page a:hover{
  background-color: var(--orange);
  color: var(--white);
}
.hamburger{
  display: none;
}
body{
  font-family: var(--japanese-fonts);
  font-weight: 400;
  position: relative;
  font-size: var(--M);
  background-color: var(--white);
  color: var(--black);
}
.width-limit{
  max-width: 1120px;
  padding: 0 16px;
  margin: auto;
}
/*ヘッダー*/
header{
  position: fixed;
  z-index: 1;
  top: 0;
  width: 100%;
  padding: calc(var(--S) / 4) 0;
  background-color: transparent;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px) brightness(170%);
  .mobile-menu{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: var(--gray-1);
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: calc(var(--L) * 1.4);
    .icon-link{
      width: min(50%, calc(var(--L) * 8));
      margin: 0 auto;
    }
    .menu-nav-page ul{
      display: grid;
      gap: var(--ML);
      font-size: var(--ML);
      text-align: center;
    }
    .menu-nav-sns ul{
      display: flex;
      justify-content: center;
      gap: var(--S);
      img{
        width: calc(var(--L) * 1.4);
        border-radius: 24%;
      }
    }
  }
  .mobile-menu.is-active{
    display: flex;
  }
}
header .width-limit{
  display: flex;
  justify-content: space-between;
  align-items: center;
  .icon-link{
    height: calc(var(--M) * 3);
    img{
      height: 100%;
    }
  }
  nav > ul{
    display: flex;
  }
  .header-nav-page{
    ul{
      gap: 8px;
      height: 100%;
      align-items: center;
    }
  }
  .header-nav-sns{
    ul{
      gap: 7px;
      height: 100%;
      align-items: center;
    }
    img{
      width: 32px;
      border-radius: 8px;
    }
  }
}
/*Main-wrapper / Sections*/
.main-wrapper{
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  justify-content: space-between;
}
/*セクション*/
section{
  padding: calc(var(--L) * 1.4) 0;
  h1{
    font-size: var(--L);
    margin: var(--L) 0 calc(var(--L) / 1.4);
    text-align: center;
  }
  h2{
    font-size: var(--L);
    margin: calc(var(--L) * 1.4 * 2) 0 calc(var(--L) / 1.4);
  }
  h2:first-of-type, p:first-of-type{
    margin-top: unset;
  }
  p{
    line-height: 1.75;
    max-width: calc(var(--M) * 50);
    width: fit-content;
    margin: var(--M) 0;
  }
  a{
    color: var(--deep-orange);
    transition: all 0.1s ease-in-out;
    border-bottom: var(--link-underline-transparent);
  }
  a:hover{
    border-bottom: var(--link-underline);
  }
}
section:first-of-type{
  padding-top: calc(var(--L) * 1.4 * 2);
}
section:has(h1){
  padding-bottom: unset;
  p{
    margin-left: auto;
    margin-right: auto;
  }
}
/*アーカイブ・カード*/
.archive-cards{
  display: flex;
  flex-direction: column;
  gap: var(--LL);
  padding: calc(var(--LL) / 3) 3cqw;
}
.archive-cards:has(a.archive-card:hover) a.archive-card:not(:hover){
  .archive-card-background{
    filter: blur(calc(var(--LL) / 2)) brightness(130%) contrast(80%) saturate(900%);
  }
  img{
    filter: contrast(90%) brightness(90%);
  }
}
a.archive-card{
  border-bottom: none;
  display: grid;
  position: relative;
  grid-template-columns: 1fr 2fr;
  gap: 2%;
  align-items: center;
  .archive-card-background{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12cqw;
    scale: 1.05;
    background-size: contain;
    transform: translateX(5%);
    filter: blur(calc(var(--LL) / 2)) brightness(150%) contrast(90%) saturate(900%);
    opacity: 0.3;
    z-index: -1;
    transition: all ease-in-out 0.3s;
  }
  .archive-year, img{
    user-select: none;
  }
  .archive-year{
    position: relative;
    font-size: var(--LL);
    font-weight: bold;
    letter-spacing: calc(var(--LL) * -0.4);
    transform: translateX(calc(var(--LL) * -0.45 / 2)) translateY(calc(var(--LL) * -0.45 / 5));
    text-shadow: 0 calc(var(--LL) / 20) calc(var(--LL) / 5) var(--black);
    line-height: 1;
    color: var(--white);
    mix-blend-mode: overlay;
    width: 100%;
    text-align: center;
  }
  .archive-year:before{
    position: absolute;
    content: "";
    width: 10px;
    border-radius: 100vmax;
    height: calc(var(--LL) * 0.1);
    bottom: calc(var(--LL) * -0.2);
    left: calc(55.5%);
    background-color: var(--white);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: all ease-in-out 0.1s;
  }
  img{
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 calc(var(--LL) / 20) calc(var(--LL) / 5) rgba(255,255,255,0.5);
    filter: contrast(100%) brightness(100%);
    transition: all ease-in-out 0.3s;
  }
}
a.archive-card:nth-child(2n-1){
  grid-template-columns: 2fr 1fr;
  .archive-card-background{
    transform: translateX(-5%);
  }
  img{
    order: 1;
  }
  .archive-year{
    order: 2;
  }
}
a.archive-card:hover{
  border-bottom: none;
  .archive-card-background{
    opacity: 0.4;
  }
  .archive-year:before{
    width: calc(var(--LL) * 2);
    left: calc(50% - var(--LL) / 1.28);
    opacity: 1;
  }
  img{
    filter: contrast(100%) brightness(110%);
  }
}
/*ニュース・カード*/
.news-cards{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--M) * 13), 1fr));
  gap: var(--M);
}
.news-card{
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--M) / 2);
  img{
    width: 100%;
    max-height: 30dvh;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  .news-card-title{
    width: fit-content;
    border-bottom: var(--link-underline-transparent);
    transition: all 0.1s ease-in-out;
    flex-grow: 1;
  }
  .news-card-date{
    font-size: var(--S);
    color: var(--gray-3);
  }
}
.news-card:hover{
  border-bottom: none;
  .news-card-title{
    text-decoration: underline;
  }
}
/*フッター*/
footer{
  margin-top: var(--L);
  background-color: var(--gray-1);
  padding: calc(var(--S) / 4) 0;
}
footer .width-limit{
  align-items: center;
  .footer-icon{
    display: block;
    margin: auto;
    width: calc(var(--M) * 11);
  }
}
@media screen and (max-width: 1080px) {
  .header-nav-sns{
    display: none;
  }
  .header-nav-page{
    display: none;
  }
  .hamburger{
    display: grid;
  }
}
@media screen and (max-width: 720px) {
  header{
    position: sticky;
  }
}