@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+JP:wght@400;600;800&family=M+PLUS+Rounded+1c:wght@800&display=swap');

:root {
  --bg-color: #fafafa;
  --bg-gradient: linear-gradient(135deg, #f8f9fa, #eef2f3);
  --primary-color: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --brand-purple: #4a148c;
  --brand-purple-light: #7b1fa2;
  --brand-gold: #fbbf24;
  --brand-gold-light: #fef08a;
  
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-purple: 0 10px 25px -5px rgba(74, 20, 140, 0.3);
  
  --font-base: 'Inter', 'Noto Sans JP', sans-serif;
  --font-title: 'M PLUS Rounded 1c', sans-serif;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font-base);
  background: var(--bg-gradient);
  color: var(--text-main);
  margin: 0; padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 120px) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(74, 20, 140, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(74, 20, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 20, 140, 0); } }
.fade-in { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.container { max-width: 800px; width: 90%; margin: 0 auto; position: relative; z-index: 10; padding: 20px 0; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-title); margin-top: 0; }
a { color: var(--brand-purple); text-decoration: none; transition: all 0.2s; }
a:hover { opacity: 0.8; }

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.05), rgba(74, 20, 140, 0.15));
  padding: 60px 20px 40px;
  text-align: center;
  border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
  margin-bottom: -30px; z-index: 1;
}
.hero-logo { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom: 20px; }
.hero-logo-icon { font-size: clamp(2rem, 8vw, 3.5rem); -webkit-text-fill-color: initial; }
.hero-logo .text-logo { font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -0.05em; line-height: 1.2; }

/* Pure CSS 1-line typography logo */
.text-logo {
  font-family: var(--font-title);
  font-weight: 900;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 5px 0;
}
.header-logo .text-logo { font-size: 1.25rem; }
.hero-subtitle { font-size: clamp(1rem, 4vw, 1.2rem); font-weight: 600; color: var(--text-main); margin-bottom: 30px; }
.hero-btn-wrap { max-width: 400px; margin: 0 auto; position: relative; z-index: 20; }

/* Hero Character Collage */
.hero-character-collage { display: flex; justify-content: center; align-items: center; margin-bottom: 30px; margin-top: 10px; padding: 10px; }
.hero-char { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-md); margin: 0 -10px; overflow: hidden; background: #fff; position: relative; z-index: 1; transition: transform 0.3s; }
.hero-char img { width: 100%; height: 100%; object-fit: contain; }
.hero-char.char-even { transform: translateY(-8px); z-index: 2; width: 75px; height: 75px; }
.hero-char.char-odd { transform: translateY(8px); z-index: 3; width: 85px; height: 85px; }
.hero-char.char-center { transform: translateY(-12px); z-index: 4; width: 95px; height: 95px; border-color: var(--brand-gold-light); }
.hero-character-collage:hover .hero-char { margin: 0 -5px; }

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1); border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm); padding: clamp(20px, 5vw, 32px); margin-bottom: 24px;
}
.section-title { font-size: 1.4rem; color: var(--brand-purple); text-align: center; margin-bottom: 24px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; background: var(--brand-gold); border-radius: 2px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 16px 24px; font-size: 1.1rem; font-weight: 800; font-family: var(--font-base);
  border-radius: 50px; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none; text-align: center; box-shadow: var(--shadow-sm); gap: 8px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light)); color: #fff !important; box-shadow: var(--shadow-purple); animation: pulseGlow 3s infinite; text-decoration: none;}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(74, 20, 140, 0.4); }
