/*
 * Grid
 */

/* Header */
#container-header {
  display: grid;
  grid-template-rows: 40px 240px 80px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-areas:
    "header header navi   navi"
    "title  title  title  title"
    "...... ...... ...... ......";
}

#item-header-navigation {
  grid-area: navi;
}

#item-header-title {
  grid-area: title;
}


#container-keyvisuals {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: row;
}

#container-products {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: row;
}

/* Footer */
#container-footer {
  display: grid;
  grid-template-rows: 40px;
  grid-template-columns: 1fr 4fr 1fr;
  grid-template-areas:
    "... copyright copyright copyright copyright social";
}

#item-footer-copyright {
  grid-area: copyright;
}

#item-footer-social {
  grid-area: social;
}


/*
 * Common
 */
body {
  background: #f8f8ff;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

h1, h2, h3, h4, h5, p, li {
  font-family: Roboto,Helvetica,Arial,sans-serif;
}

#section-keyvisual {
  margin: auto 20px;
}

#section-apps {
  background: #3185ff;
}

.product {
  display: block;
  margin: 8px auto;
  text-align: center;
}

.product h4 {
  font-size: x-large;
}

.product > img {
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.product > p {
  display: block;
  margin: 10px auto 20px auto;
  padding-left: 16px;
  padding-right: 16px;
  text-align: left;
  font-size: x-large;
}

.app {
  display: block;
  margin: 8px auto;
  text-align: center;
}

.icon {
  display: inline-block;
  border-radius: 32px;
  min-width: 128px;
  min-height: 128px;
}

.badge-appstore {
  display: block;
  margin: 0 auto;
}

.badge-appstore img {
  display: inline-block;
  width: 180px;
  height: 60px;
}

.copyright {
  margin: 8px auto;
  text-align: center;
}

.social-links {
  margin: 4px auto;
}

.social-links > [class^="social-"] {
  float: left;
  display: inline-block;
  margin: 4px auto 4px auto;
}

.social-links > [class^="social-"]:first-child {
  margin-left: 10px;
}

.social-links > [class^="social-"]:last-child {
  float: right;
  margin-right: 10px;
}

.social-link:after {
  content: "";
  display: block;
  clear: both;
}


/* --------------------------------------
  Header
 -------------------------------------- */
h1 {
  font-weight: bold;
  text-align: center;
  color: #fff;
}

h2 {
  display: block;
  text-align: center;
  text-shadow: black 0.1em 0.1em 0.2em;
  color: #fff;
}

/* --------------------------------------
  Body
 -------------------------------------- */
.slogan {
  text-align: center;
  color: #fff;
  margin: 10px auto;
}

.catch-phrase {
  display: block;
  margin: 20px 20px;
  padding: 10px 10px;
  text-align: center;
}

.keyvisual-caption {
  margin: 10px auto;
  padding: 10px 0px;
  text-align: center;
  /*
  color: #fff;
  */
  font-weight: lighter;
  font-size: 28pt;
}

#section-apps h2 {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: xx-large;
}

dl.list {
  margin-top: 8px;
  text-align: left;
}

dl.list dt {
  font-weight: bold;
  padding: 8px 0;
  font-size: large;
}

dl.list dd {
  margin: 0;
  padding: 4px 0;
  font-size: medium;
}

dl.list dd:before {
  content: "・";
}

.description {
  margin-left: 20px;
  margin-right: 20px;
  font-size: medium;
  color: #fff;
}

.description p {
  text-align: left;
  font-size: large;
}

.app h3 {
  color: #fff;
  font-size: x-large;
}

/*****************************************************************************/

/* iPhone */
@media (max-width: 414px) {
  .cover {
    background: url('../images/background_space_gray_640.jpeg') center center no-repeat;
    background-size: cover;
  }

  #container-header {
    display: grid;
    grid-template-rows: 40px 240px 1fr;
    grid-template-columns: 1fr;
    grid-template-areas:
      "navi"
      "title"
      ".....";
  }

  #container-footer {
    grid-template-rows: 40px 40px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copyright"
      "social";
  }

  .catch-phrase {
    text-align: left;
  }

  .product > p {
    font-size: medium;
  }

  #section-apps h2 {
    font-size: x-large;
  }

  .icon {
    border-radius: 16px;
    min-width: 128px;
    max-width: 128px;
    width: 128px;
    height: 128px;
  }
}

/* iPad */
@media (min-width: 414px) and (max-width: 1024px){
  .cover {
    background: url('../images/background_space_gray_1280.jpeg') center center no-repeat;
    background-size: cover;
  }

  h1 {
    font-size: 48pt;
  }

  .product > p {
    font-size: large;
  }

  .icon {
    border-radius: 16px;
    min-width: 128px;
    max-width: 192px;
    width: auto;
    height: auto;
  }
}

/* Desktop PC */
@media (min-width: 1024px) {
  .cover {
    background: url('../images/background_space_gray_1600.jpeg') center center no-repeat;
    background-size: cover;
  }

  h1 {
    font-size: 56pt;
  }

  .slogan {
    font-size: 32pt;
  }

  .catch-phrase {
    font-size: 24pt;
  }
}
