/* ==============================
   横浜銭湯スタンプラリー 2026
   Campaign Page Styles
   ============================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors from poster */
  --teal: #00a5a8;
  --teal-dark: #008b8e;
  --teal-light: #e6f7f7;
  --teal-bg: #f0fafa;
  --orange: #f29c38;
  --orange-light: #fff5e6;
  --red: #e8503a;
  --yellow: #fdd835;
  --blue: #4a90d9;
  --pink: #f28da0;
  --navy: #2c3e6b;
  --gray-dark: #333333;
  --gray-medium: #666666;
  --gray-light: #999999;
  --gray-border: #ddd;
  --bg-white: #ffffff;
  --bg-cream: #fefcf7;

  /* Typography */
  --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-accent: "Zen Maru Gothic", "Rounded Mplus 1c", "Noto Sans JP", sans-serif;

  /* Spacing */
  --section-padding: 60px 20px;
  --container-max: 800px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--gray-dark);
  background-color: var(--bg-white);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero Section ---------- */
.hero {
  background-color: var(--bg-white);
  text-align: center;
  padding: 0;
  position: relative;
}

.hero__image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ---------- Sub-header banner ---------- */
.sub-banner {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.sub-banner__icon {
  display: inline-block;
  margin-right: 6px;
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--section-padding);
}

.section__title {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section__title-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.section__title::before,
.section__title::after {
  content: "★";
  color: var(--orange);
  margin: 0 10px;
  font-size: 1.1rem;
}

.section__subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 30px;
}

/* ---------- How to participate ---------- */
.howto {
  background-color: var(--bg-cream);
}

.howto__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  border-left: 4px solid var(--teal);
}

.step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-family: var(--font-accent);
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-dark);
  font-family: var(--font-accent);
}

.step__text {
  font-size: 0.9rem;
  color: var(--gray-medium);
  line-height: 1.8;
}

.step__note {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- Download card section ---------- */
.download {
  background: linear-gradient(180deg, var(--teal-light) 0%, var(--bg-white) 100%);
}

.download__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.download__card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--teal-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 165, 168, 0.15);
}

.download__card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.download__card-title {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.download__card-desc {
  font-size: 0.8rem;
  color: var(--gray-medium);
  margin-bottom: 16px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-accent);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(0, 165, 168, 0.3);
}

.btn--primary:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 165, 168, 0.4);
}

.btn--secondary {
  background: white;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn--secondary:hover {
  background: var(--teal-light);
  opacity: 1;
}

.btn--disabled {
  background: var(--gray-border);
  color: var(--gray-light);
  cursor: not-allowed;
  box-shadow: none;
}

.btn--disabled:hover {
  transform: none;
  box-shadow: none;
  opacity: 1;
}

/* ---------- Prize Section ---------- */
.prizes {
  background-color: var(--bg-cream);
}

.prize-category {
  margin-bottom: 36px;
}

.prize-category__title {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.prize-category__title--gold {
  background: linear-gradient(135deg, #f7c948, #f29c38);
  color: white;
}

.prize-category__title--silver {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
}

.prize-category__desc {
  font-size: 0.85rem;
  text-align: center;
  color: var(--gray-medium);
  margin-bottom: 16px;
}

.prize-grid {
  display: grid;
  gap: 14px;
}

.prize-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.prize-grid--2col {
  grid-template-columns: repeat(4, 1fr);
}

.prize-grid--3col-stamp {
  grid-template-columns: repeat(3, 1fr);
}

.prize-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prize-card--compact {
  padding: 16px 14px;
  flex: 1;
  justify-content: center;
}

.prize-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prize-card--gold {
  border: 2px solid #e8c660;
  box-shadow: 0 4px 16px rgba(232, 198, 96, 0.2);
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 40%);
  padding: 24px 14px 20px;
}

.prize-card--gold .prize-card__name {
  font-size: 1.05rem;
  color: #5a4a1e;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}



.prize-card--gold .prize-card__badge {
  background: linear-gradient(135deg, #f7e7a0, #f0d060);
  color: #7a6420;
  font-size: 0.75rem;
  padding: 4px 14px;
}

.prize-card--silver {
  border: 2px solid #8dd8da;
  box-shadow: 0 4px 16px rgba(0, 165, 168, 0.12);
  background: linear-gradient(180deg, #f0fafa 0%, #ffffff 40%);
  padding: 24px 14px 20px;
}

.prize-card--silver .prize-card__name {
  font-size: 1rem;
  color: var(--teal-dark);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}



.prize-card--silver .prize-card__badge {
  background: linear-gradient(135deg, #b2ebf2, #80deea);
  color: #1a6e70;
  font-size: 0.75rem;
  padding: 4px 14px;
}

.prize-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f0d060, #e8c660);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(232, 198, 96, 0.3);
}

.prize-card__icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.prize-card__img-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-card__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prize-card__img-wrap--lg {
  width: 120px;
  height: 120px;
}

.prize-card__placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-card__placeholder--lg {
  width: 120px;
  height: 120px;
}

.prize-card__placeholder span {
  font-size: 0.7rem;
  color: var(--gray-light);
  font-weight: 600;
  font-family: var(--font-accent);
}

.prize-card__styled-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-card__styled-icon span {
  font-size: 2rem;
  line-height: 1;
}

.prize-card__styled-icon--yellow {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border: 2px solid #ffe082;
}

.prize-card__styled-icon--teal {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  border: 2px solid #80deea;
}

.prize-card__no-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.prize-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 4px;
  font-family: var(--font-accent);
}

.prize-card__detail {
  font-size: 0.75rem;
  color: var(--gray-light);
}

.prize-card__badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: auto;
}

/* ---------- W Chance ---------- */
.wchance {
  background: #fefcf8;
  border: 1px solid #e8dcc8;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  overflow: hidden;
}

.wchance__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.wchance__header-title {
  text-align: center;
}

.wchance__label {
  display: inline-block;
  background: none;
  color: var(--orange);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.wchance__title {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 0;
}

.wchance__image {
  width: 45px;
  flex-shrink: 0;
}

.wchance__product-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.wchance__content {
  text-align: center;
}

.wchance__info {
  flex: 1;
}

.wchance__text {
  font-size: 0.8rem;
  color: var(--gray-medium);
  margin-bottom: 4px;
}

.wchance__desc {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-bottom: 6px;
  line-height: 1.5;
}

.wchance__date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-medium);
}

/* ---------- Application Section ---------- */
.application {
  background-color: var(--bg-white);
}

.app-method {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--teal);
}

.app-method__title {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  text-align: center;
}

.app-method__text {
  font-size: 0.88rem;
  color: var(--gray-medium);
  line-height: 1.8;
}

.app-method__deadline {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 10px;
}

.app-method {
  text-align: center;
}

.app-method__text {
  text-align: left;
}

/* ---------- Closure Notice ---------- */
.closure {
  background-color: var(--teal-bg);
}

.closure__box {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--teal);
}

