/* ============================================================
   AI写真メーカー LP スタイル (v7)
   househr/photomaker/umj-photo.css
============================================================ */

/* ===== RESET / BASE ===== */
.umj-lp, .umj-lp * { box-sizing: border-box; }
.umj-lp { font-family: 'Noto Sans JP', sans-serif; background: #fff; }

/* ===== HERO ===== */
.umj-lp__hero {
  background: linear-gradient(145deg, #e8f4fd 0%, #f0f7ff 45%, #eef9f5 100%);
  padding: 48px 24px 0;
  position: relative; overflow: hidden;
}
.umj-lp__hero::before {
  content: ''; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(147,197,253,0.2) 0%, transparent 70%);
  top: -80px; left: -60px; pointer-events: none;
}
.umj-lp__hero::after {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,243,208,0.25) 0%, transparent 70%);
  bottom: 20px; left: 120px; pointer-events: none;
}
.umj-lp__hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 32px;
}
.umj-lp__hero-text {}
.umj-lp__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2);
  border-radius: 4px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; color: #2563eb; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.umj-lp__kicker-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #38bdf8;
  animation: umj-blink 2s infinite;
}
@keyframes umj-blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.umj-lp__h1 {
  font-size: clamp(28px, 8vw, 38px); font-weight: 900;
  line-height: 1.2; color: #0f172a; letter-spacing: -0.025em; margin-bottom: 14px;
}
.umj-lp__h1 em { color: #2563eb; font-style: normal; display: block; }
.umj-lp__hero-lead { font-size: 14px; color: #475569; line-height: 1.9; margin-bottom: 20px; }

.umj-lp__hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.umj-lp__hero-tag {
  font-size: 11px; font-weight: 700;
  background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe;
  border-radius: 20px; padding: 4px 12px;
}
.umj-lp__hero-tag--g { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

.umj-lp__cta-box {
  background: #fff; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 2px 20px rgba(37,99,235,0.1); border: 1px solid #dbeafe;
}
.umj-lp__cta-btn {
  display: block; width: 100%; padding: 16px;
  background: #2563eb; color: #fff; border-radius: 50px;
  font-size: 16px; font-weight: 900; text-align: center; text-decoration: none;
  box-shadow: 0 4px 0 #1d4ed8; margin-bottom: 12px;
  transition: transform 0.15s;
}
.umj-lp__cta-btn:hover { transform: translateY(-2px); }

.umj-lp__badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.umj-lp__badges li { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 4px; }
.umj-lp__ck { color: #2563eb; font-weight: 900; }

/* Before / After */
.umj-lp__ba { display: flex; align-items: flex-end; }
.umj-lp__ba-side { flex: 1; text-align: center; }
.umj-lp__ba-frame { border-radius: 12px 12px 0 0; overflow: hidden; aspect-ratio: 3/4; max-height: 220px; }
.umj-lp__ba-frame--before { border: 1.5px solid #cbd5e1; border-bottom: none; background: #f1f5f9; }
.umj-lp__ba-frame--after  { border: 2px solid #3b82f6; border-bottom: none; box-shadow: 0 0 20px rgba(59,130,246,0.18); }
.umj-lp__ba-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.umj-lp__ba-frame--before .umj-lp__ba-photo { filter: brightness(0.85) saturate(0.7); }
.umj-lp__ba-foot { padding: 9px 8px; font-size: 11px; font-weight: 700; text-align: center; }
.umj-lp__ba-foot--before { background: #e2e8f0; color: #64748b; border-radius: 0 0 8px 8px; }
.umj-lp__ba-foot--after  { background: #dbeafe; color: #1d4ed8; border-radius: 0 0 8px 8px; }
.umj-lp__ba-ai-label { display: block; font-size: 9px; color: #3b82f6; letter-spacing: 0.08em; margin-bottom: 1px; }
.umj-lp__ba-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 12px 48px; }
.umj-lp__ba-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.35);
  display: flex; align-items: center; justify-content: center;
}
.umj-lp__ba-ai { font-size: 9px; font-weight: 700; color: #3b82f6; writing-mode: vertical-rl; letter-spacing: 0.08em; }

/* ===== セクション共通 ===== */
.umj-lp__sec { padding: 56px 24px; }
.umj-lp__sec--white { background: #fff; }
.umj-lp__sec--sky { background: #f0f9ff; border-top: 1px solid #e0f2fe; border-bottom: 1px solid #e0f2fe; }
.umj-lp__sec--blue { background: #1e40af; text-align: center; }
.umj-lp__sec-inner {}
.umj-lp__sec-inner--center { max-width: 600px; margin: 0 auto; }

.umj-lp__sec-header { display: flex; align-items: flex-start; margin-bottom: 36px; }
.umj-lp__sec-num {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: 72px; font-weight: 700; line-height: 0.9;
  margin-right: 16px; flex-shrink: 0; color: #e2e8f0;
}
.umj-lp__sec-num--sky { color: #bae6fd; }
.umj-lp__sec-label {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; display: block; margin-bottom: 8px;
}
.umj-lp__sec-label--blue  { color: #3b82f6; }
.umj-lp__sec-label--sky   { color: #0ea5e9; }
.umj-lp__sec-label--white { color: rgba(255,255,255,0.6); }
.umj-lp__sec-label--dark  { color: #64748b; }
.umj-lp__h2 { font-size: 24px; font-weight: 900; color: #0f172a; letter-spacing: -0.02em; line-height: 1.25; }
.umj-lp__h2--white { color: #fff; }
.umj-lp__h2--navy  { color: #1e3a5f; }
.umj-lp__sec-desc  { font-size: 13px; color: #64748b; line-height: 1.8; margin-top: 8px; }

/* ===== ステップ ===== */
.umj-lp__steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.umj-lp__step { padding: 24px 22px; background: #f8fafc; border-radius: 16px; border: 1px solid #f0f4f8; }
.umj-lp__step-num-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1e3a5f; color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.umj-lp__step-pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: #eff6ff; color: #2563eb; padding: 3px 10px;
  border-radius: 4px; margin-bottom: 8px; letter-spacing: 0.06em;
}
.umj-lp__step-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.umj-lp__step-desc  { font-size: 13px; color: #64748b; line-height: 1.75; }

/* ===== 特徴 ===== */
.umj-lp__feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.umj-lp__feat {
  background: #fff; border-radius: 16px; padding: 24px 20px;
  border: 1px solid #bae6fd; position: relative; overflow: hidden;
}
.umj-lp__feat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
}
.umj-lp__feat-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: #e0f2fe; color: #0369a1; border-radius: 4px;
  padding: 2px 8px; margin-bottom: 10px; letter-spacing: 0.06em;
}
.umj-lp__feat-icon  { font-size: 28px; margin-bottom: 12px; display: block; }
.umj-lp__feat-title { font-size: 16px; font-weight: 900; color: #0c4a6e; margin-bottom: 8px; }
.umj-lp__feat-desc  { font-size: 12px; color: #475569; line-height: 1.8; }

/* ===== CTA ===== */
.umj-lp__cta-lead { font-size: 14px; color: rgba(255,255,255,0.75); margin: 10px 0 28px; line-height: 1.8; }
.umj-lp__cta-btn-lg {
  display: inline-block; padding: 18px 48px;
  background: #fff; color: #1e40af; border-radius: 50px;
  font-size: 17px; font-weight: 900; text-decoration: none;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15); margin-bottom: 16px;
  transition: transform 0.15s;
}
.umj-lp__cta-btn-lg:hover { transform: translateY(-2px); }
.umj-lp__badges-w { display: flex; gap: 14px; justify-content: center; list-style: none; padding: 0; flex-wrap: wrap; margin-top: 14px; }
.umj-lp__badges-w li { font-size: 12px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 4px; }
.umj-lp__ck-w { color: #93c5fd; font-weight: 900; }

/* ===== 03 NEXT STEP: 画像バナー ===== */

/* 2枚横並びグリッド */
.umj-lp__banner-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  /* 画像を小さく表示・両サイドは白地で余白 */
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

/* 共通バナーリンク */
.umj-lp__img-banner {
  display: block;
  border-radius: 10px;
  overflow: visible; /* clipしない */
  text-decoration: none;
  line-height: 0;
  transition: transform 0.18s, box-shadow 0.18s;
}
.umj-lp__img-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* 画像は全体表示・切り取りなし */
.umj-lp__banner-pair .umj-lp__img-banner-img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; /* overflow:visibleなので個別に */
}

/* 通常img */
.umj-lp__img-banner-img {
  width: 100%; height: auto; display: block;
}

/* One Song バナーラッパー */
.umj-lp__onesong-bar {
  padding: 0 24px 24px;
  background: #f8fafc;
}
/* One Song: 小さめ・さりげなく */
.umj-lp__img-banner--onesong {
  border-radius: 10px;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.88;
}
.umj-lp__img-banner--onesong:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.umj-lp__img-banner--onesong .umj-lp__img-banner-img {
  width: 100%; height: auto; display: block;
}

/* ===== 注意事項 ===== */
.umj-lp__notice-bar { background: #f8fafc; padding: 16px 24px; border-top: 1px solid #f0f4f8; }
.umj-lp__notice { font-size: 11px; color: #94a3b8; line-height: 1.9; }

/* ===== FOOTER ===== */
.umj-lp__footer {}

/* One Song */
.umj-lp__onesong-bar { background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%); padding: 0 24px; }
.umj-lp__onesong-inner { display: flex; align-items: center; gap: 16px; padding: 22px 0; text-decoration: none; }
.umj-lp__onesong-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,255,255,0.12); display: flex; align-items: center;
  justify-content: center; font-size: 24px; flex-shrink: 0;
}
.umj-lp__onesong-body { flex: 1; }
.umj-lp__onesong-label { font-size: 10px; font-weight: 700; color: #a5b4fc; letter-spacing: 0.12em; display: block; margin-bottom: 2px; }
.umj-lp__onesong-name  { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 2px; }
.umj-lp__onesong-desc  { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.umj-lp__onesong-arrow { color: rgba(255,255,255,0.4); flex-shrink: 0; }

/* 運営会社 */
.umj-lp__footer-company { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 28px 24px; }
.umj-lp__footer-company-inner { display: flex; flex-direction: column; gap: 20px; }
.umj-lp__footer-logo-mark { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.umj-lp__footer-logo-mark span { display: block; border-radius: 50%; }
.umj-lp__footer-logo-mark span:nth-child(1){ width:10px; height:10px; background:#2563eb; }
.umj-lp__footer-logo-mark span:nth-child(2){ width:8px; height:8px; background:#38bdf8; }
.umj-lp__footer-logo-mark span:nth-child(3){ width:6px; height:6px; background:#a5b4fc; }
.umj-lp__footer-logo    { font-size: 14px; font-weight: 900; color: #0f172a; letter-spacing: 0.02em; margin-bottom: 6px; }
.umj-lp__footer-tagline { font-size: 11px; color: #94a3b8; line-height: 1.7; }
.umj-lp__footer-links   { display: flex; gap: 20px; flex-wrap: wrap; }
.umj-lp__footer-link    { font-size: 11px; color: #64748b; text-decoration: none; }
.umj-lp__footer-link:hover { color: #2563eb; }

/* コピーライト */
.umj-lp__footer-copy {
  background: #f1f5f9; border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.umj-lp__umj-link   { font-size: 11px; font-weight: 700; color: #2563eb; text-decoration: none; }
.umj-lp__copy-text  { font-size: 11px; color: #94a3b8; }

/* ============================================================
   PC レイアウト (min-width: 768px)
============================================================ */
@media (min-width: 768px) {
  .umj-lp { max-width: 1200px; margin: 0 auto; }

  /* Hero 2カラム */
  .umj-lp__hero { padding: 56px 56px 0; }
  .umj-lp__hero-inner { flex-direction: row; gap: 48px; align-items: center; }
  .umj-lp__hero-text { flex: 1; }
  .umj-lp__ba { flex: 1; max-width: 380px; }
  .umj-lp__ba-frame { max-height: 260px; }

  /* セクション */
  .umj-lp__sec { padding: 72px 56px; }
  .umj-lp__sec-inner--center { max-width: 600px; margin: 0 auto; }

  /* ステップ 3カラム */
  .umj-lp__steps { flex-direction: row; gap: 28px; }
  .umj-lp__step { flex: 1; }

  /* 特徴 2カラム */
  .umj-lp__feat-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .umj-lp__feat { padding: 32px 28px; }
  .umj-lp__feat-icon  { font-size: 32px; }
  .umj-lp__feat-title { font-size: 19px; }
  .umj-lp__feat-desc  { font-size: 13px; }

  /* 次のステップ 画像バナー PC調整 */
  .umj-lp__banner-pair { gap: 20px; margin-bottom: 24px; max-width: 78%; }
  .umj-lp__img-banner { border-radius: 12px; }
  .umj-lp__banner-pair .umj-lp__img-banner-img { border-radius: 12px; }
  .umj-lp__onesong-bar { padding: 0 56px 36px; }
  .umj-lp__img-banner--onesong { border-radius: 12px; max-width: 480px; }

  /* フッター */
  .umj-lp__onesong-bar { padding: 0 56px; }
  .umj-lp__footer-company { padding: 32px 56px; }
  .umj-lp__footer-company-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 40px; }
  .umj-lp__footer-copy { flex-direction: row; justify-content: space-between; padding: 14px 56px; }

  /* 注意事項 */
  .umj-lp__notice-bar { padding: 16px 56px; }
  .umj-lp__notice { max-width: 900px; }

  /* h2 サイズアップ */
  .umj-lp__h2 { font-size: 28px; }
  .umj-lp__sec-num { font-size: 80px; }
}


/* ==========================================================
   PHOTO PAGES 共通 ( umj-photo )
========================================================== */

.umj-photo {
  background: #f7f9fc;
  min-height: 100vh;
  padding-bottom: 60px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ===== ステッパー ===== */
.umj-photo__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  gap: 0;
}
.umj-photo__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}
.umj-photo__step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}
.umj-photo__step--active .umj-photo__step-dot {
  background: #2563eb;
  color: #fff;
}
.umj-photo__step--active { color: #2563eb; }
.umj-photo__step-label { display: none; }
.umj-photo__step-line {
  width: 40px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* ===== ヒーロー ===== */
.umj-photo__hero {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 40px 24px 32px;
  text-align: center;
}
.umj-photo__hero-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2563eb;
  background: #dbeafe;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.umj-photo__title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
}
.umj-photo__lead {
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}
.umj-photo__badge {
  display: inline-block;
  margin-top: 16px;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

/* ===== メインエリア ===== */
.umj-photo__main {
  padding: 28px 16px;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== 選択カード ===== */
.umj-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.umj-method-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.umj-method-card:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 5px #dbeafe;
  transform: translateY(-2px);
}
.umj-method-card--upload:hover { border-color: #2563eb; }
.umj-method-card--camera:hover { border-color: #64748b; }

.umj-method-card__top { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; }

.umj-method-card__icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.umj-method-card__icon-wrap--gray { background: #f1f5f9; }

.umj-method-card__title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
}
.umj-method-card__desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}
.umj-method-card__note {
  font-size: 11px;
  color: #94a3b8;
}
.umj-method-card__btn {
  display: block;
  width: 100%;
  padding: 16px 0;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}
.umj-method-card__btn--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 3px 0 #1d4ed8;
}
.umj-method-card__btn--secondary {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 3px 0 #020617;
}

/* ===== こんな写真がおすすめ ===== */
.umj-photo__tips {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 16px;
}
.umj-photo__tips-title {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.umj-photo__section-title {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
}
.umj-photo__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.umj-photo__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}
.umj-photo__list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,5 4,7 8,3' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== 注意事項 ===== */
.umj-photo__notice {
  background: #fafafa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}
.umj-photo__notice-text {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.9;
  margin-bottom: 6px;
}
.umj-photo__notice-text:last-child { margin-bottom: 0; }

/* ===== ボタン共通 ===== */
.umj-btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.umj-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.umj-btn--primary  { background: #2563eb; color: #fff; box-shadow: 0 2px 0 #1d4ed8; }
.umj-btn--secondary{ background: #f1f5f9; color: #334155; }
.umj-btn--ghost    { background: transparent; color: #64748b; border: 1.5px solid #e2e8f0; }
.umj-upload-label  { cursor: pointer; }

/* ===== PC対応 ===== */
@media (min-width: 600px) {
  .umj-photo__step-label { display: inline; }
  .umj-photo__step-line  { width: 52px; }
  .umj-photo__title      { font-size: 32px; }
  .umj-photo__lead       { font-size: 15px; }
  .umj-photo__main       { padding: 40px 32px; }
  .umj-method-grid       { grid-template-columns: 1fr 1fr; gap: 20px; }
  .umj-method-card       { padding: 40px 28px 28px; }
  .umj-method-card__icon-wrap { width: 88px; height: 88px; }
  .umj-method-card__title     { font-size: 22px; }
  .umj-method-card__desc      { font-size: 14px; }
  .umj-method-card__btn       { font-size: 16px; padding: 18px 0; }
}

/* ==========================================================
   CAPTURE PAGE ( umj-photo-capture )
========================================================== */
.umj-photo-capture .umj-photo__camera-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  max-width: 720px;
  margin: 0 auto;
}
.umj-camera-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
}
.umj-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.umj-camera-guide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.umj-camera-guide__oval {
  width: 52%;
  aspect-ratio: 3 / 4;
  border: 2.5px dashed rgba(255,255,255,0.7);
  border-radius: 50%;
  margin-bottom: 8px;
}
.umj-camera-guide__shoulder {
  width: 75%;
  height: 2px;
  background: rgba(255,255,255,0.4);
}
.umj-camera-guide__label {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  margin-top: 12px;
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 4px 12px;
  border-radius: 50px;
}
.umj-camera-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 24px;
}
.umj-camera-warn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220,38,38,0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
#umjCaptureButton {
  width: 100%;
  max-width: 480px;
  padding: 18px;
  font-size: 16px;
}


/* ==========================================================
   OUTFIT PAGE ( umj-photo-style )
========================================================== */
.umj-photo-style .umj-photo__main { padding: 28px 16px; max-width: 720px; margin: 0 auto; }

.umj-style-section { margin-bottom: 32px; }
.umj-style-section__title {
  font-size: 15px; font-weight: 900; color: #0f172a;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

/* スーツ選択グリッド（3列） */
.umj-suit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.umj-suit-card {
  position: relative;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.umj-suit-card input[type="radio"] { display: none; }
.umj-suit-card:hover { border-color: #93c5fd; }
.umj-suit-card--selected,
.umj-suit-card:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.umj-suit-card__swatch {
  width: 44px; height: 44px; border-radius: 50%;
  display: block; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.umj-suit-card__tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: #2563eb; background: #dbeafe;
  padding: 2px 8px; border-radius: 50px;
}
.umj-suit-card__label { font-size: 11px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.umj-suit-card__gender { font-size: 10px; color: #94a3b8; }
.umj-suit-card__check {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 900;
  display: none; align-items: center; justify-content: center;
}
.umj-suit-card:has(input:checked) .umj-suit-card__check { display: flex; }

/* 背景選択グリッド（4列） */
.umj-bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.umj-bg-card {
  position: relative;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.umj-bg-card input[type="radio"] { display: none; }
.umj-bg-card:hover { border-color: #93c5fd; }
.umj-bg-card:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.umj-bg-card__swatch {
  width: 44px; height: 44px; border-radius: 10px; display: block;
}
.umj-bg-card__label { font-size: 11px; font-weight: 700; color: #0f172a; }
.umj-bg-card:has(input:checked) .umj-suit-card__check { display: flex; }

/* 送信ボタン */
.umj-style-submit { text-align: center; margin-top: 8px; }
.umj-style-submit__note { font-size: 11px; color: #94a3b8; margin-top: 8px; }
.umj-btn--xl { padding: 18px 40px; font-size: 16px; width: 100%; max-width: 480px; }

/* ステッパー：完了状態 */
.umj-photo__step--done { color: #22c55e; }
.umj-photo__step-dot--done { background: #22c55e; color: #fff; }
.umj-photo__step-line--done { background: #86efac; }

/* PC: スーツ4列 */
@media (min-width: 600px) {
  .umj-suit-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .umj-suit-card { padding: 18px 14px; }
  .umj-suit-card__swatch { width: 52px; height: 52px; }
  .umj-suit-card__label { font-size: 12px; }
  .umj-bg-grid { gap: 14px; }
  .umj-bg-card__swatch { width: 52px; height: 52px; }
}


/* ==========================================================
   GENERATE PAGE ( umj-photo-generate )
========================================================== */
.umj-generate__wrap,
.umj-result__wrap,
.umj-error__wrap { width: 100%; }

.umj-generate__hero {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 40px 24px 32px;
  text-align: center;
}
.umj-generate__spinner-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px;
  gap: 24px;
}
.umj-spinner {
  width: 56px; height: 56px;
  border: 5px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: umjSpin 0.9s linear infinite;
}
@keyframes umjSpin { to { transform: rotate(360deg); } }
.umj-generate__progress {
  font-size: 14px; color: #64748b; font-weight: 700;
}

/* 結果 */
.umj-result__img-wrap {
  display: flex; justify-content: center;
  margin-bottom: 24px;
}
.umj-result__img {
  width: 100%; max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.umj-result__actions {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 8px;
}

/* エラー */
.umj-error__wrap .umj-generate__hero {
  background: #fff5f5;
  border-bottom-color: #fecaca;
}


/* ==========================================================
   OUTFIT PAGE v2: 男女切替 + 画像カード
========================================================== */

/* 性別切り替えトグル */
.umj-gender-toggle {
  display: flex;
  gap: 0;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 28px;
}
.umj-gender-btn {
  padding: 10px 32px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.umj-gender-btn--active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* スーツグリッド: 3列SP → 5列PC */
.umj-suit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

/* スーツカード（画像サムネイル型） */
.umj-suit-card {
  position: relative;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.umj-suit-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.umj-suit-card input[type="radio"] { display: none; }
.umj-suit-card:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
/* 性別フィルター：JSが初期化時にdisplay制御するため、CSSでは定義しない */
/* （JSロード前に全カードが表示されることを防ぐためHTMLにstyle="display:none"を付与する）*/

/* サムネイル画像エリア */
.umj-suit-card__img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f8fafc;
}
.umj-suit-card__sample {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.2s;
}
.umj-suit-card:hover .umj-suit-card__sample { transform: scale(1.03); }

/* カラースウォッチ（右下角） */
.umj-suit-card__swatch {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  display: block;
}

/* カード情報エリア */
.umj-suit-card__info {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.umj-suit-card__cat {
  font-size: 9px;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 1px 7px;
  border-radius: 50px;
  letter-spacing: 0.06em;
}
.umj-suit-card__label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.3;
}

/* チェックマーク */
.umj-suit-card__check {
  position: absolute;
  top: 6px; right: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.umj-suit-card:has(input:checked) .umj-suit-card__check { display: flex; }

/* PC: 5列 */
@media (min-width: 600px) {
  .umj-suit-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .umj-suit-card__label { font-size: 12px; }
  .umj-suit-card__swatch { width: 22px; height: 22px; }
}


/* ==========================================================
   CAPTURE PAGE: ガイドサイズスライダー
========================================================== */
.umj-guide-size-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.umj-guide-size-ctrl__label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.umj-guide-size-ctrl input[type="range"] {
  flex: 1;
  accent-color: #2563eb;
}
.umj-guide-size-ctrl__val {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  min-width: 24px;
  text-align: right;
}


/* ==========================================================
   ネクタイ・サイズ選択
========================================================== */
/* ネクタイ（男性のみ）非表示制御 */
.umj-necktie-section { display: none; }
body.umj-gender-m .umj-necktie-section { display: block; }

/* サイズ選択グリッド */
.umj-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.umj-size-card {
  position: relative;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.umj-size-card input[type="radio"] { display: none; }
.umj-size-card:hover { border-color: #93c5fd; }
.umj-size-card:has(input:checked),
.umj-size-card--selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.umj-size-card__icon { font-size: 24px; }
.umj-size-card__label { font-size: 12px; font-weight: 900; color: #0f172a; line-height: 1.3; }
.umj-size-card__sub   { font-size: 10px; color: #94a3b8; }
.umj-size-card:has(input:checked) .umj-suit-card__check { display: flex; }

/* ==========================================================
   generateページ: 結果・完了
========================================================== */
.umj-result__size-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}


/* ==========================================================
   完了ページ（umj-photo-complete）
========================================================== */
.umj-complete-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px solid;
  text-decoration: none;
  margin-bottom: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.umj-complete-banner:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.umj-complete-banner--indigo { background:#eef2ff; border-color:#c7d2fe; }
.umj-complete-banner--green  { background:#f0fdf4; border-color:#bbf7d0; }
.umj-complete-banner__icon {
  font-size:32px; width:60px; height:60px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.umj-complete-banner--indigo .umj-complete-banner__icon { background:#e0e7ff; }
.umj-complete-banner--green  .umj-complete-banner__icon { background:#dcfce7; }
.umj-complete-banner__body { flex:1; min-width:0; }
.umj-complete-banner__tag   { font-size:10px; font-weight:700; letter-spacing:0.08em; display:block; margin-bottom:3px; }
.umj-complete-banner--indigo .umj-complete-banner__tag { color:#4f46e5; }
.umj-complete-banner--green  .umj-complete-banner__tag { color:#15803d; }
.umj-complete-banner__title { font-size:17px; font-weight:900; color:#0f172a; margin-bottom:4px; }
.umj-complete-banner__desc  { font-size:12px; color:#64748b; line-height:1.6; }
.umj-complete-banner__btn   { flex-shrink:0; font-size:12px; font-weight:700; color:#2563eb; white-space:nowrap; }
.umj-complete-banner--green .umj-complete-banner__btn { color:#15803d; }


/* ==========================================================
   カメラガイド：中心線・肩幅ライン追加
========================================================== */

/* ==========================================================
   撮影ガイド（v4 - 体型大枠 + 顔楕円 + サイズ調整）
========================================================== */

/* カメラボックス */
.umj-camera-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
}
/* ガイドはカメラボックス全体をカバー */
.umj-camera-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* ガイド全体 */
.umj-camera-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 縦中心線 */
.umj-camera-guide__vline {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.10);
  transform: translateX(-50%);
}

/* ===== 体型大枠（肩〜胸） ===== */
.umj-body-frame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* JS で top / width / height を動的に設定 */
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  transition: width 0.2s, height 0.2s, top 0.2s;
}
.umj-body-frame__label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  position: absolute;
  bottom: 8px;
}

/* ===== 顔の楕円 ===== */
.umj-camera-guide__oval {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* JS で top / width / height を動的に設定 */
  border: 3px dashed rgba(255,255,255,0.95);
  border-radius: 50%;
  transition: border-color 0.3s, border-style 0.3s;
  overflow: hidden; /* ラベルを楕円内に収める */
  box-sizing: border-box;
}
.umj-camera-guide__oval.detected {
  border-color: rgba(34,197,94,1);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

/* ===== 顔内ライン（楕円内の相対位置） ===== */
.umj-face-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
}
.umj-face-line::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
/* 目：楕円上から28% */
.umj-face-line--eye   { top: 28%; }
.umj-face-line--eye::before   { background: rgba(147,197,253,0.7); }
/* 鼻：楕円上から50% */
.umj-face-line--nose  { top: 50%; }
.umj-face-line--nose::before  { background: rgba(255,255,255,0.4); }
/* 口：楕円上から68% */
.umj-face-line--mouth { top: 68%; }
.umj-face-line--mouth::before { background: rgba(255,255,255,0.4); }

/* ラベル（ライン右端・楕円内に収める） */
.umj-face-line__label {
  position: absolute;
  right: 4px;
  top: -14px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* 顔検出ステータス（カメラ内下部） */
.umj-face-status-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  transition: background 0.3s;
  max-width: 90%;
}
.umj-face-status-overlay.ok  { background: rgba(22,163,74,0.85); }
.umj-face-status-overlay.ng  { background: rgba(185,28,28,0.75); }

/* ===== ガイドサイズ調整 ===== */
.umj-guide-sizer {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 8px auto 12px;
  padding: 0 4px;
}
.umj-guide-sizer__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.umj-guide-sizer__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  color: #2563eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.umj-guide-sizer__btn:hover { background: #eff6ff; }
.umj-guide-sizer input[type="range"] {
  flex: 1;
  accent-color: #2563eb;
}

/* ==========================================================
   撮影ガイド：旧スタイル（残存）

/* ==========================================================
   楕円サイズ切替トグル
========================================================== */
.umj-oval-toggle {
  display: flex;
  gap: 0;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 12px;
}
.umj-oval-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.umj-oval-btn--active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* 楕円：標準（幅55%） */
.umj-camera-guide[data-oval="standard"] .umj-camera-guide__oval {
  width: 55%;
}
/* 楕円：細め（幅42%） */
.umj-camera-guide[data-oval="slim"] .umj-camera-guide__oval {
  width: 42%;
}

/* ==========================================================
   プレビュー確認モーダル
========================================================== */
.umj-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.umj-preview-modal[hidden] { display: none; }

.umj-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.umj-preview-modal__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.umj-preview-modal__title {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.umj-preview-modal__img {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.umj-preview-modal__lead {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 20px;
}
.umj-preview-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ==========================================================
   新outfitページ：カテゴリタブ・カラーカード
========================================================== */

/* セクション注記 */
.umj-style-section__note {
  font-size: 11px;
  color: #94a3b8;
  margin: -8px 0 12px;
}

/* 性別カード */
.umj-gender-row {
  display: flex;
  gap: 12px;
}
.umj-gender-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
  background: #fff;
}
.umj-gender-card input { display: none; }
.umj-gender-card__icon { font-size: 22px; }
.umj-gender-card__label { font-size: 15px; font-weight: 900; color: #0f172a; }
.umj-gender-card--active,
.umj-gender-card:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

/* カテゴリタブ */
.umj-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.umj-cat-tab {
  padding: 10px 18px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.umj-cat-tab:hover { border-color: #93c5fd; color: #2563eb; }
.umj-cat-tab--active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

/* カラーグリッド */
.umj-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.umj-color-grid--hidden { display: none; }

/* カラーカード */
.umj-color-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 8px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  width: calc(16.66% - 10px);
  min-width: 68px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (max-width: 480px) {
  .umj-color-card { width: calc(25% - 10px); min-width: 60px; }
}
.umj-color-card input { display: none; }
.umj-color-card__swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
/* 画像付きスウォッチ（スーツ・ネクタイ） */
.umj-color-card__img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
/* 画像付きカードは少し幅を広く */
.umj-color-card:has(.umj-color-card__img) {
  padding: 8px 8px 6px;
}
@media (max-width: 480px) {
  .umj-color-card__img {
    width: 44px;
    height: 44px;
  }
}
.umj-color-card__label {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  line-height: 1.3;
}
.umj-color-card:hover { border-color: #93c5fd; }
.umj-color-card--selected,
.umj-color-card:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.umj-color-card:has(input:checked) .umj-suit-card__check { display: flex; }


/* ==========================================================
   LP ページ
========================================================== */

/* ヒーロー */
.umj-lp-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 55%, #f0fdf4 100%);
  padding: 48px 24px 40px;
}
.umj-lp-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 680px) {
  .umj-lp-hero__inner {
    grid-template-columns: 1fr;
  }
}
.umj-lp-hero__badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.umj-lp-hero__title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 14px;
}
.umj-lp-hero__lead {
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 24px;
}
.umj-lp-hero__cta {
  display: block;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 0 #1d4ed8;
  margin-bottom: 12px;
  transition: transform 0.1s;
}
.umj-lp-hero__cta:hover { transform: translateY(-1px); }
.umj-lp-hero__note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* ビフォーアフター */
.umj-lp-ba {
  display: flex;
  align-items: center;
  gap: 12px;
}
.umj-lp-ba__item {
  position: relative;
  flex: 1;
}
.umj-lp-ba__img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e2e8f0;
}
.umj-lp-ba__label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.08em;
}
.umj-lp-ba__label--before { background: #f1f5f9; color: #475569; }
.umj-lp-ba__label--after  { background: #2563eb; color: #fff; }
.umj-lp-ba__arrow {
  font-size: 24px;
  color: #2563eb;
  font-weight: 900;
  flex-shrink: 0;
}
.umj-lp-ba__caption {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}

/* 共通セクションタイトル */
.umj-lp-section__title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  margin-bottom: 8px;
}
.umj-lp-section__lead {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 28px;
}

/* 3ステップ */
.umj-lp-steps {
  padding: 48px 24px 40px;
  background: #fff;
}
.umj-lp-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .umj-lp-steps__grid { grid-template-columns: 1fr; }
}
.umj-lp-step {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}
.umj-lp-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.umj-lp-step__title { font-size: 14px; font-weight: 900; color: #0f172a; margin-bottom: 6px; }
.umj-lp-step__desc  { font-size: 12px; color: #64748b; line-height: 1.6; }

/* CTA */
.umj-lp-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  padding: 44px 24px;
  text-align: center;
}
.umj-lp-cta__title { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.umj-lp-cta__sub   { font-size: 13px; color: #bfdbfe; margin-bottom: 24px; }
.umj-lp-cta__btn {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  font-size: 16px;
  font-weight: 900;
  padding: 16px 44px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: transform 0.1s;
}
.umj-lp-cta__btn:hover { transform: translateY(-1px); }

/* バナーセクション */
.umj-lp-banners {
  padding: 48px 24px 56px;
  background: #f8fafc;
}
.umj-lp-banners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .umj-lp-banners__grid { grid-template-columns: 1fr; }
}

/* バナー共通 */
.umj-lp-banner {
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.umj-lp-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.umj-lp-banner__img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* バナー画像がない場合のフォールバック */
.umj-lp-banner--indigo .umj-lp-banner__fallback { background: #eef2ff; border-color: #c7d2fe; }
.umj-lp-banner--purple .umj-lp-banner__fallback { background: #faf5ff; border-color: #d8b4fe; }
.umj-lp-banner__fallback {
  padding: 24px 20px;
  border: 2px solid;
  border-radius: 14px;
  height: 100%;
}
.umj-lp-banner__icon { font-size: 32px; display: block; margin-bottom: 10px; }
.umj-lp-banner__tag  { font-size: 10px; font-weight: 700; display: block; margin-bottom: 6px; }
.umj-lp-banner--indigo .umj-lp-banner__tag { color: #4f46e5; }
.umj-lp-banner--purple .umj-lp-banner__tag { color: #7c3aed; }
.umj-lp-banner__name { font-size: 18px; font-weight: 900; color: #0f172a; margin-bottom: 6px; }
.umj-lp-banner__desc { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 14px; }
.umj-lp-banner__arrow { font-size: 12px; font-weight: 700; }
.umj-lp-banner--indigo .umj-lp-banner__arrow { color: #4f46e5; }
.umj-lp-banner--purple .umj-lp-banner__arrow { color: #7c3aed; }


/* =========================================================
   ④ 業界別プリセットボタン
========================================================= */
.umj-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.umj-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.umj-preset-btn:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
}
.umj-preset-btn--active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.umj-preset-btn__icon { font-size: 24px; }
.umj-preset-btn__label { font-size: 13px; font-weight: 800; color: #0f172a; }
.umj-preset-btn__desc  { font-size: 10px; color: #64748b; line-height: 1.3; }
@media (max-width: 600px) {
  .umj-preset-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .umj-preset-btn  { padding: 10px 6px 8px; }
  .umj-preset-btn__icon  { font-size: 20px; }
  .umj-preset-btn__label { font-size: 11px; }
  .umj-preset-btn__desc  { font-size: 9px; }
}

/* =========================================================
   ③ ダウンロード前 情報入力モーダル
========================================================= */
.umj-dlgate-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.umj-dlgate-modal[hidden] { display: none; }
.umj-dlgate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.umj-dlgate-modal__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}
.umj-dlgate-modal__title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}
.umj-dlgate-modal__lead {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}
.umj-dlgate-form { text-align: left; }
.umj-dlgate-field { margin-bottom: 14px; }
.umj-dlgate-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.umj-dlgate-req {
  font-size: 10px;
  color: #dc2626;
  background: #fef2f2;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.umj-dlgate-opt {
  font-size: 10px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.umj-dlgate-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.umj-dlgate-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.umj-dlgate-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 16px 0 20px;
  cursor: pointer;
}
.umj-dlgate-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}
.umj-dlgate-skip {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.umj-dlgate-skip:hover { color: #64748b; }
.umj-dlgate-privacy {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 14px;
  line-height: 1.5;
}

/* =========================================================
   ⑧ 背景色グリッド拡張（5列対応）
========================================================= */
.umj-color-grid {
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
}
@media (max-width: 600px) {
  .umj-color-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
  }
}

/* =========================================================
   ⑩ 写真調整スライダー（generate結果画面用）
========================================================= */
.umj-adjust-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0 8px;
}
.umj-adjust-panel__title {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 14px;
  text-align: center;
}
.umj-adjust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.umj-adjust-row:last-child { margin-bottom: 0; }
.umj-adjust-row__label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  width: 70px;
  flex-shrink: 0;
  text-align: right;
}
.umj-adjust-row input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}
.umj-adjust-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.umj-adjust-row__val {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  width: 32px;
  text-align: center;
}
.umj-adjust-reset {
  display: block;
  margin: 12px auto 0;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================================================
   ⑤ 撮影ボタン色変化
========================================================= */
.umj-photo-capture .umj-btn--primary {
  transition: background .3s, box-shadow .3s;
}

/* =========================================================
   身だしなみ補正トグル
========================================================= */
.umj-groom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.umj-groom-toggle {
  cursor: pointer;
}
.umj-groom-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.umj-groom-toggle__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  transition: all .2s ease;
  text-align: center;
}
.umj-groom-toggle__card:hover {
  border-color: #93c5fd;
  background: #f8faff;
}
.umj-groom-toggle input:checked + .umj-groom-toggle__card {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.umj-groom-toggle input:checked + .umj-groom-toggle__card::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  font-weight: 900;
  color: #2563eb;
}
.umj-groom-toggle__card {
  position: relative;
}
.umj-groom-toggle__icon {
  font-size: 26px;
}
.umj-groom-toggle__label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.umj-groom-toggle__desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .umj-groom-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .umj-groom-toggle__card { padding: 12px 8px 10px; }
  .umj-groom-toggle__icon { font-size: 22px; }
  .umj-groom-toggle__label { font-size: 12px; }
}

/* 身だしなみ再生成セクション（結果画面内） */
.umj-groom-retouch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.umj-groom-retouch__title {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 4px;
  text-align: center;
}
.umj-groom-retouch__note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 12px;
}
.umj-groom-retouch .umj-groom-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}
.umj-groom-retouch__btn {
  width: 100%;
  font-size: 13px !important;
}
.umj-groom-retouch__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.umj-groom-retouch__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #2563eb;
  margin-top: 10px;
}
.umj-spinner--sm {
  width: 18px; height: 18px;
  border: 2px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: umjSpin 0.8s linear infinite;
}
@keyframes umjSpin { to { transform: rotate(360deg); } }

/* プリセットグリッド: 4列 */
.umj-preset-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 600px) {
  .umj-preset-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* =========================================================
   位置・ズーム クロッププレビュー
========================================================= */
.umj-crop-preview {
  margin: 12px auto;
  width: 200px;
  height: 267px; /* 3:4 */
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
}
.umj-crop-preview__frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.umj-crop-preview__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: filter .15s;
  user-select: none;
  -webkit-user-drag: none;
}
.umj-adjust-panel__note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 10px;
}

/* =========================================================
   リードフォーム（outfit送信前）
========================================================= */
.umj-lead-form {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 20px 18px;
  margin-bottom: 20px;
}
.umj-lead-form__title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  margin-bottom: 4px;
}
.umj-lead-form__note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 16px;
}
.umj-lead-form__fields {
  max-width: 400px;
  margin: 0 auto;
}
.umj-lead-form__row {
  display: flex;
  gap: 12px;
}

/* =========================================================
   ⑥ LP ショーケーススライダー
========================================================= */
.umj-lp-showcase {
  padding: 48px 20px 40px;
  background: #f8fafc;
  overflow: hidden;
}
.umj-showcase-slider {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.umj-showcase-slider__track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.umj-showcase-slider__track--row1 {
  animation: umjShowcaseScrollL 60s linear infinite;
}
.umj-showcase-slider__track--row2 {
  animation: umjShowcaseScrollR 65s linear infinite;
}
@keyframes umjShowcaseScrollL {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes umjShowcaseScrollR {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.umj-showcase-card {
  flex: 0 0 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.umj-showcase-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.umj-showcase-card__placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 28px;
}
.umj-showcase-card__placeholder small {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}
@media (max-width: 600px) {
  .umj-showcase-card { flex: 0 0 130px; }
}

/* =========================================================
   生成中テキストティッカー（カード風）
========================================================= */
.umj-generate__ticker {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 0 20px;
  min-height: 140px;
  position: relative;
}
.umj-ticker__slide {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1.5px solid #c7d2fe;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.umj-ticker__slide--active {
  opacity: 1;
  pointer-events: auto;
}
.umj-ticker__kicker {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.umj-ticker__title {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 8px;
}
.umj-ticker__body {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   写真メーカーフッター
========================================================= */
.umj-photo-footer {
  background: #0f172a;
  padding: 28px 20px;
  margin-top: 48px;
}
.umj-photo-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.umj-photo-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.umj-photo-footer__nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.umj-photo-footer__nav a:hover {
  color: #fff;
}
.umj-photo-footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  margin: 0;
}

/* =========================================================
   髪型グリッド
========================================================= */
.umj-hair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 601px) {
  .umj-hair-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.umj-hair-grid .umj-groom-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.umj-hair-grid .umj-groom-toggle input:checked + .umj-groom-toggle__card {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* =========================================================
   フィードバックアンケート
========================================================= */
.umj-feedback-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #d9e3f0;
  border-radius: 14px;
  background: #f8fbff;
}
.umj-feedback-head { margin-bottom: 14px; }
.umj-feedback-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f2d3d;
}
.umj-feedback-lead {
  font-size: 13px;
  line-height: 1.7;
  color: #506070;
}
.umj-feedback-section { margin-top: 18px; }
.umj-feedback-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2d3d;
}
.umj-rating-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.umj-rating-slider__min, .umj-rating-slider__max {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.umj-rating-slider__input {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #fca5a5, #fde68a, #86efac);
  border-radius: 3px;
  outline: none;
}
.umj-rating-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.umj-rating-slider__labels {
  display: flex;
  justify-content: space-between;
  padding: 0 34px;
  margin-top: 2px;
}
.umj-rating-slider__labels span {
  font-size: 10px;
  color: #cbd5e1;
  font-weight: 600;
}
.umj-feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.umj-feedback-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.umj-feedback-textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #c9d6e6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
  resize: vertical;
}
.umj-feedback-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.umj-feedback-submit {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.umj-feedback-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.umj-feedback-skip {
  border: 1px solid #c9d6e6;
  border-radius: 999px;
  padding: 11px 18px;
  background: #fff;
  color: #334;
  font-weight: 700;
  cursor: pointer;
}
.umj-feedback-status {
  font-size: 13px;
  color: #4b5a6b;
}
@media (max-width: 640px) {
  .umj-feedback-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   結果画面: 横並びスライダーバー
========================================================= */
.umj-adjust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.umj-adjust-bar__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.umj-adjust-bar__label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.umj-adjust-bar__val {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-align: right;
}
.umj-adjust-bar input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
}
.umj-adjust-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
@media (max-width: 600px) {
  .umj-adjust-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* メイン編集画像 */
.umj-crop-preview--main {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.umj-crop-preview--main .umj-crop-preview__frame {
  width: 300px;
  height: 400px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  cursor: grab;
}
.umj-crop-preview--main .umj-crop-preview__frame:active {
  cursor: grabbing;
}
.umj-crop-preview--main img {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 0 0;
}

/* =========================================================
   ポーズ選択（startページ）— 4枚横並びお手本＋ボタン
========================================================= */
.umj-pose-samples {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px auto 16px;
  max-width: 440px;
}
.umj-pose-samples__group {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  opacity: 0.45;
  transition: opacity .25s;
}
.umj-pose-samples__group--active {
  opacity: 1;
}
.umj-pose-samples__img {
  width: 80px;
  height: 107px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid #e2e8f0;
  background: #f1f5f9;
}
.umj-pose-samples__group--active .umj-pose-samples__img {
  border-color: #2563eb;
}
.umj-pose-samples__label {
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}
.umj-pose-samples__group--active .umj-pose-samples__label {
  color: #2563eb;
}

/* ボタン */
.umj-pose-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.umj-pose-btn {
  flex: 1;
  cursor: pointer;
}
.umj-pose-btn input { display: none; }
.umj-pose-btn__inner {
  display: block;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.umj-pose-btn--selected .umj-pose-btn__inner {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  color: #1e40af;
}
.umj-pose-btn__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #2563eb;
  padding: 1px 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}
.umj-pose-btn:not(.umj-pose-btn--selected) .umj-pose-btn__badge { display: none; }
.umj-pose-btn__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .umj-pose-samples__img { width: 65px; height: 87px; }
  .umj-pose-btns { flex-direction: column; gap: 8px; }
}

/* =========================================================
   お手本ガイドパネル（captureページ）
========================================================= */
.umj-guide-panel {
  max-width: 320px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  text-align: center;
}
.umj-guide-panel__title {
  font-size: 12px;
  font-weight: 800;
  color: #1e40af;
  margin: 0 0 8px;
}
.umj-guide-panel__photos {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.umj-guide-panel__img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}

/* =========================================================
   カメラガイド斜め向き
========================================================= */
.umj-camera-guide--angled .umj-camera-guide__oval {
  transform: rotate(-8deg) translateX(-6%);
}
.umj-camera-guide--angled .umj-body-frame {
  transform: rotate(-8deg) translateX(-6%);
}
.umj-camera-guide--angled .umj-camera-guide__vline {
  transform: rotate(-8deg);
}
/* ==========================================================
   ★ 追加スタイル（2026-04-05）
========================================================== */

/* ---- 完了ページバナーhover ---- */
.umj-photo-complete a[href]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18) !important;
}

/* ---- LPビフォーアフター: モバイルでは横並び → 縦並び（テキスト重ならない）---- */
@media (max-width: 680px) {
    .umj-lp-hero__inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .umj-lp-hero__text { order: 1; }
    .umj-lp-hero__ba   { order: 2; width: 100%; }
    /* ビフォーアフターを写真に被せない */
    .umj-lp-ba {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
    }
    .umj-lp-ba__label {
        position: static !important;
        display: inline-block;
        margin-bottom: 6px;
        font-size: 10px;
    }
    .umj-lp-ba__item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* タイトルを大きく */
    .umj-lp-hero__title {
        font-size: clamp(36px, 10vw, 52px) !important;
        line-height: 1.2 !important;
    }
    .umj-lp-hero__cta {
        font-size: 18px !important;
        padding: 18px 32px !important;
    }
}

/* ---- スライダー: 最初から表示・白飛び防止 ---- */
.umj-showcase-slider {
    min-height: 180px;
}
.umj-showcase-slider__track {
    will-change: transform;
    /* 初期位置を設定してから animation 開始 */
    animation-play-state: running;
}
.umj-showcase-card__img {
    background: #e8edf2; /* 画像ロード前のプレースホルダー色 */
    min-height: 160px;
}
/* スライダー速度: PC */
.umj-showcase-slider__track--row1 { animation-duration: 40s !important; }
.umj-showcase-slider__track--row2 { animation-duration: 48s !important; }
/* スライダー速度: モバイルはさらに遅く */
@media (max-width: 680px) {
    .umj-showcase-slider__track--row1 { animation-duration: 70s !important; }
    .umj-showcase-slider__track--row2 { animation-duration: 85s !important; }
}

/* ---- 便利なツールバナー: クリッカブル感を強調 ---- */
.umj-lp-banner {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.umj-lp-banner:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
}
.umj-lp-banner::after {
    content: '→ ページを見る';
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.25);
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.umj-lp-banner__fallback .umj-lp-banner__arrow { display: none; }

/* ---- モバイルLP ヒーローをオシャレに ---- */
@media (max-width: 680px) {
    .umj-lp-hero {
        padding: 36px 20px 32px;
        background: linear-gradient(160deg, #1e3a5f 0%, #2563eb 50%, #0ea5e9 100%) !important;
    }
    .umj-lp-hero__badge {
        background: rgba(255,255,255,0.2) !important;
        color: #fff !important;
        backdrop-filter: blur(4px);
    }
    /* ★ タイトル1行に収める */
    .umj-lp-hero__title {
        color: #fff !important;
        font-size: clamp(28px, 7.5vw, 40px) !important;
        white-space: nowrap !important;
        br { display: none; }
    }
    /* ★ キャッチコピーを白に（青背景で潰れないよう） */
    .umj-lp-hero__text p[style*="color:#2563eb"],
    .umj-lp-hero__text p[style*="color: #2563eb"] {
        color: rgba(255,255,255,0.95) !important;
        font-size: 13px !important;
    }
    .umj-lp-hero__lead {
        color: rgba(255,255,255,0.9) !important;
    }
    .umj-lp-hero__note {
        color: rgba(255,255,255,0.7) !important;
    }
    .umj-lp-hero__cta {
        background: #fff !important;
        color: #2563eb !important;
        box-shadow: 0 4px 0 rgba(0,0,0,0.15) !important;
    }
    /* モバイルLP 特徴セクション */
    .umj-lp-steps {
        background: #f8fafc;
        border-radius: 20px;
        margin: 16px;
        padding: 24px 20px;
    }
    .umj-lp-step {
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-bottom: 10px;
    }
    .umj-lp-step__num {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    .umj-lp-step__title {
        font-size: 14px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 4px;
    }
    .umj-lp-step__desc {
        font-size: 12px;
        color: #64748b;
        line-height: 1.6;
    }
    /* 便利なツールもモバイルで縦1列 */
    .umj-lp-banners__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- 生成中ティッカー: スライドカードをグラデーションに ---- */
.umj-ticker__slide {
    background: linear-gradient(135deg, #eff6ff, #eef2ff) !important;
    border-color: #c7d2fe !important;
}
.umj-ticker__kicker { color: #4f46e5 !important; }
.umj-ticker__title  { color: #1e3a5f !important; font-size: 15px !important; font-weight: 900 !important; }
.umj-ticker__body   { color: #475569 !important; font-size: 12px !important; line-height: 1.7 !important; }

/* ---- LP ヒーロー機能バッジ（モバイルのみ表示） ---- */
.umj-lp-hero__features { display: none; }
@media (max-width: 680px) {
    .umj-lp-hero__features { display: flex !important; }
    .umj-lp-hero__sub-catchcopy { display: none !important; }
}