/* Google Fonts読み込み */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap");

/* 簡易リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
body:after {
    position: fixed;
    content: '';
    width: 100%;
    height: 100%;
    background: url(https://dev.grinshamokagawa.com/assets/front/images/logo.png) no-repeat right bottom;
    right: 0;
    top: 0;
    opacity: 0.1;
    background-size: 80%;
}

.swiper {
  width: 100%;
}
.swiper-autoheight, .swiper-autoheight .swiper-slide {
    min-height: 100vh;
}

/* =========================
   メニュー共通
========================= */
.global-menu,
.sp-drawer,
.hamburger {
  position: fixed;
  z-index: 3000;
}

/* =========================
   PC メニュー
========================= */
.pc-menu {
  top: 0;
  left: 0;
  width: 100%;
}

.pc-menu ul {
  display: flex;
  gap: 20px;
  padding: 10px 20px;
  margin: 0;
  list-style: none;
  color: #2a3f05;
}

.pc-menu ul a {
  color: #2a3f05;
  text-decoration: none;
  font-size: 1.25em;
}

.homelogo a img {
  width: 5vw;

}

/* =========================
   SP メニュー
========================= */
.sp-menu,
.sp-drawer {
  display: none;
}
#drawerClose{
    position: absolute;
    top: 7px;
    right: 6px;
    font-size: 32px;
    background: none;
    border: none;
    color: #2b623f;
    cursor: pointer;
}
#spDrawer a {
        font-size: 4rem;
        line-height: .9em;
        color: #ffffff;
        text-decoration: none;
    }

/* 垂直スライダー */
.vertical-slider {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);

}

/* 水平スライダー */
.horizontal-slider {
  height: 100%;
  width: 100%;
}

/* 垂直スライダー&水平スライダーのスライド */
.vertical-slider__slide,
.horizontal-slider__slide {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  padding: 5% 2rem 2rem 2rem;
  position: relative;
}

.horizontal-slider__slide {
  padding: 0;
}





h2.sectionTitle {
    font-size: 10rem;
    font-family: "League Gothic", "Noto Sans JP", sans-serif;
    color: #006c32;
    line-height: .9;
}

h2.sectionTitle span {
  font-size: 0.25em;
}

#hero {}

#hero .contents {
  mix-blend-mode: overlay;
  display: table;
  width: 100vw;
  height: 100vh;
}

#hero h1.sectionTitle {
  text-align: center;
  line-height: 0.9;
  font-size: calc(100vw / 3.4);
  background-blend-mode: overlay;
  color: #2a3f05;
  letter-spacing: -0.04em;
  padding-top: 3%;
  font-family: "League Gothic", "Noto Sans JP", sans-serif;
}

#hero h1.sectionTitle span {
  font-size: 0.25em;
  font-weight: bold;
}

#hero img {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
}

#about {}

#about h3 {
  font-size: calc(100vw/17);
  font-weight: bold;
}

#about p {
  font-size: calc(100vw/40);
  font-weight: bold;
}


#topics {
  align-items: flex-start;
}

#topics .sectionTitle {
  font-size: 5rem;
}

#topics .sectionTitle span {
  margin-left: 1rem;
}

#topics section {
  height: 80vh;
  align-items: flex-start;
}


#teams {
  align-items: flex-start;
}

#teams .sectionTitle {
  font-size: 5rem;
}

#teams .sectionTitle span {
  margin-left: 1rem;
}

#teams #roster_index {
  align-items: flex-start;
}

#teams .listCol {
  width: calc(100%/6 - 1rem);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.horizontal-hint {
  position: sticky;
  top: 12px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;
  margin: 0 auto 8px;
  width: fit-content;

  font-size: 12px;
  color: #555;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  animation: hintPulse 1.6s ease-in-out infinite;
}

.horizontal-hint .icon {
  font-size: 14px;
}
/* グレーマスク */
#modalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 4000;
}

#modalOverlay.is-active {
  display: block;
}

/* モーダル表示 */
.modal {
  
  transition: cubic-bezier(0.76, 0.01, 0.33, 0.97) 1s;
  opacity: 0;
}

.modal.is-open {
  display: block;
    position: fixed;
    inset: 0;
    z-index: 5000;
    width: 95vw;
    height: 95vh;
    overflow: hidden;
    left: 2vw;
    top: 2vh;
    opacity: 1;
    transition: cubic-bezier(0.76, 0.01, 0.33, 0.97) 1s;
}
/* 右上 × */
.modal-close {
    position: absolute;
    top: 7px;
    right: 6px;
    font-size: 32px;
    background: none;
    border: none;
    color: #2b623f;
    cursor: pointer;
}
/* さりげない点滅 */
@keyframes hintPulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}


