@charset "UTF-8";
/* ==========================================================================
   Components - Article Design (STEP 3)
   Mobile-first. PC overrides via min-width media queries.
   ========================================================================== */

/* ------------------------------------------------------------------
   C1 + F1. SWELL Button → Green CTA
   ------------------------------------------------------------------ */
.swell-block-button__link {
  background-color: var(--color-cta) !important;
  color: var(--color-cta-text) !important;
  border: none !important;
  border-radius: 6px;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.swell-block-button__link:hover {
  background-color: var(--color-cta-hover) !important;
  color: var(--color-cta-text) !important;
  box-shadow: 0 4px 12px rgba(43, 186, 77, 0.3);
  opacity: 1 !important;
}

/* ------------------------------------------------------------------
   C2. Box decorations - brand color accents
   ------------------------------------------------------------------ */
/* Caption box title bar → accent x white */
.cap_box_ttl {
  background-color: var(--color-accent) !important;
  color: #FFFFFF !important;
}
.cap_box_content {
  border-color: var(--color-accent) !important;
}

/* Icon-付きボックス accent overrides */
.post_content .is-style-good_box,
.post_content .good_box {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}
.post_content .is-style-bad_box,
.post_content .bad_box {
  border-color: var(--color-alert);
  background: rgba(226, 75, 74, 0.06);
}

/* ------------------------------------------------------------------
   C3. Balloon (speech bubble) → cream background
   ------------------------------------------------------------------ */
.swell-block-balloon__body {
  background-color: var(--color-bg-cream) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text);
}
.swell-block-balloon .swell-block-balloon__body::before {
  border-right-color: var(--color-border) !important;
}
.swell-block-balloon .swell-block-balloon__body::after {
  border-right-color: var(--color-bg-cream) !important;
}
.swell-block-balloon.-reverse .swell-block-balloon__body::before {
  border-left-color: var(--color-border) !important;
  border-right-color: transparent !important;
}
.swell-block-balloon.-reverse .swell-block-balloon__body::after {
  border-left-color: var(--color-bg-cream) !important;
  border-right-color: transparent !important;
}

/* ------------------------------------------------------------------
   C4. Table - dark header / stripe / horizontal scroll
   ------------------------------------------------------------------ */
.post_content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post_content .wp-block-table table {
  min-width: 560px;
  border-collapse: collapse;
  width: 100%;
}
.post_content .wp-block-table thead th,
.post_content .wp-block-table.is-style-stripes thead th,
.wp-block-table thead th { 
  background-color: #121054 !important;
  color: #FFFFFF !important;
  padding: 10px 14px;
  white-space: nowrap;
}
.post_content .wp-block-table tbody td,
.post_content .wp-block-table tbody th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.post_content .wp-block-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-cream);
}

/* ------------------------------------------------------------------
   C5. Inline markers → brand colors
   SWELL marker CSS variables override
   ------------------------------------------------------------------ */
:root {
  --color_mark1: rgba(232, 156, 243, 0.20);
  --color_mark2: rgba(226, 75, 74, 0.15);
}

/* ------------------------------------------------------------------
   F2. Alert / Urgency banner
   Usage: add CSS class "oripa-alert" to any block
   ------------------------------------------------------------------ */
.oripa-alert {
  border-left: 4px solid var(--color-alert);
  background: rgba(226, 75, 74, 0.06);
  padding: 14px 16px;
  margin: 1.5em 0;
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  color: var(--color-alert);
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   F3. Service introduction card (oripa-service-card)
   Usage: paste HTML template into Custom HTML block
   ------------------------------------------------------------------ */
.oripa-service-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 16px;
  margin: 1.5em 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background: var(--color-bg);
}
.oripa-service-card__label {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-accent);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.oripa-service-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.oripa-service-card__logo {
  width: 120px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oripa-service-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.oripa-service-card__body {
  flex: 1;
  width: 100%;
}
.oripa-service-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-text);
  text-align: center;
}
.oripa-service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.oripa-service-card__features li {
  padding: 5px 0 5px 1.4em;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}
.oripa-service-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}
.oripa-service-card__cta {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px;
  background-color: var(--color-cta);
  color: var(--color-cta-text) !important;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.oripa-service-card__cta:hover {
  background-color: var(--color-cta-hover);
  color: var(--color-cta-text) !important;
  box-shadow: 0 4px 12px rgba(43, 186, 77, 0.3);
}

@media (min-width: 768px) {
  .oripa-service-card__header {
    flex-direction: row;
    align-items: flex-start;
  }
  .oripa-service-card__name {
    text-align: left;
  }
}

/* ------------------------------------------------------------------
   F4. Ranking card
   Usage: add CSS class "oripa-rank oripa-rank--1" to a group block
   ------------------------------------------------------------------ */
.oripa-rank {
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-border);
  border-radius: 0 6px 6px 0;
  padding: 16px 16px 16px 20px;
  margin: 1.5em 0;
  background: var(--color-bg);
}
.oripa-rank--1 { border-left-color: var(--color-rank-1); }
.oripa-rank--2 { border-left-color: var(--color-rank-2); }
.oripa-rank--3 { border-left-color: var(--color-rank-3); }

