/* トップページのクイズ案内バナー（Claude Design 2026-10-25） */
.quiz-banner-strip { padding: 20px 0 0; }
/* ===== ここからバナー（.quiz-banner の中だけに効きます） ===== */
.quiz-banner {
  --qb-deep: #194d22;
  --qb-green: #2f7b33;
  --qb-pale: #e8f4df;
  --qb-gold: #f4bd2a;
  --qb-cream: #fffdf7;
  --qb-hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  padding: 18px 28px 18px 0;
  background: var(--qb-pale);
  border: 1px solid #cfe3c0;
  border-radius: 12px;
  color: var(--qb-deep);
  font-family: inherit;
  text-decoration: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, box-shadow .2s;
}
.quiz-banner *, .quiz-banner *::before, .quiz-banner *::after { box-sizing: border-box; }
.quiz-banner::after {
  content: "";
  position: absolute; right: -30px; top: -40px;
  width: 220px; height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23b9d6a6' stroke-width='1.4'%3E%3Cpath d='M28 1 L55 16.5 L55 47.5 L28 63 L1 47.5 L1 16.5 Z'/%3E%3Cpath d='M28 63 L28 97 M0 80 L28 63 M56 80 L28 63'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 34px auto;
  -webkit-mask: radial-gradient(circle at 70% 40%, #000 10%, transparent 65%);
          mask: radial-gradient(circle at 70% 40%, #000 10%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.quiz-banner .qb-art, .quiz-banner .qb-text, .quiz-banner .qb-gift, .quiz-banner .qb-btn { z-index: 1; }
.quiz-banner:hover { border-color: var(--qb-green); box-shadow: 0 6px 18px -10px rgba(25, 77, 34, .45); }
.quiz-banner:focus-visible { outline: 3px solid var(--qb-gold); outline-offset: 3px; }

.quiz-banner .qb-art { position: relative; align-self: stretch; min-height: 84px; }
.quiz-banner .qb-hex { position: absolute; clip-path: var(--qb-hex); }
.quiz-banner .qb-hex.h1 { width: 62px; height: 54px; left: 34px; top: 50%; margin-top: -27px; background: var(--qb-gold); }
.quiz-banner .qb-hex.h2 { width: 40px; height: 35px; left: 4px; top: 50%; margin-top: -48px; background: var(--qb-deep); }
.quiz-banner .qb-hex.h3 { width: 30px; height: 26px; left: 12px; top: 50%; margin-top: 20px; background: var(--qb-green); opacity: .55; }
.quiz-banner .qb-hex.h4 { width: 24px; height: 21px; left: 92px; top: 50%; margin-top: 18px; background: #f9d877; }
.quiz-banner .qb-bee { position: absolute; left: 70px; top: 50%; width: 52px; margin-top: -44px; transform: rotate(-10deg); transition: transform .3s; }
.quiz-banner:hover .qb-bee { transform: rotate(-4deg) translate(3px, -3px); }

.quiz-banner .qb-text { position: relative; min-width: 0; }
.quiz-banner .qb-title { display: block; margin: 0 0 2px; font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.quiz-banner .qb-desc { display: block; margin: 0; font-size: 15px; line-height: 1.6; color: #3d5a40; }

.quiz-banner .qb-gift {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--qb-cream);
  border: 1.5px dashed #d9a412;
  border-radius: 10px;
  font-size: 15px; font-weight: 700; line-height: 1.45;
  color: var(--qb-deep);
  white-space: nowrap;
}
.quiz-banner .qb-gift::before { content: ""; flex: 0 0 auto; width: 18px; height: 16px; clip-path: var(--qb-hex); background: var(--qb-gold); }

.quiz-banner .qb-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px 0 26px;
  background: var(--qb-deep);
  color: #fff;
  border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: .1em;
  white-space: nowrap;
  transition: background .2s;
}
.quiz-banner .qb-btn::after { content: ""; width: 8px; height: 8px; border: solid var(--qb-gold); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); margin-left: -2px; }
.quiz-banner:hover .qb-btn { background: var(--qb-green); }

@media (max-width: 960px) {
  .quiz-banner { grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; }
  .quiz-banner .qb-gift { grid-column: 2; grid-row: 2; justify-self: start; }
  .quiz-banner .qb-btn { grid-column: 3; grid-row: 1 / span 2; }
  .quiz-banner .qb-art { grid-row: 1 / span 2; }
  .quiz-banner .qb-hex.h1 { left: 26px; } .quiz-banner .qb-bee { left: 58px; } .quiz-banner .qb-hex.h4 { left: 80px; }
}
@media (max-width: 600px) {
  .quiz-banner {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 12px 12px 0;
    min-height: 0;
  }
  .quiz-banner .qb-art { grid-row: 1; grid-column: 1; min-height: 56px; }
  .quiz-banner .qb-text { grid-column: 2 / -1; }
  .quiz-banner .qb-hex.h1 { width: 40px; height: 35px; left: 14px; margin-top: -14px; }
  .quiz-banner .qb-hex.h2 { width: 24px; height: 21px; left: 2px; margin-top: -30px; }
  .quiz-banner .qb-hex.h3, .quiz-banner .qb-hex.h4 { display: none; }
  .quiz-banner .qb-bee { left: 28px; width: 36px; margin-top: -34px; }
  .quiz-banner .qb-title { font-size: 18px; letter-spacing: .01em; line-height: 1.35; }
  .quiz-banner .qb-desc { font-size: 14px; line-height: 1.5; }
  .quiz-banner .qb-gift { grid-column: 1 / 3; grid-row: 2; margin-left: 12px; padding: 5px 10px; font-size: 13px; line-height: 1.45; justify-self: stretch; white-space: normal; }
  .quiz-banner .qb-gift::before { display: none; }
  .quiz-banner .qb-btn { grid-column: 3; grid-row: 2; align-self: stretch; min-height: 44px; padding: 0 14px 0 18px; font-size: 15px; letter-spacing: .06em; }
  .quiz-banner::after { right: -60px; top: -60px; }
}
@media (prefers-reduced-motion: reduce) { .quiz-banner, .quiz-banner * { transition: none !important; } }
/* ===== バナーここまで ===== */
