header {
  height: 3rem;
}
main {
  height: calc(100% - 5.5rem);
}
input {
  padding: 0.2em 0.5em;
}
select {
  padding: 0.2em 0.5em;
}
/* main layout */
#list-form {
  width: 100%;
  margin: 0;
  padding: 0;
}
#list-condition {
  display: none;
  position: absolute;
}
#list-pagination {
  height: 2rem;
}
#item-list {
  height: calc(100% - 2.5rem - 20px);
  overflow-y: auto;
}
.item-detail {
  display: none;
  position: absolute;
}
/* popup */
#list-condition.opened {
  display: block;
  top: 2%;
  left: 0;
  width: 100%;
  padding: 1rem;
  min-height: 80%;
  border: 1px solid #ccc;
  border-radius: 1em;
  background-color: #fff;
}
#list-condition p {
  line-height: 2rem;
}
#list-condition input {
  width: 6em;
}
#list-condition input[type="radio"] {
  width: 1em;
}
#list-condition input[type="checkbox"] {
  width: 1em;
}
#list-condition input[name="word"] {
  width: 18em;
}
#list-condition p>label {
  display: inline-block;
  width: 11em;
}
#list-condition .title {
  font-weight: bold;
  font-size: 1.2em;
  color: #1f6fcc;
  margin: 0 1em;
}
#list-condition-apply {
  position: absolute;
  right: 6em;
  width: 5em;
}
 #list-condition-close {
  position: absolute;
  right: 0;
  width: 5em;
  letter-spacing: 0.3em;
}
#list-condition  fieldset {
  margin-bottom: 1em;
  padding: 0.5em;
  border: 1px solid #ccc;
}
#list-condition .category-item {
  display: inline-block;
  width: 12em;
  min-width: calc(33% - 0.3em - 1px);
  color: #003d73;
  font-weight: bold;
}
#list-condition .category-group {
  display: flex;
  justify-content: space-around;
}
#list-condition .condition input+label {
  width: 5em;
}
#list-condition legend {
  color: #666;
  font-weight: bold;
}
#list-condition p>label:first-child {
  color: #666;
  font-weight: bold;
}
#list-condition .tag-group {
  width: 100%;
  padding: 0.2em 0.5em;
}
#list-condition .tag-group label {
  color: #666;
  font-weight: bold;
  display: inline-block;
  width: 50%;
}
#list-condition .tag-group select {
  max-width: calc(50% - 0.5em);
  min-width: 20%;
}

#list-condition .tt-price {
  width: 5em;
}
.tag-dialog div.tag-group:nth-of-type(odd) {
  background-color: #efffef;
}
.tag-dialog div.tag-group:nth-of-type(even) {
  background-color: #efefff;
}
#list-condition div.tag-group.invalid label{
  color: #ccc;
}

.item-detail.opened {
  display: block;
  background-color: #fff;
  top: 2%;
  left: 0;
  width: 100%;
  min-height: 90%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  background-color: #fff;

}
.item-detail .detail-title {
  font-size: 1.2em;
  margin: 1em;
  width: calc(100% - 8em);
}
.item-detail .button-panel {
  position: absolute;
  right: 1em;
  top: 0;
  width:  6em;
}
.item-detail .url-link {
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  word-wrap: break-word;
}

