/* ============================================================
   スピンオフ 共通スタイル（恋愛/仕事）
   サイトデザインシステム継承
   ============================================================ */
:root {
  --paper: #F5EFE0;
  --paper-light: #FAF6EC;
  --ink: #2A2521;
  --ink-light: #5A5048;
  --ink-soft: #8B8278;
  --gold: #8B7355;
  --gold-bright: #C9A961;
  --green: #2E5D2E;
  --green-bright: #7A9A6E;
  --red: #A8482D;
  --blue: #1F4068;
  --border: #E5DCC5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', '游明朝', serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }

/* ヘッダー */
.brand-top {
  text-align: center;
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--gold);
  letter-spacing: 0.4em;
  font-size: 13px;
  color: var(--ink-light);
}
.brand-top a { color: inherit; text-decoration: none; }

/* ヒーロー */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: 16px;
  color: var(--ink-light);
  margin-bottom: 36px;
  line-height: 1.9;
}
.cta-primary {
  display: inline-block;
  background: var(--green);
  color: var(--paper);
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cta-primary.blue { background: var(--blue); }
.cta-primary:hover { opacity: 0.9; }
.cta-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.cta-sub {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-light);
}

/* セクション */
section { padding: 50px 0; }
.section-title {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* 特徴カード */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature {
  background: #FFF;
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  border-radius: 6px;
}
.feature-num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 17px;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.feature p {
  font-size: 14px;
  color: var(--ink-light);
}

/* 診断フロー */
#diagnose-flow { display: none; }
#diagnose-flow.active { display: block; }
.question-card {
  background: #FFF;
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: 8px;
  margin: 24px 0;
}
.q-progress {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
}
.q-text {
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 28px;
  padding: 0 8px;
}
.q-opts { display: flex; flex-direction: column; gap: 12px; }
.q-opt {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  transition: all 0.15s;
}
.q-opt:hover { border-color: var(--gold-bright); background: var(--paper-light); }
.q-opt.selected { border-color: var(--green); background: #E8F0E8; }
.q-opt.selected.blue-mode { border-color: var(--blue); background: #E8EEF5; }
.q-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 12px;
}
.q-back-btn, .q-next-btn {
  background: none; border: 1px solid var(--gold); color: var(--ink-light);
  padding: 10px 20px; border-radius: 50px; cursor: pointer; font-family: inherit;
  font-size: 14px;
}
.q-back-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.q-next-btn {
  background: var(--green); border-color: var(--green); color: var(--paper);
}
.q-next-btn.blue-mode { background: var(--blue); border-color: var(--blue); }
.q-next-btn:disabled { background: var(--ink-soft); border-color: var(--ink-soft); cursor: not-allowed; }

/* 結果表示 */
#result-area { display: none; }
#result-area.active { display: block; }
.type-card {
  background: #FFF;
  border: 2px solid var(--gold-bright);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 24px 0;
}
.type-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--gold-bright);
  background: var(--paper);
}
.type-nickname {
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 8px 0 12px;
}
.type-combined-label {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.type-desc {
  font-size: 15px;
  color: var(--ink-light);
  margin: 16px 0;
  line-height: 1.85;
}

/* セクション表示（フル解説） */
.full-section {
  background: #FFF;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-bright);
  padding: 24px 24px;
  border-radius: 6px;
  margin: 16px 0;
}
.full-section h3 {
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--green);
}
.full-section.blue-mode h3 { color: var(--blue); }
.full-section p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  white-space: pre-wrap;
}

/* サブスク導線 */
.subscribe-box {
  background: linear-gradient(180deg, #FFF 0%, var(--paper-light) 100%);
  border: 1px solid var(--gold-bright);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 32px 0;
}
.subscribe-box .price {
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--green);
  margin: 12px 0 4px;
}
.subscribe-box.blue-mode .price { color: var(--blue); }
.subscribe-box .price .yen { font-size: 20px; }
.subscribe-box .freq {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 20px;
}
.subscribe-box ul {
  text-align: left;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.95;
  margin: 0 auto 24px;
  max-width: 360px;
  list-style: none;
}
.subscribe-box li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.subscribe-box li::before { content: "・"; position: absolute; left: 0; color: var(--gold); }

/* FAQ */
.faq dt {
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
  font-size: 15px;
}
.faq dt::before { content: "Q. "; color: var(--gold); }
.faq dd {
  padding: 0 0 16px;
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.95;
}
.faq dd::before { content: "A. "; color: var(--ink-light); margin-right: 4px; }

/* フッター */
footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-light);
}
footer a { color: var(--ink-light); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--gold); }

