.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 15px 2% 40px 2%;
  margin-bottom: 4rem;
}

main {
  padding-left: 2%;
  padding-right: 2%;
}

.section-nav--with-mntk {
  padding-top: 0;
  padding-bottom: clamp(1.2rem, 4.5vw, 1.8rem);
}

.section-nav--with-mntk .section-lead {
  --mntk-lead-start: clamp(0.1rem, 1vw, 0.3rem);
  --mntk-lead-end: 0;
}

.section-nav--with-mntk .grad-nav-double {
    margin-top: 0;
  padding-top: clamp(1rem, 3vw, 3rem);
}

@media (min-width: 769px) and (max-width: 1100px) {
  .section-nav--with-mntk .grad-nav-double {
    gap: clamp(0.15rem, 0.9vw, 0.3rem);
    padding: clamp(0.8rem, 2.2vw, 1.1rem) clamp(0.3rem, 1.5vw, 0.6rem)
      clamp(1.05rem, 2.6vw, 1.35rem);
    width: min(100%, 960px);
    margin-inline: auto;
    flex-wrap: nowrap;
  }

  .section-nav--with-mntk .grad-nav-double a {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(0.68rem, 1.9vw, 0.78rem);
    padding: clamp(0.45rem, 1.7vw, 0.55rem) clamp(0.3rem, 1.4vw, 0.45rem);
  }

  .section-nav--with-mntk .grad-nav-double img {
    flex-shrink: 0;
  }
}

/* 固定ヘッダーに重ならないようアンカー位置を調整 */
.section[id] {
  scroll-margin-top: 70px;   /* ヘッダーの高さに合わせる */
}

.section-nav--with-mntk .mntk-walk__track {
  /* ランナーの高さに少し余裕を足した分だけに縮める */
  min-height: calc(var(--mntk-runner-size) + 24px);
}




/* ✅ スマホ表示時に余白を小さくする */
@media (max-width: 768px) {
  .section {
    padding: 10px 1% 20px 1%;
    margin-bottom: 2rem;
  }

  main {
    padding-left: 2%;
    padding-right: 2%;
  }

  .section-nav--with-mntk .grad-nav-double {
    margin-top: 0;
    padding-top: clamp(1.6rem, 1.8vw, 1.8rem);
  }

    /* さらに下げたい場合は位置を数ピクセル調整 */
  .section-nav--with-mntk .mntk-walk__group {
    top: calc(50% + 10px);
  }
}

/* ✅ スマホ表示時に余白を小さくする */
@media (max-width: 600px) {

    /* さらに下げたい場合は位置を数ピクセル調整 */
  .section-nav--with-mntk .mntk-walk__group {
    top: calc(50% + 35px);
  }
}


#image-guidelines.li-white-box-tx,
#classification .li-white-box-tx,
#post-guidelines .li-white-box-tx {
  margin-bottom: 4rem;
}

#classification .li-white-box-tx p,
#post-guidelines .li-white-box-tx h4,
#post-guidelines .li-white-box-tx p {
  margin-left: 3%;
}

/* Align navigation text to the bottom on desktop */
.grad-nav-double a {
  height: 3.5em;
  justify-content: flex-end;
  line-height: 1.3;
}


/* ------------------------
 * スマホ表示セクションナビ
 * ------------------------*/
@media (max-width: 768px) {
  .grad-nav-double a {
    height: 3.5em;
    justify-content: flex-end;
  }

  .section-nav .grad-nav-double a {
  font-size: clamp(0.68rem, 2.6vw, 0.85rem);
  line-height: 1.3;
  font-weight: 600;
  }

  #post-guidelines .ribbon-title {
   font-size: clamp(0.9rem, 4.2vw, 1.3rem);
  padding: 0.6em 4%;
}

}







/*アコーディオン*/
.accordion-00g {
  max-width: 620px;
  background-color: hsl(210, 100%, 100%);
  border: 1px solid rgba(155, 171, 241, 0.808);
  margin: 2rem 2rem;
}

.accordion-00g[open] {
  padding-bottom: 1em;

}

.accordion-00g:not([open]) {
  margin-bottom: 7px;
}

.accordion-00g summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em;

  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;

  cursor: pointer;
}

.accordion-00g summary::-webkit-details-marker {
  display: none;
}

