.local_nav ul {
    border-color: var(--text);
    border-style: solid;
    border-width: 1px 0 0 1px;
    padding:0;
    margin: 10px 0 40px;
}

.local_nav ul:before,.local_nav ul:after {content:" ";display:table}
.local_nav ul:after {clear:both}

.local_nav li {
    float: left;
    width: 50%;
    border-color: var(--text);
    border-style: solid;
    border-width: 0 1px 1px 0;
    text-align: center;
    list-style-type: none;
}
.local_nav li a {
    padding: 16px;
    font-weight: bold;
    color: var(--text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.local_nav li a:hover {
    background: #f3f3f3;
    color: var(--accent);
}
.local_nav li.active {
    background: #f3f3f3;
}
.local_nav li.active a {
    color: var(--accent);
}
#welcome_message{
  width:100%;
  margin:0 0 20px;
  padding:0;
  text-align: left !important;
}
.message_pt{
  width:100%;
  margin:0 0 20px;
  padding:0;
}
.message_pt{
  width:100%;
  margin:0 0 20px;
  padding:0;
}
.message_pt .text-primary{
  font-size:1.1em;
  color:var(--caution)!important;
}
.message_pt .pt_riyo{
  font-size:0.8em;
}

.friend-code-wrapper{
  background: #f3f3f3;
  border-radius: var(--radius);
  padding:4px 20px 20px;
  margin:40px auto;
  max-width:768px;
}
.friend-code-wrapper H3{
font-size:20px;
line-height: 1rem;
margin:20px 0;
padding:0;
font-weight: 400;
}
.friend-code-wrapper p .friend-accent{
color:var(--caution)!important;
}
.friend-code-wrapper p .friend-small{
font-size:0.8em;
}
.friend-code{
  width:100%;
  margin:20px 0 10px;
  padding:0;
}
.friend-code p{
  font-size:0.9em;
}
.friend-code input{
  border-radius: var(--radius);
  padding:10px;
  margin:0;
  width:100%;
  border: 1px #000 solid;
}

#detail_box__body{
  margin:0 auto;
  max-width:880px;
}
.unsubscribe_box h3 {
    font-size: 20px;
}

#item_list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin:20px 0;
  padding:0;
}

#item_list > div,
#item_list .product_item {
  min-width: 0;
}

.product_item {
  position: relative;
  border: 1px solid #ddd;
  padding: 12px;
  background: #fff;
  box-sizing: border-box;
}
.item_photo {
  overflow: hidden;
  margin-bottom: 10px;
}

.item_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item_photo img:hover{
  opacity:.6;
}
.item_name:hover{
  text-decoration: underline;
}

.product_item dl {
  margin: 0;
}

.item_name {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  height: auto !important;
}

.item_price {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.favorite_delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 2;
  box-sizing: border-box;
}

.favorite_delete::before,
.favorite_delete::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 6px;
  width: 16px;
  height: 1.5px;
  background: #000;
}

.favorite_delete::before {
  transform: rotate(45deg);
}

.favorite_delete::after {
  transform: rotate(-45deg);
}

.product_item > a {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media screen and (max-width: 1024px) {
  #item_list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  #item_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product_item {
    padding: 10px;
  }

  .favorite_delete {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }
}

#favorite_list_box__body .intro,
#delivery_list_box__customer_addresses .intro{
  font-size:1rem;
}


#delivery_address_list {
  margin-top: 16px;
  width:100%;
}

.deliwidth{
  max-width:900px;
  margin:0 auto;
}

#delivery_address_list .addr_box {
  border-top: 1px solid #777;
}

#delivery_address_list .addr_box:last-child {
  border-bottom: 1px solid #777;
}

#delivery_address_list .column.is-edit {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

#delivery_address_list label {
  display: block;
  flex: 1;
  margin: 0;
}

#delivery_address_list .address {
  margin: 0;
  line-height: 1.5;
}

#delivery_address_list .btn_edit {
  margin: 0;
  flex: 0 0 auto;
}

#delivery_address_list .btn_edit:first-of-type {
  margin-left: auto;
}

#delivery_address_list .btn_edit + .btn_edit {
  margin-left: 8px;
}

#delivery_address_list .btn_edit a {
  display: block;
}

#delivery_address_list .btn_edit button {
  white-space: nowrap;
}





.order_detail dt {
    float: left;
    font-weight: bold;
}
.order_detail dd {
    padding-left: 7em;
}



.historylist_column {
    border-top: 1px solid #ccc;
    margin: 0;
}
.historylist_column > div {
    padding: 0;
}
.historylist_column .order_date {
    margin: 8px 0;
}
.historylist_column .table.item_box {
    border-top: 1px dotted #ccc;
}
.historylist_column .table.item_box .td {
    vertical-align: middle;
}
.historylist_column .order_date {
    font-size: 16px;
    font-size: 1.6rem;
}
.historylist_column .table.item_box .tbody .item_detail {
    padding: 8px 0;
    text-align: left;
}
.historylist_column .item_box .item_photo {
    padding: 8px 0;
    width: 20%;
    margin-bottom: 0;
    max-width: none;
    min-width: 100px;
}
.historylist_column .item_box .item_detail .item_name {
    font-weight: bold;
}
.historylist_column .item_box .item_detail .item_price {
    font-weight: normal;
    margin: 4px 0 8px;
}
.historylist_column + .pagination {
    margin-top: 0;
    border-top: 1px solid #ccc;
}

.mail_list dl {
    margin-bottom: 8px;
    border-bottom: 1px dotted #ccc;
}
.mail_list dl dt {
    margin-bottom: 4px;
}
.mail_list dl dd {
    margin-bottom: 8px;
}

.address_table .icon_edit {
    width: 8.33333%;
    vertical-align: middle;
}
.address_table .icon_edit a .cb {
    color: #b8bec4;
    fill: #b8bec4;
    font-size: 2rem;
}

.unsubscribe_box {
    text-align: center;
}
.unsubscribe_box .icon {
    font-size: 100px;
    font-size: 10rem;
    color: #E7E7E7;
}
.unsubscribe_box h3 {
    font-size: 16px;
    font-size: 1.6rem;
    margin: 0 0 16px;
}

#entry_birth select {
  margin: 0 8px;
}
#entry_birth select:first-child {
  margin-left: 0;
}
#entry_sex .radio {
  display: inline-block;
  margin-right: 10px;
}
#entry_sex .radio input[type="radio"] {
  margin-right: 10px;
}

.mypage .dl_table dt label {
  font-weight: bold;
}


/* Error Page */

.message_box {
  text-align: center;
  padding-bottom: 50px;
}
.message_box .icon {
  font-size: 100px;
  font-size: 10rem;
  color: #ccc;
}
.message_box h1 {
  font-size: 16px;
  font-size: 1.6rem;
  margin: 0 0 16px;
}
.message_box .btn_group {
  margin-top: 30px;
}
.error_page #contents {
  background: inherit;
}

@media screen and (min-width: 768px){
  .local_nav li {
      width: 16.6666%;
  }

  .historylist_column {
      border-top: 1px solid #ccc;
      margin: 0;
  }
  .historylist_column .order_date {
      font-size: 20px;
      font-size: 2rem;
      margin-top: 16px;
  }
  .historylist_column .table.item_box:first-child {
      border-top: 0 none;
  }
  .historylist_column .item_box .item_photo {
      min-width: 130px;
  }
  .historylist_column + .pagination {
      padding-top: 16px;
  }
 
.message_box h1 {
  font-size: 24px;
  font-size: 2.4rem;
}
}