@charset "UTF-8";

.page-title a {
  color: #fff;
}

#input-area {
  margin: 10px auto;
  overflow: hidden;
}
#text {
  padding: 4px 8px;
  width: 100%;
  height: auto;
  min-height: 2em;
  max-height: calc(100vh - 100px);
  field-sizing: content;
  resize: none;
  overflow-y: auto;
  word-break: break-all;
  line-break: anywhere;
  border: 1px solid #99c;
  border-radius: 4px;
}
#toggle-deck-area {
  margin-top: 0.5rem;
  text-align: center;
}

#card-area {
  position: relative;
  width: 264px;
  height: 450px;
  margin: auto;
  background: url("../@card-img/_0.png") transparent no-repeat center center;
  background-size: cover;
  cursor: pointer;
}
#card-image {
  width: 264px;
  height: 450px;
  margin: auto;
  background: none transparent no-repeat center center;
  background-size: cover;
  display: none;
}
#card-image a {
  display: block;
  width: 264px;
  height: 450px;
  text-indent: -9999px;
  overflow: hidden;
}

#result-area {
  position: relative;
  display: none;
  z-index: 10;
  min-height: 450px;
  margin: -450px auto 1rem;
  padding: 20px 0 5px;
  background: rgba(247, 240, 255, 0.9);
}
#result-area h3 {
  margin: 1rem 0;
  font-family: 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #333;
  text-shadow: 0 0 3px #ffffff, 0 0 5px #ffffff;
}
#result-area strong{
  font-weight: 700;
}

.buttons {
  margin: 3.25rem auto 1.75rem;
  text-align: center;
}

.detail {
  display: none;
}
.detail .detail-item h3 {
  margin: 30px auto 5px;
  padding: 0;
}
.detail .detail-item h4 {
  margin: 30px auto 5px;
  text-align: center;
  font-weight: 700;
}
.detail .detail-item p {
  padding: 0;
  letter-spacing: 0.075em;
  line-height: 1.75;
}
.detail #detail-keywords p {
  text-align: center;
}
.detail .detail-item dl {

}
.detail .detail-item dt {
  text-align: center;
  font-weight: 700;
}
.detail .detail-item dt:before {
  content: "－ ";
}
.detail .detail-item dt:after {
  content: " －";
}
.detail .detail-item dd {
  margin-bottom: 10px;
}

#ad {
  margin-top: 1em;
  padding-top: 1em;
  padding-bottom: 1.5em;
  text-align: center;
  border-top: 5px dotted #dddddd;
  border-bottom: 5px dotted #dddddd;
}
#ad p {
  margin-top: 1em;
}
#ad .msg {
  font-size:12px;
  color: #999999;
}

#attention {
  margin: 12px auto 10px;
  max-width: 320px;
  font-size: 11px;
  text-align: left;
  color: #aaaaaa;
}

#wait {
  position: fixed;
  z-index: 100;
  display: none;
  width: 300px;
  top: 250px;
  left: calc( 50% - 150px );
  padding: 30px 20px 10px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 4px 1px #dbf;
}
#wait p {
  display: none;
  text-align: center;
}
#wait-frame {
  width: 240px;
  height: 100px;
  border: 0 none;
}

#preparing {
  position: absolute;
  margin: 0 10%;
  top: 150px;
  width: 80%;
  line-height: 5;
  text-align: center;
  color: #fff;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}
#tap {
  position: absolute;
  display: none;
  top: 150px;
  left: calc(50% - 25px);
  height: 100px;
  width: auto;
}
#normal-msg, #blocked-msg {
  display: none;
  position: absolute;
  font-size: 14px;
  line-height: 1.2;
  width: 90%;
  padding: 10px;
  left: 5%;
  bottom: 25%;
  color: #ffc;
  background: rgba(0,0,0,0.7);
  border-radius: 10px;
}
#blocked-msg {
  z-index: 10000;
}


.amazon-product-link {
  margin-top: 4em;
  margin-bottom: -2em;
  text-align: center;
}
.amazon-product-link:before {
  content: "PR";
  display: block;
  opacity: 0.5;
  font-family: monospace;
  font-size: 12px;
}
.amazon-product-link img {
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 320px;
}
.amazon-keyword-link {
  position: relative;
  margin-top: 2em;
  margin-bottom: 3em;
  border-radius: 5px;
  padding: 1.5em 0;
  letter-spacing: 0.075em;
}
.amazon-keyword-link:before {
  position: absolute;
  content: url(icon-amazon-12.png);
  top: 2px;
  right:0;
  opacity: 0.5;
  font-family: monospace;
  font-size: 12px;
  line-height: 20px;
}
.amazon-keyword-link:after {
  position: absolute;
  content: "PR";
  top: 0px;
  right:14px;
  opacity: 0.5;
  font-family: monospace;
  font-size: 12px;
  line-height: 20px;
}
.amazon-keyword-link a {
  display: inline-block;
  color: #66f;
  text-decoration: underline;
}  
.amazon-keyword-link a:hover {
  color: #f33;
}  

#ad-detail {
  margin: 48px 0 54px;
  text-align:center;
}

.a8link {
  position: relative;
  margin: 0.5em auto 2.5em;
  padding: 1em 1em;
  text-align: center;
  background: rgba(255,255,255, 0.35);
}
.a8link:before {
  position: absolute;
  content: "PR";
  top: 0px;
  right:5px;
  opacity: 0.5;
  font-family: monospace;
  font-size: 12px;
  line-height: 20px;
}
.a8link a {
  display: inline-block;
  padding: 0.75em 1em;
  background: #6a5acd;
  color: #fff;
  border-radius: 5px;
}

@media (display-mode: standalone){
  /* ここにPWA環境下でのみ実行する設定を記述 */
}