/* ------------------------------------------------------------------
   F5. Top 3 recommendation table (blog parts)
   Always horizontal, scrollable on mobile
   ------------------------------------------------------------------ */
.oripa-top3 {
  background-color: var(--color-bg-cream);
  border-radius: 8px;
  padding: 20px 12px 16px;
  margin: 1.8em 0;
}
.oripa-top3__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}
.oripa-top3__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.oripa-top3__grid {
  display: flex;
  gap: 10px;
  min-width: 660px;
}
.oripa-top3__card {
  flex: 1;
  min-width: 200px;
  background: var(--color-bg);
  border-radius: 6px;
  padding: 14px 12px 16px;
  border-top: 4px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.oripa-top3__card--1 { border-top-color: var(--color-rank-1); }
.oripa-top3__card--2 { border-top-color: var(--color-rank-2); }
.oripa-top3__card--3 { border-top-color: var(--color-rank-3); }

.oripa-top3__rank {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text-sub);
}
.oripa-top3__card--1 .oripa-top3__rank { color: var(--color-rank-1); }
.oripa-top3__card--2 .oripa-top3__rank { color: var(--color-rank-2); }
.oripa-top3__card--3 .oripa-top3__rank { color: var(--color-rank-3); }

/* Logo - uniform size regardless of source image */
.oripa-top3__logo {
  width: 120px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.oripa-top3__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.oripa-top3__name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-text);
}
/* Spec rows (dl) */
.oripa-top3__specs {
  width: 100%;
  margin: 0 0 12px;
  text-align: left;
}
.oripa-top3__spec-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  line-height: 1.5;
}
.oripa-top3__spec-row dt {
  color: var(--color-text-sub);
  white-space: nowrap;
  margin-right: 8px;
}
.oripa-top3__spec-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
  text-align: right;
}
/* Coupon code highlight */
.oripa-top3__coupon {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: 0.08em;
}
/* CTA button */
.oripa-top3__cta {
  display: block;
  width: 100%;
  padding: 10px 8px;
  margin-top: auto;
  background-color: var(--color-cta);
  color: var(--color-cta-text) !important;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  min-height: 44px;
  line-height: 1.4;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.oripa-top3__cta:hover {
  background-color: var(--color-cta-hover);
  color: var(--color-cta-text) !important;
  box-shadow: 0 4px 12px rgba(43, 186, 77, 0.3);
}

@media (min-width: 768px) {
  .oripa-top3 {
    padding: 24px 20px 20px;
  }
  .oripa-top3__heading {
    font-size: 18px;
  }
  .oripa-top3__grid {
    gap: 14px;
  }
  .oripa-top3__card {
    padding: 16px 14px 18px;
  }
  .oripa-top3__logo {
    width: 160px;
    height: 64px;
  }
  .oripa-top3__name {
    font-size: 16px;
  }
  .oripa-top3__spec-row {
    font-size: 13px;
  }
  .oripa-top3__cta {
    font-size: 14px;
    padding: 12px;
  }
}

/* ------------------------------------------------------------------
   F6. Table auto-collapse (CSS)
   JS in table-collapse.js adds these classes dynamically
   ------------------------------------------------------------------ */
.oripa-table-collapse {
  position: relative;
}
.oripa-table-collapse__hidden {
  display: none !important;
}
/* Gradient fade when collapsed */
.oripa-table-collapse.is-collapsed .wp-block-table::after {
  content: "";
  display: block;
  height: 48px;
  margin-top: -48px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.oripa-table-collapse__footer {
  text-align: center;
  padding: 10px 0 4px;
}
.oripa-table-collapse__btn {
  display: inline-block;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px 28px;
  color: var(--color-text-sub);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
}
.oripa-table-collapse__btn:hover {
  background-color: var(--color-bg-cream);
}

/* ------------------------------------------------------------------
   (2) Coupon one-tap copy button
   Auto-inserted by JS next to .oripa-top3__coupon
   ------------------------------------------------------------------ */
.oripa-coupon-copy {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  font-family: inherit;
  vertical-align: middle;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.oripa-coupon-copy:hover {
  background: var(--color-accent-light);
}
.oripa-coupon-copy.is-copied {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

/* ------------------------------------------------------------------
   (4) Sticky CTA bar (mobile only)
   Fixed to bottom of viewport, appears after 300px scroll.
   ------------------------------------------------------------------ */
.oripa-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--color-black);
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.oripa-sticky-cta.is-visible {
  transform: translateY(0);
}
.oripa-sticky-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--color-cta);
  color: var(--color-cta-text) !important;
  text-align: center;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  transition: background-color 0.2s;
}
.oripa-sticky-cta__btn:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-text) !important;
}
.oripa-sticky-cta__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.oripa-sticky-cta__close:hover {
  color: #FFFFFF;
}
@media (min-width: 769px) {
  .oripa-sticky-cta {
    display: none !important;
  }
}

/* ------------------------------------------------------------------
   (6) Campaign deadline highlight
   Usage: <span class="oripa-deadline">6/30(日)まで</span>
   ------------------------------------------------------------------ */
.oripa-deadline {
  display: inline-block;
  background: rgba(226, 75, 74, 0.10);
  color: var(--color-alert);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  border: 1px solid rgba(226, 75, 74, 0.20);
}
