@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700&display=swap");

:root {
  --color1: #3b4043;
  --color2: #122a48;
  --color3: #005284;
  --color4: #ddf1fc;
  --color5: #4db0d7;
  --color6: #ec631d;
}

html {
  width: 100%;
  height: 100%;
  background-color: #fff;
  color: var(--color1);
  font-size: 16px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", sans-serif;
  line-height: 1.8;
  scroll-padding-top: 100px;
}

body {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 100px;
}

a {
  color: var(--color2);
  text-decoration: none;
}

a:hover,
a img:hover {
  color: inherit;
  opacity: 0.6;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

ol,
ul {
  padding-left: 1.5rem;
}

.pc_area {
  display: block;
}
.sp_area {
  display: none;
}
.br-pc {
  display: block;
}
.br-sp {
  display: none;
}
section {
  width: 800px;
  margin: auto;
}

/* タイトル */
section h3 {
  position: relative;
  color: var(--color3);
  font-size: calc(1.3rem + 0.6vw);
  text-align: center;
}
section h3:before {
  content: "";
  position: absolute;
  background-image: url(../img/icon.svg);
  width: 22px;
  height: 19px;
  top: -10px;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}

.bg-blue {
  background: var(--color4);
}
.bg-p {
  padding: 60px 0;
}

/* ヘッダー */
header {
  width: 100%;
  z-index: 2;
}
.head {
  width: 800px;
  margin: auto;
  padding: 1rem 0;
}
.head h1 {
  font-size: calc(1.325rem + 0.9vw);
}
.head h1 span {
  color: var(--color5);
}
/*メニュー*/
.header {
  position: fixed;
  width: 100%;
  z-index: 3;
}

.hamburger {
  position: relative;
  width: 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
  z-index: 3;
}
.hamburger span {
  position: absolute;
  display: block;
  width: 30px;
  height: 2px;
  left: 6px;
  background: var(--color3);
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.hamburger span:nth-child(1) {
  top: 10px;
}
.hamburger span:nth-child(2) {
  top: 20px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}
/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1) {
  top: 16px;
  left: 6px;
  background: var(--color3);
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 16px;
  background: var(--color3);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}
nav.globalMenuSp {
  display: none;
}
nav.globalMenuSp.active {
  display: block;
  position: fixed;
  background: rgba(255, 255, 255, 0.9);
  color: #fff;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  z-index: 2;
  animation: tooltipShow 0.3s linear 0s;
}
@keyframes tooltipShow {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
nav.globalMenuSp ul {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
nav.globalMenuSp ul li {
  width: 100%;
  list-style-type: none;
  padding: 0;
  transition: 0.5s;
}
nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
}
nav.globalMenuSp ul li:hover {
  background: var(--color3);
}
nav.globalMenuSp ul li a {
  display: block;
  color: var(--color3);
  font-size: 25px;
  text-decoration: none;
  padding: 1em 0;
  transition: 0.5s;
}
nav.globalMenuSp ul li a:hover {
  color: #fff;
}

/* メインヴィジュアル */
section#main {
  padding-top: 90px;
  margin-bottom: 60px;
}

section#main h2 {
  background: rgba(0, 124, 199, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: calc(1.325rem + 0.9vw);
  text-align: center;
  font-weight: 400;
  padding: 1rem;
  width: 100%;
}
.mv {
  background-image: url(../img/4588476_m.jpg);
  background-position: center;
  background-size: cover;
  display: grid;
  place-items: center;
  width: 100%;
  height: 300px;
}

/* 口座振替サービスを探す */
section#search {
  margin-bottom: 60px;
}
.search-border {
  border: 8px solid var(--color4);
  border-radius: 20px;
  padding: 1.5rem;
}
#search .item {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  padding: 0.8rem 1.5rem;
}
.search-btn {
  background-color: var(--color3);
  color: #fff;
  width: 50%;
  padding: 0.8rem 1.5rem;
}
.search-btn:hover {
  opacity: 0.6;
  color: #fff;
}

/* おすすめ口座振替サービス */
section#service {
  margin-bottom: 60px;
}
#recommend {
  margin: 0 2.5rem;
  margin-bottom: 60px;
}

