html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

#slick_box_01 {
 position: relative;
 z-index: 0;
}

.slick img {
 width: 100%;
 height: 85vh;
}

.slick {
  position: relative;
  /* 画像の下端にグラデーションを重ねる */
}

.slick::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10vw; /* グラデーションの高さは調整可 */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 100%);
  /* 透明→白（背景色に合わせて変更） */
  z-index: 2;
}

header {
  background-color: rgb(6, 131, 91);
  display: flex;
  align-items: center;
  height: 17.5vh; 
  padding: 0 3vw;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  color: #fff;
  font-size: 6vw;
  margin-left: 1vw;
  font-family: 'Noto Serif JP', serif;
}

header h3 {
  margin-left: auto;
  font-family: 'Noto Serif JP', serif;
}

header h3 a {
  color: #fff !important;
  text-decoration: none;
  font-size: 2.5vw;
}
.text_01, .text_02, .text_03 {
  font-family: 'Noto Serif JP', serif;
  font-weight: bold;
}
.toc ul {
  flex-direction: column;
  justify-content: center;
  gap: 2vw;
  list-style: none;
  padding: 1vw 0;
  margin: 0;
  padding-left: 6.2vw;
}

.toc a:hover {
  color: #217dbb;
  text-decoration: underline;
}
.message h4 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
.container, .container p {
  max-width: 90vw;
  width: 85vw;
  margin: 0 auto;
  box-sizing: border-box;
  word-break: break-word;
}

h2 {
  margin-left: 5vw; 
  font-size: 4vw;
  border-bottom: 0.3vw solid #3498db;
  box-shadow: 0 2px 8px rgba(52,152,219,0.2);
  padding-bottom: 0.5vw;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  color: black;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
  opacity: 0.7;
  transition: opacity 0.3s;
}

#backToTop:hover {
  opacity: 1;
}

footer {
  background-color: rgb(48, 54, 52);
  color: white;
  text-align: center;
  padding: 1vh 0;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 1vw;
  margin-top: 17.5vh;
}

@media (max-width: 600px) {
  html, body {
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    height: auto;
    padding: 2vw 3vw;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  header h1 {
    margin-left: 0;
    font-size: 11.5vw;
    margin-bottom: 0.0000001%; 
    font-family: 'Noto Serif JP', serif !important;
    font-weight: bold !important; 
  }

  header h3 {
    margin-left: 60vw;
    font-size: 7vw;
    margin-bottom: 0;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: bold !important;
  }

  h2 {
    margin-left: 5vw; 
    font-size: 8vw;
    border-bottom: 0.6vw solid #3498db;
    box-shadow: 0 2px 12px rgba(52,152,219,0.25);
    padding-bottom: 1vw;
  }

  .map-png img {
    text-align: center;
    width: 80vw;
  }

  #team {
    font-size: 5vw; /* 例：スマホで小さくする。必要に応じて調整してください */
    line-height: 1.2;
  }
    
  .text_01 {
    position: absolute;
    z-index: 1;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12vw;
    text-shadow: 2px 2px 4px #000, -2px -2px 4px #000, 2px -2px 4px #000, -2px 2px 4px #000;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: bold !important;
  }

  .text_02 {
    position: absolute;
    z-index: 1;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12vw;
    text-shadow: 2px 2px 4px #000, -2px -2px 4px #000, 2px -2px 4px #000, -2px 2px 4px #000;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: bold !important;
  }

  .text_03 {
    position: absolute;
    z-index: 1;
    white-space: nowrap;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12vw;
    text-shadow: 2px 2px 4px #000, -2px -2px 4px #000, 2px -2px 4px #000, -2px 2px 4px #000;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: bold !important;
  }

  .toc a {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
  font-size: 6vw;
  transition: color 0.2s;
  }

  .accordion-content iframe {
    width: 1000px;
    height: 370px;
    border: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

 .accordion-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    margin-bottom: 40px;
  }
  
  .icon {
  font-weight: bold;
  font-size: 20px;
  width: 20px;
  text-align: center;
  transition: transform 0.4s ease;
  display: inline-block;
  }
  
  .accordion-content {
    text-align: center;
    max-height: 0;
    transition: max-height 0.4s ease;
    overflow-y: auto;
    overflow-x: auto;
  }

  .accordion-content.open {
    max-height: 700px;
  }
  
  p {
    font-size: 4.5vw;
  }
  
  li {
    font-size: 5vw;
  }
  
  .container.left-align {
  text-align: left;
  }
  
  .container.center-align {
  text-align: center;
  }
  
  footer {
    font-size: 3vw;
  }
}

/* 「.container.center-align.message 内の h4」に M PLUS Rounded 1c を適用 */
.container.center-align.message h3,h4 {
    font-family: "M PLUS Rounded 1c", "Noto Serif JP", sans-serif;
}

@media (min-width: 601px) {
  .text_01 {
    position: absolute;
    z-index: 1;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 8vw;
    text-shadow: 2px 2px 4px #000, -2px -2px 4px #000, 2px -2px 4px #000, -2px 2px 4px #000;
    line-height: 2;
  }

  .text_02 {
    position: absolute;
    z-index: 1;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 8vw;
    text-shadow: 2px 2px 4px #000, -2px -2px 4px #000, 2px -2px 4px #000, -2px 2px 4px #000;
    line-height: 2;
  }

  .text_03 {
    position: absolute;
    z-index: 1;
    white-space: nowrap;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 8vw;
    text-shadow: 2px 2px 4px #000, -2px -2px 4px #000, 2px -2px 4px #000, -2px 2px 4px #000;
    line-height: 2;
  }

  .toc a {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
    font-size: 2.5vw;
    transition: color 0.2s;
  }

  .map-png img {
    text-align:center;
    width: 30vw;
    height: auto;
  }

  #about-content,
  #feature-content,
  #introduction-content {
    width: 90vw !important;
    max-width: 90vw !important;
    margin: 0 auto !important;
    padding: 0 2vw !important;
    box-sizing: border-box !important;
    text-align: left !important;
    overflow-x: hidden;
  }

  #about-content p,
  #feature-content p,
  #introduction-content p {
    text-align: left !important;
    font-family: 'Noto Serif JP', serif !important;
    font-size: 1.2em !important;
    line-height: 1.8 !important;
    margin: 0 0 1.5em !important;
  }

  .acordion-content {
    width: 90vw;
    max-width: 700px;
    margin: 0 auto; 
    text-align: center;
  }
  .accordion-content iframe {
    width: 700px;
    height: 370px;
    border: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .icon {
    display: none;
  }
}