/* global styling */
:root {
  /* --mainFont: 'SF-Pro-Text', 'Hiragino-Kakugo', sans-serif; */
  /* --seccondaryFont: 'Roboto'; */
  --mainFontColor: #565656;
  --secondaryFontColor: #b3b3b3;
  --thirdFontColor: #969494;
  --bodyFontColor: #706c6c;
  --whiteFontColor: #e2e2e2;
  --red: #d2232a;
  --gold: #c5a153;
  --accent: #39ccf9;
  --seccondAccentColor: #f58b69;
  --whiteBG: #ffffff;
  --grayBG: #f7f7f7;
  --darkGrayBG: #f0f0f0;
  --black: #000;
  --transition: all 0.3s ease 0s;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* overflow: auto; */
}

html {
  /* font-family: var(--mainFont); */
  font-size: 10px;
  color: var(--bodyFontColor);
  box-sizing: border-box;
  /* overflow: auto; */
  scroll-behavior: smooth;
}

body {
  background-color: var(--whiteBG);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  overflow-x: hidden;
}

a,
button {
  text-decoration: none;
  color: inherit;
}

a,
button,
.logo {
  cursor: pointer;
}

.btn {
  display: inline-block;
  font-weight: 600;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--mainFontColor);
  margin: 15px 0;
}

h1 {
  font-weight: 600;
}

h2 {
  font-weight: 600;
}

h3 {
  font-weight: 600;
}

p {
  font-size: 1.3rem;
  font-weight: 300;
}

/*Spacing*/
.section {
  padding: 100px 0;
}

.container {
  width: 70%;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .container {
    width: 90%;
  }
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.col {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -ms-flex-positive: 1;
  flex-grow: 1;
  min-width: 0;
  max-width: 100%;
}

.ml-auto,
.mx-auto {
  margin-left: auto;
}

/* Preloader */
.preload {
  position: fixed;
  top: 0;
  z-index: 10000;
  width: 100%;
  height: 100vh;
  background: var(--whiteBG);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.preload p {
  font-size: 2rem;
  font-weight: bolder;
  color: var(--red);
}

.object {
  width: 20px;
  height: 20px;
  background-color: var(--red);
  float: left;
  margin-right: 20px;
  margin-top: 65px;
  -moz-border-radius: 50% 50% 50% 50%;
  -webkit-border-radius: 50% 50% 50% 50%;
  border-radius: 50% 50% 50% 50%;
}

#object_one {
  -webkit-animation: object_one 1.5s infinite;
  animation: object_one 1.5s infinite;
}
#object_two {
  -webkit-animation: object_two 1.5s infinite;
  animation: object_two 1.5s infinite;
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
#object_three {
  -webkit-animation: object_three 1.5s infinite;
  animation: object_three 1.5s infinite;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

@-webkit-keyframes object_one {
  75% {
    -webkit-transform: scale(0);
  }
}

@keyframes object_one {
  75% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
}

@-webkit-keyframes object_two {
  75% {
    -webkit-transform: scale(0);
  }
}

@keyframes object_two {
  75% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
}

@-webkit-keyframes object_three {
  75% {
    -webkit-transform: scale(0);
  }
}

@keyframes object_three {
  75% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
}

.preload-finish {
  opacity: 0;
  pointer-events: none;
}
/* Header */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4vh;
  background: #343a40;
  padding: 0 100px;

  width: 100%;
  font-weight: 600;
}

