.product-info-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding: 5px;
  color: #666;
}

.product-info-breadcrumb a {
  color: #444;
  text-decoration: none;
}

.product-info-breadcrumb a:hover {
  text-decoration: underline;
}

.product-title {
  font-weight: 600;
  margin-bottom: 30px;
}

.product-title h1 {
  margin: 0;
}

.category-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  background: #f0f0f0;
  border-radius: 999px;
}

.product-header {
  display: grid;
  grid-template-areas:
    "icon switch"
    "icon children";
  justify-content: space-between;
}

.product-icon {
  grid-area: icon;
}

.product-icon img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.product-switch {
  grid-area: switch;
  width: 260px;
  height: 155px;
  flex-shrink: 0;
  padding: 20px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  top: 24px;
}

.product-switch .price {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.product-switch button {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.add-to-cart {
  background: #222;
  color: #fff;
}

.add-to-cart:hover {
  background: #000;
}

.product-details {
  float: right;
  width: 400px;
  padding: 10px 24px;
  margin: 0 0 0 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.product-details-header {
  display: block;
  grid-column: 1 / -1;
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  margin-bottom: 12px;
}

.product-details img {
  width: 100px;
  height: 100px;
  margin: 10px;
  display: block;
  float: left;
}

.product-details dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 0;
  font-size: 0.95rem;
}

.product-details dt {
  font-weight: 500;
  color: #666;
  font-size: 12px;
}

.product-details dd {
  margin: 0;
  color: #333;
}

.product-details a {
  color: #0066cc;
  text-decoration: none;
}

.product-details a:hover {
  text-decoration: underline;
}

.product-details ol {
  padding-inline-start: 0;
}

.product-description {
  margin: 24px 0 32px;
  padding: 0 20px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.product-description p {
  margin-bottom: 1.2em;
}

.product-description fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.accordion-item {
  grid-area: children;
  border-bottom: 1px solid #ddd;
  width: 400px;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 5px 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  opacity: 0.7;
}

.accordion-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.child-list {
  list-style: none;
  padding: 10px 0;
  margin: 0 0 0 5px;
}

.child-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.child-list a {
  width: 100%;
  text-decoration: none;
  color: #333;
  margin-right: 20px;
}

.child-list a:hover {
  text-decoration: underline;
}

.child-list span {
  width: 100px;
}

.generate-affiliate-button {
  position: fixed;
  right: 15px;
  top: 0;
  cursor: pointer;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 6px;
  color: #333;
  font-weight: bold;

  background: rgba(255, 255, 255, .3);

  /* ガラス感 */
  backdrop-filter: blur(.5px) saturate(180%);
  -webkit-backdrop-filter: blur(.5px) saturate(180%);

  /* 光沢 */
  border: 1px solid rgba(255, 255, 255, .35);

  /* 外側の影 */
  box-shadow:
    0 1px 3px rgba(0, 0, 0, .5),

    /* 内側のハイライト */
    inset 0 1px 3px rgba(255, 255, 255, .8),

    /* 内側の暗さ */
    inset 0 -8px 20px rgba(255, 255, 255, .08);
}

.generate-affiliate-button::before {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: inherit;

  background:
    radial-gradient(circle at 10% 10%,
      rgba(255, 255, 255, .55),
      rgba(255, 255, 255, 0) 20%);

  pointer-events: none;
}

.generate-affiliate-button::after {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: inherit;

  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .15),
      rgba(255, 255, 255, .05));

  pointer-events: none;
}

.generate-affiliate-button:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 3px rgba(0, 0, 0, .5),

    /* 内側のハイライト */
    inset 0 2px 5px rgba(255, 255, 255, .8),

    /* 内側の暗さ */
    inset 0 -8px 20px rgba(255, 255, 255, .08);
  transition: 0.2s;
}

#generate-affiliate-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 1000;

  backdrop-filter: blur(1px) saturate(180%);
  -webkit-backdrop-filter: blur(1px) saturate(180%);
}

#generate-affiliate-screen.enable {
  display: none;
}

#generate-affiliate-screen.active {
  display: block;
}

.generate-affiliate-link {
  width: 480px;
  max-width: 90%;
  padding: 20px;
  margin: 20px auto;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;

  animation: fadeInScale 0.2s ease;

  position: relative;
}

.generate-affiliate-link h1 {
  margin: 0 0 15px 0;
}

.generate-affiliate-link h3 {
  margin: 0;
  padding: 0;
}

.generate-affiliate-information {
  margin: 10px;
}

.generate-affiliate-link textarea {
  width: 200px;
  height: auto;
  resize: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid #aaa;
  border-radius: 4px;
  line-height: 0;
}

.close:hover {
  background: #f0f0f0;
}

.close:hover path {
  stroke: #666;
}


@media (max-width: 768px) {
  .product-info-breadcrumb {
    font-size: 0.8rem;
    padding: 4px 0;
    margin: 0 10px;
  }

  .product-title {
    margin: 0 5px 20px;
  }

  .product-title h1 {
    font-size: 22px;
    padding: 10px 5px;
  }

  .product-header {
    grid-template-areas:
      "icon"
      "switch"
      "children";
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .product-icon {
    text-align: center;
    margin-bottom: 20px;
  }

  .product-icon img {
    width: 180px;
    height: 180px;
  }

  .product-switch {
    width: calc(100% - 10px);
    height: auto;
    margin: 0 5px 20px;
    padding: 16px;
  }

  .product-switch .price {
    font-size: 1.4rem;
  }

  .accordion-item {
    width: 100%;
  }

  .product-details {
    float: none;
    width: calc(100% - 10px);
    margin: 20px 5px;
    padding: 16px;
  }

  .product-details img {
    float: none;
    display: block;
    margin: 10px auto 16px;
  }

  .product-details dl {
    grid-template-columns: 120px minmax(0, 1fr);
    font-size: 14px;
  }

  .product-details dd {
    word-break: break-all;
  }

  .product-description {
    padding: 0 10px;
    font-size: 1rem;
  }

  .child-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .child-list span {
    width: auto;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #666;
  }

  .generate-affiliate-button {
    top: auto;
    right: 3px;
    bottom: 0;
  }
}