/* page specific styles for howto */

.section {
  padding: 15px 2% 40px 2%;
  margin-bottom: 4rem;
}

.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 {
  margin-top: 0;
  padding-top: clamp(0.35rem, 1.4vw, 0.6rem);
}


main {
  padding-left: 2%;
  padding-right: 2%;
}

/* 固定ヘッダーに重ならないようアンカー位置を調整 */
.section[id] {
  scroll-margin-top: 70px;   /* ヘッダーの高さに合わせる */
}



/* ✅ スマホ表示時に余白を小さくする */
@media (max-width: 768px) {
  .section {
    padding: 10px 2% 20px 2%;
    margin-bottom: 2rem;
  }

  main {
    padding-left: 2%;
    padding-right: 2%;
  }



  #participation .tab-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
  }

  .section-nav--with-mntk .grad-nav {
    margin-top: 0;
    padding-top: clamp(0.35rem, 1.4vw, 0.6rem);
    padding-bottom: clamp(0.55rem, 2vw, 0.75rem);
    padding-left: clamp(0.5rem, 4vw, 0.75rem);
    padding-right: clamp(0.5rem, 4vw, 0.75rem);
    gap: clamp(0.45rem, 3vw, 0.7rem);
  }

  .section-nav--with-mntk .grad-nav a {
    padding: clamp(0.5rem, 3vw, 0.65rem) clamp(0.75rem, 4vw, 0.9rem);
  }

}

.section-nav--with-mntk .mntk-walk__track {
  /* ランナーの高さに少し余裕を足した分だけに縮める */
  min-height: calc(var(--mntk-runner-size) + 24px);
}



/* ✅ スマホ表示時に余白を小さくする */
@media (max-width: 768px) {

    /* さらに下げたい場合は位置を数ピクセル調整 */
  .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);
  }
}


/* ---------------タブ切り替え ---------------------*/

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; 
  gap: 10px;
  margin-bottom: 1em;
  margin-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}
.tab-buttons button {
  padding:0.8em;
  border: none;
  background-color: #eee;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s;
  flex: 1;
  height: 65px;
  text-align: center;
  color: #5f5f81;
}
.tab-buttons button:hover {
  background-color: #f0f0f0;
}


.tab-buttons button.active {
  color: #fff;
}
.tab-buttons button:first-child.active {
  background-color: rgb(46, 231, 145);
}
.tab-buttons button:last-child.active {
  background-color: rgb(33, 85, 255);
}

.tab-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background-color: #ffffff60;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  min-height: 200px; 
  transition: min-height 0.3s ease;
}
.tab-content {
  padding: 2em;
}





.tab-wrapper ul li {
  line-height: 1.5;
  padding-left: 0.1em;
  padding-bottom: 0;
}


/*============= 
スマホ表示 
==============*/
@media (max-width: 768px) {

  /*タブ内の余白*/
  .center-tab {
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }


  .tab-wrapper {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    box-sizing: border-box;
  }

  .tab-buttons {
    flex-wrap: nowrap;
    display: flex;
    flex: 1;
    gap: 6px;
    min-width: 0;
  }

  .tab-buttons button {
    flex: 1;
    height: 50px;
    margin: 0;
    padding: 0.5em;
    font-size: clamp(0.65rem, 3.5vw, 1rem);
  }

  .tab-buttons,
  .tab-content {
    width: 100%;
    box-sizing: border-box;
  }

  .tab-content {
    padding: 1.5em 0;
  }

    #participation .white-box {
    padding: 1.5rem 2%;
  }
    }




/*ナンバー+グラデ下線 見出し*/
.number-heading1 {
  position: relative;
  font-size: 26px;
}

.number-heading1::before {
  content: attr(data-number);
  display: inline-block;
  margin-right: 20px;
  color: #6347ff;
  font-size: 30px;
}

.number-heading1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #4b3be0, #5acbff);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(112, 133, 250, 0.2);
}














  /*見出し　ナンバーつき */
  .number-heading1 {
    font-size: 18px;
    padding-bottom: 5px;
    margin-top: 0.5rem;
    margin-left: 0.8em;
    margin-right: 0.8em;
  }

  .number-heading1::before {
    font-size: 24px;
    margin-right: 10px;
  }

  .number-heading1::after {
    height: 3px;
  }

