/* 変数
   ============================================ */
:root {
  --fz-h1: 36px;
  --fz-h2: calc(var(--fz-h1) * 0.7);
}

/* Component
   ============================================ */

h1.base {
  font-size: var(--fz-h1);
}

h1.base.white {
  color: #fff;
}

h2.base {
  font-size: var(--fz-h2);
}

h2.base::before {
  content: counter(section);
  position: relative;
  top: -2px;
  display: inline-block;
  text-align: center;
  width: calc(var(--fz-h2) * 1.2);
  height: calc(var(--fz-h2) * 1.2);
  margin-right: 5px;
  border-radius: 50%;
  color: #2C9CDD;
  border: 1px solid #2C9CDD;
  font-size: 0.75em;
}

a.page-top {
  background-color: #52a1dc;
}

/* Layout
   ============================================ */

.flex-box.left {
  text-align: left;
  align-items: flex-start;
}

.flex-box.right {
  text-align: left;
  align-items: flex-start;
}

.flex-box.left .img-box {
  order: 1;
}

/* Effect
   ============================================ */

a img {
  transition: 0.3s;
}

a:hover img {
  opacity: 0.7;
}

/* メインコンテンツ
   ============================================ */

/* Main Visual
   ---------------------------------------- */

.main-visual {
  position: relative;
  height: 70vh;
  min-height: 550px;
  padding: 5vh 0;
  background: url(../img/main_visual.png) no-repeat center;
  background-size: cover;
}

.main-visual .visual-txt-area {
  width: 400px;
  margin-left: auto;
  margin: auto 0 auto auto;
}

.main-visual .visual-txt-area .catchphrase p {
  margin-top: 20px;
  font-size: calc(var(--fz-h1) * 0.58);
  line-height: 2;
}

.main-visual .app-area {
  margin-top: 40px;
}

.main-visual .app-area .app-contents {
  margin-top: 10px;
}

.main-visual .app-area .img-box {
  width: 150px;
}

.main-visual .app-area .store-banner-area .store-banner {
  width: 210px;
}

/* 4つの特徴
   ---------------------------------------- */

main>section {
  padding: 60px 0;
  text-align: center;
}

.point {
  padding: 60px 0;
  counter-increment: section;
}

.point .description {
  width: 65%;
}

.point .description p {
  margin-top: 10px;
}

.point .img-box {
  width: 30%;
}

/* 悩み解決
   ---------------------------------------- */

