﻿@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #FFE5F1 0%, #FFC4E1 25%, #E8B4F3 50%, #D4A5F9 75%, #B794F6 100%);
    overflow-x: hidden;
    position: relative;
    color: #333;
}

.center {
    text-align: center;
}


.attachment-content {
    background: linear-gradient(135deg, #FFF8FB 0%, #FFF0F7 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.attachment-description {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    padding: 0 4px;
}

.attachment-tips {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #FFE5F1;
}

.attachment-tips-title {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-align: center;
}

.attachment-tips-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(255, 229, 241, 0.5);
}

.tip-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(183, 148, 246, 0.3);
}

.tip-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding-top: 4px;
}

/* Attachment chip and notes */
.attachment-chip {
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1;
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.result-section .section-title { margin: 16px 0 8px; font-weight: 700; }
.result-section .bullet-list { padding-left: 1.2rem; }
.result-section .bullet-list li { margin: .25rem 0; }
.bf-note { margin-top: 12px; opacity: .85; }
.bf-note-text { color: #6b7280; }
.ad-desc { font-size: 0.7rem; color: #ab88c9; margin: -10px 0 24px; }
/* Actions grid */
.result-section .section-title.action-title {
  margin: 16px 0 36px;
}
.actions-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}
.action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 16px 16px 24px;
  padding-top: 40px; /* 吹き出し用の余白を確保 */
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative;
}

/* 吹き出しバブル */
.action-bubble {
  position: absolute;
  top: -16px;
  left: 32%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 100%);
  border: 2px solid #FFE5B4;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #C17800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 193, 37, 0.15);
  z-index: 3;
  width: calc(100% - 130px);
  text-align: center;
}

.action-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #FFE5B4;
}

.action-bubble::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #FFF9E6;
}