/* ログイン誘導 */
.login-required {
  text-align: center;
  padding: 60px 24px;
}
.login-required h2 {
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.login-required p {
  color: var(--ink-light);
  margin-bottom: 24px;
  line-height: 1.85;
}

/* ロード中・ログイン要求セクション（active クラスで表示制御） */
#loading,
#login-required {
  display: none;
}
#loading.active,
#login-required.active {
  display: block;
}

.loading {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-light);
}
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .hero h1 { font-size: 40px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .type-img { width: 240px; height: 240px; }
}

/* ============================================================
   Phase D-1（買い切り版）追加スタイル
   ============================================================ */

/* セクションコンテンツ装飾 */
.section-content {
  line-height: 1.95;
  color: var(--ink);
  margin-top: 16px;
}
.section-content p {
  margin: 0 0 18px;
}
.section-content strong {
  color: var(--ink);
  font-weight: 600;
}
.section-content ul {
  margin: 12px 0 18px;
  padding-left: 24px;
}
.section-content li {
  margin: 6px 0;
  line-height: 1.85;
}
.section-content blockquote {
  background: rgba(201, 169, 97, 0.08);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.8;
}

/* ロックされたセクション（プレビューのみ表示） */
.full-section.locked-section {
  position: relative;
  background: rgba(245, 239, 224, 0.4);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(201, 169, 97, 0.2);
}
.full-section.locked-section .section-content {
  position: relative;
  max-height: 12em;
  overflow: hidden;
}
.full-section.locked-section .section-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4em;
  background: linear-gradient(to bottom, transparent, rgba(245, 239, 224, 0.95));
  pointer-events: none;
}

.locked-cta {
  margin-top: 20px;
  padding: 18px;
  background: var(--cream);
  border-radius: 10px;
  text-align: center;
}
.locked-cta .hook-summary {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 14px;
  line-height: 1.7;
}
.locked-cta .cta-primary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
}

/* 最終 CTA ボックス（未購入時） */
.final-cta {
  text-align: center;
  padding: 36px 24px;
  background: var(--cream);
  border-radius: 16px;
  margin: 40px 0 24px;
  border: 2px solid var(--gold);
}
.final-cta .price {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--ink-light);
  margin: 8px 0 0;
}
.final-cta .price .yen {
  font-size: 56px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 4px;
}
.final-cta .freq {
  font-size: 13px;
  color: var(--ink-light);
  margin: 4px 0 22px;
}
.final-cta .cta-primary {
  padding: 14px 36px;
  font-size: 15px;
}

/* 購入後のクロスセル */
.cross-cta {
  text-align: center;
  margin: 32px 0;
  padding: 24px;
  background: rgba(245, 239, 224, 0.5);
  border-radius: 12px;
}
.cross-cta p {
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.cta-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.cta-secondary:hover {
  background: var(--gold);
  color: white;
}

/* 未ログイン時のCTAスタック */
.auth-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 28px 0;
}
.auth-ctas .cta-primary,
.auth-ctas .cta-secondary {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

/* Work モードカラーバリアント */
body.work-mode .full-section.locked-section .section-content::after {
  background: linear-gradient(to bottom, transparent, rgba(232, 240, 247, 0.95));
}
body.work-mode .locked-cta,
body.work-mode .cross-cta,
body.work-mode .final-cta {
  background: rgba(232, 240, 247, 0.7);
}

/* ============================================================
   Phase D-2 軽量 signup フォーム
   ============================================================ */
.signup-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.signup-form .form-row {
  margin-bottom: 20px;
}
.signup-form .form-row label {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="date"],
.signup-form input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: white;
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
}
.signup-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.signup-form .time-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signup-form .time-fields input {
  width: 70px;
}
.signup-form .gender-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.signup-form .gender-buttons label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  gap: 6px;
  color: var(--ink-light);
  margin-bottom: 0;
  cursor: pointer;
  font-weight: normal;
}
.signup-form button[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  margin-top: 12px;
}
.signup-form .form-error {
  background: rgba(180, 60, 60, 0.08);
  border-left: 3px solid #b03c3c;
  color: #b03c3c;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}

/* ============================================================
   購入後の本家アップセルセクション
   ============================================================ */
.upsell-honke {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, rgba(46, 93, 46, 0.08), rgba(201, 169, 97, 0.06));
  border-radius: 16px;
  margin: 32px 0 24px;
  border: 1px solid rgba(46, 93, 46, 0.2);
}
.upsell-honke .upsell-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 8px;
}
.upsell-honke .upsell-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 8px 0 16px;
  font-weight: normal;
  letter-spacing: 0.08em;
}
.upsell-honke .upsell-body {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-light);
  margin: 0 auto 24px;
  max-width: 460px;
  text-align: left;
}
.upsell-honke .upsell-body b {
  color: var(--ink);
  font-weight: 600;
}
.upsell-honke .upsell-cta-area {
  margin: 20px 0 8px;
}
.upsell-honke .upsell-cta-area .cta-primary {
  padding: 14px 32px;
  font-size: 14px;
  background: #2E5D2E;
}
.upsell-honke .upsell-fineprint {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* ============================================================
   v119: UX一括改修
   ============================================================ */

/* v119-4: 常設ヘッダーナビ */
.spinoff-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 224, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.spinoff-topnav .topnav-brand {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.15em;
  flex-shrink: 0;
}
.spinoff-topnav .topnav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
}
.spinoff-topnav .topnav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.spinoff-topnav .topnav-links a,
.spinoff-topnav .topnav-current {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
}
.spinoff-topnav .topnav-links a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--ink);
}
.spinoff-topnav .topnav-current {
  color: var(--gold);
  font-weight: 600;
}
.spinoff-topnav .topnav-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-light);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.spinoff-topnav .topnav-logout:hover {
  background: var(--ink-light);
  color: white;
  border-color: var(--ink-light);
}
body.work-mode .spinoff-topnav .topnav-current {
  color: #2D5A82;
}
@media (max-width: 640px) {
  .spinoff-topnav .topnav-toggle { display: block; }
  .spinoff-topnav .topnav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin: 0;
    gap: 4px;
  }
  .spinoff-topnav.open .topnav-links {
    display: flex;
  }
  .spinoff-topnav .topnav-links a,
  .spinoff-topnav .topnav-current {
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .spinoff-topnav .topnav-logout { margin-top: 8px; }
}