.btn-secondary { background: #ffffff; color: var(--brand-purple) !important; border: 2px solid #e2e8f0; text-decoration: none;}
.btn-secondary:hover { border-color: var(--brand-purple); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Buttons Compatibility (Legacy Classes) */
.action-button, .rediagnosis-button { display: block; width: 100%; align-items: center; justify-content: center; padding: 16px 24px; font-size: 1.1rem; font-weight: 800; border-radius: 50px; border: none; text-align: center; text-decoration: none; background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light)) !important; color: #fff !important; box-shadow: var(--shadow-purple); margin-top: 15px; transition: all 0.3s; }
.action-button:hover, .rediagnosis-button:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(74, 20, 140, 0.3); }
.secondary-button, .bottom-nav-button { padding: 16px 24px; font-size: 1.1rem; font-weight: 800; border-radius: 50px; display: block; width: 100%; text-align: center; text-decoration: none; background: #ffffff !important; color: var(--brand-purple) !important; border: 2px solid #e2e8f0 !important; margin-top: 15px; transition: all 0.3s; box-shadow: var(--shadow-sm); }
.secondary-button:hover, .bottom-nav-button:hover { border-color: var(--brand-purple) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bottom-nav-button.primary { background: linear-gradient(135deg, #3949ab, #283593) !important; color: #fff !important; border: none !important; box-shadow: 0 8px 15px rgba(57, 73, 171, 0.3); }
.button-wrapper { margin-top: 30px; }
.bottom-nav-wrapper { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0; display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }


/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.axis-card { padding: 16px; background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; display: flex; align-items: flex-start; gap: 16px; transition: transform 0.2s; }
.axis-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand-purple-light); }
.axis-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.axis-info h4 { margin: 0 0 4px 0; font-size: 1rem; color: var(--text-main); }
.axis-info p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.pickup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 480px) { .pickup-grid { grid-template-columns: 1fr; } }
.pickup-card { border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; text-align: center; background: #fff; padding: 16px; transition: transform 0.2s; }
.pickup-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-purple); }
.pickup-img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #f8fafc; margin: 0 auto 12px; display: block; object-fit: cover; }
.pickup-name { font-weight: 800; font-size: 1rem; color: var(--brand-purple); margin-bottom: 4px; }
.pickup-catch { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* Features & FAQ */
.article-card { display: block; padding: 20px; background: linear-gradient(135deg, #fff, #fefce8); border: 2px solid var(--brand-gold); border-radius: 16px; text-decoration: none; transition: transform 0.2s; }
.article-card:hover { transform: scale(1.02); }
.badge { display: inline-block; background: var(--brand-gold); color: #854d0e; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; }

.faq-item { margin-bottom: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.faq-item summary { font-weight: 700; padding: 16px; cursor: pointer; list-style: none; position: relative; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--brand-purple); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 16px 16px; margin: 0; font-size: 0.9rem; border-top: 1px solid #f1f5f9; padding-top: 12px; }

/* Floating Elements */
.lang-toggle { position: absolute; top: 16px; right: 16px; z-index: 100; }
.lang-toggle a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.85rem; box-shadow: var(--shadow-sm); color: var(--text-main); border: 1px solid rgba(0,0,0,0.05); }

#line-stamp-fab { position: fixed; bottom: 30px; right: 20px; z-index: 9999; text-decoration: none; }
#line-stamp-fab .fab-inner { display: flex; align-items: center; gap: 10px; background: #06C755; color: #fff; padding: 12px 20px; border-radius: 30px; font-weight: 800; box-shadow: 0 8px 25px rgba(6,199,85,0.4); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: 2px solid #fff; }
#line-stamp-fab:hover .fab-inner { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(6,199,85,0.5); }
.fab-icon { font-size: 1.4rem; }
.fab-label-main { font-size: 0.85rem; line-height: 1.2; text-align: left; }
.fab-badge { position: absolute; top: -8px; right: -8px; background: #ef4444; color: #fff; font-size: 0.7rem; font-weight: 900; padding: 4px 8px; border-radius: 12px; border: 2px solid #fff; z-index: 2; }

/* Footer */
.footer-nav { text-align: center; margin-top: 40px; padding-bottom: 20px; font-size: 0.85rem; }
.footer-nav a { font-weight: 600; margin: 0 10px; color: var(--text-muted); }
.footer-nav p { margin-top: 15px; font-size: 0.75rem; color: #9ca3af; }

/* Utils */
.text-center { text-align: center; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.highlight-text { background: linear-gradient(transparent 60%, var(--brand-gold) 60%); padding: 0 4px; font-weight: 800; color: var(--brand-purple); }

/* =========================================================
   Diagnosis Form Specific Styles
   ========================================================= */
.name-input, .select-input { width: 100%; max-width: 400px; display: block; margin: 0 auto; padding: 16px; border-radius: 16px; border: 2px solid #e2e8f0; font-size: 1rem; text-align: center; font-family: var(--font-base); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s; background: #fff; }
.name-input:focus, .select-input:focus { outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 4px rgba(74, 20, 140, 0.1); }
.select-input-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.question-card { position: relative; overflow: hidden; background: #ffffff; border-radius: 20px; padding: clamp(20px, 5vw, 32px); margin-bottom: 30px; border: 1px solid #e2e8f0; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
.question-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow-md); }
.q-num { position: absolute; top: 0; left: 0; background: var(--brand-purple); color: #fff; padding: 4px 12px; border-bottom-right-radius: 16px; font-weight: 800; font-size: 0.85rem; font-family: var(--font-title); }
.question-text { font-weight: 800; font-size: 1.15rem; margin-top: 10px; margin-bottom: 24px; text-align: center; color: var(--text-main); }
.question-choice { font-size: 1.05rem; font-weight: 700; padding: 14px; border-radius: 12px; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 60px; line-height: 1.4; }
.question-choice-a { color: #b91c1c; background-color: #fef2f2; border: 1px solid #fecaca; }
.question-choice-b { color: #1d4ed8; background-color: #eff6ff; border: 1px solid #bfdbfe; }
.options-container { display: flex; justify-content: space-between; width: 100%; margin: 24px 0; padding: 0; gap: 8px; }
.option-label { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); padding: 12px 4px; border-radius: 16px; transition: all 0.2s; flex: 1; border: 2px solid transparent; background: #f8fafc; }
.option-label input[type="radio"] { width: 24px; height: 24px; cursor: pointer; margin-bottom: 8px; accent-color: var(--brand-purple); }
.option-label:hover { background-color: #f1f5f9; }
.option-label.selected { background-color: #f3e8ff; border-color: var(--brand-purple); color: var(--brand-purple); font-weight: 800; box-shadow: 0 4px 12px rgba(74,20,140,0.1); }
.consent-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 20px; line-height: 1.6; }
.progress-container { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); padding: 15px 0; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.progress-bar-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand-purple-light), var(--brand-purple)); width: 0%; transition: width 0.3s ease; }
.progress-text { text-align: center; font-weight: 800; color: var(--brand-purple); font-size: 0.9rem; margin-top: 8px; }

/* =========================================================
   Result Page Specific Styles
   ========================================================= */
.result-header { text-align: center; background: linear-gradient(135deg, rgba(74, 20, 140, 0.05), rgba(74, 20, 140, 0.15)); padding: 30px; border-radius: 30px; margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.8); }
.result-title { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin: 0 0 10px 0; color: var(--brand-purple); font-family: var(--font-title); }
.result-image-wrapper { width: 240px; height: 240px; border-radius: 50%; background-color: #fff; margin: 0 auto 20px auto; display: flex; justify-content: center; align-items: center; overflow: hidden; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.result-illustration { width: 100%; height: 100%; object-fit: contain; }
.result-catchphrase-display { text-align: center; font-weight: 800; color: var(--text-main); margin-bottom: 30px; font-size: 1.2rem; line-height: 1.6; padding: 0 10px; }
.result-card { background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); padding: 30px; border-radius: 20px; margin-bottom: 24px; border: 1px solid #e2e8f0; }
.result-card h3 { display: inline-block; font-size: 1.05rem; padding: 8px 20px; background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold)); color: #854d0e; border-radius: 30px; margin-top: 0; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2); font-family: var(--font-base); }
.result-card p { line-height: 1.9; font-size: 1rem; color: var(--text-main); margin-bottom: 1.2rem; }
.key-sentence { 
  display: inline-block;
  color: var(--brand-purple);
  font-weight: 800;
  border-bottom: 2px solid var(--brand-purple);
  padding: 0 4px 2px 4px;
  margin-bottom: 12px;
}
.result-good { background-color: #f0fdf4; padding: 24px; border-radius: 20px; border: 1px solid #bbf7d0; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.05); }
.result-bad { background-color: #fef2f2; padding: 24px; border-radius: 20px; border: 1px solid #fecaca; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.05); }

/* =========================================================
   List Page Specific Styles
   ========================================================= */
#type-list-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 30px; }
.type-card-link { text-decoration: none; color: inherit; display: block; height: 100%; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); outline: none; }
.type-card-link:hover { transform: translateY(-8px); }
.type-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm); height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; transition: border-color 0.3s, box-shadow 0.3s; }
.type-card-link:hover .type-card { border-color: var(--brand-purple-light); box-shadow: var(--shadow-md); }
.type-card-image-wrapper { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin-bottom: 20px; border: 4px solid #f8fafc; background: #fafafa; }
.type-card-illustration { width: 100%; height: 100%; object-fit: contain; }
.type-card-name { font-size: 1.25rem; font-weight: 800; color: var(--brand-purple); margin: 0 0 10px 0; line-height: 1.3; font-family: var(--font-title); }
.type-card-catchphrase { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Share Section */
.share-section { text-align: center; margin: 40px 0; padding: 30px; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); border-radius: 24px; border: 1px solid #e2e8f0; }
.share-title { font-weight: 800; color: var(--brand-purple); margin-bottom: 20px; font-size: 1.2rem; }
.x-share-button { 
  background-color: #000; color: #fff !important; margin: 0 auto; max-width: 300px; 
  display: flex; align-items: center; justify-content: center; gap: 10px; 
  border-radius: 50px; font-weight: 800; font-size: 1.15em; padding: 18px; width: 100%;
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; border: none; box-sizing: border-box; cursor: pointer;
}
.x-logo { width: 22px; height: 22px; fill: #fff; }

/* =========================================================
   Feature Article (Supplement) Specific Styles
========================================================= */
.pr-mark { display: inline-block; background: #e2e8f0; color: #64748b; font-size: 0.75rem; font-weight: bold; padding: 2px 8px; border-radius: 4px; margin-top: 20px; margin-bottom: 10px; }
.hero-img { width: 100%; border-radius: 16px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.intro-text { background: rgba(255,255,255,0.9); padding: 24px; border-radius: 16px; text-align: center; margin-bottom: 30px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.intro-highlight { font-size: 1.2rem; font-weight: 800; color: var(--brand-purple); line-height: 1.6; }
.intro-desc { display: block; margin-top: 16px; font-size: 0.95rem; color: var(--text-main); line-height: 1.8; font-weight: 600; }
.honest-box { background: #fff3e0; border: 2px solid #ffb74d; padding: 20px; border-radius: 12px; margin-bottom: 30px; font-size: 0.9rem; line-height: 1.6; color: #5d4037; }
.honest-title { display: block; font-weight: 800; color: #e65100; margin-bottom: 8px; }
.marker { background: linear-gradient(transparent 60%, #ffe082 60%); font-weight: bold; }
.regulation-box { background: rgba(255,255,255,0.9); border: 2px solid var(--brand-purple-light); padding: 24px; border-radius: 16px; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.regulation-title { display: block; font-size: 1.2rem; font-weight: 800; color: var(--brand-purple); margin-bottom: 16px; text-align: center; border-bottom: 2px solid #f1f5f9; padding-bottom: 16px; }
.regulation-desc { text-align: center; font-weight: bold; margin-bottom: 20px; line-height: 1.6; color: var(--text-main); }
.regulation-item { background: #f8fafc; padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.regulation-label { display: block; font-weight: bold; color: var(--brand-purple); margin-bottom: 8px; }
.drink-menu { list-style: none; padding: 0; margin: 0; color: var(--text-main); font-weight: 500; }
.drink-menu li { margin-bottom: 4px; }
.chara-box { margin: 40px 0; display: flex; align-items: center; justify-content: center; gap: 15px; max-width: 500px; margin-left: auto; margin-right: auto; }
.chara-icon { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #ffca28; box-shadow: 0 4px 6px rgba(0,0,0,0.1); object-fit: cover; background: #fff; flex-shrink: 0; }
.chara-bubble { position: relative; background: #fff8e1; border: 2px solid #ffca28; border-radius: 12px; padding: 15px; font-weight: 800; color: #f57f17; font-size: 1.0rem; line-height: 1.5; white-space: nowrap; }
.chara-bubble::after { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); border-width: 10px 10px 10px 0; border-style: solid; border-color: transparent #ffca28 transparent transparent; }

.chara-box.snnm-style .chara-icon { border-color: #f06292; }
.chara-box.snnm-style .chara-bubble { background: #fce4ec; border-color: #f06292; color: #c2185b; font-size: 0.85rem; line-height: 1.5; padding: 15px; text-align: left; white-space: normal; }
.chara-box.snnm-style .chara-bubble::after { border-color: transparent #f06292 transparent transparent; }
.item-card { background: rgba(255,255,255,0.9); padding: 24px; border-radius: 16px; margin-bottom: 30px; box-shadow: var(--shadow-md); position: relative; border-top: 6px solid #e2e8f0; }
.item-card.bad { border-top-color: #ef4444; }
.item-card.normal { border-top-color: #f59e0b; }
.item-card.good { border-top-color: #10b981; }
.item-title { display: block; font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.star-rating { background: #f8fafc; padding: 12px; border-radius: 8px; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 12px; }
.stars-outer { display: inline-block; position: relative; font-family: sans-serif; letter-spacing: 2px; }
.stars-outer::before { content: '★★★★★'; color: #cbd5e1; font-size: 1.2rem; }
.stars-inner { position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden; }
.stars-inner::before { content: '★★★★★'; color: #fbbf24; font-size: 1.2rem; letter-spacing: 2px; }
.rating-text { font-weight: bold; font-size: 1.1rem; color: var(--text-main); }
.price-display { font-weight: bold; color: #64748b; margin-bottom: 16px; }
.comment { background: #f1f5f9; padding: 16px; border-radius: 12px; margin-top: 16px; font-size: 0.95rem; line-height: 1.6; color: var(--text-main); }
.product-area { margin: 15px 0 20px 0; text-align: center; }
.product-img-box { margin-bottom: 15px; text-align: center; display: flex; justify-content: center; align-items: center; }
.product-img-box img { width: 100%; max-width: 400px; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: opacity 0.2s; border: none; }
.product-img-box img:hover { opacity: 0.9; }
.product-desc-text { color: var(--text-main); line-height: 1.7; font-size: 0.95rem; text-align: left; background: #fff; border: 1px solid #e0e0e0; padding: 15px; border-radius: 8px; }
.product-desc-title { display: block; font-weight: 800; color: var(--brand-purple); margin-bottom: 8px; font-size: 1.05rem; }
.recommend-list { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 20px; border-radius: 12px; margin-top: 20px; }
.recommend-title { display: block; font-weight: 800; color: #047857; margin-bottom: 12px; }
.recommend-list ul { padding-left: 20px; margin: 0; color: #065f46; font-weight: 600; line-height: 1.8; }
.micro-copy { display: block; text-align: center; font-size: 0.85rem; font-weight: 800; color: #ef4444; margin-top: 30px; margin-bottom: 10px; }
.cv-button { display: block; background: #ef4444; color: #fff !important; text-align: center; padding: 18px; border-radius: 50px; font-weight: 800; font-size: 1.15rem; text-decoration: none; box-shadow: 0 4px 15px rgba(239,68,68,0.3); transition: transform 0.2s, box-shadow 0.2s; }
.cv-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239,68,68,0.4); }
.disclaimer { font-size: 0.75rem; color: #94a3b8; text-align: center; line-height: 1.6; margin-top: 40px; padding: 0 10px; }
.back-link { display: inline-block; margin-top: 30px; margin-bottom: 50px; text-decoration: none; font-weight: 800; color: var(--brand-purple); background: #fff; padding: 12px 24px; border-radius: 50px; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.back-link:hover { transform: translateX(-4px); }

/* =========================================================
   Global Header & Navigation (16Personalities style)
========================================================= */
.global-header { position: sticky; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.header-logo { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.header-nav { display: none; }
@media (min-width: 768px) {
  .header-nav { display: flex; align-items: center; gap: 24px; }
  .header-nav a { font-weight: 700; color: var(--text-main); font-size: 0.95rem; text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: background 0.2s; }
  .header-nav a:hover { background: #f1f5f9; color: var(--brand-purple); }
  .menu-toggle { display: none; }
}
.menu-toggle { background: transparent; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; padding: 4px; }
.mobile-menu { position: fixed; top: 60px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 2px solid var(--brand-purple); box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-150%); transition: transform 0.3s ease-in-out; z-index: 999; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { display: block; font-weight: 800; color: var(--text-main); font-size: 1.1rem; padding: 12px; background: #f8fafc; border-radius: 12px; text-decoration: none; text-align: center; }

/* Counter / Proof Section */
.proof-counter { background: linear-gradient(135deg, var(--brand-gold-light), #fff, var(--brand-gold-light)); padding: 30px 20px; text-align: center; border-radius: 16px; margin: 40px 0; border: 2px solid var(--brand-gold); box-shadow: var(--shadow-sm); }
.proof-counter-num { font-size: 2.5rem; font-family: var(--font-title); font-weight: 800; color: #b45309; line-height: 1.2; text-shadow: 1px 1px 0px #fff; }
.proof-counter-label { font-weight: 800; color: var(--text-main); font-size: 1.1rem; }

/* SNS Review Grid */
.sns-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.sns-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.sns-header { display: flex; align-items: center; gap: 12px; }
.sns-avatar { width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; object-fit: cover; border: 1px solid #e2e8f0; }
.sns-user { display: flex; flex-direction: column; }
.sns-name { font-weight: 800; font-size: 0.9rem; color: var(--text-main); }
.sns-handle { font-size: 0.75rem; color: var(--text-muted); }
.sns-text { font-size: 0.95rem; line-height: 1.6; color: var(--text-main); }
.sns-tag { color: #3b82f6; font-weight: 600; }

/* Format Adjustments for Result Pages */
.marker-highlight {
  background: linear-gradient(transparent 60%, rgba(255, 213, 79, 0.6) 40%);
  font-weight: 800;
  color: var(--text-main);
  padding: 0 4px;
}

.match-profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 10px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.match-profile.good-match { border-left: 4px solid #10b981; }
.match-profile.bad-match { border-left: 4px solid #ef4444; }
.match-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.match-text { flex: 1; }
.match-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.match-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* Match Links and Responsive State */
.match-profile-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;
}
.match-profile-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.match-profile-link:hover .match-title {
  color: var(--brand-purple);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .match-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }
  .match-profile.good-match { border-left: none; border-top: 4px solid #10b981; }
  .match-profile.bad-match { border-left: none; border-top: 4px solid #ef4444; }
  .match-avatar { width: 80px; height: 80px; margin-bottom: 10px; }
  .match-text { text-align: center; }
  .match-title { justify-content: center; }
}