/* 吹き出しテキストのレスポンシブ対応 */
@media (max-width: 430px) {
  .action-bubble {
    font-size: 12px;
    padding: 6px 10px;
    white-space: normal;
    line-height: 1.3;
  }
}
.action-media { display: flex; align-items: center; gap: 10px; }
.action-media img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fafafa; }
.action-name { font-weight: 900; font-size: 1.05rem; color: #111827; }
.action-catch { margin: 2px 0 2px; color: #ec3aed; font-weight: 700; font-size: .95rem; }
.action-summary { color: #374151; font-size: .95rem; line-height: 1.5; }
.action-appeal { margin-top: 4px; color: #111827; font-size: .9rem; background: #f3f4f6; padding: 6px 8px; border-radius: 8px; }
.action-hooks { margin: 4px 0 0; padding-left: 1.1rem; color: #111827; }
.action-hooks li { margin: 3px 0; font-size: 0.9rem; }
.action-cta { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.action-button { display: inline-block; text-align: center; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: #fff; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.action-micro { color: #6b7280; font-size: .8rem; text-align: left; }

/* microcopy above button, centered */
.action-cta { align-items: center; }
.action-cta .action-micro { text-align: center; width: 100%; }

/* category badge top-right */
.action-card::after {
  content: attr(data-category);
  position: absolute;
  top: 20px;
  right: 10px;
    background: #eeffed;
    color: #129a1e;
    border: 1px solid #d1feaa;
  font-size: .72rem;
  padding: 2px 6px;
  border-radius: 8px;
}

/* points block */
.action-points { background: linear-gradient(135deg, #FFF8FB 0%, #FFF0F7 100%); border: 1px solid #FFE5F1; padding: 8px 10px; border-radius: 10px; }
.action-points-title { font-weight: 800; font-size: .9rem; color: #ff8bca; margin-bottom: 6px; }

@media (min-width: 431px) {
  .actions-grid { gap: 16px; }
}

/* Hide legacy app recommendation section to avoid fallback display */
.result-page .apps-grid,
.result-page .app-card {
  display: none !important;
}

/* Shared view adjustments */
.shared-view .actions-grid,
.shared-view #actionsGrid { display: none !important; }
.shared-view .share-section .share-button { display: none !important; }
.shared-view .action-title { display: none !important;}
/* Be defensive: hide recommend-tags wrapper if it only contains actions */

/* アプリコンテナ */
#app {
    max-width: 430px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 50px rgba(183, 148, 246, 0.25);
    position: relative;
}

/* スクリーン共通 */
.screen {
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen.hidden {
    display: none;
}

/* スタート画面 */
.start-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    padding-bottom: 40px;
}

.main-visual {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.microcopy {
    color: #dbabf3;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}
.theory-use {
    margin: 0 16px;
    padding: 16px;
    background-color: #ffebfa;
    border-radius: 24px;
}
.theory-use p {
    font-size: 12px;
}

/* プライマリボタン（共通） */
.primary-button {
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    width: 80%;
    max-width: 320px;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(144, 6, 199, 0.3);
    margin: 0 auto;
    position: relative;
}

.primary-button:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(144, 6, 199, 0.2);
}

.submit-button {
    margin-top: 8px;
    width: 100%;
}

.submit-button.hidden {
    display: none;
}

.button-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.start-button:hover .button-arrow {
    transform: translateX(5px);
}

/* クイズ画面 */
.quiz-container {
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

/* プログレスバー */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: #FFF0F7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFC4E1 0%, #E8B4F3 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #B794F6;
    font-weight: 500;
}

/* 質問カードコンテナ */
.questions-wrapper {
    position: relative;
    min-height: 500px;
    margin-bottom: 20px;
}

/* 質問カード */
.question-card {
    position: absolute;
    width: 100%;
    border-radius: 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.question-card.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.question-card.prev {
    transform: translateX(-110%);
    opacity: 0;
    z-index: 1;
}

.question-card.next {
    transform: translateX(110%);
    opacity: 0;
    z-index: 1;
}

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, #ffb9d9 0%, #ebc4ff 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 6段階選択UI */
.answer-scale {
    margin-bottom: 30px;
}

/* 結果ページ 追加スタイル */
.barometer-container {
    display: grid;
    gap: 16px;
}
.barometer-item { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 16px rgba(183,148,246,0.18); }
.barometer-labels { display:flex; justify-content:space-between; font-weight:700; margin-bottom:8px; }
.barometer-left, .barometer-right { opacity:.5 }
.barometer-left.active, .barometer-right.active { opacity:1 }
.barometer-track { position:relative; height:10px; background:#f6f0fb; border-radius:6px; }
.barometer-center-line { position:absolute; left:50%; top:0; bottom:0; width:2px; background:#ddd; transform:translateX(-1px); }
.barometer-fill { display:none; }
.barometer-indicator { position:absolute; top:-8px; width:20px; height:20px; border-radius:50%; border:2px solid #fff; background:#B794F6; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.barometer-value { text-align:right; font-size:12px; color:#7a6ca8; margin-top:6px; }

/* 共通カードUI */
.card { background:#fff; border-radius:14px; box-shadow:0 10px 24px rgba(183,148,246,0.22); overflow:hidden; }
.card.line { box-shadow:none; border:1px solid rgba(183,148,246,.35); }
.card-header { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid rgba(0,0,0,.06); }
.card-body { padding:12px; }
.card-footer { padding:10px 12px; border-top:1px solid rgba(0,0,0,.06); }

.tip-timing { color: #fda5ce; }
.badge { display:inline-block; font-size:12px; font-weight:700; color:#5a3fb0; background:rgba(183,148,246,.18); border:1px solid rgba(183,148,246,.5); padding:2px 8px; border-radius:10px; }
.badge.label { color:#444; background:#f3f3f8; border-color:#e3e3ee; margin-right:8px; min-width: 45px; text-align: center; }
.tag { display:inline-block; font-size:12px; color:#5a3fb0; background:#f2ebff; border:1px solid #e3d9ff; padding:2px 8px; border-radius:20px; margin:0 6px 6px 0; }

/* 相性カード */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.match-card .card-media { width:100%; background:#fff; }
.match-card img { display:block; width:100%; height:auto; object-fit:cover; }
.match-card .card-body { text-align:center; font-weight:700; }

/* リスト */
.list-vertical { display:grid; gap:12px; }
.meta-row { display:flex; align-items:center; gap:8px; margin-top:8px; color:#555; font-size:14px; }

/* アプリカード */
.apps-grid { display:grid; gap:12px; }
.app-card.emphasis { outline:2px solid #B794F6; }
.app-name { font-weight:800; }
.app-rating { color:#ffb400; font-size:14px; }
.app-cta-button { width:100%; background:linear-gradient(135deg,#E8B4F3 0%, #B794F6 100%); color:#fff; border:none; border-radius:10px; padding:12px 16px; font-weight:800; }

/* モーダル（中央表示のオーバーレイ） */
.type-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; }
.type-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.type-modal-content {
  position: relative;
  width: min(86vw, 360px);
  max-height: 82vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.type-modal-close {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 999px;
  width: 34px; height: 34px;
  font-size: 18px; line-height: 34px;
}
.type-modal-close:active { transform: scale(0.96); }
.type-modal-image img { display:block; width:100%; height:auto; }
.type-modal-title { padding: 8px 16px 4px; display:flex; flex-direction: column; gap: 2px; text-align:center; }
.type-modal-title-en { font-weight: 900; font-size: 18px; color:#3d2f7a; }
.type-modal-title-ja { font-weight: 700; font-size: 14px; color:#7a6ca8; }
.type-modal-section { padding: 0 16px 14px; }
.type-modal-section h4 { font-size: 14px; color:#7a6ca8; margin: 8px 0; }
.type-modal-section p { color:#444; line-height: 1.7; }
.type-modal-section ul { list-style: none; padding-left: 0; margin: 0; }
.type-modal-section ul li { position: relative; padding-left: 16px; margin: 6px 0; line-height: 1.6; }
.type-modal-section ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width:6px; height:6px; background:#B794F6; border-radius:50%; transform: translateY(-50%); }

@media (min-width: 480px) {
  .type-modal-content { width: min(70vw, 380px); max-height: 84vh; }
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10px;
}

.scale-label {
    font-size: 14px;
    font-weight: 700;
    max-width: 45%;
}

.scale-label.left {
    color: #FF69B4;
    text-align: left;
    font-weight: 600;
}

.scale-label.right {
    color: #2ecceb;
    text-align: right;
    font-weight: 600;
}

.scale-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.scale-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #FF69B4 0%, #FFB6D9 30%, #F0F0F0 50%, #B6E5F3 70%, #2ecceb 100%);
    border-radius: 2px;
    z-index: 0;
}

.scale-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 最強から中間、反対側の最強へ */
.scale-dot-1 { 
    width: 56px; 
    height: 56px; 
    border-color: #FF69B4;
}

.scale-dot-2 { 
    width: 48px; 
    height: 48px; 
    border-color: #FF8FC7;
}

.scale-dot-3 { 
    width: 42px; 
    height: 42px; 
    border-color: #FFB6D9;
}

.scale-dot-4 { 
    width: 42px; 
    height: 42px; 
    border-color: #B6E5F3;
}

.scale-dot-5 { 
    width: 48px; 
    height: 48px; 
    border-color: #74d3ec;
}

.scale-dot-6 { 
    width: 56px; 
    height: 56px; 
    border-color: #2ecceb;
}

.scale-dot:active {
    transform: scale(0.9);
}

.scale-dot.selected {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.scale-dot-1.selected {
    background: #FF69B4;
    border-color: #FF69B4;
    transform: scale(1.1);
}

.scale-dot-2.selected {
    background: #FF8FC7;
    border-color: #FF8FC7;
    transform: scale(1.1);
}

.scale-dot-3.selected {
    background: #FFB6D9;
    border-color: #FFB6D9;
    transform: scale(1.1);
}

.scale-dot-4.selected {
    background: #B6E5F3;
    border-color: #B6E5F3;
    transform: scale(1.1);
}

.scale-dot-5.selected {
    background: #8FD9ED;
    border-color: #8FD9ED;
    transform: scale(1.1);
}

.scale-dot-6.selected {
    background: #2ecceb;
    border-color: #2ecceb;
    transform: scale(1.1);
}

/* 性別選択 */
.gender-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.gender-button {
    flex: 1;
    padding: 25px;
    border: 2px solid #f1a5f9;
    background: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #f1a5f9;
    transition: all 0.3s ease;
}

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

.gender-button.selected {
    background: linear-gradient(135deg, #FFC4E1 0%, #E8B4F3 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(232, 180, 243, 0.3);
}

/* 年齢入力 */
.age-input-container {
    margin-bottom: 30px;
}

.age-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    margin-bottom: 36px;
    justify-content: center;
}

.age-preset {
    padding: 8px 24px;
    background: white;
    border: 2px solid #f1a5f9;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    color: #f1a5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-preset:active {
    transform: scale(0.95);
}

.age-preset.selected {
    background: linear-gradient(135deg, #FFC4E1 0%, #E8B4F3 100%);
    color: white;
    border-color: transparent;
}

.age-slider-container {
    padding: 20px;
    background: #FFF8FB;
    border-radius: 15px;
}

.age-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #FFB6D9 0%, #B6E5F3 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 20px;
}

.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #E8B4F3;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(232, 180, 243, 0.4);
}

.age-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #E8B4F3;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(232, 180, 243, 0.4);
}

.age-display {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 戻るボタン */
.back-button {
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #FFE5F1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #B794F6;
    box-shadow: 0 4px 10px rgba(232, 180, 243, 0.2);
}

.back-button:active {
    transform: scale(0.9);
}

.back-button.hidden {
    display: none;
}

/* 結果画面 */
.result-container {
    padding: 30px 20px;
    padding-bottom: 100px;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.result-subtitle {
    font-size: 16px;
    color: #999;
}

.character-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.character-image {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(232, 180, 243, 0.25);
    margin: 0 auto;
    display: block;
}

.type-info {
    text-align: center;
    margin-bottom: 40px;
}

.type-name {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.type-name-ja {
    font-size: 1.4rem;
    display: block;
    font-weight: 900;
}

.type-name-en {
    font-size: 0.9rem;
    display: block;
    font-weight: 600;
    margin-top: 4px;
}

.type-catchcopy {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.result-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #FFC4E1 0%, #E8B4F3 100%);
    border-radius: 2px;
}

.type-summary {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #FFF8FB 0%, #FFF0F7 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #FFE5F1;
}

.tendency-list {
    list-style: none;
}

.tendency-list li {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(232, 180, 243, 0.1);
}

/* バロメータ */

.barometer-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.barometer-left {
    color: #FF69B4;
    font-weight: 600;
}

.barometer-right {
    color: #2ecceb;
    font-weight: 600;
}

.barometer-bar {
    height: 20px;
    background: #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.barometer-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF69B4 0%, #b2b6ff 50%, #2ecceb 100%);
    border-radius: 10px;
    position: relative;
}

.barometer-indicator {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #B794F6;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(183, 148, 246, 0.4);
}

.barometer-value {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* おすすめタグ */
.recommend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recommend-tag {
    display: inline-block;
    padding: 10px 18px;
    color: #fda5ce;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 180, 243, 0.15);
    border: 2px solid;
}

/* ぼかしマスキング - バロメータの3つ目から */
.result-container {
    position: relative;
}

.content-blur-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 15%,
        rgba(255, 255, 255, 0.6) 35%,
        rgba(255, 255, 255, 0.85) 60%,
        rgba(255, 255, 255, 0.95) 80%,
        rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 15;
    pointer-events: none;
}

.unlock-cta-container {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 20;
    width: calc(100% - 40px);
    max-width: 350px;
    text-align: center;
    pointer-events: all;
}

.blur-hint-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(183, 148, 246, 0.2);
    box-shadow: 0 8px 32px rgba(183, 148, 246, 0.15);
}

.blur-hint-title {
    font-size: 16px;
    font-weight: 700;
    color: #B794F6;
    margin-bottom: 12px;
}

.blur-hint-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.blur-hint-list li {
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.blur-hint-list li:before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 0;
}

.unlock-button {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-button:active {
    transform: scale(0.98);
}

.line-icon {
    display: flex;
    align-items: center;
}

.unlock-benefits {
    margin: 16px auto;
    text-align: left;
    width: 211px;
}

.unlock-benefits li {
    font-size: 0.9rem;
    color: #06c755;
    font-weight: bold;
    line-height: 1.6;
}

/* シェアセクション */
.share-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-button, .retry-button, .cta-button {
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button {
    background: linear-gradient(135deg, #85a5ff 0%, #42d8e7 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(232, 180, 243, 0.3);
}

.share-button {
    background: linear-gradient(135deg, #E8B4F3 0%, #B794F6 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(232, 180, 243, 0.3);
}

.retry-button {
    background: white;
    color: #f1a5f9;
    border: 2px solid #f1a5f9;
}

.share-button:active, .retry-button:active, .cta-button:active {
    transform: scale(0.98);
}

/* アニメーション */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.fade-in {
    animation: slideIn 0.5s ease;
}






/* レスポンシブ対応 */
@media (max-width: 430px) {
    #app {
        max-width: calc(100% - 30px);
        box-shadow: none;
        margin: 15px auto;
        height: calc(100vh - 30px);
        border-radius: 20px;
        overflow: hidden;
    }
    #app.result-page {
        overflow: auto;
    }
    html {
        overflow: hidden;
    }
    
    .attachment-content {
        padding: 16px;
    }
    
    .attachment-tips-title {
        font-size: 15px;
    }
    
    .attachment-tip-item {
        padding: 10px;
        gap: 12px;
    }
    
    .tip-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .tip-text {
        font-size: 13px;
    }
}

@media (min-width: 431px) {
    
    #app {
        border-radius: 20px;
        margin: 20px auto;
        height: calc(100vh - 40px);
    }
    #app.result-page {
        overflow: auto;
    }
    .back-button {
        bottom: 0;
    }
}
/* External icon library */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Hand pointer icon for key CTA buttons */
.primary-button, .unlock-button { display:inline-flex; align-items:center; gap:.4rem; }
.primary-button::after { font-family: 'Font Awesome 6 Free'; font-weight:900; content: '\f25a'; font-size:1.5rem; animation: pointer-wiggle 1.8s ease-in-out infinite; position: absolute; right: 24px; }
.unlock-button::after { font-family: 'Font Awesome 6 Free'; font-weight:900; content: '\f25a'; font-size:1.5rem; animation: pointer-wiggle 1.8s ease-in-out infinite; position: absolute; right: 16px; }
.cta-button::after { font-family: 'Font Awesome 6 Free'; font-weight:900; content: '\f25a'; font-size:1.5rem; animation: pointer-wiggle 1.8s ease-in-out infinite; position: absolute; right: 36px; }
@keyframes pointer-wiggle { 0%,100%{ transform: translateY(0);} 20%{ transform:translateY(-2px);} 40%{ transform:translateY(0);} 60%{ transform:translateY(-1px);} 80%{ transform:translateY(0);} }
