@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  color: #333;
  font-size: 0.75rem;
  font-family: 'Raleway', sans-serif;
}

a {
  /*リンクタグはbodyのカラーが適用されないから個別で指定*/
  color: #333;
  text-decoration: none;
}

img {
  max-width: 100%;
}

li {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.site-title {
  width: 109px;
  line-height: 1px;
  margin: 0 auto 36px auto;
}

.site-title a {
  display: block;
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
}

#header {
  max-width: 1000px;
  padding: 46px 0 26px 0;
  margin: 0 auto 50px auto;
  border-bottom: solid 1px #c3c3c3;
}

nav {
  display: flex;
  /*縦方向*/
  align-items: center;
  justify-content: space-between;
}

nav .menu, nav .login {
  display: flex;
  align-items: center;
}

nav .menu li {
  margin-right: 14px;
} 

nav .login li {
  margin-left: 14px;
}

#item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}

#item .item-image {
  max-width: 400px;
  /*画像が縮小されるのを防ぐ*/
  flex-shrink: 0;
  margin-right: 60px;
}

#item .item-info .item-title {
  height: 60px;
  /*display: flex; と align-items: center; で文字を中央にそろえる*/
  display: flex;
  align-items: center;
  border-top: solid 1px #c3c3c3;
  border-bottom: solid 1px #c3c3c3;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 20px;
}

#item .item-info p {
  margin-bottom: 30px;
  /*フォントサイズとの比率で行の高さを設定する場合は数値(単位なし)を使用して行の高さを設定*/
  line-height: 1.9;
}

#item .item-info .order-table {
  width: 100%;
  margin-bottom: 20px;
}

#item .item-info .order-table .color, 
#item .item-info .order-table .size {
  width: 20%;
}

#item .item-info .order-table .quantity {
  width: 60%;
}

#item .item-info .order-table td {
  border-top: solid 1px #c3c3c3;
}

#item .item-info .order-table th,
#item .item-info .order-table td {
  font-weight: normal;
  text-align: center;
  padding: 10px;
  border-right: solid 1px #c3c3c3;
}

#item .item-info .order-table th:last-child,
#item .item-info .order-table td:last-child {
  border-right: none;
}

#item .item-info .order-table select {
  width: 100%;
  border: solid 1px #c3c3c3;
  padding: 0 10px;
  /*-moz-appearance: menulist; と -webkit-appearance: menulist; でセレクトボックスに右端の矢印を表示*/
  /*-moz-：Firefox/Mozilla対応 -webkit-：Google Chrome/Safari対応*/
  /*appearanceを使うときはベンダープレフィックス(各ブラウザに認識してもらうために追加する識別子)を利用する*/
  -moz-appearance: menulist;
  -webkit-appearance: menulist;
}

#item .item-info .cart-btn {
  width: 100%;
  background-color: #4b4b4b;
  color: #fff;
  display: block;
  line-height: 1;
  padding: 18px 0;
  margin-bottom: 30px;
  text-align: center;
}

#item .item-info .size-table {
  width: 100%;
  border-top: solid 1px #c3c3c3;
  border-left: solid 1px #c3c3c3;
}

#item .item-info .size-table .size{
  width: 16%;
}

#item .item-info .size-table .chest, 
#item .item-info .size-table .weist, 
#item .item-info .size-table .height {
  width: 28%;
}

#item .item-info .size-table th {
  background-color: #ecebeb;
}

#item .item-info .size-table th,
#item .item-info .size-table td {
  font-weight: normal;
  padding: 10px;
  border-right: solid 1px #c3c3c3;
  border-bottom: solid 1px #c3c3c3;
  text-align: center;
}

#footer {
  padding: 10px 0;
}

#footer .copyright {
  font-size: 0.625rem;
  text-align: center;
}

@media screen and (max-width: 896px) {
  .site-title {
    margin-bottom: 26px;
  }

  #header {
    margin-bottom: 0;
    border-bottom: none;
    padding: 36px 16px 16px 16px;
  }

  nav {
    /*左右の境界からあふれた場合どのように表示するか*/
    /*scroll ←内容が実際に切り取られるかどうかにかかわらずスクロールバーを表示*/
    overflow-x: scroll;
  }

  #item {
    flex-direction: column;
  }

  #item .item-image {
    max-width: 100%;
    margin: 0 0 10px 0;
  }

  #item .item-info {
    padding: 0 16px;
  }
  
}