html {
  scroll-behavior: smooth;
}

/*footerを一番下にするための指定*/
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/*ヘッダーのロゴ*/
header .logo {
  height: 3rem;
}

/*ヘッダーのEarth Infinityのimg*/
header .font {
  height: 2rem;
  margin-left: 0.3rem;
}

/*ヘッダー*/
header {
  width: 100%;
  align-items: center;
  display: flex;
  flex-direction: column;
  /* 要素を縦に配置 */
}

h2 {
  width: 100%;
  font-size: 1.5rem;
}

h3 {
  white-space: nowrap;
  /*改行させない*/
}

main {
  width: 1024px;
  padding: 1rem;
  flex-grow: 1;
  /*footerを一番下にするためにmainの高さを作成*/
  max-width: 100%;
  margin-bottom: 2rem;
}

/*selectに対する指定*/
select {
  color: #000;
  width: 100%;
  background-color: #fff;
  border-radius: 0.3125rem;
  border: 0.0625rem solid #e1e5e9;
  font-size: 1rem;
  padding: 0.5rem;
  -webkit-appearance: none;
}

/*下部メニュー */
.nav-bottom {
  display: flex;
}

.nav-bottom img {
  margin-top: 0.5rem;
  height: 2rem;
}

.nav-bottom a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.bottom-left {
  border-radius: 0 0.625rem 0 0;
}

.bottom-right {
  border-radius: 0.625rem 0 0 0;
}

.bottom-left,
.bottom-right {
  background-color: #badcee;
  display: flex;
  width: calc((100vw - 5.75rem) * 0.5);
}

.bottom-left a,
.bottom-right a {
  width: 50%;
}

.nav-bottom a:not(.top-menu) {
  color: black;
}

#billing .billing-bottom,
#graph .graph-bottom,
#information .menu-bottom,
#config .config-bottom {
  color: #1d5d9b;
}

.bottom-left img,
.bottom-right img {
  margin-bottom: 0.5rem;
}

.top-menu::before {
  content: '';
  position: absolute;
  left: -1rem;
  right: -1rem;
  bottom: -1.38rem;
  top: 2.5rem;
  z-index: -1;
  background-color: #badcee;
}

.top-menu {
  position: relative;
  color: #fff;
  margin-top: -2rem;
  border: 0.4rem solid #fff;
  border-radius: 50%;
  background-color: #1d5d9b;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  width: 5.75rem;
  min-width: 5.75rem;
}

.nav-span {
  font-size: 1rem;
}

footer {
  z-index: 1;
}

/*ウェブサイト版の右上のアイコンを非表示*/
.top-logo {
  display: none;
  /* 画像を非表示 */
}

/*アプリ版の場合フッターを非表示*/
footer p {
  display: none;
}

#footer-div {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/*引っ越し手続き画面*/
#moving h3 {
  font-size: 1.5em;
  padding-left: 0rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#moving form select, form input {
	background-color: #fff;
}

#moving .start-h3 {
  margin-top: 2rem;
}

#moving form dt {
  font-weight: normal;
}

#moving form dl{
  padding-left: 2rem;
}

#moving dd div {
  padding-left: 0.25rem;
}

#moving .input-group-text {
  padding-left: 0.75rem !important;
}

#moving .col-sm-3 {
	margin-bottom: 1rem;
}

#moving .col-sm-9 {
	padding-left: 0.5rem;
}

#moving .form-check {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#moving .form-check-label {
	padding-left: 0.5rem;
}

#moving .option-button-div {
	padding-left: 3.5rem;
}

#moving .option-button {
	padding: 0;
}

#moving .form-check-input[type='radio'] {
  background-image: initial;
  padding: initial;
}

#moving form button {
  margin-top: 4rem;
  margin-bottom: 6rem;
}

/*お引越し手続き画面完了画面*/
#moving-complete .complete {
  font-size: 1.5em;
  text-align: center;
  margin-top: 4rem;
}

#moving-complete .annotation {
  color: #9e9e9e;
  font-size: 0.9em;
  text-align: center;
  margin-top: 2rem;
}

#moving .caution, #moving-complete .caution {
  font-size: 0.875rem;
  color: #C62828;
  margin: 0.5rem 0;
}

/*注釈のspanタグの上に少しpaddingをしたかったがまとまっている為動かなかった*/

/* ウェブサイト版 */
@media screen and (min-width: 1024px) {
  main {
    margin-bottom: 0;
  }

  /*左端のロゴ、フォント*/
  header {
    display: block;
  }

  header .logo {
    height: 4rem;
  }

  header .font {
    height: 2.5rem;
    margin-left: 1rem;
  }

  /*右端のメニュー*/
  .top-logo {
    display: block;
    /* 画像を表示 */
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(5, 6rem);
  }

  .top-logo a {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0.5rem;
    font-size: small;
    color: black;
  }

  .top-logo a img {
    height: 3rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
  }

  #billing .billing-a,
  #top .top-a,
  #graph .graph-a,
  #information .menu-a,
  #config .config-a {
    color: #fff;
    border: 0 solid #fff;
    border-radius: 50%;
    background-color: #1d5d9b;
  }

  /*h1とアイコンを並べる指定*/
  .header-div {
    display: flex;
    align-items: center;
  }

  main {
    margin: 0 auto 0;
    /*真ん中に寄せる方法*/
  }

  /*下部メニュー*/
  .nav-bottom {
    display: none;
  }

  .top-logo a {
    text-decoration: none;
  }

  footer p {
    display: block;
  }

  footer {
    background-color: #1d5d9b;
  }

  footer p {
    color: #fff;
    text-align: center;
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: normal;
  }

  #footer-div {
    display: flex;
    flex-direction: column;
    position: static;
    bottom: auto;
  }
}

@media screen and (max-width: 1023px) {
  html,
  body {
    overflow-x: clip;
  }

  main {
    width: 100%;
  }
}

@media screen and (max-width: 319px) {
  /*ヘッダーのロゴ*/
  header .logo {
    height: 4rem;
  }

  .nav-bottom a span {
    display: none;
  }

  /*ヘッダーのEarth Infinityのimg*/
  header .font {
    height: 2rem;
  }

  .bottom-left,
  .bottom-right {
    background-color: #badcee;
    display: flex;
    width: calc((100vw - 5.75rem) * 0.5);
    height: 4rem;
  }

  .top-menu::before {
    content: '';
    position: absolute;
    left: -1rem;
    right: -1rem;
    bottom: -1.38rem;
    top: 2.2rem;
    z-index: -1;
    background-color: #badcee;
  }
}
