body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif, Verdana, "メイリオ", "Meiryo", "MS Ｐゴシック", "MS PGothic", Sans-Serif;
    color: #393b3e;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.2em;
}

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(137, 137, 137, 0.08);
    padding: 30px 0;
}


#header .wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .logo img {
  width: 195px;
  height: 32px;
  object-fit: contain;
}

#header nav ul {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header nav ul li img {
  height: 20px;
  width: auto;
    vertical-align: text-bottom;
}

#header nav ul li a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  position: relative; 
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFD8FC 0%, #FFD4BB 32%, #F4C6DC 70%, #DFFEB9 100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 0.6;
}

.wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 4%;
    text-align: left;
}

h3 {
  font-size: 1.1rem;
  margin-top: 40px;
  color: #5b4310;
  border-left: 6px solid #FFD8FC;
  padding-left: 12px;
}

p {
  margin-top: 1em;
  margin-bottom: 1em;
}

a {
  color: #393b3e;;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.sec-title {
  color: #393b3e;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 12px;
}

.sec-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 284px;
  height: 24px;
background: url('../images/top/h2_line\ .png') no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

.back-button {
  text-align: center;
  margin-top: 30px;
}

.back-button a {
  display: inline-block;
  background-color: #393b3e;
  color: white;
  border: solid 1px #393b3e;
  padding: 14px 60px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button a:hover {
  background-color: #fff;
  color: #393b3e;
}

#footer {
    background-color: #fafafa00;
    text-align: center;
    padding: 34px 0;
    font-size: 0.7rem;
}


@media screen and (max-width: 767px) {

  html {
    font-size: 100%;
  }

  body {
    font-size: 0.875rem; 
    line-height: 1.8;
    letter-spacing: 0.2em;
  }

  #mainvisual {
    height: auto;
  }

  #mainvisual picture,
  #mainvisual img {
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  #header {
    position: static;
    box-shadow: none;
    padding: 20px 20px 10px;
  }

  #header .wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #header .logo img {
    width: 170px;
    height: 30px;
  }

#header nav {
  width: 100%;
}

  #header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header nav ul li a {
    font-size: 1rem;  
    white-space: nowrap;
  }

  #header nav ul li img {
    height: 18px;
  vertical-align: text-bottom;
  }

  .wrapper {
    padding: 0 20px;
    margin: 40px 0 30px 0;
  }

  h2.sec-title {
   font-size: 1.4rem;
    margin-top: 30px;
  }

  .sec-title::after {
    bottom: 0;
    transform: translateX(-50%) translateY(10px);
  }

  h3 {
    font-size: 1.1rem;
    margin-top: 30px;
    padding-bottom: 4px;
  }

  .back-button a {
  padding: 14px 60px;
  font-size: 1rem;
}

  #footer p {
    font-size: 0.6rem;
  }
}
