/* Vars */

:root {
  --stroke: 2px 0 0 rgb(255,255,255), -2px 0 0 rgb(255,255,255), 0 2px 0 rgb(255,255,255), 0 -2px 0 rgb(255,255,255), 1px 1px 0 rgb(255,255,255), 1px -1px 0 rgb(255,255,255), -1px 1px 0 rgb(255,255,255), -1px -1px 0 rgb(255,255,255);
  --shadow: 0 2px 0 rgb(162, 217, 119);
  --color1: rgb(84,94,78);
  --color2: rgb(39,63,63);
}

/* "Meiryo", "Hiragino Kaku Gothic ProN", "Meiryo UI", sans-serif; */

/* Styles */

* {
  box-sizing: border-box;
  word-break: keep-all;
}

html, body {
  font-size: 1em;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Berkshire Swash', cursive;
}

a {
  color: var(--color2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted var(--color2);
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: rgb(71, 112, 113);
  background-image: -moz-linear-gradient(top, rgba(39,63,63,1) 0%, rgba(78,125,126,0) 100%), url('../img/pattern.svg');
  background-image: -webkit-linear-gradient(top, rgba(39,63,63,1) 0%,rgba(78,125,126,0) 100%), url('../img/pattern.svg');
  background-image: linear-gradient(to bottom, rgba(39,63,63,1) 0%,rgba(78,125,126,0) 100%), url('../img/pattern.svg');
  background-position: center top, center center;
  background-repeat: repeat-x, repeat;
  background-size: 200px 200px, 100px 100px;
}

header span {
  margin: 2rem 0 0 0;
  text-align: center;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgb(255,255,255);
  font-family: 'Nunito', sans-serif;
  text-shadow: 0 2px 0 rgb(39,63,63);
}

header h1 {
  text-align: center;
  color: transparent;
  width: 100%;
  height: 80px;
  margin: .25rem auto .75rem;
  background: url('../img/tabikaeru-title.png') center center no-repeat;
  background-size: 66.67%;
  font-size: 3.25rem;
}

header h2 {
  text-align: center;
  color: var(--color1);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: var(--stroke);
}

.main {
  width: 100%;
  max-width: 960px;
  margin: 2rem auto 1rem auto;
  min-height: 50px;
  border: 2px solid var(--color1);
  border-left: none;
  border-right: none;
  background-color: rgb(204, 235, 167);
}

.main p, .main h2, .main h3, .main h4, .main h5, .main h6, dl {
  padding-left: 2rem;
  padding-right: 2rem;
}

.main:before {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  margin-bottom: 2rem;
  border-bottom: 2px dashed rgb(162, 217, 119);
}

.main:after {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  margin-top: 2rem;
  border-top: 2px dashed rgb(162, 217, 119);
}

.main h2 {
  margin-top: 2rem;
  color: var(--color1);
  text-align: center;
  text-shadow: var(--shadow);
}

.main h2:first-of-type {
  margin-top: 1rem;
}

.main h2.clovers:before, .main h2.clovers:after {
  content: '';
  display: inline-block;
  background-image: url('../img/yotsuba.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 24px;
  height: 28px;
  vertical-align: text-bottom;
}

.main h2:before {
  margin-right: 1rem;
}

.main h2:after {
  margin-left: 1rem;
}

.main h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--color2);
}

.main dd {
  margin-left: 0;
  margin-bottom: 1rem;
}

.main article {
  border: 1px solid var(--color1);
  border-left: none;
  border-right: none;
  background-color: rgb(245,209,122);
}

.main article:before {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  margin-bottom: 2rem;
  border-bottom: 2px dashed rgb(245,191,79);
}

.main article:after {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  margin-top: 2rem;
  border-top: 2px dashed rgb(245,191,79);
}

.main article h3 {
  display: inline-block;
  margin: 0 auto 1rem 0;
  padding: .5rem 2rem .5rem 5rem;
  color: rgb(255,255,255);
  text-shadow: 0 2px 0 rgb(115,93,45);
  background-color: rgb(166,134,65);
  border-top-right-radius: 21px 50%;
  border-bottom-right-radius: 21px 50%;
  box-shadow: 0 2px rgb(245,191,79);
  position: relative;
}

.main article h3 img {
  width: 42px;
  height: auto;
  position: absolute;
  left: 24px;
  top: -1px;
  transform: rotate(-15deg);
}

.main p {
  text-align: center;
}

.main img {
  max-width: 100%;
  height: auto;
}

.cols {
  display: flex;
  justify-content: space-evenly;
  margin: 0 2rem;
}

.cols.m-unflex {
  display: block;
  margin: 2rem 2rem 1rem 2rem;
}

.cols div {
  flex: 1 1 0;
  padding: 0 .25rem;
  font-size: .85rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cols.m-unflex div {
  margin-bottom: 1.5rem;
}

.cols div strong {
  font-size: 1rem;
}

.cols div em {
  font-size: .75rem;
  font-style: normal;
  margin-bottom: .5rem;
  color: rgba(0,0,0,.5);
}

.section {
  border: 1px solid var(--color1);
  border-left: none;
  border-right: none;
  background-color: rgb(230,221,193);
}

.section:before {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  margin-bottom: 2rem;
  border-bottom: 2px dashed rgb(191,179,143);
}

.section:after {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  margin-top: 2rem;
  border-top: 2px dashed rgb(191,179,143);
}

.section h3 {
  display: inline-block;
  margin: 0 auto 0 0;
  padding: .5rem 2rem .5rem 5rem;
  color: rgb(255,255,255);
  text-shadow: 0 2px 0 rgb(46,38,22);
  background-color: rgb(93,77,46);
  border-top-right-radius: 21px 50%;
  border-bottom-right-radius: 21px 50%;
  box-shadow: 0 2px rgb(191,179,143);
  position: relative;
}

.section h3 img {
  width: 42px;
  height: auto;
  position: absolute;
  left: 24px;
  top: -1px;
  transform: rotate(-15deg);
}

.section .cols {
  margin-top: 1rem;
}

.block {
  display: block;
}

.center {
  text-align: center;
}

.clear {
  clear: both;
}

.rounded {
  border-radius: 6px;
  overflow: hidden;
}

.border {
  border: 2px solid var(--color1);
}

.important {
  color: rgb(255,0,0);
  text-transform: uppercase;
}

.m-hidden {
  display: none;
}

footer {
  width: 100%;
  max-width: 950px;
  margin: 0 auto 1rem auto;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

@media screen and (min-width : 768px) {
  header h1 {
    width: 386px;
  }
  .cols {
    margin: 2rem;
  }
  .cols.m-unflex {
    display: flex;
  }
  .cols div {
    padding: 0 1rem;
    margin-bottom: 0;
  }
  .m-hidden {
    display: block;
  }
}
