/* ===================================
   Wellabit Rhythm Check - Main Styles
   =================================== */

/* --- Variables --- */
:root {
  /* ブランドカラー: メイン #f1d6ba / サブ #5a6a4f */
  --green-dark:   #3d4e38;   /* サブよりさらに深い緑 */
  --green-main:   #5a6a4f;   /* サブカラー */
  --green-mid:    #8a9e7a;   /* サブの中間 */
  --green-light:  #c2d0b3;   /* サブの薄め */
  --green-pale:   #eef3e8;   /* サブの極薄 */
  --beige:        #e8c9a6;   /* メインより少し濃い */
  --beige-light:  #f7ece0;   /* メインより薄め */
  --beige-pale:   #fdf8f3;   /* メインの極薄 */
  --text-dark:    #2C2C2C;
  --text-mid:     #5C5C5C;
  --text-light:   #8C8C8C;
  --white:        #FFFFFF;

  /* Brand Colors */
  --brand-main:   #f1d6ba;   /* メインカラー */
  --brand-sub:    #5a6a4f;   /* サブカラー */

  /* Category Colors */
  --life-color:   #87CEEB;
  --body-color:   #F5D642;
  --mind-color:   #F0A0B8;

  /* Total Colors - 7 shades (サブカラーベース) */
  --total-1: #7AB648;
  --total-2: #96C85A;
  --total-3: #A8C080;
  --total-4: #8AAA70;
  --total-5: #7A9060;
  --total-6: #607850;
  --total-7: #4A6040;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--beige-pale);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Screen Management --- */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  animation: fadeIn 0.5s ease;
}
.screen.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--brand-main);   /* メインカラー #f1d6ba */
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-logo { height: 40px; width: auto; object-fit: contain; }
.header-result { background: var(--beige-light); border-bottom: 1px solid var(--beige); }

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 12px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.1em;
}

/* ===================================
   SCREEN 1: TOP
   =================================== */
.top-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--beige-pale) 0%, var(--green-pale) 100%);
  padding: 40px 24px;
}

.top-hero {
  text-align: center;
  max-width: 400px;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 24px;
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.top-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.top-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--green-main);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.top-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 40px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-block;
  background: var(--green-main);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 106, 79, 0.3);
}
.btn-primary:hover  { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(90, 106, 79, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--green-light); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-main);
  border-radius: 50px;
  padding: 14px 36px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--green-pale); }

.link-text {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}
.link-text:hover { color: var(--green-main); }

/* ===================================
   SCREEN 2: API KEY
   =================================== */
.centered-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  text-align: center;
}

.card-icon { font-size: 48px; margin-bottom: 16px; }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.card-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.text-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--green-light);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  transition: border-color 0.2s;
  background: var(--beige-pale);
}
.text-input:focus { outline: none; border-color: var(--green-main); }

.btn-show-hide {
  padding: 12px 16px;
  background: var(--green-pale);
  border: 1.5px solid var(--green-light);
  border-radius: 10px;
  font-size: 12px;
  color: var(--green-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-show-hide:hover { background: var(--green-light); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  margin-bottom: 24px;
  justify-content: center;
}

/* ===================================
   SCREEN 3: UPLOAD
   =================================== */
.upload-container {
  max-width: 480px;
  width: 100%;
  padding: 8px 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.section-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 28px;
}

.upload-area {
  border: 2px dashed var(--green-mid);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.upload-area:hover { border-color: var(--green-main); background: var(--green-pale); }
.upload-area.has-image { padding: 0; border-style: solid; }

.upload-placeholder { pointer-events: none; }
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-text { font-size: 15px; color: var(--green-main); font-weight: 500; margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--text-light); }

.preview-image {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
}

.tips-box {
  background: var(--beige-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.tips-title { font-size: 13px; font-weight: 500; color: var(--green-dark); margin-bottom: 8px; }
.tips-list { list-style: none; padding: 0; }
.tips-list li { font-size: 12px; color: var(--text-mid); padding: 2px 0; }
.tips-list li::before { content: "✓ "; color: var(--green-main); }

.error-message {
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #CC4444;
  margin-bottom: 16px;
  text-align: center;
}

/* ===================================
   SCREEN 4: LOADING
   =================================== */
.loading-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--beige-pale) 0%, var(--green-pale) 100%);
}

.loading-container { text-align: center; padding: 40px 24px; }

.loading-logo-img {
  width: 100px;
  height: auto;
  margin-bottom: 40px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.95); }
}