@media (max-width: 768px) {
  .number-heading1 {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }

    .number-heading1::before {
    font-size: clamp(1.2rem, 4vw, 1.85rem);
  }
    }


#Beginner .gradient-icon-button,
#Beginner .gradient-icon-button:link,
#Beginner .gradient-icon-button:visited {
  padding: 1em 8rem;
  margin-top: 1.2rem;
}

#work .gradient-icon-button,
#work .gradient-icon-button:link,
#work .gradient-icon-button:visited {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  #Beginner .gradient-icon-button,
  #Beginner .gradient-icon-button:link,
  #Beginner .gradient-icon-button:visited {
    padding: 1em 4rem;
    margin: 1.2rem auto;
  }

}

/* demo hall link under image */
.demo-link {
  --underline-offset: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #3374ee;
  font-size: 20px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.demo-link::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: var(--underline-offset);
  height: 2px;
  background-color: currentColor;
}

.cmnt-headbox-b .demo-link-container {
  margin-left: 0;
  text-align: center;
}
.demo-link:hover {
  opacity: 0.8;
}

.demo-link::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  background: url("../images/new-page.svg") no-repeat center/contain;
}

.demo-link-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 1em;
  display: inline-block;
}

/* override layout rules so the demo icon isn't stretched */
.cmnt-headbox-b .center-box img.demo-link-icon {
  width: 18px;
  height: 18px;
  max-width: none;
  display: inline-block;
  margin-right: 0.5em;
}




  /* demo hall link under image */
.demo-link {
  --underline-offset: 7px;
  font-size: 14px;
  margin-bottom: 1rem;
}

.demo-link::before {
  left: -4px;
  right: -4px;
  height: 1.4px;

}
.cmnt-headbox-b .demo-link-container {
  margin-left: 0;
}
.demo-link:hover {
  opacity: 0.8;
}

.demo-link::after {
  width: 18px;
  height: 18px;
  margin-left: 5px;
}

.demo-link-icon {
  width: 18px;
  height: 18px;
  margin-right: 1em;
}

/* demo video styles */
.demo-video-wrapper {
  max-width: 560px;
  margin: 2rem auto;
}

.demo-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .demo-video-wrapper {
    max-width: 100%;
    margin: 1rem auto;
  }
}






/*吹き出し付き　見出し　ok*/
.cmnt-headbox-g {
    position: relative;
    margin: 7em 2%;      /* 画面端からの余白を%指定 */
    padding: 3rem 4rem 3rem 3em;
    border: 2px solid #8ef3c4;
    border-radius: 15px;
    font-weight: 700;  
    background-color: #ebfff8;
    box-shadow: 2px 5px 6px rgba(68, 143, 255, 0.712);
}
.cmnt-headbox-g::before {
  content: "";
  position: absolute;
  top: -5rem;
  left: -2rem;
  width: 200px;
  height: 150px; /* ensure the pseudo-element has size */
  background: url("../images/hukidasi-ok2.png") no-repeat center/contain;
  pointer-events: none;
  z-index: 1;
}

.cmnt-headbox-g::after {
  content: "出展OK";
  position: absolute;
  top: -4.8rem;
  left: -1.5rem;
  width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #383377;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
  pointer-events: none;
  z-index: 2;
  transform: translateY(-0.5rem); /* raise text slightly */
}


.cmnt-headbox-g p {
  margin: 0;
  margin-left: 1em;
  font-size: 0.8em;
}

.cmnt-headbox-g li {
  margin-left: 0;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}



#participation .note-text {
   color: var(--color-accent);
  font-size: 0.9em;
  margin-top: -0.8em;
  margin-left: 0.5em;
  font-weight: 700;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  
  .cmnt-headbox-g {
    margin: 3rem 2% 5rem 2%;
    padding: 1.5rem 4% 0.5rem 2%;
    border-radius: 5px;
  }


  .cmnt-headbox-g li {
    margin-left: 0;
    font-size: clamp(0.7rem, 3vw, 0.88rem);
    line-height: clamp(1.3rem, 5vw, 1.45rem);
     
  }

  .cmnt-headbox-g p {
    margin-left: 1.9rem;
    font-size: 0.88rem;
  }
  .cmnt-headbox-g::before {
    width: 130px;
    top: -4.2rem;
    left: -1rem;
  }
  .cmnt-headbox-g::after {
    font-size: 0.9rem;
    width: 140px;
    top: -4rem;
    left: -1rem;
  }

}







