* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background-color: #f5f5f5;
}

.container {
  margin: 50px auto;
  padding: 0px;
}

.contents {
  width: 720px;
  height: 480px;
  margin: 20px auto;
  border: 1px solid #dddd;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  position: relative;
  overflow: hidden;
}

.box-1 {
  width: 40%;
}

.box-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box-2 {
  width: 60%;
  padding: 10px;
}

.form-signin {
  max-width: 400px;
  padding: 15px;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.text-muted {
  font-size: 14px;
}

.copyright.text-muted {
  font-size: 12px;
}

@media (max-width:767px) {
  body {
      padding: 10px;
  }

  .contents {
      width: 100%;
      height: 100%;
  }

  .box-1 {
      display: none;
  }

  .box-2 {
      width: 100%;
      height: 440px;
  }
}

h2{
  font-size: 2rem;
}

@media screen and (max-width: 400px) and (orientation: portrait) {
    h2 {
      font-size: 1.25rem !important;
    }
    .language {
      font-size: 12px !important;
    }
    .header-info {
      font-size: 12px !important;
    }
    .email-icon {
      font-size: 12px !important;
    }
    .search-word {
      font-size: 12px !important;
    }
    .general-notice {
      font-size: 11px !important;
    }
    .card-gutter {
      --bs-gutter-x: 0.15rem !important;
      --bs-gutter-y: 0.25rem !important;
    }
    .card-text {
        font-size: 11px !important;
    }
    .card-footer {
        font-size: 11px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    /* P8000000の商品画像設定 */
    .thumbnail {
      width: 30px !important;
      height: 30px !important;
      margin-right: 0.25rem !important;
    }
    .main-image {
      width: 100% !important;
      height: 200px !important;
    }
}

@media screen and (max-width: 600px) and (orientation: portrait) {
    h2 {
      font-size: 1.75rem !important;
    }
    table {
      font-size: 14px !important;
    }
    .language {
      font-size: 14px !important;
    }
    .header-info {
      font-size: 14px !important;
    }
    .email-icon {
      font-size: 14px !important;
    }
    .search-word {
      font-size: 14px !important;
    }
    .general-notice {
      font-size: 13px !important;
    }
    .card-gutter {
      --bs-gutter-x: 0.25rem !important;
      --bs-gutter-y: 0.25rem !important;
    }
    .card-text {
        font-size: 14px !important;
    }
    .card-footer {
        font-size: 14px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    .thumbnail {
      width: 60px !important;
      height: 60px !important;
      margin-right: 0.25rem !important;
    }
    .main-image {
      width: 100% !important;
      height: 350px !important;
    }
}

.card-gutter {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(0 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.card-gutter > * {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.container-xxl {
    max-width: 1920px;
}

.bg-navigator {
  background-color: rgb(167, 246, 191);
}

.home-icon {
  font-size: 24px;
}

.email-icon {
  font-size: 21px;
}

.search-category {
  background-color: rgb(167, 246, 191);
  border-radius: 0;
  font-size: 15px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.search-category option {
  background-color: white;
  color: black;
}

.search-word {
  border-radius: 0;
  font-size: 16px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.search-button {
  border-radius: 0;
  font-size: 16px;
  width: 40px;
  height: 40px;
}

.card{
  border: 1px solid #ddd;
  transition: border 0.3s ease;
}

.card:hover{
  border: 3px solid #adb5bd;
  background-color: #f8f9fa;
}

.card a{
  color: inherit;
  text-decoration: none;
}

.card-title-fp {
  height: 3em;
  text-align: center;
  white-space: normal;
  font-weight: bold;
  background-color: #f8d7da;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.card-title-cp {
  height: 3em;
  text-align: center;
  white-space: normal;
  font-weight: bold;
  background-color: #cff4fc;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.card-footer {
  width: 100%;
  bottom: 0%;
  color: rgb(233, 98, 29);
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-discount-pop {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ff0000;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  pointer-events: none;
}

.card-discount-ribbon {
  width: 75px;
  background: red;
  color: white;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  font-size: 12px;
  transform: translate(10%) rotate(-45deg);
  position: absolute;
  top: 10px;
  left: -20px;
  z-index: 20;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  pointer-events: none;
}

.discount-number {
  font-size: 14px;
  font-weight: 900;
}

.card-text-code {
  display: block;
}

.default-price {
  display: block;
  text-decoration: line-through;
  color: #666;
  font-weight: 400;
  font-size: 0.9em;
  margin-bottom: 2px;
}

.price-font {
  font-weight: 700;
  color: rgb(233, 98, 29);
  font-size: 1.1em;
}

.product-name {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.7rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 1.2em 0 0.9em;
  color: #333;
}

.spec-feature {
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
    margin: 1.8em 0 0.6em;
    color: #444;
}

.footer {
  background-color: rgb(167, 246, 191);
}

.thumbnail {
  width: 80px;
  height: 80px;
  margin-right: 0.5rem;
  object-fit: cover;
  cursor: pointer;
}
.main-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.carousel-control-prev-icon {
  background-color: rgba(108, 117, 125, 0.8);
  border-radius: 50%;
}
.carousel-control-next-icon {
  background-color: rgba(108, 117, 125, 0.8);
  border-radius: 50%;
}

.clickable-row {
  cursor: pointer;
}