.loading-animation {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-main);
  animation: bounce 1.2s ease-in-out infinite;
}
.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.2s; }
.dot3 { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%            { transform: scale(1.2); opacity: 1; }
}

.loading-text {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: var(--green-light);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--green-main);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
  animation: progressAnim 8s ease forwards;
}

@keyframes progressAnim {
  0%  { width: 0%; }
  30% { width: 40%; }
  60% { width: 70%; }
  90% { width: 90%; }
}

/* ===================================
   SCREEN 5: RESULT
   =================================== */
.result-main {
  flex: 1;
  padding: 0 0 60px;
}

/* Hero */
.result-hero {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--beige-pale) 0%, var(--green-pale) 100%);
  margin-bottom: 8px;
}

.result-color-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: revealCircle 1s ease forwards;
  position: relative;
}

.result-color-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.3;
  animation: ringPulse 2s ease-in-out infinite;
}

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

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%       { transform: scale(1.1); opacity: 0.1; }
}

.result-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
}

.result-color-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.result-color-message {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* Sections */
.result-section {
  padding: 24px 24px 0;
  max-width: 600px;
  margin: 0 auto;
}

.result-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--green-main);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--green-light);
}

/* Category Colors */
.category-colors {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.category-color-item { text-align: center; }

.category-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: revealCircle 0.8s ease forwards;
}

.category-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.category-score {
  font-size: 12px;
  color: var(--text-light);
}

/* Cards */
.result-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 8px;
}

.result-state {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 2;
  color: var(--text-dark);
}

.advice-card { background: var(--green-pale); border: 1px solid var(--green-light); }
.result-advice {
  font-size: 14px;
  line-height: 2;
  color: var(--green-dark);
}

.note-card { background: var(--beige-light); border: 1px solid var(--beige); }
.result-note {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  line-height: 2;
  color: var(--text-mid);
  font-style: italic;
}

/* Product Cards */
.product-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 0;
}

.product-card-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-card-body {
  padding: 16px;
  flex: 1;
}

.product-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.product-card-concept {
  font-size: 11px;
  color: var(--green-main);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-family: 'Cormorant Garamond', serif;
}

.product-card-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Actions */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 32px 24px 0;
  max-width: 600px;
  margin: 0 auto;
}

/* ボタン中央揃え */
.btn-center {
  display: block;
  margin: 0 auto;
}

/* 商品コンセプト名フォントサイズ拡大（+2pt） */
.product-card-concept {
  font-size: 13px;
}

/* アドバイスアクション */
.advice-message {
  font-size: 14px;
  line-height: 2;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.advice-action {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--green-main);
}

.advice-action-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.advice-action-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--green-dark);
  font-weight: 500;
}

/* カテゴリスコア言葉表示 */
.category-score {
  font-size: 11px;
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
}

/* ===================================
   SCREEN 0: USERNAME
   =================================== */
.username-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--beige-pale) 0%, var(--green-pale) 100%);
  padding: 40px 24px;
}

.username-container {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.username-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  animation: floatLogo 4s ease-in-out infinite;
}

.username-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.username-welcome {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.username-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.username-input-wrap {
  margin-bottom: 20px;
}

.username-input {
  width: 100%;
  text-align: center;
  font-size: 18px;
  padding: 14px 20px;
  border-radius: 50px;
  letter-spacing: 0.1em;
}

.username-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

/* ===================================
   TOP: ヘッダー名前表示
   =================================== */
.header-top {
  justify-content: space-between;
}

.header-username {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===================================
   TOAST通知
   =================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 0.05em;
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================
   TOP: 2択ボタン
   =================================== */
.top-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.btn-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--green-main);
  color: var(--white);
  border: none;
  border-radius: 16px;
  padding: 20px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 106, 79, 0.3);
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.btn-choice:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 106, 79, 0.4);
}
.btn-choice:active { transform: translateY(0); }

