/* Origin css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  /* background-color: #004080; */
  /* color: #ffffff; */
  background-image: url(/assets/images/header_back.webp);
  background-repeat: no-repeat;
  object-fit: cover;
  background-size: 100%;
}

header h1 {
  font-size: 26px;
}

header button {
  background: none;
  border: none;
  cursor: pointer;
}

header button img {
  width: 45px;
  height: 36px;
  filter: invert(1);
}

header a {
  color: white;
  text-decoration: none;
}

.top_address {
  font-size: 0.8rem;
  width: 100%;
  /* max-width: 320px; */
  padding: 10px 20px;
  /* margin: auto; */
}

@media screen and  (min-width: 640px) {
  .wide_lined {
    display: flex;
    gap: 5px;
  }
}

h2 {
  font-feature-settings: "palt";
}

.sale .item h5 {
  text-wrap: balance;
}

input[type="search"], input[type="text"], textarea {
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

select {
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type=radio] {
  margin-right: 6px;
  transform: scale(1.5);
}

.main {
  padding: 20px;
  background-color: #f9f9f9;
  width: 100%;
  max-width: 640px;
  margin: auto;
}

.main .title {
  font-weight: bold;
  font-feature-settings: "palt";
}

.round_box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  margin-top: 1rem;
}

.round_box_above {
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 12px 12px 6px;
  background-color: #eee;
  /* margin-bottom: 2rem; */
}

.round_box_below {
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  padding: 12px;
  background-color: #fff;
  margin-bottom: 2rem;
}

.hidden_area {
  display: none;
}

.small {
  font-size: 0.8em;
}

.margin_bottom_1rem {
  margin-bottom: 1rem;
}

.margin_bottom_half_rem {
  margin-bottom: 0.5rem;
}

.right_aligned {
  text-align: right;
}

.center_aligned {
  text-align: center;
}

.lined {
  display: flex;
  gap: 4px;
  align-items: center;
}

.stacked {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.underlined {
  padding-bottom: 0.5rem;
  border-bottom: #333 1px solid;
  margin-bottom: 1rem;
  padding-left: 4px;
}

p.indented {
  margin-top: 0.5rem;
  margin-left: 1rem;
  text-indent: -1rem;
}

th, dt, .title, .sub-title {
  font-feature-settings: "palt";
}

p, dd, li {
  line-height: 1.6;
  text-align: justify;
}

.news dd {
  /* border-left: #333 4px solid; */
  padding-left: 8px;
  color: #000;
  margin-left: 8px;
}

.news dd > span {
  display: block;
  margin-bottom: 0.5rem;
}

.news dd img {
  display: block;
  width: 100%;
  /* max-width: 240px; */
  padding-bottom: 0.5rem;
}

aside.menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 12px;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 100);
  height: 100%;
  overflow-y: scroll;
  overscroll-behavior: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  width: 85%;
  max-width: 500px;
}

aside.menu .close {
  position: absolute;
  cursor: pointer;
  right: 1rem;
  top: 1rem;
  width: 48px;
  height: 48px;
}

aside.menu .menu_win_title {
  margin-bottom: 0.5rem;
}

aside.menu ul.main_link {
  list-style: none;
  padding: 0;
  margin: 60px 0;
}

aside.menu ul.main_link a, aside ul.categories a, ul.item_list a {
  display: block;
  padding: 4px;
}

aside.menu ul.categories {
  padding-left: 2rem;
  margin-bottom: 60px;
}

aside.menu ul.categories li a::before {
  content: url('/assets/images/bullet_right.svg');
  color: #333;
  padding-right: 6px;
}

aside.menu .keyword_search {
  margin-bottom: 60px;
}

aside.menu .keyword_search .lined {
  margin-left: 2rem;
  gap: 0.5rem;
}

aside.menu .social_media_links ul {
  display: flex;
  gap: 1rem;
  margin-bottom: 60px;
  align-items: center;
}

aside.menu .social_media_links img {
  width: 48px;
}

aside.menu .calendar {
height: 430px;
}

footer {
background-color: #ccc;
padding: 1rem;
}

footer ul {
display: flex;
justify-content: center;
flex-wrap: wrap;
}

footer ul li a {
padding: 12px;
}

footer .footer_address {
  width: 88%;
  max-width: 480px;
  margin: 20px auto;
}

.footer_address .shop_name {
  font-size: 16px;
  text-align: center;
}

/* top */
.news dl {
  padding: 12px;
  line-height: 1.8;
}
.news dl dt {
  cursor: pointer;
  padding: 6px;
}

.news dl dt::after {
  content: url('/assets/images/bullet_right.svg');
  padding-left: 2px;
  /* transform: scale(0.1); */
}

.news dl dt.clicked::after {
  content: url('/assets/images/bullet_down.svg');
}