/* v119-7: 「あなたはここ！」ギャラリー */
.you-are-here-gallery {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px auto 28px;
  max-width: 600px;
}
.you-are-here-gallery .ygallery-item {
  position: relative;
  flex: 0 0 auto;
}
.you-are-here-gallery .ygallery-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0.6);
  transition: all 0.2s;
}
.you-are-here-gallery .ygallery-item.is-me img {
  opacity: 1;
  filter: none;
  width: 72px;
  height: 72px;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.4);
}
body.work-mode .you-are-here-gallery .ygallery-item.is-me img {
  border-color: #2D5A82;
  box-shadow: 0 4px 16px rgba(45, 90, 130, 0.4);
}
.you-are-here-gallery .ygallery-arrow {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
body.work-mode .you-are-here-gallery .ygallery-arrow {
  color: #2D5A82;
}

/* v119-6: 相性タイプの「『あだ名』タイプ」リンク */
.section-content a.char-link {
  color: inherit;
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
}
.section-content a.char-link:hover {
  background: rgba(201, 169, 97, 0.1);
  border-bottom-style: solid;
}

/* v119-12: lightbox */
.spinoff-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  cursor: zoom-out;
}
.spinoff-lightbox.visible { opacity: 1; }
.spinoff-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.spinoff-lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoomable-img {
  cursor: zoom-in;
}

/* v119-5: tooltip popover (mobile tap) */
.tooltip-popover {
  position: absolute;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  z-index: 99997;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.tooltip-popover::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
button.tooltip-icon {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* v119-9: ブックマーク誘導 */
.rebookmark-hint {
  background: rgba(201, 169, 97, 0.08);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-light);
}
.rebookmark-hint p { margin: 0; }

/* v119-16: 命式説明 */
details.meishiki-explainer {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
details.meishiki-explainer summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-light);
  list-style: none;
  user-select: none;
}
details.meishiki-explainer summary::-webkit-details-marker { display: none; }
details.meishiki-explainer[open] summary {
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
}
details.meishiki-explainer .meishiki-body {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-light);
}
details.meishiki-explainer .meishiki-body p { margin: 0 0 10px; }

/* v119-13: タイポグラフィ調整（段落間余白） */
.section-content p { margin: 0 0 22px; }
.section-content h3 { font-size: 17px; }