/* ローディング */
.closure__loading {
  text-align: center;
  padding: 20px 0;
}

.closure__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--teal-light);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* データなし */
.closure__empty {
  text-align: center;
}

.closure__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.closure__message {
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.8;
}

/* データ一覧 */
.closure__list {
  text-align: left;
}

.closure__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: white;
  transition: background 0.2s ease;
}

.closure__item + .closure__item {
  margin-top: 12px;
}

.closure__item-body {
  flex: 1;
  min-width: 0;
}

.closure__item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.closure__item-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  font-family: var(--font-accent);
  letter-spacing: 0.03em;
}

.closure__item-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

/* カテゴリ別バッジ配色（添付画像準拠: 薄い背景に濃色テキスト） */
.badge-info {
  background-color: #daf2ce;
  color: #1a6745;
}

.badge-temp-closed {
  background-color: #fae39c;
  color: #4e402b;
}

.badge-closed {
  background-color: #fbcdcc;
  color: #a61215;
}

.badge-suspend {
  background-color: #b9dff5;
  color: #16519b;
}

.badge-default {
  background-color: #e0e0e0;
  color: #666666;
}

.closure__item-text {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

.closure__item-link {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(0, 165, 168, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.closure__item-link:hover {
  text-decoration-color: var(--teal);
  opacity: 1;
}

/* ---------- Sento Search ---------- */
.sento-search {
  background: var(--bg-cream);
}

.sento-search__box {
  text-align: center;
  background: white;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sento-search__text {
  font-size: 0.95rem;
  color: var(--gray-medium);
  margin-bottom: 20px;
}

/* ---------- Instagram Section ---------- */
.instagram {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  text-align: center;
}

.instagram .section__title {
  color: white;
}

.instagram .section__title::before,
.instagram .section__title::after {
  color: var(--yellow);
}

.instagram__handle {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.instagram__text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.instagram .btn--primary {
  background: white;
  color: var(--teal);
}

.instagram .btn--primary:hover {
  box-shadow: 0 5px 16px rgba(255, 255, 255, 0.3);
}

/* ---------- Sponsors ---------- */
.sponsors {
  background: var(--bg-white);
  padding: 40px 20px;
}

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

.sponsors__label {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.sponsors__names {
  font-size: 0.85rem;
  color: var(--gray-medium);
  line-height: 1.8;
}

.sponsors__names a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sponsors__names a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.sponsors__divider {
  width: 40px;
  height: 1px;
  background: var(--gray-border);
  margin: 16px auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8rem;
}

.footer__logo {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 6px;
}

.footer__text {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* ---------- Notes / Fine Print ---------- */
.notes {
  background: var(--bg-white);
  padding: 30px 20px;
}

.notes__list {
  list-style: none;
  font-size: 0.78rem;
  color: var(--gray-light);
  line-height: 1.8;
}

.notes__list li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.notes__list li::before {
  content: "※";
  margin-right: 0.2em;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.highlight {
  color: var(--teal);
  font-weight: 700;
}

.highlight--orange {
  color: var(--orange);
  font-weight: 700;
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.75rem;
  color: var(--gray-light);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 600px) {
  :root {
    --section-padding: 44px 16px;
  }

  .section__title {
    font-size: 1.25rem;
  }

  .download__cards {
    grid-template-columns: 1fr;
  }

  .prize-grid--3col {
    grid-template-columns: 1fr;
  }

  .prize-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .wchance {
    padding: 16px;
  }

  .wchance__content {
    gap: 14px;
  }

  .wchance__image {
    width: 25px;
    right: 8px;
  }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
  .container {
    padding: 0 30px;
  }
}

@media screen and (min-width: 901px) {
  :root {
    --section-padding: 70px 20px;
    --container-max: 860px;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .wchance__image {
    width: 35px;
  }
}
