@import './normalize.css';

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Typography

–––––––––––––––––––––––––––––––––––––––––––––––––– */

h1 {
  margin-bottom: .6rem;
  font-size: 58px;
  line-height: 1.8;
  letter-spacing: -.1rem;
}

h2 {
  margin-bottom: .6rem;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: -.1rem;
  font-family: "Helvetica Neue", Arial,
  "Hiragino Kaku Gothic ProN", "Yu Gothic", 
  "Hiragino Sans", Meiryo, sans-serif;
}

h3 {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 600;
  margin: 20px auto;
}

h3 span {
  margin-top: .2em;
}

@media (max-width: 430px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
    margin-left: .5rem;
  }
}

p {
  margin-top: 1rem;
}


/*––––––––––––––––––––––––––––––––––––––––––––––––––
General

–––––––––––––––––––––––––––––––––––––––––––––––––– */

*{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}  

html {
  scroll-behavior: smooth;
}

body {    
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  font-family: "Helvetica Neue", Arial,
               "Hiragino Kaku Gothic ProN", "Yu Gothic", 
               "Hiragino Sans", Meiryo, sans-serif;
  max-width: 100%;
  color: #333333;
  margin: 0 auto;
}

main {
  margin: 0 auto;    
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Buttons

–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
* Skeleton V2.0.4
* Copyright 2014, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 12/29/2014
*/
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 70px;;/* 38px*/
  padding: 20px 30px;
  color: #555;
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  line-height: 30px;/*10/19変更38px*/
  letter-spacing: .1rem;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 8px;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box; 
  margin: 1.5rem; 
  margin-top: .8rem;
  /*注文ボタンを中央に配置*/
  align-self: center;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: #333;
  border-color: #888;
  outline: 0; }


.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
  color: #FFF;
  background-color: #c21828;
  border-color: #c21828;
}

.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
  color: #FFF;
  background-color: #bf283a;
  border-color: #bf283a; 
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Lists

–––––––––––––––––––––––––––––––––––––––––––––––––– */
ul {
  list-style: none;
}

ol {
  list-style: disc;
  list-style-position: inside;
}