/* v119-14: スケルトン UI */
.spinoff-skeleton {
  background: linear-gradient(90deg, #f0e8d8 25%, #f5efe0 50%, #f0e8d8 75%);
  background-size: 200% 100%;
  animation: skel 1.4s infinite;
  border-radius: 8px;
}
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* v119-15: 印刷フレンドリー */
@media print {
  .spinoff-topnav,
  .user-footer,
  .share-section,
  .upsell-cross-strong,
  .upsell-honke,
  .final-cta,
  .cross-cta,
  .locked-cta button,
  .you-are-here-gallery,
  details.owner-preview-nav,
  details.meishiki-explainer summary,
  .rebookmark-hint,
  .brand-top { display: none !important; }
  body { background: white !important; }
  .container { max-width: 100% !important; }
  .full-section { page-break-inside: avoid; }
  .type-card { border: 1px solid #ccc !important; }
}

/* v115: アクセシビリティ — フォーカスoutline */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* v115: モバイル時のキャラギャラリーを横スクロール */
@media (max-width: 720px) {
  .char-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 16px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
  }
  .char-gallery::-webkit-scrollbar { display: none; }
  .char-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
  }
  .char-card img {
    width: 100px;
    height: 100px;
  }
}

/* v115: フッターの設定リンク */
.user-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.user-footer-link {
  font-size: 12px;
  color: var(--ink-light);
  text-decoration: underline;
}

/* v114: tooltip */
.tooltip-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: var(--border);
  color: var(--ink-light);
  border-radius: 50%;
  font-size: 11px;
  margin-left: 6px;
  cursor: help;
  position: relative;
  vertical-align: middle;
}
.tooltip-icon:hover::after,
.tooltip-icon:focus::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  width: 240px;
  z-index: 1000;
  margin-bottom: 6px;
  font-weight: normal;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* v114: 即時バリデーション */
.signup-form input.has-error {
  border-color: #b03c3c !important;
}
.signup-form .field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #b03c3c;
  line-height: 1.5;
}

/* v114: シェア文 textarea */
.share-text-edit-area {
  flex: 1;
}
.share-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  background: white;
  box-sizing: border-box;
}
.share-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.share-count {
  text-align: right;
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 4px;
}

/* v114: オーナーナビ折りたたみ */
details.owner-preview-nav {
  margin: 48px 0 24px;
  padding: 0;
  background: rgba(180, 60, 60, 0.04);
  border: 2px dashed rgba(180, 60, 60, 0.3);
  border-radius: 14px;
}
details.owner-preview-nav .owner-preview-summary {
  padding: 18px 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #b03c3c;
  list-style: none;
  user-select: none;
}
details.owner-preview-nav .owner-preview-summary::-webkit-details-marker {
  display: none;
}
details.owner-preview-nav[open] .owner-preview-summary {
  border-bottom: 1px solid rgba(180, 60, 60, 0.15);
}
details.owner-preview-nav .owner-preview-body {
  padding: 14px 24px 24px;
}

/* v113: 利用規約同意行 */
.terms-row {
  background: rgba(245, 239, 224, 0.4);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.terms-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  font-weight: normal !important;
  margin: 0 !important;
}
.terms-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.terms-check a {
  color: var(--gold);
  text-decoration: underline;
}

/* v113: 買い切り安心訴求サブテキスト */
.cta-fineprint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  text-align: center;
}

/* v113: トースト */
.spinoff-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2E5D2E;
  color: white;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 99999;
  max-width: 90vw;
  text-align: center;
}
.spinoff-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ユーザーフッター（ログアウト）— v111 */
.user-footer {
  text-align: center;
  margin: 48px 0 24px;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-light);
}
.user-footer p {
  margin: 0 0 10px;
}
.user-footer p b {
  color: var(--ink);
  font-weight: 500;
}
.logout-link {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.logout-link:hover {
  background: var(--ink-light);
  color: white;
  border-color: var(--ink-light);
}

/* ============================================================
   オーナー専用：全タイプ確認プレビューナビ（v103）
   ============================================================ */
.owner-preview-nav {
  margin: 48px 0 24px;
  padding: 24px 20px;
  background: rgba(180, 60, 60, 0.04);
  border: 2px dashed rgba(180, 60, 60, 0.3);
  border-radius: 14px;
}
.owner-preview-nav .owner-preview-header {
  margin-bottom: 18px;
}
.owner-preview-nav .owner-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #b03c3c;
  background: rgba(180, 60, 60, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  font-weight: 600;
}
.owner-preview-nav h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.owner-preview-nav > .owner-preview-header > p {
  font-size: 12px;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.7;
}
.owner-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 8px;
}
.owner-core-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.owner-core-label {
  flex: 1;
  min-width: 140px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.owner-preview-btn {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(180, 60, 60, 0.3);
  background: white;
  color: var(--ink);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.owner-preview-btn:hover {
  background: rgba(180, 60, 60, 0.08);
  border-color: rgba(180, 60, 60, 0.5);
}
.owner-preview-btn.active {
  background: #b03c3c;
  color: white;
  border-color: #b03c3c;
  font-weight: 600;
}
.owner-exit {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}
.owner-exit a {
  color: #b03c3c;
  text-decoration: underline;
}
@media (max-width: 520px) {
  .owner-core-row { font-size: 12px; }
  .owner-preview-btn { padding: 5px 10px; font-size: 11px; }
}

/* ============================================================
   v107: LP強化（10キャラギャラリー + 診断フロー）
   ============================================================ */
.lp-hero {
  text-align: center;
  padding: 40px 16px 32px;
  background: linear-gradient(180deg, rgba(245, 239, 224, 0.5), transparent);
  border-radius: 20px;
  margin-bottom: 40px;
}
.lp-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: normal;
}
.lp-hero-sub {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-light);
  margin: 0 auto 18px;
  max-width: 540px;
}
.lp-hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}
.lp-hero-price {
  font-size: 18px;
  margin: 0 0 28px;
  color: var(--ink);
}
.lp-hero-price .price-strike {
  text-decoration: line-through;
  color: #aaa;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.lp-hero-price strong {
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
}
.lp-hero-free {
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 28px;
  color: var(--ink-light);
}
.lp-hero-free strong {
  color: var(--gold);
  font-size: 20px;
  font-weight: 600;
}

