/* CSS Document */

/* 日本地図DOM */
.japan_map {
  position: relative;
  box-sizing: border-box;
  margin: 0 auto;
  display: table;
  background-color: #E6F4FD;
}

/* 日本地図画像（スマホ対応用） */
.japan_map img {
  max-width: 100%;
  height: auto;
  border: 0;
  -webkit-backface-visibility: hidden;
}

/* 日本地図ボタン */
.japan_map .area_btn {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  cursor: pointer;
  border: 3px solid #333333;
  border-radius: 5px;
  background-color: #FFF;
  padding: 0.6em auto;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

/* ボタン配置（使用する日本地図画像により微調整） */
.japan_map .area_btn.area1 {
  top: 30%;
  right: 0;
  width: 30%;
}

.japan_map .area_btn.area2 {
  top: 58%;
  right: 11%;
  width: 13%;
}

.japan_map .area_btn.area3 {
  top: 56%;
  right: 27.5%;
  width: 13%;
}

.japan_map .area_btn.area4 {
  top: 65%;
  right: 44%;
  width: 13%;
}

.japan_map .area_btn.area5 {
  top: 52%;
  left: 20%;
  width: 25%;
}

.japan_map .area_btn.area6 {
  top: 70%;
  left: 0;
  width: 25%;
}

/* オーバーレイ */
.japan_map .area_overlay {
  display: none;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  background-color: #111;
  opacity: 0.5;
  cursor: pointer;
}

/* 選択前は表示を隠す */
.japan_map .pref_area {
  display: none;
}

/* 地域毎の都道府県リスト */
.japan_map .pref_list {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  z-index: 3;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 90%;
  background-color: #FFF;
}

.japan_map .pref_list>div {
  box-sizing: border-box;
  width: 50%;
  border: 1px solid #CCC;
  font-weight: bold;
  text-align: center;
  padding: 0.5em;
  cursor: pointer;
}

@media screen and (max-width: 768px) {

  /* スマホユーザー向けにボタン文字サイズを調整 */
  .japan_map .area_btn {
    font-size: 3vw;
  }
}

nav {
  text-align: center;
  margin: 50px auto;
}

nav.right {
  text-align: right;
  margin-right: 2%;
}

nav a {
  font-size: 0.9em;
  text-decoration: underline;
  cursor: pointer;
}

footer {
  margin: 5vh auto;
  margin-top: 10vh;
}

footer p {
  font-size: 0.6em;
  text-align: center;
}

@media screen and (min-width: 768px) {

  table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
  }

  table caption {
    /*background-color: #52c2d0;*/
    background-color: lightsalmon;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 30px;
    border: none;
    font-size: 1.5em;
    text-align: center;
    margin-top: 30px;
    border-radius: 15px;
  }

  table thead {
    background-color: rgb(178, 45, 141);
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 15px;
    box-sizing: border-box;
    margin: 10px 0;
  }

  table thead tr {
    border-bottom: solid 5px white;
  }

  table thead tr td {
    border-right: solid 3px white;
    padding: 15px;
    font-size: 1.2em;
    text-align: center;
  }

  table tbody tr {
    border-bottom: solid 2px white;
    margin: 2px 0;
  }

  table tbody tr:last-child {
    border-bottom: none;
  }

  table tbody th {
    position: relative;
    text-align: left;
    width: 35%;
    background-color: #e85c99;
    color: white;
    text-align: center;
    padding: 12px 0;
  }

  table tbody th:after {
    display: block;
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    top: calc(50% - 10px);
    right: -10px;
    border-left: 10px solid #e85c99;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  table tbody td {
    text-align: left;
    width: 70%;
    text-align: center;
    background-color: #eee;
    padding: 2px 0;
    font-size: 1.1em;
  }

  table tbody tr td.shopadress {
    text-align: left !important;
  }  

}

@media screen and (max-width: 768px) {

  table {
    width: 96%;
    margin: 0 auto;
    border-collapse: collapse;
    border: none;
  }

  table td,
  table th {
    display: block;
  }

  table caption {
    /*background-color: #52c2d0;*/
    background-color: lightsalmon;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
    border: none;
    font-size: 1.2em;
    text-align: center;
    margin-top: 20px;
    border-radius: 15px;
  }

  table thead {
    background-color: cornflowerblue;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 5px;
    box-sizing: border-box;
    margin: 10px 0;
    display: none;
  }

  table thead tr {
    /* border-bottom: solid 5px white; */
  }

  table thead tr td {
    /* border-right: solid 3px white; */
    padding: 7px;
    font-size: 1em;
    text-align: center;
  }

  table tbody {}

  table tbody tr {
    /* border-bottom: solid 2px white; */
    margin: 10px 0;
  }

  table tbody tr:last-child {
    border-bottom: none;
  }

  table tbody th {
    position: relative;
    text-align: left;
    width: 100%;
    background-color: #e85c99;
    color: white;
    text-align: center;
    padding: 12px 0;
    margin-top: 7px;
  }

  table tbody th:after {
    display: block;
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    top: calc(50% - 10px);
    right: -10px;
    border-left: 10px solid #e85c99;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  table tbody td {
    text-align: left;
    width: 100%;
    text-align: left;
    background-color: #eee;
    box-sizing: border-box;
    padding: 6px 5px;
    font-size: 1em;
    border: none;
  }

}