.news dl dd {
  display: none;
  margin-bottom: 10px;
}

.category_search .categories {
  display: flex;
  justify-content: space-evenly;
  /* gap: 4px; */
}

.category_search .categories div {
  width: 5rem;
  font-size: 0.9rem;
  border: 1px solid #333;
  padding: 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category_search .categories div a {
  text-decoration: none;
}

.sale .item {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sale img, .product_list img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
} 

/* product list */

@media screen and (min-width: 640px) {
  .product_list, .sale .items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.product_list a {
  display: flex;
  gap: 0;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

/* detail */
.breadcrumb {
  margin-bottom: 0.5rem;
}

.breadcrumb span, .breadcrumb a {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.product_detail .big_photo img {
  width: 100%;
  max-width: 560px;
  /* height: 360px; */
  object-fit: contain;
  display: block;
  margin: auto;
}

.product_detail .product_photos {
  margin-bottom: 1rem;
}

.product_detail {
  display: flex;
  flex-direction: column;
}

.product_detail .product_photos {
  display: flex;
  gap: 1px;
  flex-direction: column;
}

.product_detail .thumbnails {
  display: flex;
  /* justify-content: space-between; */
  width: 100%;
  height: 80px;
  overflow: hidden;
  margin: auto;
  max-width: 360px;
  gap: 1px;
  align-items: flex-start;
  cursor: pointer;
}

.product_detail .thumbnails img {
  display: block;
  width: 25%;
  object-fit: contain;
  max-width: 90px;
  border-right: 1px solid #ccc;
}

.price_special {
  color: #f8316d;
}

.price_original {
  text-decoration: line-through;
}

.product_detail p:last-child {
  margin-bottom: 0;
}

button[type=submit] {
  padding: 4px 12px;
  background: #7724f5;
  color: #fff;
  border: none;
  border-radius: 4px;
  display: block;
  margin: 1rem auto;
  white-space: nowrap;
  cursor: pointer;
}

/* profile */
.policy dl, .news dl {
  padding-left: 24px;
  padding-right: 24px;
}

.policy dt {
  font-weight: bold;
  padding-bottom: 8px;
  border-bottom: 1px dotted #ddd;
  margin-bottom: 8px;
}

.policy dd {
  margin-bottom: 22px;
}

.policy dd:last-child {
  margin-bottom: 0;
}

.policy dd ol {
  padding-left: 20px;
}

/* cart */
.checkout_progress {
  display: flex;
  justify-content: space-between;
}

.checkout_progress a:first-child:before {
  content: '< ';
}

.checkout_progress a:last-child::after {
  content: ' >';
}

.checkout_progress a {
  display: block;
}

.back-button::before {
  content: '< ';
}

.lined input[type="text"] {
  width: 100%;
}

.lined label.form_label {
  width: 120px;
  flex-shrink: 0;
}

.checkout th, .checkout td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.checkout td {
  font-size: 0.9rem;
}

.child_scroll {
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
  padding-top: 14px;
}

.table_tip {
  display: block;
  font-size: 0.8em;
  color: #666;
  top: 0px;
  position: absolute;
}

@media (min-width: 640px) {
  .table_tip {
    display: none;
  }
}

ul.transport_note, ul.pay_note {
  font-size: 0.9em;
  color: #666;
  margin-left: 1rem;
  list-style: disc;
}

ul.transport_note li, ul.pay_note li {
  margin-bottom: 0.25rem;
}

sup {
  font-size: 0.6rem;
  color: #fe3866;
}

/* link */
.keyword_search {
  margin: 1rem auto;
}

.keyword_search a {
  padding: 8px;
  border: #333 1px solid;
  margin: 4px;
  text-decoration: none;
  line-height: 3.2;
}

ul.link_list a {
  padding: 4px;
}

/* guide */
.guide ul.guide_index {
  list-style: none;
}

.guide img {
  width: 50%;
  max-width: 250px;
  height: auto;
  margin: auto;
  display: block;
  margin-bottom: 1rem;
}

.guide .step_content {
  display: flex;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid black;
}

.guide .step_content:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.guide h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.guide h4:first-child {
  margin-top: 0.5rem;
}

.guide p > a {
  padding: 0 4px;
} 
.guide a.top {
  display: block;;
  margin-bottom: 2rem;
  text-align: right;
  text-decoration: none;
}

.guide a.top::after {
  content: '\025b2';
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.guide table tr {
  padding: 8px;
  border-bottom: 1px solid black;
}

.guide table tr:first-child {
  border-top: 1px solid black;
}

.guide td, .guide th {
  padding: 8px;
}

.guide ol, .guide ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.guide ul {
  list-style: disc;  
}

.guide ol li {
  margin-bottom: 0.5rem;
}
