body {
    margin: 0;
    font-family: 'Noto Sans JP', Arial, sans-serif;
    background: #f5f5f5;
}

header {
    background: #f96f00;
    color: white;
    padding: 10px;
}

.top-banner {
    text-align: center;
    margin-bottom: 10px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.content {
    flex: 3;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar {
    flex: 1;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ad-header, .ad-sidebar {
    background: #ddd;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
}

.ad-header img {
  max-width: 100%;
  height: auto;
}

.navbar-brand {
  font-size: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash {
  animation: flash-bg 1s ease-in-out 2;
}
@keyframes flash-bg {
  0%   { background-color: #fff59d; }
  50%  { background-color: #fff176; }
  100% { background-color: transparent; }
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 40px;
}

footer nav a {
    color: #ffcc99;
    margin: 0 10px;
    text-decoration: none;
}

/* ─── Product Card Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.product-card-img-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-card-img-wrap img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-card-btn {
  display: block;
  text-align: center;
  padding: 8px 16px;
  border: 1.5px solid #333;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
}

.product-card-btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

/* ─── Sidebar Ad Block ─── */
.sidebar-ad-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
}

/* ─── Product Page Prose ─── */
.prose {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.prose img {
  float: right;
  clear: right;
  width: 220px !important;
  max-width: 45% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 0 0 16px 20px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#action_button_1 img,
#action_button_2 img {
  float: none !important;
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.prose img:first-of-type {
  float: none !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 24px !important;
}


.prose h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 20px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
  margin-top: 1.5em;
}

.prose h3 {
  margin-top: 1.5em;
  font-weight: bold;
}

.prose p {
  margin: 1em 0;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}

.prose a {
  color: #007bff;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* ─── Back Button (product page top) ─── */
.btn-back {
  background: none;
  border: 1.5px solid #555;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.btn-back:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  background-color: #f57c00;
  border: none;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover {
  background-color: #ef6c00;
  text-decoration: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Overlay System — do not modify ─── */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.overlay-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

.overlay-variant-blur-white {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.3);
}

.overlay-variant-blur-dark {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
}

.overlay-variant-solid-white {
  backdrop-filter: none;
  background: white;
}

.overlay-variant-solid-black {
  backdrop-filter: none;
  background: black;
  opacity: 0.9;
}

.btn {
  padding: 20px 40px;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: none;
  text-decoration: none;
}

.btn-primary { background-color: #007bff; color: white; }
.btn-danger { background-color: #dc3545; color: white; }
.btn-success { background-color: #28a745; color: white; }
.btn-warning { background-color: #ffc107; color: black; }

.btn-outline-primary { background-color: transparent; border: 2px solid #007bff; color: #007bff; }
.btn-outline-danger { background-color: transparent; border: 2px solid #dc3545; color: #dc3545; }
.btn-outline-success { background-color: transparent; border: 2px solid #28a745; color: #28a745; }
.btn-outline-warning { background-color: transparent; border: 2px solid #ffc107; color: #ffc107; }
