/* 基本 */

body {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 2.3;
}

.innerbox{
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.topimg{
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* タイトル */

#title{
  max-width: 100%;
  background-color: #050B1F;
  background-position: center;
  background-size: cover;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  background-image: url("bg_header.jpg");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

#title .ribbon{
  /* タイトル部上の帯 */
  width: 100%;
  height: 15px;
  background-color: #004b21;
  z-index: 20;
}

#title .lead{
  background-color: rgba(69, 209, 179, 0.7);
  padding: 18px 0;
  z-index: 20;
}

#title .lead-inner{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3px;
  box-sizing: border-box;
}

#title .lead-inner p{
  font-weight: 700;
  font-size: 17px;
  line-height: 2.0;
  text-align: left;
}

/* 本文 */

#main{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

h1{
  color: #004b21;
  font-weight: 700;
  font-size: 28px;
  line-height: 2.0;
  margin: 50px 0 20px;
}

.img{
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 10%;
  box-sizing: border-box;
}

.img>img{
  width: 100%;
  height: auto;
}

.img>p.caption{
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

/* フッター */

footer{
  margin-top: 100px;
  background-color: #004b21;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

footer .logo{
  display: block;
  width: 200px;
  height: auto;
  margin: auto; /* 元の中央寄せを復元 */
}

/* ロゴのアンカー領域を画像サイズに限定して中央寄せ */
.footer-logo-link{
  display: inline-block;
  padding: 0;
  margin: auto; 
  line-height: 0;
}
/* ロゴ画像自体はアンカーの幅に合わせて余白を持たせない */
.footer-logo-link .logo{
  margin: 0;
  display: block;
}
footer p{
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.8;
}

footer .inquiry{
  font-size: 17px;
}

footer .website{
  font-size: 13px;
  line-height: 0;
  padding-bottom: 1em;
}

footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active{
  text-decoration: none;
  color: inherit;
}

footer a:focus,
footer a:focus-visible{
  text-decoration: underline;
  text-decoration-color: #fff;
}

footer a:hover{
  text-decoration: underline;
  text-decoration-color: #fff;
}

/* ロゴにフォーカスしたときに website のリンクに下線を表示 */
/* ロゴにフォーカスまたはホバーしたときに website のリンクに下線を表示 */
footer > .footer-logo-link:focus ~ .website a,
footer > .footer-logo-link:focus-visible ~ .website a,
footer > .footer-logo-link:hover ~ .website a {
  text-decoration: underline;
  text-decoration-color: #fff;
}

/* ページトップボタン用の設定 */

.scroll-top{
  position: fixed;
  right: 36px;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 0;
}
.scroll-top.show{
  opacity: 1;
  transform: translateY(0);
}
.scroll-top img{
  display: block;
  width: 36px;
  height: 36px;
}

/* スマホ対応等 */

@media screen and (max-width: 960px) {

  #title .xtrend-logo{
    width: 14.6%;
    right: 5%;
  }

  #main, .innerbox, #title .lead-inner{
    max-width: 95%;
  }

}

@media screen and (max-width: 548px) {
  body {
    font-size: 12px;
    line-height: 1.8;
  }
  #main, .innerbox, #title .lead-inner{
    max-width: 85%;
  }

  #title .lead-inner p, .official_button{
    font-size: 14px;
    line-height: 1.6;
  }

  h1{
    font-size: 22px;
    line-height: 1.6;
    margin: 30px 0 12px;
  }

  .img{
    padding: 0 50px;
  }

  .scroll-top img{
  width: 24px;
  height: 24px;
}

}
  