/*!
 * tomis-rice-shortbread - v1.0.0
 * Copyright 2018 Tomi's Shortbread House.
 * http://www.tomis-shortbread.com/
 */
body, div, p, ul, ol, li, dl, dt, dd {
  margin: 0;
  padding: 0;
}
body {
  background-color: #E2C2D6;
  color: #42352D;
  font-family: 'Sawarabi Mincho', serif;
  line-height: 2.4;
  letter-spacing: 2px;
}
a {
  transition: all 0.5s;
}
img {
  width: 100%;
  vertical-align: bottom;
}
p {
  padding: 20px 0;
}
ul {
  list-style-type: none;
}
li {
  margin-top: 20px;
}
li:first-of-type {
  margin-top: 0;
}
address {
  padding: 20px;
}

.grid {
  padding: 60px 0;
}
.grid .row {
  padding: 20px 0;
}

.verticalText {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 0;
  transform-origin: left top;
  transform: rotate(90deg);
  font-size: x-small;
  white-space: nowrap;
}

#loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background-color: rgb(66, 53, 45);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loader.hide {
  display: none;
}
#loader.fadeout {
  animation : fadeOut 0.5s;
  animation-fill-mode: both;
}

#loader .logo {
  width: 220px;
  height: auto;
  animation : fadeIn 0.5s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

#header {
  position: relative;
}
#header .shopInfo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  transition: all 0.5s;
}
#header .shopInfo .shopName,
#header .shopInfo .shopPurchase {
  padding: 20px;
  height: 32px;
  line-height: 32px;
}
#header .shopInfo .shopName img {
  width: auto;
  height: 32px;
  filter: drop-shadow(0 0 4px #42352D);
}
#header .shopInfo .shopPurchase a {
  color: white;
  text-decoration: none;
  filter: drop-shadow(0 0 4px #42352D);
}
#header .cover {
  width: 100%;
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background-image: url(../img/photoFoods.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
#header .cover .logoRiceShortbread {
  width: 460px;
}
#header #scrollToMain {
  position: absolute;
  bottom: 0;
  left: calc(50% - 30px);
  right: calc(50% - 30px);
  display: block;
  width: 60px;
  height: 0;
  font-family: helvetica, arial, sans-serif;
  font-weight: 100;
  font-size: small;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
  color: white;
  z-index: 10;
  animation: show 2s both;
  text-align: center;
}
@keyframes show {
	0% {
    height: 0;
    opacity: 0.0;
	}
	60% {
    height: 50px;
    opacity: 1.0;
	}
	70% {
    height: 40px;
	}
	80% {
    height: 50px;
	}
	90% {
    height: 40px;
	}
	100% {
    height: 50px;
	}
}

#main .intro {
  text-align: center;
}
#main .intro .copy {
  padding-top: 120px;
  display: inline-block;
  text-align: left;
}
#main .intro .copy strong,
#main .intro .copy span {
  display: inline-block;
}
#main .intro .copy strong {
  margin-bottom: 1.0em;
  font-size: x-large;
  font-weight: normal;
  line-height: 2.0;
  letter-spacing: 4px;
  text-decoration: underline;
}
#main .intro .copy span {
  font-size: large;
}

#main .content {
  background-color: white;
}
#main .content .copy {
  padding: 20px 0;
}
#main .content .farmers {
  position: relative;
}

#main .product {
  background-color: white;
  background-image: url(../img/photoCraftTexture.jpg);
  background-position: center 240px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  text-align: center;
}
#main .product .photoPackage img {
  filter: drop-shadow(2px 2px 4px rgba(66, 53, 45, 0.6));
}
#main .product .logoRiceShortbread a:hover {
  opacity: 0.6;
}
#main .product .logoRiceShortbread img {
  filter: drop-shadow(0 0 4px rgba(66, 53, 45, 0.6));
}
#main .product .purchase {
  display: inline-block;
  padding: 20px;
  border: white 1px solid;
  border-radius: 4px;
  box-shadow: 0 0 0 4px #42352D, 0 0 8px 4px rgba(66, 53, 45, 0.8);
  background-color: #42352D;
  color: white;
  text-align: center;
  text-decoration: none;
  line-height: 1.6;
}
#main .product .purchase:hover {
  opacity: 0.6;
}

#footer .ownerName {
  position: relative;
  height: 100%;
}
#footer .ownerName p {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0;
}
#footer .ownerName strong {
  font-size: larger;
  font-weight: normal;
}
#footer .shopInfo {
  position: relative;
}
#footer .shopInfo .shopName {
  line-height: 1.0;
}
#footer .shopInfo .shopDetail {
  margin-top: 32px;
}
#footer .shopInfo .shopWebsite {
  margin-top: 24px;
}
#footer .shopInfo a {
  color: #42352D;
  text-decoration: none;
}
#footer .shopInfo a,
#footer .shopInfo a:link,
#footer .shopInfo a:visited,
#footer .shopInfo a:active {
  border-bottom: 2px dotted rgba(66, 53, 45, 0.6);
}
#footer .shopInfo a:hover {
  border-bottom-color: transparent;
}
#footer .copyright {
  background-color: #42352D;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  font-size: x-small;
  letter-spacing: 2px;
  text-align: center;
}

#footer #scrollToHeader {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: block;
  width: 60px;
  height: 60px;
  background-color: #42352D;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  line-height: 60px;
  opacity: 0.0;
  cursor: default;
  z-index: 20;
}
#footer #scrollToHeader,
#footer #scrollToHeader:link,
#footer #scrollToHeader:visited,
#footer #scrollToHeader:active {
  color: white;
}
#footer #scrollToHeader:hover {
  color: #E2C2D6;
}

@media (max-width: 840px) {
  #header .shopInfo .shopPurchase i {
    font-size: x-large;
  }
  #header .shopInfo .shopPurchase span {
    display: none;
  }
  
  #main .intro .copy strong {
    font-size: large;
  }
  #main .intro .copy span {
    font-size: medium;
  }

  #main .product {
    background-position: center 200px;
  }
}
@media (max-width: 480px) {
  .verticalText {
    padding: 10px 0;
    color: rgba(66, 53, 45, 0.6);
  }

  #footer .ownerName p {
    position: static;
  }

  #footer .ownerName p,
  #footer .ownerProfile p,
  #footer .shopInfo dd {
    font-size: smaller;
  }
}

@media (max-width: 1023px) {
  p {
    text-align: justify;
  }

  #main .content br {
    display: none;
  }

  #footer .ownerProfile p br {
    display: none;
  }
}

@media (max-width: 959px) {
  #header .cover .logoRiceShortbread {
    width: 400px;
  }
}
@media (max-width: 812px) {
  #header .cover .logoRiceShortbread {
    width: 280px;
  }
}
@media (max-width: 639px) {
  #header .cover .logoRiceShortbread {
    width: 240px;
  }
  #main .product .purchase {
    font-size: smaller;
  }
}
@media (max-width: 479px) {
  #header .cover .logoRiceShortbread {
    width: 200px;
  }
}

@media (max-width: 1024px) {
  #header .cover {
    background-position: 66% center;
  }
}
@media (max-width: 959px) {
  #header .cover {
    background-position: 66% center;
  }
}
@media (max-width: 559px) {
  #header .cover {
    background-position: 68% center;
  }
}
@media (max-width: 414px) {
  #header .cover {
    background-image: url(../img/photoFoodsNarrow.jpg);
  }
}