*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #111009;
  background: #f5f3ef;
}

.demo-header {
  background: #111009;
  color: #fff;
}

.demo-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-tag {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ff6b00;
}

.demo-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-header a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.demo-header a:hover {
  color: #ff6b00;
}

.demo-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  padding-bottom: calc(72px + var(--cta-sticky-height, 72px));
}

.demo-intro {
  margin-bottom: 48px;
}

.demo-intro h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.demo-intro p {
  margin: 0;
  color: #555;
}

.cta-block {
  margin-bottom: 56px;
}

.cta-block:last-of-type {
  margin-bottom: 0;
}

.cta-block-head {
  margin-bottom: 20px;
}

.cta-block-label {
  margin: 0 0 6px;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff6b00;
}

.cta-block-head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
}

.cta-block-note {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.cta-band {
  border-radius: 8px;
  overflow: hidden;
}

.cta-band__inner {
  padding: 36px 32px;
}

.cta-band__title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.45;
}

.cta-band__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.92;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-btn--primary {
  background: #ff6b00;
  color: #fff;
  border: 2px solid #ff6b00;
}

.cta-btn--primary:hover {
  background: #e55f00;
  border-color: #e55f00;
}

.cta-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cta-btn--outline-dark {
  background: #fff;
  color: #111009;
  border: 2px solid #111009;
}

.cta-btn--outline-dark:hover {
  background: #111009;
  color: #fff;
}

/* Pattern A: centered */
.cta-band--center {
  background: #111009;
  color: #fff;
  text-align: center;
}

.cta-band--center .cta-band__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band--center .cta-band__actions {
  justify-content: center;
  margin-top: 24px;
}

/* Pattern B: split */
.cta-band--split {
  background: #111009;
  color: #fff;
}

.cta-band--split .cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.cta-band--split .cta-band__body {
  flex: 1;
  min-width: 0;
}

.cta-band--split .cta-band__actions {
  margin-top: 0;
  flex-shrink: 0;
}

/* Pattern C: dual on light */
.cta-band--dual {
  background: #fff;
  border: 1px solid #e8e4dc;
  color: #111009;
}

.cta-band--dual .cta-band__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band--dual .cta-band__text {
  opacity: 1;
  color: #555;
}

.cta-band--dual .cta-band__actions {
  justify-content: center;
}

.cta-band--dual .cta-btn--primary {
  min-width: 200px;
}

.cta-band--dual .cta-btn--ghost {
  color: #111009;
  border-color: #ccc8c0;
}

.cta-band--dual .cta-btn--ghost:hover {
  background: #f5f3ef;
  border-color: #111009;
}

/* Pattern D: contact + CTA */
.cta-band--contact {
  background: linear-gradient(135deg, #1a1810 0%, #111009 100%);
  color: #fff;
}

.cta-band--contact .cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
}

.cta-band--contact .cta-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 16px;
}

.cta-band__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.cta-band__meta-item strong {
  font-family: Manrope, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-band__meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff6b00;
  margin-bottom: 2px;
}

.cta-band--contact .cta-band__actions {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
}

.cta-band--contact .cta-btn {
  width: 100%;
}

/* Pattern E: sticky bottom */
:root {
  --cta-sticky-height: 72px;
}

.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(17, 16, 9, 0.96);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(17, 16, 9, 0.18);
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cta-sticky.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cta-sticky__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  min-height: var(--cta-sticky-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-sticky__text {
  margin: 0;
  min-width: 0;
}

.cta-sticky__text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cta-sticky__text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.cta-btn--compact {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  flex-shrink: 0;
}

.cta-sticky-preview {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px;
}

.cta-sticky-preview__frame {
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f3ef;
}

.cta-sticky--static {
  position: relative;
  transform: none;
  box-shadow: none;
}

.cta-sticky-preview__caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.entry-preview {
  margin-top: 56px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
}

.entry-preview h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.entry-preview > p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #555;
}

.entry-preview__box {
  height: 240px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #f5f3ef,
    #f5f3ef 10px,
    #ebe6dc 10px,
    #ebe6dc 20px
  );
  border: 1px dashed #ccc8c0;
}

/* Pattern F: fixed right tab */
.cta-side {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 52px;
  padding: 20px 10px;
  background: #ff6b00;
  color: #fff;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 4px 20px rgba(255, 107, 0, 0.35);
  transform: translateY(-50%);
  transition: background 0.2s, transform 0.3s ease, opacity 0.3s ease;
  writing-mode: vertical-rl;
}

.cta-side:hover {
  background: #e55f00;
}

.cta-side.is-hidden {
  transform: translate(100%, -50%);
  opacity: 0;
  pointer-events: none;
}

.cta-side__en {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.cta-side__ja {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cta-side-preview {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px;
}

.cta-side-preview__frame {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 220px;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f3ef;
}

.cta-side-preview__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding-right: 52px;
}

.cta-side-preview__page p {
  margin: 0;
  font-size: 14px;
  color: #888;
}

.cta-side--static {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.cta-side--static:hover {
  transform: translateY(-50%);
}

.cta-side-preview__caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.demo-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #ddd8cf;
  text-align: center;
}

.demo-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

@media (max-width: 768px) {
  .cta-band__inner {
    padding: 28px 20px;
  }

  .cta-band--split .cta-band__inner,
  .cta-band--contact .cta-band__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-band--split .cta-band__actions,
  .cta-band--contact .cta-band__actions {
    width: 100%;
    margin-top: 8px;
  }

  .cta-band--split .cta-btn,
  .cta-band--contact .cta-btn {
    width: 100%;
  }

  .cta-band--dual .cta-btn {
    width: 100%;
    min-width: 0;
  }

  .cta-sticky__inner {
    padding: 10px 16px;
  }

  .cta-sticky__text span {
    display: none;
  }

  .cta-btn--compact {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }

  .cta-side,
  .js-cta-side {
    display: none;
  }
}