ol, ul {
  padding-left: 0;
  margin-top: 0;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Link

–––––––––––––––––––––––––––––––––––––––––––––––––– */
section a {
  color:#007BC7;
  text-decoration:none;
}

section a:hover {
  color: #333333;
  border-bottom: 1px solid #333333;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
強調

–––––––––––––––––––––––––––––––––––––––––––––––––– */
section strong {
  color:#F2272E;
  font-size: 1.4em;
}

section b {
  font-weight: 600;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Navigation

–––––––––––––––––––––––––––––––––––––––––––––––––– */

.nav {
  width: 100%;
  margin: 0;
  height: 44px;
  color: #333333;
  left: 0;
  z-index: 100;
}

.nav--global {
  position: fixed;
  background: rgba(193, 25, 40, 0.92);
  top: 0;
}

.nav--page {
  position: fixed;
  background: #ffffff;
  opacity: .92;
  top:44px;
}

.nav__content {
  max-width: 980px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 1;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 100%;
}

@media (max-width: 1000px) {
  .nav__content--global {
    width: 90%;
  }
}

@media (max-width: 1000px) {
  .nav__content--page {
    width: 90%;
    overflow:scroll;
    display: block;
    white-space: nowrap;
    scrollbar-width: none;
    mask-image: -webkit-linear-gradient(to right, transparent, black 20px, black 90%, transparent);
    mask-image: -moz-linear-gradient(to right, transparent, black 20px, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black 90%, transparent);
    -webkit-mask-image: -webkit-linear-gradient(to right, transparent, black 20px, black 90%, transparent);
    -webkit-mask-image: -moz-linear-gradient(to right, transparent, black 20px, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 90%, transparent);  }

  .nav--page__item {
    margin-right: 1em;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: -0.7em;
  }
}

.nav__item {
  font-size: 14px;
  font-weight: 400;
  line-height: 0;
  margin-right: 1em;
  margin-left: 1em;
}

.nav__item > a {
  display: block;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: #333333;
}

.nav--global__item > a {
  color: #f5f5f7;
  opacity: .9;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav--global__item > a:hover {
  opacity: 1;
}

.main-logo {
  width: 40px;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
section

–––––––––––––––––––––––––––––––––––––––––––––––––– */
section {
  position: relative;
  padding-bottom: 100px;
  border-bottom: 1px solid #dadce0;
}

@media (max-width: 430px) {
  section {
    padding-bottom: 8px;
    margin-bottom: 0;
  }
}

.section-wrapper {
  display: flex;
  flex-direction: column;
  border: none;
  overflow: hidden;
  margin: 1.5rem auto;
  max-width: 1024px;
  scroll-padding-top: 88px;
}

.section-wrapper> p {
  text-align: center;
}


/*––––––––––––––––––––––––––––––––––––––––––––––––––
Hero

–––––––––––––––––––––––––––––––––––––––––––––––––– */
.hero > picture > source,
.hero > picture > img {
  margin: auto;
  margin-top: 88px;
  margin-bottom: 0;
  max-width: 500px;
  width: 80%;
  position: relative;
  display: block;
  z-index: -1;
  backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

@media (max-width: 811px) {
  .hero > picture > source,
  .hero > picture > img {
    margin-top: 4rem;
    width: 100%;
  }
}

.hero > p {
  text-align: center;
  line-height: 1;
  font-size: 23px;
}

@media (max-width: 811px) {
  .hero > p {
    font-size: 18px;
    line-height: 24px;
  }
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
書名
  h1
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#title {
  text-align:center;
  margin: .5em auto;
  line-height: 1;
  width: 75%;
  opacity: 1;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
}

#title > img {
  margin-top: 50px;
  margin-bottom: 50px;
}

@media (max-width: 430px) {
  #title {
    font-size: 44px;
    width: 90%;
  }

  #title > img {
    margin-top: 32px;
    margin-bottom: 32px;
  }  
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
コンテナ

–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: #fef9ef;
  border-radius: 30px;
  margin-bottom: 1rem;
  width: 100%;
}

@media (max-width: 430px) {
  .container {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 1rem;
  }
}

.container__item {
  width: 40%;
  margin: 1rem .5rem;
  padding: 1rem 1rem;
}

@media (max-width: 430px) {
  .container__item {
    width: 90%;
    margin: 0;
    padding: 1.5rem 1rem;
  }
}

.container__item > dt {
  font-size: 1.3rem;
  font-weight: 600;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Article

–––––––––––––––––––––––––––––––––––––––––––––––––– */
article {
  text-align: center;
  background: #fef9ef;
  padding: 3rem;
  padding-bottom: 3rem;
  padding-left: 5rem;
  padding-right: 5rem;
  max-width: 80%;
}

@media (max-width: 430px) {
  article {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }
}

article img {
  width: 80%;
  margin: 1.5rem 1rem;
}

@media (max-width: 430px) {
  article > img{
    width: 90%;
  }
}

article.button {
  display: block;
}

article p {
  margin: 0.4rem auto;
}

article p strong {
  font-weight: bold;
}

article > ul {
  text-align: start;
  list-style-type: none;
}

@media (max-width: 430px) {
  article > ul{
    width: 95%;
    margin-left: 1em;
  }
}

article span {
  margin: 5px auto;
}

article .normal-price {
  width: fit-content;
  text-align: left;
}

article .options {
  width: 100%;
  font-size: 1rem;
  border: 2px solid #ffdd61;
  margin: 0 auto;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
改行調整

–––––––––––––––––––––––––––––––––––––––––––––––––– */
span {
  display: inline-block;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
ページ内のリンク

–––––––––––––––––––––––––––––––––––––––––––––––––– */
.anchor {
  scroll-margin-top: 88px;
}

.anchor::before {
  content: "";
  display: block;
  position: relative;
  bottom: 0;
  width: 0;
  height: 88px;
  margin-top: -88px
  }

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Note

–––––––––––––––––––––––––––––––––––––––––––––––––– */
.note {
  width: 100%;
  font-size: .7rem;
  background-color: #f2f2f2;
  margin: 1.5rem auto;
  padding: 1rem;
}

.note li {
  list-style: disc;
}

.note dl dt {
  font-weight: 600;
}

.note dl dd {
  margin-left: 1em;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Normal Price

–––––––––––––––––––––––––––––––––––––––––––––––––– */
.normal-price {
  width: 100%;
  font-size: .8rem;
  border: 2px solid #ffdd61;
  margin: 1rem auto;
  padding: 1rem;
}

.normal-price__item--header {
  font-weight: 600;
}

.normal-price__item--total {
  border-top: 1px dashed #333333;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Item Size

–––––––––––––––––––––––––––––––––––––––––––––––––– */
.supplement {
  width: 100%;
  font-size: .8rem;
  padding: 1rem;
  padding-bottom: 0;
}

.supplement__item--header {
  font-weight: 600;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
Outline

–––––––––––––––––––––––––––––––––––––––––––––––––– */
ul.outline {
  list-style-type: none;
}

ul.outline li::before{
  content: '';
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  position: relative;
  top: 0.3em;
  background-repeat: no-repeat;
  background-size: contain;
}

ul.outline li:nth-child(1)::before {
  background-image:  url(../images/icons/pine.png);
}

ul.outline li:nth-child(2)::before {
  background-image:  url(../images/icons/bamboo.png);
}

ul.outline li:nth-child(3)::before {
  background-image:  url(../images/icons/ume.png);
}

ul.outline li:nth-child(4)::before {
  background-image:  url(../images/icons/tengu.png);
}

ul.outline li:nth-child(5)::before {
  background-image:  url(../images/icons/logo.png);
}

ul.outline li:nth-child(6)::before {
  background-image:  url(../images/icons/premium.png);
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––
フッター

–––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
    font-size: .8rem;
    height: 5rem;
    border-top: 1px solid #333333;
    padding-top: .8rem;
    text-align: center;
}