/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: #f4d03f;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 左上のロゴ */
.logo {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.logo img {
  height: auto;
  max-width: 200px;
}

/* 右下のQRコード */
.qr-code {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  background: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease;
}

.qr-content {
  text-align: center;
}

.qr-text {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: bold;
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* キャンペーン画像（デスクトップのみ） */
.campaign {
  display: none;
  position: fixed;
  left: 4rem;
  top: 45%;
  transform: translateY(-50%);
  z-index: 40;
  width: 320px;
  transition: opacity 0.3s ease;
}

.campaign img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.campaign-fallback {
  width: 100%;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #ef4444;
}

.fallback-content {
  text-align: center;
}

.badge {
  background: #ef4444;
  color: white;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: inline-block;
}

.title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.price-box {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.plus {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.strikethrough {
  text-decoration: line-through;
}

.free-badge {
  background: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: bold;
  font-size: 1rem;
}

/* 固定個別相談ボタン */
.cta-soudan-button {
  position: fixed;
  z-index: 9999;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 24rem;
  margin: 0 auto;
}

.cta-button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

.cta-button:active {
  transform: scale(0.95);
}

.cta-button img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.cta-fallback {
  width: 100%;
  background: #ef4444;
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

.cta-text {
  font-size: 1.25rem;
  font-weight: bold;
}

/* メインコンテンツエリア */
.main-container {
  display: flex;
  justify-content: center;
}

.content-container {
  width: 100%;
  max-width: 24rem;
  background: white;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 5rem;
}

.image-section {
  width: 100%;
  margin-bottom: 1rem;
}

.image-section img {
  width: 100%;
  height: auto;
  display: block;
}

.image-fallback {
  width: 100%;
  background: #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  color: #6b7280;
  text-align: center;
}

.fallback-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.fallback-text {
  font-size: 1.125rem;
  font-weight: bold;
}

/* CTAセクション */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 2rem 1rem;
}

.cta-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-link:hover {
  transform: scale(1.05);
}

.cta-link:active {
  transform: scale(0.95);
}

.cta-link img {
  width: 100%;
  height: auto;
}

.line-fallback {
  width: 100%;
  background: #22c55e;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.line-text {
  font-size: 1.5rem;
  font-weight: bold;
}

/* フッター */
.footer {
  background: black;
  color: white;
  padding: 1rem 1.5rem;
  margin: 1rem;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 0.75rem;
}

/* デスクトップ用スタイル */
@media (min-width: 768px) {
  .campaign {
    display: block;
  }

  .content-container {
    margin-left: 40%;
    margin-right: 2rem;
    padding-bottom: 2rem;
  }

  .cta-soudan-button {
    left: 4rem;
    right: auto;
    top: calc(45% + 240px);
    bottom: auto;
    width: 320px;
    max-width: none;
  }
}

/* 非表示クラス */
.hidden {
  opacity: 0;
}

.visible {
  opacity: 1;
}

/* アニメーション */
.transition-opacity {
  transition: opacity 0.3s ease;
}