/*吹き出し付き　見出し　ng*/
.cmnt-headbox-m {
  position: relative;
      margin: 7em 2%;      /* 画面端からの余白を%指定 */
    padding: 3rem 4rem 3rem 3em;
  border: 2px solid #cecece;
  border-radius: 15px;
  font-weight: 700;
  background-color: #ececec;
  box-shadow: 2px 5px 6px rgba(136, 158, 190, 0.712);
}
.cmnt-headbox-m::before {
  content: "";
  position: absolute;
  top: -5rem;
  left: -2rem;
  width: 200px;
  height: 150px; /* ensure the pseudo-element has size */
  background: url("../images/hukidasi-ng2.png") no-repeat center/contain;
  pointer-events: none;
  z-index: 1;
}

.cmnt-headbox-m::after {
  content: "出展NG";
  position: absolute;
  top: -4.8rem;
  left: -1.5rem;
  width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #383377;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
  pointer-events: none;
  z-index: 2;
  transform: translateY(-0.5rem); /* raise text slightly */
}

.cmnt-headbox-m p {
  margin: 0;
  margin-left: 1em;
  font-size: 0.8em;
}

.cmnt-headbox-m li {
  margin-left: 0;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}




@media screen and (max-width: 768px) {
  .cmnt-headbox-m {
    margin: -1rem 2% 2rem 2%;
    padding: 1.2rem 4% 0.6rem 2%;
    border-radius: 5px;
  }


  .cmnt-headbox-m li {
    margin-left: 0;
    font-size: clamp(0.7rem, 3vw, 0.88rem);
    line-height: clamp(1.3rem, 5vw, 1.45rem);
  }

  .cmnt-headbox-m p {
    margin-left: 1.9rem;
    font-size: 0.88rem;
  }
  .cmnt-headbox-m::before {
    width: 130px;
    top: -5rem;
    left: -1rem;
  }
  .cmnt-headbox-m::after {
    font-size: 0.9rem;
    width: 140px;
    top: -4.65rem;
    left: -1rem;
  }

    .cmnt-headbox-m::after {
    font-size: 0.9rem;
    width: 140px;
    top: -4.65rem;
    left: -1rem;
  }

}

/*吹き出し付き　見出し　グラデ*/
.cmnt-headbox-b {
  position: relative;
  max-width: 900px;
  margin-top: 5em;
  padding: 6rem 3rem 5em 3rem;
  border: 3px solid transparent;
  border-radius: 15px;
  font-weight: 700;
  margin: 0 auto;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(to right, #a0e4ca 0%, #4685fa 50%, #7896f8 100%) border-box;
  box-shadow: 2px 5px 6px rgba(68, 143, 255, 0.712);
}
.cmnt-headbox-b::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 150px; /* ensure the pseudo-element has size */
  background: url("../images/hukidasi-bin.png") no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}


.cmnt-headbox-b p {
  margin: 0;
  margin-left: 1em;
  font-size: 1rem;
  line-height: 1.5;
}

.cmnt-headbox-b li {
  margin-left: 0;
  font-size: 1.2em;
}

/* 説明用吹き出し内の画像調整 */
.cmnt-headbox-b .center-box img {
  width: 80%;
  height: auto;
  display: block;
  margin: 1rem auto;
}




@media screen and (max-width: 768px) {
  .cmnt-headbox-b {
    margin: 1.5em 1% 1.5em 1%;
    padding: 3.5em 3% 1.8em 3%;
    border-radius: 15px;
  }


  .cmnt-headbox-b li {
    margin-left: 0;
    font-size: 1em;
  }

  .cmnt-headbox-b p {
    margin-left: 0em;
    font-size: clamp(0.65rem, 3vw, 0.9rem);
    line-height: 1.6;
  }
  .cmnt-headbox-b::before {
    width: 280px;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
  }
    .cmnt-headbox-b .center-box img {
    width: 100%;
    margin: 1rem auto;
  }

  .cmnt-headbox-b::before {
  width: clamp(250px, 60vw, 280px);
  top: -2.2rem;


}


}



#notices .li-white-box-tx {
    font-weight: 600;  /* 使用したいウェイトに変更 */
    margin-bottom: 1.3rem;
}

#notices .heading-leftline {
    margin-top: 2.5rem;
}