.btn-choice-sub {
  background: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-light);
  box-shadow: none;
}
.btn-choice-sub:hover {
  background: var(--green-pale);
  border-color: var(--green-main);
  color: var(--green-dark);
  box-shadow: none;
}

.btn-choice-icon {
  font-size: 28px;
  margin-bottom: 2px;
}
.btn-choice-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.btn-choice-desc {
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.03em;
}
.btn-choice-sub .btn-choice-desc {
  color: var(--text-light);
}

/* ===================================
   SCREEN 4: QUESTIONNAIRE
   =================================== */
.questionnaire-container {
  max-width: 520px;
  width: 100%;
  padding: 8px 0 40px;
}

/* セクション全体 */
.q-section {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.q-section--note {
  background: var(--beige-light);
}

/* セクションヘッダー */
.q-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--green-light);
}
.q-section-header--life  { background: rgba(135,206,235,0.15); border-bottom-color: rgba(135,206,235,0.4); }
.q-section-header--body  { background: rgba(245,230,66,0.12);  border-bottom-color: rgba(245,230,66,0.3); }
.q-section-header--mind  { background: rgba(255,181,200,0.15); border-bottom-color: rgba(255,181,200,0.4); }
.q-section-header--note  { background: rgba(217,204,168,0.2);  border-bottom-color: var(--beige); }

.q-section-badge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: 6px;
  padding: 2px 10px;
}
.q-section-header--life  .q-section-badge { border-color: rgba(135,206,235,0.6); color: #3A7A9C; }
.q-section-header--body  .q-section-badge { border-color: rgba(200,180,60,0.5);   color: #806830; }
.q-section-header--mind  .q-section-badge { border-color: rgba(240,160,176,0.6);  color: #A06070; }
.q-section-header--note  .q-section-badge { border-color: var(--beige); color: var(--text-mid); }

.q-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.08em;
}

/* 質問アイテム */
.q-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--beige-light);
}
.q-item:last-child { border-bottom: none; }

.q-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

/* 選択肢ボタン */
.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q-options--yesno {
  gap: 12px;
}

.q-btn {
  padding: 9px 16px;
  border: 1.5px solid var(--green-light);
  border-radius: 50px;
  background: var(--beige-pale);
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.q-btn:hover {
  border-color: var(--green-main);
  color: var(--green-dark);
  background: var(--green-pale);
}
.q-btn.selected {
  background: var(--green-main);
  border-color: var(--green-main);
  color: var(--white);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(90, 106, 79, 0.3);
}

/* YES / NOT YET ボタン */
.q-btn--yes,
.q-btn--no {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 12px;
}
.q-btn--yes:hover  { border-color: var(--green-main); background: var(--green-pale); color: var(--green-dark); }
.q-btn--no:hover   { border-color: #C88090; background: #FFF0F4; color: #A06070; }
.q-btn--yes.selected { background: var(--green-main); border-color: var(--green-main); color: var(--white); }
.q-btn--no.selected  { background: #C88090; border-color: #C88090; color: var(--white); box-shadow: 0 2px 8px rgba(200,128,144,0.3); }

/* フリーノートテキストエリア */
.q-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1.5px solid var(--beige);
  border-radius: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.8;
}
.q-textarea:focus {
  outline: none;
  border-color: var(--green-main);
}
.q-textarea::placeholder {
  color: var(--text-light);
}

/* WELLABIT セクションヘッダー */
.q-section-header--wellabit {
  background: rgba(168, 200, 144, 0.18);
  border-bottom-color: rgba(168, 200, 144, 0.5);
}
.q-section-header--wellabit .q-section-badge {
  border-color: var(--green-light);
  color: var(--green-dark);
}

/* 質問ラベルのサブテキスト */
.q-label-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 6px;
  letter-spacing: 0.02em;
}

/* 複数選択ボタン */
.q-options--multi {
  flex-wrap: wrap;
  gap: 8px;
}

.q-btn--multi {
  padding: 8px 14px;
  border: 1.5px solid var(--green-light);
  border-radius: 50px;
  background: var(--beige-pale);
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.q-btn--multi:hover {
  border-color: var(--green-main);
  color: var(--green-dark);
  background: var(--green-pale);
}
.q-btn--multi.selected {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(168,192,128,0.4);
}

/* 結果画面：Wellabit使用状況カード */
.wellabit-usage-card {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
}

.wellabit-usage-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green-main);
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 8px;
}

