@charset "utf-8";
/* CSS Document */
html, body {
  margin: 0;
  padding: 0;
  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 400;
  font-style: normal;
    }
html {
  background-image: url("images/htmlback.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* または contain、必要に応じて */
  background-attachment: fixed;
}
* {
  box-sizing: border-box;
}
.br-pc {
  display: inline;
}
.br-sp {
  display: none;
}
.sp-sp {
  display: none;
}
section {
  margin: 0 auto 50px auto;
  padding: 0;
  max-width: 860px;
}
h2.overlay-h2 {
  position: relative;
  overflow: hidden;
  font-size: clamp(22px, 4vw, 28px);
  margin: 0;
  background: linear-gradient(to right, #00648b 0%, #006f99 20%, #007aa7 50%, #006f99 80%, #00648b 100%);
  padding: 10px 0 13px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 17px);  /*Windowsのスクロールバー幅の平均 */
  border-bottom: solid 10px #fff;
  z-index: 0;
}
/* オーバーレイのフェード背景 */
.overlay-h2 .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #8d8800 0%, #d6cf5a 20%, #f0e68c 50%, #d6cf5a 80%, #8d8800 100%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
  pointer-events: none;
}
/* 通常時の文字スタイル */
.overlay-h2 .text {
  position: relative;
  z-index: 2;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: #fff;
  text-shadow: 2px 2px 0 #004464, 5px 5px 7px #004464;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}
/* アクティブ状態のフェードと文字 */
.overlay-h2.active .fade {
  opacity: 1;
}
.overlay-h2.active .text {
  color: #007aa7;
  text-shadow: 2px 2px 0 #fff, 5px 5px 7px #d6cf5a;
}
.h3smr {
  font-size: 0.8em;
  padding: 0 0 20px 0;
}
.bgr {
  font-size: 1.2em;
  vertical-align: baseline;
  font-weight: bold;
}
.bgr2 {
  font-size: 1.4em;
  vertical-align: baseline;
  font-weight: bold;
}
.smr {
  font-size: 0.8em;
  vertical-align: baseline;
  position: relative;
  top: -2px;
}
.smr2 {
  font-size: 0.6em;
  vertical-align: baseline;
  position: relative;
  top: -2px;
}
.smr3 {
  font-size: 0.4em;
  vertical-align: baseline;
  position: relative;
  top: -6px;
}
.smr9 {
  font-size: 0.9em;
  vertical-align: baseline;
  position: relative;
  top: -2px;
}
.ao1 {
  color: #0087c8;
}
.ao2 {
  color: #005aaa;
}
.aka {
  color: #ff0000;
}
.aku {
  color: #5400b3;
}
.hai {
  color: #999;
}
.ind {
  text-indent: -1em;
  padding-left: 1em;
}
.futo {
  font-size: 1.2em;
  font-weight: 900;
  position: relative;
  top: 2px;
}
.link-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2em;
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}
.link-text:hover {
  color: #0087c8;
  text-decoration: underline;
}
.link-text .icon {
  font-size: 1.2em; /* アイコンの大きさ */
}
/*フッター*/
.site-footer {
  margin-top: auto; /* 残りスペースを押し出して下に配置！ */
  width: calc(100vw - 17px); 
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(to right, #00648b 0%, #006f99 20%, #007aa7 50%, #006f99 80%, #00648b 100%);
  color: #fff;
}
@media (min-width: 900px) {
  section {
    scroll-margin-top: 60px;
  }
  section:first-child {
    border-top: none;
  }
}
@media (max-width: 768px) {
  h2 {
    position: relative;
    top: -20px;
  }
  .br-sp {
    display: inline;
  }
  .sp-sp {
    display: inline;
  }
  section {
    border-top: solid 20px #eaf1f4;
  }
  .sec5container {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  .sec6container {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
}
@media (max-width: 500px) {
  h2 {
    width: 100%;
  }
}