/* Font set */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  src: local("Amiri-Regular"), url("../fonts/Amiri/Amiri-Regular.ttf") format("ttf");
  font-display: swap;
}

@font-face {
  font-family: 'NotoSerifJP';
  font-style: normal;
  font-weight: 400;
  src: local("Amiri-Regular"), url("../fonts/Noto_Serif_JP/NotoSerifJP-Medium.otf") format("otf");
  font-display: swap;
}

body {
  position: relative;
  font-family: "Noto Serif JP", serif;
  padding: 0;
  padding-top: 72px;
  margin: 0;
  background-color: #FFFEF4;
  color: #0f131a;
}

body.dark-color {
  background-color: #0f131a;
  color: #FFFEF4;
}

/* attributes */
h1 {
  font-size: 2em;
  font-family: "Noto Serif JP", serif;
}

h2 {
  font-size: 1.8em;
  font-family: "Noto Serif JP", serif;
}

p {
  line-height: 1.4em;
  font-size: .9em;
  text-indent: .9em;
}

a {
  text-decoration: none;
}

a:visited {
  color: #0f131a;
}

img {
  border-radius: 8px;
}

ul {
  padding: 0;
}

/* footer */
footer {
  font-family: cursive;
  position: relative;
  width: 100%;
  height: 32px;
  font-size: .7em;
  text-align: center;
  padding: 4px 0;
  color: #0f131a;
  margin-top: 60px;
}

footer a {
  color: #0f131a;
}

footer.fixed {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 8000;
}

body.dark-color footer {
  color: #FFFEF4;
}

body.dark-color footer a {
  color: #FFFEF4;
}

/* border */
hr {
  margin-top: 6px;
  margin-bottom: 6px;
  border: 0 none;
  height: 1px;
  color: #0f131a;
  background-color: #0f131a;
  opacity: .4;
}

hr.border-light {
  color: #FFFEF4;
  background-color: #FFFEF4;
}

hr.border-dark {
  color: #0f131a;
  background-color: #0f131a;
}

h1.border, h2.border {
  opacity: 1;
  height: auto;
  margin: 0;
  width: auto;
  display: inline-block;
  position: relative;
  background-color: transparent;
}

h1.border::after, h2.border::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background-color: black;
}

/* top section */
section#top-section {
  width: 90%;
  padding: 0;
  height: auto;
  margin: 0 auto;
  margin-top: 48px;
  margin-bottom: 72px;
  border-radius: 2px;
}

section#top-section p {
  text-indent: 0;
}

.top-section-container {
  width: 60%;
  margin: 0;
  z-index: 2;
  position: relative;
  padding: 0 30px;
  -webkit-columns: white;
  -moz-columns: white;
  columns: white;
  border-radius: 3px;
}

/* content section */
.content-section {
  width: 90%;
  margin: auto;
  height: auto;
  position: relative;
  margin-top: 28px;
  margin-bottom: 50px;
}

/* container */
.top-container {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-flow: row;
  -ms-flex-flow: row;
  flex-flow: row;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  margin: 0;
  padding: 30px;
  height: auto;
  position: relative;
}

.container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-flow: row;
  -ms-flex-flow: row;
  flex-flow: row;
}

@media screen and (max-width: 60em) {
  .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;
  }
}

.container-reverse {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-flow: row-reverse;
  -ms-flex-flow: row-reverse;
  flex-flow: row-reverse;
}

@media screen and (max-width: 60em) {
  .container-reverse {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;
  }
}

.content-container {
  width: 60%;
  border-radius: 0 0 16px 16px;
  color: white;
  padding: 30px;
  height: auto;
}

@media screen and (max-width: 60em) {
  .content-container {
    width: 90%;
  }
}

.image-container {
  width: 40%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  margin-right: 0;
}

@media screen and (max-width: 60em) {
  .image-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;
    width: 90%;
    padding: 0;
  }
}

.container-reverse .image-container {
  margin-left: 30px;
}

.image-container img {
  border-radius: 3px;
  width: 100%;
  margin-left: 0;
  margin-bottom: 24px;
}

.container .image-container, .container-reverse .image-container {
  margin-right: 30px;
}

.container .image-container img, .container-reverse .image-container img {
  padding: 0;
}

/* transition effects */
.fadein {
  opacity: 0;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}

.fadein.scrollin {
  opacity: 1;
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

.sns_box {
  position: relative;
  margin: auto;
  margin-top: 48px;
  height: 38px;
  min-width: 268px;
}

.sns_button {
  float: left;
  -webkit-box-shadow: inset 0 0 0 2px #fff;
  box-shadow: inset 0 0 0 2px #fff;
  border-radius: 100%;
  -webkit-transition: all 280ms ease;
  transition: all 280ms ease;
}

.sns_button a {
  display: table-cell;
  width: 36px;
  height: 36px;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  -webkit-transition: all 280ms ease;
  transition: all 280ms ease;
}

.sns_button i {
  font-size: 1em;
  vertical-align: middle;
  padding-left: 0;
  padding-bottom: 3px;
}

.sns_button:hover {
  -webkit-box-shadow: inset 0 0 0 22px #fff;
  box-shadow: inset 0 0 0 22px #fff;
}

.sns_button + .sns_button {
  margin: 0 0 0 12px;
}

.twitter:hover a {
  color: #1B95E0;
}

.facebook:hover a {
  color: #3B5999;
}

.google:hover a {
  color: #dd4b39;
}

.instagram:hover a {
  color: #2b5c84;
}

.pocket:hover a {
  color: #EE4056;
}

.button {
  position: relative;
  height: 29px;
  background: transparent;
  border: 1px solid #0f131a;
  line-height: .7em;
  font-size: .7em;
  text-decoration: none;
  -webkit-transition: ease-in-out .3s;
  transition: ease-in-out .3s;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
  color: #0f131a;
  display: inline-block;
  margin-top: 16px;
  border-radius: 3px;
  padding: 8px;
}

.button:before, .button:after {
  -webkit-transition: ease-in-out .3s;
  transition: ease-in-out .3s;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  z-index: -1;
}

.button:before {
  position: absolute;
  top: 0;
  right: -50px;
  bottom: 0;
  left: 0;
  border-right: 50px solid transparent;
  border-bottom: 60px solid rgba(0, 0, 0, 0.8);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  content: "";
}

.button:hover {
  color: #FFFEF4;
}

.button:hover:before {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