.wellabit-usage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wellabit-tag {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--green-dark);
  letter-spacing: 0.03em;
}

/* ===================================
   TOP: サブボタン群（履歴・ガイド）
   =================================== */
.top-sub-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.btn-history {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: var(--text-light);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.2s;
}
.btn-history:hover {
  color: var(--green-main);
  background: var(--green-pale);
}

.btn-guide-link {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.btn-guide-link:hover {
  color: var(--green-dark);
  background: var(--green-pale);
}

/* ===================================
   SCREEN 7: HISTORY
   =================================== */
.history-main {
  flex: 1;
  padding: 0 0 80px;
  background: var(--beige-pale);
}

/* ヘッダー */
.history-header {
  padding: 24px 24px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--beige);
  text-align: center;
}
.history-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.history-count {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* グラフセクション */
.history-graph-section {
  background: var(--white);
  margin: 16px 16px 0;
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.history-graph-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--green-main);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

/* カラーサークルスクロール */
.history-graph-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.history-graph-scroll::-webkit-scrollbar { height: 3px; }
.history-graph-scroll::-webkit-scrollbar-track { background: var(--beige-light); border-radius: 2px; }
.history-graph-scroll::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

.history-graph {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: max-content;
  padding: 4px 4px 0;
}

/* 各週のカラーアイテム */
.hgraph-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-width: 52px;
}
.hgraph-item:active { transform: scale(0.93); }

.hgraph-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s;
}
.hgraph-circle--latest {
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.hgraph-circle--latest::after {
  content: '最新';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--green-main);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.hgraph-date {
  font-size: 9px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hgraph-name {
  font-size: 9px;
  color: var(--text-mid);
  text-align: center;
  letter-spacing: 0.02em;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* スコア折れ線グラフ */
.history-chart-wrap {
  width: 100%;
  height: 80px;
  position: relative;
}
#history-chart {
  width: 100% !important;
  height: 80px !important;
}

/* 記録一覧 */
.history-list-section {
  margin: 16px 16px 0;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 各記録カード */
.history-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.history-card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.history-card:active { transform: scale(0.98); }

.history-card-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.history-card-body { flex: 1; min-width: 0; }
.history-card-date {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.history-card-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.history-card-name-ja {
  font-size: 11px;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.history-card-cats {
  display: flex;
  gap: 6px;
}
.history-cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.history-card-arrow {
  font-size: 16px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* 空の状態 */
.history-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}
.history-empty-icon { font-size: 48px; margin-bottom: 16px; }
.history-empty-text { font-size: 14px; line-height: 2; }

/* 戻るボタン */
.history-back {
  text-align: center;
  padding: 16px;
}

/* 履歴詳細モーダル */
.history-modal-inner {
  max-height: 80vh;
  overflow-y: auto;
}
.history-modal-date {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.hmodal-cats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
  padding: 16px;
  background: var(--beige-light);
  border-radius: 12px;
}
.hmodal-cat-item { text-align: center; }
.hmodal-cat-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hmodal-cat-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-light);
}
.hmodal-cat-word {
  font-size: 11px;
  color: var(--text-mid);
  margin-top: 2px;
}
.hmodal-advice {
  background: var(--green-pale);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--green-dark);
  text-align: left;
  margin-top: 12px;
}
.hmodal-note {
  background: var(--beige-light);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 12px;
}
.hmodal-note-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mid);
  font-style: italic;
}

/* ===================================
   COLOR CHART
   =================================== */