.fixed {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.nav-buyBtn {
  width: 100px;
  height: 3vh;
  display: grid;
  place-content: center;
  border: solid 1px var(--whiteFontColor);
  color: var(--whiteFontColor);
  transition: all 0.3s ease;
}

.nav-buyBtn:hover,
.nav-buyBtn:focus {
  background-color: var(--whiteFontColor);
  color: #343a40;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 40%;
}

.nav-links li {
  padding: 0 10px;
  color: rgba(225, 225, 225, 0.5);
}

.nav-links li:hover,
.nav-links li:focus {
  color: rgba(225, 225, 225, 0.75);
}

.nav-links li.active {
  color: rgba(225, 225, 225, 1);
}

.burger {
  display: none;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--whiteFontColor);
  margin: 5px;
  transition: all 0.3s ease;
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 1200px) {
  .nav-links {
    width: 60%;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 50px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
  }
  .nav-links {
    position: fixed;
    right: 0px;
    height: 96vh;
    top: 4vh;
    background: #343a40;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }

  .nav-links li {
    opacity: 0;
  }

  .burger {
    display: block;
    cursor: pointer;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

/* !Header */

.hero-section {
  width: 100%;
  height: 800px;
  background-color: var(--red);
  margin: 0;
}

.hero-wrapper {
  height: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-title * {
  text-align: left;
  color: #fff;
}

.hero-title h1 {
  font-size: 2.3rem;
}

.hero-title h2 {
  font-size: 1rem;
  font-weight: 500 !important;
  color: var(--gold);
}

.hero-title h3 {
  font-size: 2rem !important;
  padding-bottom: 10px;
}

.hero-author {
  padding: 10px 0 30px 0;
}

.hero-author h4 {
  font-size: 1rem;
  font-weight: 600 !important;
  padding: 0;
  margin: 0;
}

.hero-btn {
  font-size: 1.5rem;
  font-weight: 600;
  border-color: var(--whiteBG);
  margin-right: 15px;
}

.hero-btn:hover {
  background-color: var(--whiteBG);
  color: var(--red);
  transition: var(--transition);
}

.hero-book-bg {
  background-color: #fff;
  width: 500px;
  height: 800px;
  display: grid;
  place-items: center;
}

.hero-book {
  width: 85%;
  margin-right: -70px;
}

@media (max-width: 1250px) {
  .hero-title h1 {
    font-size: 2rem !important;
  }
  .hero-book-bg {
    width: 400px;
    right: 100px;
  }
}

@media (max-width: 992px) {
  .hero-section {
    height: auto;
  }

  .hero-wrapper {
    width: 100vw;
  }
  .hero-wrapper {
    display: block;
  }
  .hero-title {
    padding: 100px 0;
    display: grid;
    place-content: center;
  }

  .hero-title * {
    text-align: center;
  }

  .hero-btn {
    width: 250px;
    margin: 10px auto;
  }

  .hero-book-bg {
    width: 100%;
    height: 400px;
  }
  .hero-book {
    width: 300px;
  }
}

/* トップページ　ケーススタディセクション */

.casestudy-section {
  display: grid;
}

.casestudy-section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
}

.casestudy-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.casestudy-images img {
  width: 100%;
  padding: 1rem;
}

.casestudy-section-title {
  text-align: right;
}

.casestudy-section-title h2 {
  font-size: 1.7rem;
}

.casestudy-section-title h3 {
  font-size: 1.5rem;
}

.btn-casestudy {
  background: #d2232a;
  color: #f3f3f3;
  margin: 1rem;
}

.btn-casestudy:hover {
  border: solid #d2232a 1.5px;
  color: #d2232a;
  background: none;
}

@media (max-width: 992px) {
  .casestudy-section .container {
    width: 100%;
  }

  .casestudy-section-row {
    grid-template-columns: 1fr;
  }
  .casestudy-images {
    grid-template-columns: 1fr;
  }
  .sp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .casestudy-images img {
    padding: 0;
  }
  .sp-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .casestudy-section-img {
    display: inline-block;
    margin: 0;
    width: 100%;
  }

  .casestudy-section-title {
    text-align: center;
    padding-top: 50px;
  }
}

@media (max-width: 576px) {
  .casestudy-section-title h2 {
    font-size: 1.7rem;
  }
}

br.sp {
  display: none;
}

@media (max-width: 1200px) {
  br.sp {
    display: block;
  }
}
/* !トップページ　ケーススタディセクション */
/* トップページ　試し読みセクション */
.read-trial-section {
  background-color: var(--grayBG);
}
/* !トップページ　試し読みセクション */
/* トップページ著者紹介セクション */
.whatisbe-wrapper {
  display: grid;
  place-content: center;
}

ol.whatisbe-list {
  counter-reset: number;
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.whatisbe-list li {
  font-size: 1.3rem;
  font-weight: bolder;
  padding: 5px 0;
  text-indent: -1.3em;
  padding-left: 1.3em;
}
ol.whatisbe-list li:before {
  counter-increment: number;
  content: counter(number) ".";
  color: #c5a153;
  font-weight: bolder;
  padding-right: 5px;
  /* 色を変えたり、背景画像を敷いたり！自由自在！ */
}

.about-authors-section .container .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-authors {
  padding: 0 30px;
}

.about-authors img {
  width: 400px;
}

@media (max-width: 992px) {
  .about-authors-section .container .row {
    grid-template-columns: 1fr;
  }
  .about-authors img {
    width: 80%;
    margin: 0 auto;
  }
  .about-authors {
    padding: 0;
  }
  .about-authors img {
    display: block;
    margin: 0 auto;
  }
}
/* !トップページ著者紹介セクション */

/* 著者紹介ページ */
.authors-list {
  padding: 0;
}

.authors-list li:nth-of-type(even) {
  flex-direction: row-reverse;
}

/* Case study page style */
.casestudies-wrapper {
  padding-top: 5vh;
  overflow-x: hidden;
}

.casesearch-wrapper {
  padding: 30px;
}

.casesearch {
  font-size: 2rem;
  padding: 5px 10px;
  width: 80%;
  display: block;
  margin: 0 auto;
}
.casestudy-grid {
  width: 100%;
  padding: 3rem;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
  /* grid-column-gap: 5rem; */
  /* grid-row-gap: 5rem; */
  /* justify-content: space-around; */
  grid-template-columns: 1fr;
}
.casestudy-item {
  width: 100%;
  max-width: 500px;
  margin: 30px auto;
}

.casestudy-item * {
  width: 100%;
}

.item-title {
  /* height: 5rem; */
}

.item-title * {
  font-size: 1.7rem !important;
}

.embed-wrapper {
  position: relative;
  width: 100%;
}

.embed-wrapper:before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 高さと幅の比を16:9に固定。9/16*100=56.25 */
}

.embed-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.chapters-wrapper {
  /* max-height: 25 0px; */
  /* overflow-y: scroll; */
}

.chapters-wrapper h3 {
  font-size: 1.5rem;
}

.chapters-wrapper * {
  font-size: 1rem;
}
/* !Case study page style */

/* 試し読みページ */
.read-trial-section h4 {
  font-size: 2rem !important;
}

.try-btn {
  background-color: var(--red);
  color: #fff;
  margin-top: 3rem;
  max-width: 250px;
}

.try-btn:hover {
  border: solid #d2232a 1.5px;
  color: #d2232a;
  background: none;
}

footer {
  padding-bottom: 10px;
  min-height: 400px;
  background-color: var(--darkGrayBG);
  position: relative;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-small {
  font-size: 1rem;
  font-weight: 100;
}

.footer-copyright {
  /* display: inline; */
  width: 100%;
  text-align: center;
  color: var(--thirdFontColor);
  font-size: 1rem;
  font-weight: 600;
  position: absolute;
  bottom: 10px;
  left: auto;
}

/* 試し読みページ */
.read-trial-bg {
  background-color: var(--grayBG);
}

.trial-read {
  width: 80%;
  margin: auto;
  background-color: #fff;
  padding: 80px 120px;
}

.trial-read h1 {
  margin-top: 80px;
}

.trial-read h2 {
  font-size: 1.8rem !important;
  padding: 15px 0;
  margin-top: 30px;
}

.trial-read h3::before {
  display: inline-block;
  background-color: #343a40;
  content: "";
  width: 1rem;
  height: 1rem;
  margin-right: 5px;
}

.trial-read h3 {
  font-size: 1.4rem !important;
  padding-top: 3rem;
}

.trial-read p {
  font-size: 1.3rem;
  font-weight: 300;
  padding: 15px 0;
}

.read-trial-wrapper {
  padding: 0 200px;
  background-color: var(--darkGrayBG);
}

.buy-book a {
  display: block;
  font-size: 1.5rem;
  font-weight: bolder;
  width: 100%;
  padding: 15px;
  margin-top: 30px;
  text-align: center;
  background: var(--red);
  color: #fff;
}

.buy-book a:hover {
  background: none;
  border: solid 1.5px var(--red);
  color: var(--red);
  margin-bottom: -3px;
}

@media (max-width: 768px) {
  .trial-read {
    width: 100%;
    padding: 80px 20px;
  }
}