.lp-section {
  margin: 48px 0;
}
.lp-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  text-align: center;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: normal;
  letter-spacing: 0.05em;
}
.lp-section-sub {
  text-align: center;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.85;
  margin: 0 auto 28px;
  max-width: 520px;
}

.char-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.char-card {
  background: white;
  padding: 16px 12px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}
.char-card:hover {
  transform: translateY(-2px);
}
.char-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
}
.char-card h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 600;
}
.char-card p {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 720px) {
  .char-gallery { grid-template-columns: repeat(5, 1fr); }
  .char-card img { width: 110px; height: 110px; }
}

.lp-flow {
  background: rgba(245, 239, 224, 0.4);
  border-radius: 16px;
  padding: 28px 24px;
}
.lp-flow-list {
  max-width: 560px;
  margin: 0 auto 24px;
  padding-left: 24px;
}
.lp-flow-list li {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.lp-flow-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.lp-cross {
  text-align: center;
  margin: 48px 0 24px;
  font-size: 13px;
  color: var(--ink-light);
}
.lp-cross p { margin: 8px 0; }
.lp-cross a { color: var(--gold); text-decoration: underline; }
.lp-cross .lp-cross-fineprint {
  font-size: 12px;
  color: #aaa;
}

/* ============================================================
   v107: SNSシェアセクション
   ============================================================ */
.share-section {
  margin: 32px 0;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(46, 93, 46, 0.05), rgba(201, 169, 97, 0.06));
  border-radius: 16px;
  border: 1px solid rgba(46, 93, 46, 0.15);
}
.share-section .share-header {
  text-align: center;
  margin-bottom: 18px;
}
.share-section h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: normal;
  letter-spacing: 0.05em;
}
.share-section .share-header p {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0;
}
.share-preview {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: white;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.share-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.share-text-box {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.share-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: center;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.share-btn.share-x {
  background: #000;
  color: white;
}
.share-btn.share-x:hover { background: #333; }
.share-btn.share-line {
  background: #06C755;
  color: white;
}
.share-btn.share-line:hover { background: #04a847; }
.share-btn.share-fb {
  background: #1877F2;
  color: white;
}
.share-btn.share-fb:hover { background: #1462c4; }
.share-btn.share-copy {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
}
.share-btn.share-copy:hover { background: var(--cream); }
.share-btn.share-copy.copied {
  background: #2E5D2E;
  color: white;
  border-color: #2E5D2E;
}

/* v117: 仕事側のCTAボタンを青系に統一 */
body.work-mode .cta-primary {
  background: #2D5A82;
}
body.work-mode .cta-primary:hover:not(:disabled) {
  background: #1F4068;
}
body.work-mode .cta-secondary {
  border-color: #5A8FB5;
  color: #1F4068;
}
body.work-mode .cta-secondary:hover {
  background: #5A8FB5;
  color: white;
}
body.work-mode .final-cta {
  border-color: #5A8FB5;
}
body.work-mode .final-cta .yen {
  color: #1F4068;
}
body.work-mode .upsell-honke .upsell-cta-area .cta-primary {
  background: #2D5A82;
}
body.work-mode .locked-cta .cta-primary {
  background: #2D5A82;
}

body.work-mode .share-section {
  background: linear-gradient(135deg, rgba(45, 90, 130, 0.05), rgba(180, 200, 220, 0.08));
  border-color: rgba(45, 90, 130, 0.15);
}
