/*
 * Grid
 */

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

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

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

#item-header-footnote {
  grid-area: footer;
}

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

/* Body (Key-Features) */
.container-tricolumns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: row;
  grid-column-gap: 8px;
}

/* Body (Key-Visuals) */
#container-keyvisual {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: row;
  grid-column-gap: 8px;
}

/* Body (Flexible Boxes) */
.container-boxes {
  display: grid;
  gap: 8px;
  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;
}

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

h1 {
  font-weight: bold;
  text-align: center;
  color: #fff;
  margin: 0;
}

h2 {
  margin: 0 auto;
}

h3 {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 0;
  margin-left: 8px;
  padding-top: 20px;
}

.cover {
  background: url('../images/Ledger_1600.jpg') center top no-repeat;
  background-size: cover;
}

.slogan {
  text-align: center;
  color: #fff;
}

.badge-appstore {
  display: block;
  margin: 10px auto;
  text-align: center;
}

.catch-copy {
  display: block;
  margin: 10px auto;
  padding: 10px 0px;
  color: #333;
  font-size: 36pt;
  text-align: center;
}

.catch-phrase {
  margin: 20px auto;
  padding: 0px 20px;
  color: #333;
  font-size: 16pt;
  text-align: center;
}

.keyfeature-content {
  position: relative;
  margin: 2em 8px;
  padding: 0.5em 1em;
  border: solid 3px #3185ff;
  border-radius: 8px;
}

.keyfeature-content .keyfeature-title {
  position: absolute;
  display: inline-block;
  top: -35px;
  left: 8px;
  line-height: 1;
  font-size: 14pt;
  font-weight: bold;
  background: #f8f8ff;
  color: #3185ff;
}

.keyfeature-content .keyfeature-title:before {
  content: " ";
  white-space: pre;
}

.keyfeature-content .keyfeature-title:after {
  content: " ";
  white-space: pre;
}

.keyfeature-content p {
  margin: 8px 0;
  padding: 10px;
  letter-spacing: 1pt;
}


.boxes-content {
  position: relative;
  margin: 2em 8px;
  padding: 0.5em 1em;
}

.boxes-content .boxes-title {
  position: absolute;
  display: inline-block;
  top: -35px;
  left: 8px;
  line-height: 1;
  font-size: 14pt;
  font-weight: bold;
  background: #f8f8ff;
}

.boxes-content .boxes-title:before {
  content: " ";
  white-space: pre;
}

.boxes-content .boxes-title:after {
  content: " ";
  white-space: pre;
}

.boxes-content p {
  margin: 8px 0;
  letter-spacing: 1pt;
}

.appeal-border {
  border-radius: 8px;
  border: solid 3px #228b22;
}

.appeal-title {
  color: #228b22;
}

.merit-border {
  border-radius: 8px;
  border: solid 3px #4b0082;
}

.merit-title {
  color: #4b0082;
}

.crop {
  width: 300px;
  height: 433px;
  object-fit: cover;
  object-position: 100% 0;
  display: block;
  padding-left: 5px;
  margin-left: auto;
  margin-right: auto;
}

.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;
}


h3.keyvisual {
  font-size: xx-large;
  text-align: center;
  color: #3185ff;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

h3.keyfeature {
  font-size: x-large;
}

h3#appeal {
  font-size: x-large;
  color: #228b22;
}

h3#merit {
  font-size: x-large;
  color: #4b0082;
}

h3.subject {
  font-size: x-large;
}

ul.features {
  padding-bottom: 40px;
}


hr {
  height: 10px;
  border: 0;
  box-shadow: 0 10px 10px -10px #8c8b8b inset;
}


.tricolumns-content {
  position: relative;
  margin: 2em 10px;
  padding: 0.5em 1em;
  border: solid 3px #3185ff;
  border-radius: 8px;
}

.tricolumns-content .tricolumns-title {
  position: absolute;
  display: inline-block;
  top: -20px;
  left: 8px;
  line-height: 1;
  font-size: 14pt;
  font-weight: bold;
  background: #f8f8ff;
  color: #3185ff;
}

.tricolumns-content .tricolumns-title:before {
  content: " ";
  white-space: pre;
}

.tricolumns-content .tricolumns-title:after {
  content: " ";
  white-space: pre;
}

#item-books1 {
  height: 80px;
}

#item-books2 {
  height: 80px;
}

#item-analysis1, #item-analysis2, #item-analysis3 {
  height: auto;
}

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

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

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

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

.books p {
  font-size: 14pt;
  margin: 1em;
}

.analysis p {
  font-size: 14pt;
  margin: 1em;
}

/*
 * Media
 */
@media (min-width: 960px) {
  body {
    width: 960px;
  }

  h1 {
    font-size: 48pt;
  }

  h2 {
    font-size: 22pt;
  }

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

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

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

  #container-keyvisual .keyfeature-content {
    padding: 0 10px;
    margin-top: 30px;
  }

  li {
    font-size: 16pt;
    line-height: 1.7em;
  }
}

/* iPad */
@media (min-width: 415px) and (max-width: 1024px){
  body {
    width: 768px;
  }

  #container-header {
    grid-template-rows: 20px 140px 140px 80px 80px;
  }

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

  h1 {
    font-size: 32pt;
  }

  h2 {
    font-size: 18pt;
  }

  .catch-copy {
    font-size: 20pt;
  }

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

  .badge-appstore img {
    display: inline-block;
    width: 144px;
    height: 48px;
  }

  #container-keyvisual .keyfeature-content {
    margin-top: 30px;
    margin-bottom: 0;
  }

  .crop {
    width: 240px;
    height: 346px;
  }

  li {
    font-size: 14pt;
    line-height: 1.6em;
  }
}

/* iPhone */
@media (max-width: 414px) {
  body {
    width: 100%;
  }

  #container-header {
    display: grid;
    grid-template-rows: 20px 250px 20px 70px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "title"
      "footer"
      "badge";
  }

  /* Body (Key-Features) */
  .container-tricolumns {
    grid-template-columns: 1fr;
  }

  .tricolumns-content {
    margin: 1em 10px;
  }

  /* Body (Key-Visuals) */
  #container-keyvisual {
    grid-template-columns: 1fr;
    grid-row-gap: 40px;
  }

  #container-keyvisual .keyfeature-content {
    margin-top: 30px;
    margin-bottom: 0;
  }

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

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 16pt;
  }

  h3 {
    font-size: x-large;
  }

  h3.keyvisual {
    font-size: x-large;
  }

  .catch-copy {
    font-size: 18pt;
  }

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

  .badge-appstore img {
    display: inline-block;
    width: 144px;
    height: 48px;
  }

  .crop {
    width: 320px;
    height: 460px;
  }

  li {
    font-size: 14pt;
    line-height: 1.6em;
  }
}