section#service table th,
section#service table td {
  padding: 1rem 0.5rem;
  text-align: center;
}
section#service table td.left,
section#service table td ul {
  text-align: left;
}
.link-btn {
  background-color: var(--color5);
  color: #fff;
}
.link-btn:hover {
  opacity: 0.6;
  color: #fff;
}

/* 口座振替サービス選びの３つのポイント */
#point {
  background: #fff;
  padding: 4rem 2rem;
  margin: 0 2.5rem;
}
#point div h4 {
  font-size: calc(1.275rem + 0.3vw);
}
.number {
  position: relative;
  color: var(--color5);
  font-size: 40px;
  font-weight: bold;
}
.number:before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--color5);
}

/* 口座振替サービスランキング */
section#ranking {
  margin-bottom: 60px;
}
#ranking h4 {
  font-size: calc(1.275rem + 0.3vw);
  text-align: center;
}
#ranking h5 {
  font-size: 1.25rem;
}
.tag {
  border: 1px solid var(--color5);
  color: var(--color5);
  padding: 0.5rem 1rem;
}
.ranking-btn {
  background: var(--color6);
  color: #fff;
  padding: 1rem 2rem;
}
.ranking-btn:hover {
  opacity: 0.6;
  color: #fff;
}

.rank,
.rank1,
.rank2 {
  position: relative;
  font-size: calc(1.325rem + 0.9vw);
  font-weight: bold;
}
.rank1:before,
.rank2:before {
  content: "";
  background-size: cover;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateY(-10%) translateX(-50%);
  width: 120px;
  height: 77px;
  z-index: -1;
}
.rank1:before {
  background-image: url(../img/crown.svg);
}
.rank2:before {
  background-image: url(../img/crown2.svg);
}
.rank1-item {
  margin-bottom: 60px;
}

/* まとめ */
section#summary {
  margin-bottom: 60px;
}
#end #ranking {
  background: #fff;
  padding: 4rem 2rem;
  margin: 0 2.5rem;
}
#ranking-item2 {
  color: var(--color2);
}
#ranking-item2 h4 {
  font-size: calc(1.275rem + 0.3vw);
  text-align: left;
}

footer {
  width: 800px;
  margin: auto;
  background: var(--color2);
  color: #fff;
  padding: 4rem;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  opacity: 0.5;
}
.company {
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}
.arrow {
  bottom: 10%;
  right: 5%;
}

/* 検索結果 */
.result {
  padding-top: 150px;
}

@media screen and (max-width: 800px) {
  .br-pc {
    display: none;
  }
  .br-sp {
    display: block;
  }

  section {
    width: 100%;
  }

  ol,
  ul {
    padding-left: 1.2rem;
  }

  /* ヘッダー */
  .head {
    width: 100%;
    padding: 1rem 0.5rem;
  }
  .head h1 {
    font-size: 1.3rem;
  }
  .logo {
    width: 30px;
  }

  /* メインヴィジュアル */
  section#main {
    padding-top: 75px;
    margin-bottom: 60px;
  }

  /* 口座振替サービスを探す */
  .search-border {
    border: 8px solid var(--color4);
    border-radius: 20px;
    padding: 1rem;
  }
  #search .item {
    font-size: 13px;
    padding: 0.6rem;
  }
  .search-btn {
    padding: 0.8rem 1rem;
  }

  /* おすすめ口座振替サービス */
  #recommend {
    margin: 0 1rem;
  }

  section#service table th,
  section#service table td {
    padding: 1rem 0.3rem;
    text-align: center;
  }
  section#service table th,
  section#service table td,
  section#service table td ul,
  .link-btn {
    font-size: 12px;
  }

  /* 口座振替サービス選びの３つのポイント */
  #point {
    padding: 4rem 1.5rem 2rem;
    margin: 0 1rem;
  }

  /* まとめ */
  #end #ranking {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  footer {
    width: 100%;
    padding: 4rem 2rem;
  }

  /* 検索結果 */
  .result {
    padding-top: 120px;
  }
}