.chart-category-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--green-main);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* チャート全体 */
.color-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 各カラーアイテム */
.chart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.chart-item:hover,
.chart-item:active {
  background: var(--beige-light);
}

/* 現在の結果アイテム */
.chart-item--current {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 12px 16px;
  border-radius: 16px;
}
.chart-item--current:hover,
.chart-item--current:active {
  background: var(--beige-light);
}

/* カラー丸 */
.chart-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.chart-item--current .chart-circle {
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.chart-item:active .chart-circle {
  transform: scale(0.92);
}

/* テキスト */
.chart-item-text {
  flex: 1;
  min-width: 0;
}
.chart-item-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.chart-item-name-ja {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 1px;
}
/* カテゴリチャート：オノマトペのみ表示 */
.chart-item-onomatopoeia {
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-top: 0;
  font-family: 'Noto Sans JP', sans-serif;
}
.chart-item--current .chart-item-onomatopoeia {
  font-size: 16px;
  font-weight: 500;
  color: var(--green-dark);
}
.chart-item--current .chart-item-name-en {
  font-size: 16px;
  color: var(--green-dark);
  font-weight: 500;
}
.chart-item--current .chart-item-name-ja {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 2px;
}

/* 現在マーク */
.chart-item-badge {
  display: none;
  font-size: 10px;
  background: var(--green-main);
  color: var(--white);
  border-radius: 50px;
  padding: 2px 8px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.chart-item--current .chart-item-badge {
  display: inline-block;
}

/* タップヒント */
.chart-tap-hint {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ===================================
   COLOR MODAL
   =================================== */
.color-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.color-modal.open {
  display: flex;
}

.color-modal-inner {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 32px 28px 48px;
  width: 100%;
  max-width: 520px;
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.color-modal-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.color-modal-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.color-modal-name-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.color-modal-message {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 16px;
  white-space: pre-line;
}

.color-modal-state {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-mid);
  background: var(--beige-light);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
}

/* ===================================
   GUIDE PAGE
   =================================== */
.guide-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.guide-header {
  text-align: center;
  padding: 32px 20px 16px;
  background: var(--beige-light);
  border-bottom: 1px solid var(--beige);
}

.guide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin: 0 0 6px;
}

.guide-subtitle {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
}

.guide-section {
  padding: 24px 20px 8px;
  border-bottom: 1px solid var(--green-pale);
}

.guide-section-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--green-dark);
  margin: 0 0 16px;
  letter-spacing: 0.03em;
}

/* --- intro card --- */
.guide-intro-card {
  background: var(--green-pale);
  border-radius: 16px;
  padding: 18px 16px;
}

.guide-intro-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dark);
  margin: 0 0 14px;
}

.guide-intro-text strong {
  color: var(--green-dark);
}

.guide-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.guide-cat {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 4px;
  border-radius: 12px;
  background: white;
}

.guide-cat span {
  font-size: 10px;
  font-weight: 300;
  display: block;
  color: var(--text-mid);
}

.guide-cat.life { border: 2px solid var(--life-color); color: #3a8eb0; }
.guide-cat.body { border: 2px solid var(--body-color); color: #9a8400; }
.guide-cat.mind { border: 2px solid var(--mind-color); color: #c0507a; }

/* --- steps --- */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.guide-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-main);
  color: white;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-content {
  flex: 1;
  padding-top: 2px;
}

.guide-step-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.5;
}

.guide-step-desc {
  font-size: 12px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.7;
}

/* --- Q&A blocks --- */
.guide-qa-block {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--green-light);
}

.guide-qa-cat {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  margin: 0;
}

.guide-qa-block.life-block .guide-qa-cat { background: #d6eef8; color: #3a8eb0; }
.guide-qa-block.body-block .guide-qa-cat { background: #fdf5cc; color: #9a8400; }
.guide-qa-block.mind-block .guide-qa-cat { background: #fde8ef; color: #c0507a; }

.guide-qa-item {
  padding: 10px 14px;
  border-top: 1px solid var(--green-pale);
  background: white;
}

.guide-qa-q {
  font-size: 12px;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.guide-qa-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-qa-options span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-pale);
  color: var(--green-dark);
}

.guide-qa-options.yes-no span {
  font-size: 11px;
  padding: 3px 14px;
  font-weight: 500;
}

/* --- download --- */
.guide-download-section {
  background: linear-gradient(135deg, var(--beige-pale) 0%, var(--beige-light) 100%);
}

.guide-download-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(90, 106, 79, 0.10);
}

.guide-download-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.guide-download-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--green-dark);
  margin: 0 0 8px;
}