.profile {
  position: absolute;
  left: 2.5%;
  bottom: 2.5%;
  height: fit-content;
  padding: 1rem;
  background: #ffffffcc;
  border-radius: 0.5rem;
}

.profile_detail .name {
  font-size: 3.5em;
}

.profile_detail .role {}

.profile_detail .age {}

.profile_detail .comment {}

.uniform_number {
  font-size: 48vh;
  position: absolute;
  bottom: 0;
  width: fit-content;
  text-align: right;
  right: 2rem;
  color: #2b5538c9;
  line-height: 96vh;
}


#partner {}

#partner .sectionTitle {
  font-size: 5rem;
}

#partner .sectionTitle span {
  margin-left: 1rem;
}

#partner .partnerBlock {
  padding: 0 1rem;
}

#partner .rankname {
  border-bottom: 1px solid;
}

#partner .partnerBlock {
  padding: 0.5rem 1rem;
  font-size: 0.75em;
}

#partner .partnerBlock#partner-1 {
  width: 60%;
}

#partner .partnerBlock#partner-2 {
  width: 40%;
}

#partner .partnerBlock#partner-3 {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-4 {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-5 {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-6 {
  width: calc(100%/1);
}

#partner .partnerBlock#partner-1 .partnerblock {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-2 .partnerblock {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-3 .partnerblock {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-4 .partnerblock {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-5 .partnerblock {
  width: calc(100%/3);
}

#partner .partnerBlock#partner-6 .partnerblock {
  width: calc(100%/10);
}

#company .sectionTitle {
  font-size: 5rem;
}


/* SP向け微調整 */
@media (max-width: 768px) {
  .pc_only {
    display: none !important;
  }

  .horizontal-hint {
    font-size: 11px;
    top: 8px;
  }

  .pc-menu {
    display: none;
  }
  
  .sp-menu {
    display: block;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
  }

  .hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: #006c32;
    margin: 6px 0;
  }

      .sp-drawer {
        display: block;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background: #0b9737;
        padding: 60px 20px;
        transition: right 0.3s;
        border-left: 60px solid #2a3f06;
        box-shadow: 0px 0px 29px #333;
    }

  .sp-drawer.is-open {
    right: 0;
  }

  .sp-drawer ul {
    list-style: none;
    padding: 0;
  }

  .sp-drawer li {
    margin-bottom: 20px;
  }

  .sectionTitle {
    font-size: 4rem;
    line-height: .9em;
  }
    body:after {
        right: 10vw;
        top: -35vh;
    }
  #hero h1.sectionTitle {
    margin-top: 11vh;
  }

  #hero img {
    position: absolute;
    left: 0%;
    top: 40%;
    width: 100%;
  }

  #about {
    align-items: baseline;
  }

  #about .sectionTitle {
    font-size: 5rem;
  }
  #topics section {
    height: 80vh;
    align-items: flex-start;
    width: 100%;
}
  #topics .card {
    width: 100%;
  }
  #about p {
    margin-left: -3rem;
    font-size: calc(100vw / 24);
    font-weight: bold;
  }

  #about h3 {
    font-size: calc(100vw / 15);
    font-weight: bold;
  }

  #teams img {
    height: 100%;
  }
  
  #teams .listCol {
    width: calc(100%/2);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
  }

  .uniform_number {
    font-size: 48vh;
    position: absolute;
    bottom: 0;
    width: fit-content;
    text-align: right;
    right: 2rem;
    color: #2b5538c9;
    line-height: 43vh;
  }

  #partner .sectionTitle {
    font-size: 4rem;
    line-height: .9em;
  }

  #partner .sectionTitle span {
    display: block;
    margin-left: 0
  }

  #partner .partnerBlock {
    padding: 0.5rem 0;
    font-size: 0.75em;
    width: 97% !important;
  }

  #partner .partnerBlock#partner-6 .partnerblock {
    width: calc(100% / 5);
  }
  .swiper-slide {
    height: auto;
    max-height: 100vh;
    overflow-y: auto;  /* スライド内スクロールを強制 */
    
    /* 垂直スクロールをブラウザに優先させ、Swiperの横取りを防ぐ */
    touch-action: pan-y; 
    
    /* iOS Safariでのスクロールをスムーズにする */
    -webkit-overflow-scrolling: touch;
  }
  #company dt, #company dd {
    display: block;
            width: 100%;
  }
}