.accordion-00g summary::before,
.accordion-00g summary::after {
  position: absolute;
  right: 2em;
  top: 50%;
  width: 3px;
  height: .9em;
  background-color: #ffffff;
  content: '';
  transform: translateY(-50%);
  transition: transform .3s, opacity .3s;
}


/* horizontal bar */
.accordion-00g summary::after {
  transform: translateY(-50%) rotate(90deg);
}

/* open state -> minus symbol */
.accordion-00g[open] summary::before {
  opacity: 0;
}

.accordion-00g[open] summary::after {
  transform: translateY(-50%);
}



.accordion-00g summary::after {
  transition: transform .3s;
}

.accordion-00g[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.accordion-00g p {
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: 1em 2em 0.5em 2em;
  transition: transform .5s, opacity .5s;
  line-height: 1.7;
}


.accordion-00g .accordion-content {
  padding: 0.6em 1.8em;
}



.accordion-00g[open] p {
  transform: none;
  opacity: 1;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .accordion-00g {
    padding: 1.2em auto;
  }


  .accordion-00g,
  .accordion-00g[open] {
    width: 97%;
    max-width: none;
    margin: 1em auto;
    padding: 0;

  }

  .accordion-00g summary {
    padding: 0.9em 2% 0.9em 5%;
    font-size: 1rem;
    text-align: center;

  }


  .accordion-00g .accordion-content {
    padding: 1em 3.5% 0.8em 3%;
    font-size: 0.9rem;

  }

  .accordion-00g p {
    margin: 0.2em 0 0 0;
    line-height: 1.6;
  }
}


/* 白背景のボックスで囲むスタイル */
.white-box {
  background: #ffffffc2;
  padding: 2rem 3rem;
  margin: 0 auto;
  margin-bottom: 2em;
  max-width: 1000px;
}

.li-white-box-tx {
  line-height: 1.1;
font-weight: 500;
}

.li-white-box-tx p {
  margin-top: 0;
  /* 段落の上余白 */
  margin-bottom: 1em;
  /* 段落の下余白 */
  font-size: 1rem;
}

.white-box li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}


@media (max-width: 768px) {
  .white-box {
    padding: 0.8rem 3% 0.8rem 2%;
    margin-bottom: 1.5em;
  }

  .li-white-box-tx {
    line-height: 1.45;
    
  }

  .li-white-box-tx p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(0.6rem, 3vw, 0.9rem);
    font-weight: 600;
  }

  .white-box li {
    margin-bottom: 0.8rem;
    font-size: clamp(0.6rem, 3vw, 0.9rem);
    line-height: 1.55;
    font-weight: 600;
    margin-left: -0.5rem;
  }
}

#image-guidelines .li-white-box-tx {
  margin-bottom: 4rem;
}

#Other-guidelines .li-white-box-tx {
  margin-bottom: 4.2rem;
}



/*左線　見出し*/
#classification .heading-leftline {
  padding: 0.25em 0.4em;
  border-left: 6px solid #76c0f1e7;
  margin-top: 1.5em;
  margin-left: 0.5rem;
}

  .p-note {
    margin-left: 1.4rem;
  }

@media (max-width: 768px) {
  #classification .li-white-box-tx {
    margin-bottom: 4.2rem;
  }

  #Other-guidelines .li-white-box-tx {
    margin-bottom: 4.2rem;
  }

  #image-guidelines .li-white-box-tx {
    margin-bottom: 4rem;
  }

  #image-guidelines .p-note {
    margin-left: 2rem;
  }
    #classification .p-note {
    margin-left: 3%;
  }

  #post-guidelines .li-white-box-tx {
    margin-bottom: 2.5rem;
  }

}



.li-white-box-tx img {
  margin: 0.5rem;
}

/* Avoid oversized images inside the post guidelines section */
#post-guidelines .li-white-box-tx img {
  max-width: 500px;
  width: 100%;
}

@media (max-width: 768px) {
  .li-white-box-tx img {
    margin: 1.2rem 2%;
    
  }
  #post-guidelines .li-white-box-tx img {
  max-width: 290px;
  width: 100%;
}
  .li-white-box-tx img {
    margin: 1.5rem 2%;
    width: 100%;
    height: auto;
    max-width: 320px;
  }

}