/* element property */
h2.feature {
  color: #f08300;
}
.yahoo-credit, .rakuten-credit {
  padding-top: 4px;
  padding-left: 6px;
  font-size: 16px;
  height: 20px;
}
button, .button, a.button {
  display: inline-block;
  border-radius: 0.2rem;
  color: #2b9dd3;
  border: 1px solid #2b9dd3;
  background-color: transparent;
  font-size: 1rem;
  width: 5rem;
  height: 1.6rem;
  line-height: 1rem;
  font-size: 1rem;
  cursor: pointer;
}
button[disabled], .button.disabled {
  color: #999;
  border-color: #999;
  cursor: default;
}
.item-number {
  display: inline-block;
  text-align: right;
  width: 5em;
  padding: 0 0.5em;
}
#list-condition {
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 0.5em;
}
.popup-page-button-base {
  position: absolute;
  margin: 0;
  padding: 0;
  top: 1rem;
  right: 1rem;
}
.button-panel {
  width: 15rem;
  margin: 2rem auto;
  text-align: center;
}
.button-panel button  {
  width: 6rem;
}
#list-pagination {
  padding: 0 0.5%;
  font-weight: bold;
  color: #666;
  border: 1px solid #ccc;
}
#list-pagination a,
#list-pagination button {
  margin: calc(0.2rem - 1px) 0;
}
#bottom-control {
  text-align: center;
}
#bottom-control button {
  color: #00f;
  border: none;
}
.item {
  list-style: none;
  border-bottom: 1px solid #ccc;
  /* height: 8rem; */
  padding: 1rem;
}
.item .title {
  display: block;
  color: #333;
}
.item-detail-open {
  width: 8em;
  margin: 0.3em 0;
  color: #f08300;
  border-color: #f08300;
}
.headline {
  margin: 0.2em 0;
  color: #004ea2;
}
.item img {
  display: inline-block;
  vertical-align: top;
  margin: 1rem;
}
.item .container {
  display: inline-block;
  padding: 1em;
  width: calc(100% - (146px + 4rem));

}
.item .property {
  min-height: calc(146px - 2.5em);
}
.item .description {
  margin: 1em 2em;
}
.middle-image {
  width: 146px;
  height: 146px;
}
.medium-image {
  width: 128px;
  height: 128px;
}
.image-container {
  margin: 0;
  padding: 0;
}
#bottom-control {
  list-style: none;
  padding: 1rem 0;
}
.no-items-message {
  font-size: 1.2em;
  text-align: center;
  margin: 2em;
  list-style: none;
}
em {
  font-weight: bold;
  font-style: normal;
}
mark.word {
  font-weight:bold;
  color: #000;
  background-color: #fdd000; 
}
.price {
  font-weight: bold;
  font-size: 1.2em;
  color: #003dcc;
}
.item .category {
  font-size: 0.8em;
  font-weight: bold;
  color: #2b9dd3;
  margin: 0 2em;
}
.item-detail .url-link {
  padding: 1em;
  background-color: #ececec;
  border-radius: 1em;
}
.store {
  color: #008cad;
  font-weight: bold;
}
.best-store {
  font-weight: bold;
  color: #fff;
  background-color: #f18e38;
  padding: 0 0.5em;
}
.p-mall-store {
  font-weight: bold;
  color: #fff;
  background-color: #3d9740;
  padding: 0 0.5em;
}
.shop-of-the-year {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url(/images/crown.svg);
  background-size: contain;
}
.brand-name {
  color: #008cad;
  font-weight: bold;
}
.tag-list {
  width: 80%;
  margin: 1em auto;
}
.tag-list caption {
  font-weight: bold;
  font-size: 0.8em;
  padding: 0.5em;
}
.tag-list .odd {
  background-color: #efffef;
}
.tag-list .even {
  background-color: #efefff;
}
.tag-list th, .tag-list td {
  padding: 0.1em 0.5em;
}
  
@media (max-width: 520px) {
  header {
    padding: 0 1rem;
  }
  .item img {
    margin: 2%;
    width: 30%;
    height: auto;
  }
  .item .container {
    padding: 2%;
    width: 62%;
  }

  #list-pagination button {
    width: 12%;
  }
  .item {
    padding: 1rem 2%;
  }
  .item .detail-title {
    margin: 0.5rem 2%;
    width: 98%;
  }
  .item .description {
    margin: 1rem 2%;
  }
  .item .title, .item-detail .detail-title {
    word-wrap: break-word;
  }
} 

