@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  background-color: #F8FAFC;
}

/* ヘッダー背景の格子柄パターン */
.grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 35px 35px;
}

/* 性格の特徴の改行を表示 */
.whitespace-pre-line {
  white-space: pre-line !important;
}

/* アニメーション定義 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-scale-in { animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-slide-in-right { animation: slideInRight 0.4s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 3s infinite; }

/* Marquee (自動スクロール) */
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .animate-marquee {
    animation-duration: 40s;
  }
}

/* 共通コンポーネントスタイル */
.value-meter-container {
  width: 70% !important;
  max-width: 70% !important;
  margin: 0 auto;
}

/* 吹き出し（進路・職業用） */
.speech-bubble-career {
  border-radius: 12px 12px 0 12px !important;
  border-left: 0 !important;
  position: relative !important;
  background-color: #F8FAFC; /* slate-50 */
}
.speech-bubble-career::before,
.speech-bubble-career::after,
.speech-bubble-career * {
  border-left: none !important;
  border-width: 0 !important;
}

/* 虹色グラデーションボックス（あなたへのアドバイス用） */
.gradient-rainbow-box {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(110deg, #9af5df 0%, #fbfd96 20%, #fecedc 40%, #ffe1fa 60%, #f2dbff 75%, #de94fc 85%, #f1e1b1 100%);
  padding: 2px;
}

.gradient-rainbow-box-inner {
  background: white;
  border-radius: 18px;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
}

/* カード上部のアクセント線 */
.card-top-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 4px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* ぼかしフィルター */
.blur-text {
  color: transparent !important;
  text-shadow: 0 0 12px rgba(0,0,0,0.2) !important;
  user-select: none;
  pointer-events: none;
  filter: blur(4px);
}

/* 横スクロールコンテナ */
.full-width-scroll {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: max(1rem, calc(50vw - 512px + 1rem));
  padding-right: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  align-items: stretch;
}
.full-width-scroll::-webkit-scrollbar { display: none; }

/* 汎用ボタン系 */
.btn-trend {
  background: linear-gradient(90deg, #FFAA00, #FF5621, #FF53AF);
  background-size: 200% auto;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 86, 33, 0.3);
  transition: all 0.3s ease;
}
.btn-trend:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 86, 33, 0.4);
}
.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: 2px solid #cbd5e1;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: #f1f5f9;
  color: #64748b;
  border-color: #94a3b8;
}

.btn-unlock {
  background: white;
  color: #FF9100;
  border: 2px solid #FF9100;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255, 145, 0, 0.1);
}
.btn-unlock:hover {
  background: #FFF7ED;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 145, 0, 0.2);
}

/* --------------------------------------------------
   Guest用 下部CTAボタン (オレンジグラデーション)
-------------------------------------------------- */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  padding: 21px 20px;
  box-sizing: border-box;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  background: linear-gradient(90deg, #ffae1a 0%, #ff6a1e 100%);
  box-shadow: 
      0 6px 15px rgba(0, 0, 0, 0.15),
      inset 0 2px 4px rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(200, 100, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 
      0 8px 20px rgba(0, 0, 0, 0.2),
      inset 0 2px 4px rgba(255, 255, 255, 0.5),
      inset 0 -2px 4px rgba(200, 100, 0, 0.1);
}
.cta-button-text {
  text-align: center;
  text-shadow: 0 1px 2px rgba(224, 85, 0, 0.2);
  z-index: 1;
}
.cta-button-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.cta-button-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #ff6a1e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* フォント強制適用 */
* {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
  color: #1E293B !important;
}
/* ヘッダー内のタイトルは白 */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6, .text-white p {
  color: white !important;
}
.text-slate-800 { color: #1E293B !important; }
.text-slate-700 { color: #1E293B !important; }
.text-slate-600 { color: #475569 !important; }

body { line-height: 1.7; }
p { line-height: 1.75; }
.leading-relaxed { line-height: 1.75 !important; }
.leading-loose { line-height: 1.85 !important; }
h1 { line-height: 1.3; }
h2 { line-height: 1.35; }
h3 { line-height: 1.4; }



/* --- ここから下を追記してください --- */

/* --- コンテナを突き抜けて画面幅いっぱいに広げるユーティリティ（修正版） --- */
.w-screen-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* 親要素のpaddingなどの影響を無視して画面幅いっぱいにする設定 */
}

/* ロック状態のオーバーレイ（変更なし） */
.lock-overlay-container {
  position: relative;
  overflow: hidden;
}

.lock-blur-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
}

.lock-overlay-absolute {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
}

/* ロック解除ボタンのデザイン（変更なし） */
.btn-lock-action {
  background: #fff;
  border: 2px solid #ff8c00;
  color: #ff4500;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}

.btn-lock-action:hover {
  transform: scale(1.05);
  background: #fff5f0;
}