.guide-download-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0 0 18px;
}

.btn-download {
  display: inline-block;
  background: var(--green-main);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-download:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.guide-download-note {
  font-size: 11px;
  color: var(--text-light);
  margin: 12px 0 0;
  line-height: 1.6;
}

/* --- FAQ --- */
.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-faq-item {
  border: 1px solid var(--green-light);
  border-radius: 12px;
  overflow: hidden;
}

.guide-faq-q {
  width: 100%;
  text-align: left;
  background: var(--green-pale);
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.faq-arrow {
  font-size: 10px;
  color: var(--green-main);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.guide-faq-q.open .faq-arrow {
  transform: rotate(180deg);
}

.guide-faq-a {
  display: none;
  background: white;
  padding: 14px 16px;
}

.guide-faq-a p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0;
}

.guide-faq-item.open .guide-faq-a {
  display: block;
}

.guide-back {
  text-align: center;
  padding: 24px 20px;
}

/* ===================================
   RESULT ACTIONS（3ボタン対応）
   =================================== */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 32px;
  align-items: center;
}

.btn-share-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--brand-sub) 0%, #7a8a6f 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(90, 106, 79, 0.30);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-share-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 106, 79, 0.40);
}

.btn-share-image:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===================================
   SNS シェアカード（キャプチャ用・非表示）
   =================================== */
.share-card {
  display: none;
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: -1;
  width: 375px;
}

.share-card-bg {
  width: 375px;
  min-height: 480px;
  padding: 32px 28px 28px;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  border-radius: 24px;
  overflow: hidden;
}

.share-card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.share-card-logo-wrap {
  margin-bottom: 10px;
}

.share-card-logo {
  height: 26px;
  object-fit: contain;
}

.share-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--green-main);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.share-card-circle-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.share-card-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.share-card-circle-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  z-index: 1;
}

.share-card-color-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #2C2C2C;
  margin: 0 0 4px;
}

.share-card-color-ja {
  font-size: 13px;
  color: #5C5C5C;
  margin: 0 0 12px;
  letter-spacing: 0.08em;
}

.share-card-message {
  font-size: 12px;
  line-height: 1.8;
  color: #3C3C3C;
  margin: 0 0 20px;
  padding: 0 8px;
}

.share-card-cats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.share-card-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.share-card-cat-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.share-card-cat-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #8C8C8C;
}

.share-card-week {
  font-size: 10px;
  color: #8C8C8C;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}

.share-card-footer {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #A0A0A0;
  margin: 0;
}

/* ===================================
   シェア画像プレビューモーダル
   =================================== */
.share-image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-image-modal.active {
  display: flex;
}

.share-image-modal-inner {
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.share-image-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #2C2C2C;
  margin: 0 0 16px;
}

.share-image-preview {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.share-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.share-image-hint {
  font-size: 12px;
  color: #8C8C8C;
  margin: 0 0 16px;
  line-height: 1.6;
}

.share-image-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.share-image-buttons .btn-primary,
.share-image-buttons .btn-secondary {
  width: 100%;
  max-width: 280px;
}

.btn-share-native {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: #1DA1F2;
  color: white;
  transition: background 0.2s;
}

.btn-share-native:hover {
  background: #1a8cd8;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (min-width: 480px) {
  .top-title { font-size: 52px; }
  .result-color-circle { width: 200px; height: 200px; }
  .category-circle { width: 88px; height: 88px; }
}

@media (max-width: 360px) {
  .top-title { font-size: 34px; }
  .category-colors { gap: 16px; }
  .category-circle { width: 60px; height: 60px; }
}