.solution {
  background: url(../img/bg-solution.png) no-repeat center;
  background-size: cover;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.solution p {
  margin-top: 20px;
  line-height: 2;
  letter-spacing: 3px;
  color: #fff;
  text-align: left;
}

/* 今すぐアプリをダウンロード
   ---------------------------------------- */

.app-download .img-box.icon {
  width: 200px;
  margin-top: 40px;
}

.app-download .store-banner-area {
  margin-top: 40px;
}

.app-download .flex-box {
  justify-content: space-evenly;
  align-items: flex-start;
}

.app-download .store-banner-area .img-box img {
  margin: auto;
}


/* footer
   ============================================ */

footer {
  padding-top: 60px;
  color: #fff;
  background: linear-gradient(to right, #61BBFF, #AAD4FF);
}

footer a {
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

.footer-links {
  padding-bottom: 40px;
}

.footer-links.flex-box {
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-links>* {
  margin-left: 3vw;
}

.footer-links li.title {
  font-size: 1.2em;
  font-weight: bold;
}

.footer-links li:not(.title) {
  margin-top: 10px;
  margin-left: 10px;
}

.footer-bottom {
  padding: 5px 0;
  border-top: 1px solid #fff;
}

.footer-bottom .copyright {
  text-align: center;
  font-size: 15px;
}

/* プライバシーポリシー
   ============================================ */

.privacy-policy h1.base {
  margin-top: 40px;
  text-align: center;
}

.privacy-policy h2 {
  margin-top: 30px;
  font-size: var(--fz-h2);
}

.privacy-policy .terms {
  width: 100%;
  margin-top: 20px;
  border: none;
}

.privacy-policy .terms p {
  margin-bottom: 10px;
}

.privacy-policy .terms .start,
.privacy-policy .terms .update {
  text-align: right;
}

.privacy-policy .terms .start {
  margin-bottom: 5px;
}

.privacy-policy .terms a {
  color: rgb(59, 93, 204);
}

.privacy-policy .terms a:hover {
  color: rgb(104, 135, 240);
}


/* もくちょきの使い方
   ============================================ */

.how-to-use {
  text-align: center;
}

.how-to-use main {
  padding: 40px 0;
}

.how-to-use section {
  width: 48%;
  margin-top: 30px;
}

.how-to-use h2.base {
  color: #1677B0;
}

.how-to-use h2.base::before {
  content: none;
}

.video {
  width: 100%;
  margin-top: 10px;
  padding-bottom: 56.25%;
  height: 0px;
  position: relative;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   タブレット
   ============================================ */

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

  /* 変数
     ============================================ */
  :root {
    --fz-h1: 28px;
  }

  /* メインコンテンツ
     ============================================ */

  /* Main Visual
     ---------------------------------------- */

  .main-visual .app-area .store-banner-area .store-banner {
    width: 190px;
  }

  .main-visual .app-area .img-box {
    width: 130px;
  }

  .main-visual .visual-txt-area {
    width: 330px;
  }


  /* 今すぐアプリをダウンロード
     ---------------------------------------- */

  .app-download .img-box.icon {
    width: 150px;
    margin-top: 40px;
  }

  .app-download .store-banner-area .img-box {
    width: 200px;
  }

  /* もくちょきの使い方
     ============================================ */

  .how-to-use section {
    width: 100%;
  }
}

/* ============================================
   スマートフォン
   ============================================ */

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

  /* 変数
     ============================================ */
  :root {
    --fz-h1: 24px;
  }

  /* Component
   ============================================ */

  h2.base::before {
    top: -1px;
  }

  /* Layout
     ============================================ */

  .flex-box.left .img-box {
    order: 0;
  }

  .point .img-box {
    width: 100%;
  }

  .point .description {
    width: 100%;
    margin-top: 20px;
  }

  /* Main Visual
     ---------------------------------------- */

  .main-visual {
    min-height: 400px;
    height: 400px;
    background-image: url(../img/main_visual_sp.png);
  }

  .main-visual .visual-txt-area {
    width: 100%;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  }

  .main-visual .visual-txt-area .catchphrase {
    text-align: center;
  }

  .main-visual .app-area {
    text-align: center;
  }

  .main-visual .app-area .img-box {
    width: 35%;
  }

  .main-visual .app-area .store-banner-area {
    width: 55%;
  }

  .main-visual .visual-txt-area .catchphrase p {
    line-height: 1.6;
    font-size: 15px;
  }

  .main-visual .app-area>p {
    font-size: 15px;
  }

  /* 4つの特徴
     ---------------------------------------- */

  main>section {
    padding: 40px 0;
  }

  .point {
    padding: 30px 0;
  }


  /* 悩み解決
     ---------------------------------------- */

  .solution {
    background: url(../img/bg-solution_sp.png) no-repeat center;
    background-size: cover;
  }

  .solution p {
    margin-top: 18px;
    line-height: 1.5;
  }


  /* footer
     ============================================ */

  footer {
    padding-top: 30px;
  }

  .footer-links .img-box {
    width: 100%;
  }

  .footer-links .img-box img {
    margin: 0 auto;
  }

  .footer-links>* {
    margin-left: 0;
    margin-top: 20px;
  }

  .footer-links.flex-box {
    justify-content: space-around;
  }

  .footer-links li.title {
    font-size: 1em;
  }
}