/* ========================================
   クライアント向け案件管理ページ
   ======================================== */

/* ========================================
   データ保存注意モーダル
   ======================================== */
.storage-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.storage-modal.is-hidden {
  display: none;
}

.storage-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.storage-modal__content {
  position: relative;
  background: #fff;
  border-radius: 1.6rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3.2rem 2.4rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.storage-modal__icon {
  width: 6.4rem;
  height: 6.4rem;
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%;
  color: #d97706;
}

.storage-modal__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.6rem;
  color: #1e293b;
}

.storage-modal__body {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #475569;
}

.storage-modal__lead {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 0.8rem;
}

.storage-modal__lead strong {
  color: #6a25eb;
}

.storage-modal__section {
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-radius: 0.8rem;
  background: #f8fafc;
}

.storage-modal__section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1e293b;
}

.storage-modal__section p {
  margin: 0;
}

.storage-modal__section ul {
  margin: 0;
  padding-left: 2rem;
}

.storage-modal__section li {
  margin-bottom: 0.4rem;
}

.storage-modal__section--warning {
  background: #fef7f7;
  border-left: 4px solid #e8a0a0;
}

.storage-modal__section--warning h3 {
  color: #c0392b;
}

.storage-modal__section--tip {
  background: #f0faf4;
  border-left: 4px solid #6ec89b;
}

.storage-modal__section--tip h3 {
  color: #1a8a52;
}

.storage-modal__section--info {
  background: #f0f4fa;
  border-left: 4px solid #7b9fd4;
}

.storage-modal__section--info h3 {
  color: #3b6aab;
}

.storage-modal__btn {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 1.4rem 2rem;
  font-size: 1.6rem;
}

/* ========================================
   データ削除2段階確認モーダル
   ======================================== */
.reset-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.reset-modal.is-hidden {
  display: none;
}

.reset-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.reset-modal__content {
  position: relative;
  background: #fff;
  border-radius: 1.6rem;
  max-width: 480px;
  width: 100%;
  padding: 3.2rem 2.4rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

.reset-modal__stage.is-hidden {
  display: none;
}

.reset-modal__icon {
  width: 6.4rem;
  height: 6.4rem;
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%;
  color: #d97706;
}

.reset-modal__icon--danger {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

.reset-modal__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.2rem;
  color: #1e293b;
}

.reset-modal__text {
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: center;
  color: #475569;
  margin-bottom: 2rem;
}

.reset-modal__text strong {
  color: #dc2626;
}

.reset-modal__input {
  display: block;
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.reset-modal__input:focus {
  outline: none;
  border-color: #dc2626;
}

.reset-modal__buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.reset-modal__buttons .btn {
  min-width: 140px;
}

/* 危険ボタン */
.btn--danger {
  background: #dc2626;
  color: #fff;
  border: none;
}

.btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn--danger:disabled {
  background: #fca5a5;
  cursor: not-allowed;
}

/* リセットリンク（目立たない） */
.step__reset-link {
  margin-top: 2rem;
  text-align: center;
}

.reset-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}

.reset-link:hover {
  color: #64748b;
}

html {
  font-size: 62.5%;
}

:root {
  /* カラー */
  --color-primary: #6a25eb;
  --color-primary-light: #7b40e8;
  --color-primary-dark: #411397;
  --color-success: #0ba471;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-bg: #f8fafc;
  --color-bg-white: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* フォント */
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  /* スペーシング */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* ボーダー */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* トランジション */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 1.6rem;
  overflow-x: clip;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
}

.header__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.header__subtitle {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* サービスページへ戻るナビ */
.back-nav {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.back-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.3rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.back-nav__link:hover {
  color: var(--color-primary);
}

.back-nav__link svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .header__subtitle {
    font-size: 1.2rem;
  }
}

/* ========================================
   料金ウィジェット（右下固定）
   ======================================== */
.price-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: var(--font-sans);
}

.price-widget__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(106, 37, 235, 0.35);
  transition: all var(--transition-base);
}

.price-widget__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(106, 37, 235, 0.45);
}

.price-widget.is-open .price-widget__toggle {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.price-widget__label {
  font-size: 1.2rem;
  opacity: 0.9;
}

.price-widget__amount {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.price-widget__tax {
  font-size: 1.2rem;
  opacity: 0.8;
}

.price-widget__icon {
  opacity: 0.8;
  transition: transform var(--transition-fast);
  margin-left: var(--space-xs);
}

.price-widget.is-open .price-widget__icon {
  transform: rotate(180deg);
}

/* 内訳パネル */
.price-widget__detail {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 320px;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: var(--space-lg);
  margin-bottom: -1px;
  animation: slideUp 0.2s ease-out;
}

.price-widget.is-open .price-widget__detail {
  display: block;
}

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

.price-widget__detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.price-widget__detail-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.price-widget__breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.price-widget__breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.6rem;
  padding: var(--space-sm) 0;
  font-size: 1.4rem;
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-border-light);
}

.price-widget__breakdown-item span:first-child {
  flex: 1;
}

.price-widget__breakdown-item span:last-child {
  white-space: nowrap;
  text-align: right;
}

.price-widget__breakdown-item:last-child {
  border-bottom: none;
}

.price-widget__total {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.price-widget__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

.price-widget__total-row--grand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .price-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  
  .price-widget__toggle {
    width: 100%;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
  }
  
  .price-widget__label {
    font-size: 1.1rem;
  }
  
  .price-widget__amount {
    font-size: 1.8rem;
  }
  
  .price-widget__detail {
    width: calc(100vw - 32px);
    right: 0;
  }
}

/* ========================================
   プラン選択カード
   ======================================== */
.plan-select {
  margin-bottom: var(--space-2xl);
}

.plan-select__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.plan-select__desc {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.plan-select__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.plan-select__card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  text-align: left;
}

.plan-select__card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.plan-select__card--selected {
  border-color: var(--color-primary);
  background: rgba(106, 37, 235, 0.03);
}

.plan-select__card--featured {
  border-color: var(--color-primary-light);
}

.plan-select__card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6a25eb, #411397);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.2rem 1.2rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-select__card-check {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.plan-select__card-check::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.plan-select__card--selected .plan-select__card-check {
  display: flex;
}

.plan-select__card-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.plan-select__card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.plan-select__card-price {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.plan-select__card-price span {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-select__card-sub {
  font-size: 1.15rem;
  color: var(--color-primary-dark, #411397);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.plan-select__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-select__card-list li {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  padding: 0.15rem 0;
}

.plan-select__card-list li::before {
  content: '- ';
}

/* カスタムカード */
.plan-select__card--custom {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plan-select__card-desc {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.plan-select__note {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .plan-select__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .plan-select__cards {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   メイン
   ======================================== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* ========================================
   プログレスバー
   ======================================== */
.progress {
  margin-bottom: var(--space-2xl);
}

.progress__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.4;
  transition: var(--transition-base);
}

.progress__step--active {
  opacity: 1;
}

.progress__step--completed {
  opacity: 1;
  cursor: pointer;
}

.progress__step--completed:hover .progress__step-num {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(11, 164, 113, 0.3);
}

/* 保存済みデータがある先のステップ（クリック可能） */
.progress__step--clickable {
  opacity: 0.85;
  cursor: pointer;
}

.progress__step--clickable .progress__step-num {
  background: rgba(106, 37, 235, 0.15);
  color: var(--color-primary);
  border: 2px dashed var(--color-primary);
}

.progress__step--clickable:hover .progress__step-num {
  transform: scale(1.1);
  background: rgba(106, 37, 235, 0.25);
  box-shadow: 0 2px 8px rgba(106, 37, 235, 0.3);
}

.progress__step--clickable .progress__step-label {
  color: var(--color-primary);
  opacity: 0.8;
}

.progress__step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-text-muted);
  transition: var(--transition-base);
}

.progress__step--active .progress__step-num {
  background: var(--color-primary);
  color: white;
}

.progress__step--completed .progress__step-num {
  background: var(--color-success);
  color: white;
}

.progress__step-label {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.progress__step--active .progress__step-label {
  color: var(--color-primary);
  font-weight: 500;
}

.progress__line {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .progress__step-label {
    display: none;
  }
  .progress__line {
    width: 30px;
    margin-bottom: 0;
  }
}

/* ========================================
   ステップ共通
   ======================================== */
.step__inner {
  max-width: 900px;
  margin: 0 auto;
}

.step__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.step__description {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size: 1.6rem;
}

.step__description small {
  display: block;
  font-size: 1.3rem;
  margin-top: var(--space-xs);
  color: var(--color-primary);
  font-weight: 500;
}

.step__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  min-width: 160px;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.btn--primary:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.btn--secondary {
  background: var(--color-bg-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-bg);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* ========================================
   Step 1: テンプレート選択
   ======================================== */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 640px) {
  .template-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

.template-group {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.template-group__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.template-group__desc {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.template-group__desc small {
  display: block;
  margin-top: var(--space-xs);
  opacity: 0.8;
}

.template-group__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.template-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  position: relative;
}

.template-card:hover {
  border-color: var(--color-primary-light);
}

.template-card--selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

.template-card__preview {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: var(--color-border-light);
}

.template-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card__name {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 var(--space-sm);
}

.template-card__link {
  display: block;
  font-size: 1.4rem;
  color: var(--color-primary);
  text-align: center;
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: var(--transition-fast);
}

.template-card__link:hover {
  text-decoration: underline;
}

.template-card__check {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.template-card__check::after {
  content: '';
  width: 12px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.template-card--selected .template-card__check {
  display: flex;
}

/* ========================================
   Step 2: 制作方法選択
   ======================================== */
.method-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 700px) {
  .method-cards {
    grid-template-columns: 1fr;
  }
}

.method-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  text-align: center;
}

.method-card:hover {
  border-color: var(--color-primary-light);
}

.method-card--selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.02);
}

.method-card__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--color-primary);
}

.method-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.method-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.method-card__desc {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.method-card__flow {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.method-card__flow li {
  font-size: 1.4rem;
  padding: var(--space-xs) 0;
  color: var(--color-text-muted);
}

.method-card__check {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.method-card__check::after {
  content: '';
  width: 14px;
  height: 7px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.method-card--selected .method-card__check {
  display: flex;
}

/* ========================================
   Step 3: 画像について
   ======================================== */
.image-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .image-cards {
    grid-template-columns: 1fr;
  }
}

.image-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  text-align: center;
}

.image-card:hover {
  border-color: var(--color-primary-light);
}

.image-card--selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.02);
}

.image-card__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-primary);
}

.image-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.image-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.image-card__desc {
  font-size: 1.4rem;
  color: var(--color-text-muted);
}

.image-card__check {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.image-card__check::after {
  content: '';
  width: 14px;
  height: 7px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.image-card--selected .image-card__check {
  display: flex;
}

/* 画像詳細入力 */
.image-detail {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.image-detail__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.image-detail__title::before {
  content: '';
  width: 4px;
  height: 1em;
  background: var(--color-primary);
  border-radius: 2px;
}

.image-detail__note {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.image-detail__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ========================================
   Step 4: セクション構成
   ======================================== */
.step__inner--wide {
  max-width: 1100px;
}

.sections-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .sections-layout {
    grid-template-columns: 1fr;
  }
}

.sections-edit {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sections-preview {
  position: sticky;
  top: 100px;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.sections-preview__header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.sections-preview__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs);
}

.sections-preview__subtitle {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin: 0;
}

.sections-preview__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.preview-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
}

.preview-item__num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.preview-item--optional .preview-item__num {
  background: var(--color-success);
}

.preview-item__name {
  flex: 1;
  font-weight: 500;
}

.preview-item--optional .preview-item__name {
  color: var(--color-success);
}
.selected-template {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
  text-align: center;
}

.selected-template strong {
  color: var(--color-primary);
}

.sections-box {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
}

.sections-box__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sections-box__title::before {
  content: '';
  width: 4px;
  height: 1em;
  background: var(--color-primary);
  border-radius: 2px;
}

.sections-box--optional .sections-box__title::before {
  background: var(--color-success);
}

.sections-box__note {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.sections-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.section-item__order {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
  flex-shrink: 0;
}

.section-item--optional .section-item__order {
  background: var(--color-border);
  color: var(--color-text-muted);
}

.section-item--optional.section-item--added .section-item__order {
  background: var(--color-success);
  color: white;
}

.section-item__name {
  flex: 1;
  font-size: 1.5rem;
}

.section-item__note {
  font-size: 1.4rem;
  color: var(--color-text-muted);
}

.section-item__toggle {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: var(--color-success);
  color: white;
}

.section-item__toggle:hover {
  opacity: 0.9;
}

.section-item--added .section-item__toggle {
  background: var(--color-error);
}

/* 削除された基本セクション */
.section-item--removed {
  opacity: 0.5;
  background: var(--color-border-light);
}

.section-item--removed .section-item__order {
  background: var(--color-error);
}

.section-item--removed .section-item__name {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* 基本セクションのトグルボタン（削除） */
.section-item:not(.section-item--optional) .section-item__toggle {
  background: var(--color-error);
}

.section-item:not(.section-item--optional) .section-item__toggle--add {
  background: var(--color-success);
}

/* 料金サマリー */
.pricing-summary {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.pricing-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: 1.5rem;
}

.pricing-summary__row--total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary);
}

/* ========================================
   Step 4: 情報入力フォーム
   ======================================== */
.input-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-section {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.form-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-section__title::before {
  content: '';
  width: 4px;
  height: 1.25em;
  background: var(--color-primary);
  border-radius: 2px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group__label {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.form-group__label--required::after {
  content: '必須';
  color: white;
  background: var(--color-error);
  font-size: 1.1rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
}

.form-group__hint {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.line-url-help {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 500;
  margin: 0 0 var(--space-sm) 0;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
  background: var(--color-bg); /* 入力前は薄いグレー背景 */
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(106, 37, 235, 0.1);
  background: var(--color-bg-white); /* フォーカス時は白背景 */
}

/* 入力済みフィールドは白背景に */
.form-input:not(:placeholder-shown),
.form-textarea:not(:placeholder-shown) {
  background: var(--color-bg-white);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 動的フィールド（追加削除可能） */
.dynamic-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dynamic-field {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.dynamic-field .form-input {
  flex: 1;
}

.dynamic-field__remove {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-error);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.dynamic-field__remove:hover {
  opacity: 0.9;
}

.dynamic-field__remove svg {
  width: 18px;
  height: 18px;
}

.add-field-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  color: var(--color-primary);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: var(--space-sm);
}

.add-field-btn:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* 画像ダウンロード → メール送信のステップガイド */
.image-mail-guide {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.image-mail-guide__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.image-mail-guide__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.4em;
  background: #f59e0b;
  border-radius: 2px;
}

.image-mail-guide__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.image-mail-guide__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
}

.image-mail-guide__step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.image-mail-guide__step-content {
  flex: 1;
}

.image-mail-guide__step-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.image-mail-guide__step-text:last-child {
  margin-bottom: 0;
}

.btn--download-guide {
  margin-top: var(--space-xs);
}

.image-mail-guide__arrow {
  display: flex;
  justify-content: center;
  color: #f59e0b;
}

/* フォームアクション */
.form-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

/* ========================================
   トースト通知
   ======================================== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1000;
}

.toast--persistent {
  padding-right: 4rem;
}

.toast__close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem;
  opacity: 0.8;
}

@media (any-hover: hover) {
  .toast__close:hover,
  .toast__close:focus-visible {
    opacity: 1;
  }
}

/* 無効化ボタンのツールチップ */
.btn--next-wrapper {
  position: relative;
  display: inline-block;
}

.btn--next-wrapper:hover .btn--next:disabled + .btn-tooltip {
  display: block;
}

.btn-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  z-index: 10;
}

.btn-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-text);
}

/* disabledボタンにpointer-eventsを有効に */
.btn--next:disabled {
  pointer-events: auto;
  cursor: not-allowed;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--color-success);
}

.toast--error {
  background: var(--color-error);
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* リーガルリンク */
.footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}

.footer__legal-link {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__legal-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__legal-divider {
  font-size: 1.2rem;
  color: var(--color-border);
}

.footer__copyright {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ========================================
   同意チェックボックス
   ======================================== */
.agreement {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.agreement__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1.6;
}

.agreement__checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.agreement__label {
  color: var(--color-text);
}

.agreement__label a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.agreement__label a:hover {
  opacity: 0.8;
}

/* agency-info__mail内の同意チェックボックス */
.agency-info__mail .agreement {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.agency-info__mail .agreement__label {
  color: white;
}

.agency-info__mail .agreement__label a {
  color: rgba(255, 255, 255, 0.95);
}

/* 無効化されたメール作成ボタン */
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* 無効化されたメールで送信ボタン */
.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 640px) {
  .step__title {
    font-size: 1.375rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* ========================================
   デザインオプション選択
   ======================================== */
.design-option {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  border: 1px solid var(--color-border);
}

.design-option__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.design-option__title::before {
  content: '';
  width: 4px;
  height: 1.25em;
  background: var(--color-warning);
  border-radius: 2px;
}

.design-option__choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.design-option__choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.design-option__choice:hover {
  border-color: var(--color-primary-light);
}

.design-option__choice input[type="radio"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.design-option__choice input[type="radio"]:checked + .design-option__choice-label {
  color: var(--color-primary);
}

.design-option__choice-label {
  flex: 1;
}

.design-option__choice-label strong {
  display: block;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.design-option__choice-label small {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.design-option__price {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.design-arrange-detail {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.design-arrange-detail__choices {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.design-arrange-input {
  margin-top: var(--space-md);
}

.design-arrange-input .form-textarea {
  min-height: 100px;
}

/* ========================================
   弊社作成時のメール送信セクション
   ======================================== */
.agency-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.agency-info__summary {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.agency-info__summary h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.agency-info__summary p {
  margin-bottom: var(--space-sm);
  font-size: 1.6rem;
}

.agency-info__summary strong {
  color: var(--color-primary);
}

.agency-info__attachments {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.agency-info__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.agency-info__title::before {
  content: '';
  width: 4px;
  height: 1.6em;
  background: var(--color-warning);
  border-radius: 2px;
}

.agency-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.agency-info__list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.agency-info__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  flex-shrink: 0;
}

.agency-info__list li:last-child {
  border-bottom: none;
}

.agency-info__mail {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: white;
}

.agency-info__mail p {
  margin-bottom: var(--space-lg);
  font-size: 1.4rem;
}

.agency-info__mail .btn--mail {
  background: white;
  color: var(--color-primary);
  font-weight: 600;
  padding: var(--space-md) var(--space-2xl);
}

.agency-info__mail .btn--mail:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.agency-info__mail-address {
  margin-top: var(--space-lg);
  font-size: 1.4rem;
  opacity: 0.9;
}

.agency-info__mail-address a {
  color: var(--color-bg-white);
  text-decoration: underline;
}

.agency-info__note {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* ヒアリング時の案内 */
.interview-guide {
  margin-bottom: var(--space-xl);
}

.interview-guide__card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(106, 37, 235, 0.04), rgba(106, 37, 235, 0.08));
  border: 1px solid rgba(106, 37, 235, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.interview-guide__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 37, 235, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-primary);
}

.interview-guide__text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.interview-guide__text strong {
  color: var(--color-primary);
}

.interview-guide__sub {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.interview-guide__divider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.interview-guide__divider::before,
.interview-guide__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.interview-guide__divider span {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .interview-guide__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* サブオプション選択カード */
.agency-sub-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.agency-sub-option {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
}

.agency-sub-option:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.agency-sub-option--selected {
  border-color: var(--color-primary);
  background: rgba(106, 37, 235, 0.03);
}

.agency-sub-option__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 37, 235, 0.06);
  border-radius: var(--radius-full);
  color: var(--color-primary);
}

.agency-sub-option--selected .agency-sub-option__icon {
  background: rgba(106, 37, 235, 0.12);
}

.agency-sub-option__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.agency-sub-option__desc {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.agency-sub-option__check {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.agency-sub-option__check::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.agency-sub-option--selected .agency-sub-option__check {
  display: flex;
}

/* 質問フォーム */
.agency-questionnaire {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.agency-questionnaire__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.agency-questionnaire__desc {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.agency-questionnaire__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* 価値観選択 */
.values-selection__hint {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.values-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.values-category {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.values-category__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.values-category__title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--color-primary);
  border-radius: 2px;
}

.values-category__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.value-chip {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 1.3rem;
  font-size: 1.35rem;
  font-family: var(--font-sans);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.value-chip:hover:not(.value-chip--disabled) {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  background: rgba(106, 37, 235, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(106, 37, 235, 0.12);
}

.value-chip--selected {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(106, 37, 235, 0.3);
}

.value-chip--selected::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  margin-right: 0.1rem;
}

.value-chip--selected:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #2a0a6e);
  border-color: transparent;
  color: white;
  box-shadow: 0 3px 10px rgba(106, 37, 235, 0.35);
}

.value-chip--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.values-selection__counter {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  padding: var(--space-md);
  background: rgba(106, 37, 235, 0.04);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.values-deepdive {
  border-top: 2px solid var(--color-primary);
  padding-top: var(--space-xl);
  margin-top: var(--space-sm);
}

.values-deepdive__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.values-deepdive__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.values-deepdive__item {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 3px solid var(--color-primary);
}

.values-deepdive__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.6;
}

.values-deepdive__label .value-chip--mini {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.agency-questionnaire .agreement {
  margin-bottom: var(--space-lg);
}

@media (max-width: 640px) {
  .agency-sub-options {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Step 5: 入力プレビューレイアウト
   ======================================== */

/* ========================================
   Step 5: 入力プレビューレイアウト
   ======================================== */
.input-preview-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: var(--space-xl);
}

@media (max-width: 1400px) {
  .input-preview-layout {
    grid-template-columns: 1fr 375px;
  }
}

@media (max-width: 900px) {
  .input-preview-layout {
    display: block; /* カラム落ち */
  }
}

.input-area {
  min-width: 0;
}

/* ライブプレビューエリア (PC時) */
.live-preview__wrapper {
  position: sticky;
  top: 100px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.live-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.live-preview__label {
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-en);
}

/* PCサイズで開くボタン */
.live-preview__actions {
  display: flex;
  align-items: center;
}

.live-preview__open-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.live-preview__open-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.live-preview__open-btn svg {
  flex-shrink: 0;
}

.live-preview__close-mobile {
  display: none; /* PCでは非表示 */
}

/* プレビューコンテナ */
.live-preview__container {
  width: 100%;
  height: 650px;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.live-preview__frame {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  display: block;
}

/* モバイル用設定 (900px以下) */
@media (max-width: 900px) {
  .live-preview__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transform: translateY(100%); /* 初期非表示 */
    border-radius: 0;
    border: none;
    padding: var(--space-md) 0 0 0; /* 左余白を削除 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
  }

  .live-preview__wrapper.is-open {
    transform: translateY(0);
  }

  /* モバイルではPC確認ボタンを非表示 */
  .live-preview__actions {
    display: none;
  }

  .live-preview__close-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 100px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35);
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .live-preview__close-mobile .close-icon {
    font-size: 1.1rem;
  }

  .live-preview__close-mobile:active {
    background: #c0392b;
  }

  .live-preview__header {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* モバイルではフルサイズ表示 */
  .live-preview__container {
    width: 100%;
    height: 100%;
    box-shadow: none;
  }
}

/* モバイルプレビュー起動ボタン */
.mobile-preview-trigger {
  display: none;
}

@media (max-width: 900px) {
  .mobile-preview-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    bottom: 60px; /* 見積もりボタンの上に配置 */
    right: var(--space-lg); /* 右寄せ */
    background: #d63031;
    color: white;
    padding: 0 16px;
    height: 48px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(214, 48, 49, 0.4);
    font-weight: 700;
    font-size: 1.3rem;
    z-index: 1000;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
  }

  .mobile-preview-trigger svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  
  .mobile-preview-trigger:active {
    transform: scale(0.93);
    background: #b71c1c;
  }
}

/* ========================================
   Step 2: 共通ボックススタイル
   ======================================== */
.step2-box {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
}

.step2-box__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.step2-box__title::before {
  content: '';
  width: 4px;
  height: 1em;
  background: var(--color-primary);
  border-radius: 2px;
}

.applicant-info__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .applicant-info__fields {
    grid-template-columns: 1fr;
  }
}

/* デザインオプション: テキストサイズ修正 */
.design-option__choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.design-option__choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.design-option__choice:hover {
  border-color: var(--color-primary-light);
}

.design-option__choice input[type="radio"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.design-option__choice-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.design-option__choice-label strong {
  font-size: 1.6rem;
  font-weight: 600;
}

.design-option__choice-label small {
  font-size: 1.4rem;
  color: var(--color-text-muted);
}

.design-arrange-detail {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.design-arrange-detail__choices {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.design-arrange-input {
  margin-top: var(--space-md);
}

/* ========================================
   Step 3: 撮影希望日時スタイル
   ======================================== */
.shooting-date-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.shooting-date-label {
  font-weight: 600;
  color: var(--color-text);
}

.shooting-date-label--required::after {
  content: '必須';
  color: white;
  background: var(--color-error);
  font-size: 1.1rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
  font-weight: normal;
}

.shooting-date-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.shooting-date {
  flex: 0 0 150px;
  min-width: 150px;
}

.shooting-time-select {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.shooting-time-type {
  width: 110px;
}

.shooting-time-range {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.shooting-time-range span {
  color: var(--color-text-muted);
}

.shooting-time {
  width: 90px;
}

.image-detail__adjust-note {
  color: var(--color-text-muted);
  font-size: 1.3rem;
  margin-top: var(--space-md);
}

@media (max-width: 480px) {
  .shooting-date-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .shooting-date-label {
    margin-bottom: -8px;
  }
  
  .shooting-date {
    flex: 1;
    width: 100%;
  }
  
  .shooting-time-select {
    width: 100%;
  }
  
  .shooting-time-type {
    width: 100%;
  }
  
  .shooting-time-range {
    width: 100%;
  }
  
  .shooting-time {
    flex: 1;
  }
}

/* 必須バッジ（第1希望の横） */
.shooting-required-badge {
  display: inline-block;
  color: white;
  background: var(--color-error);
  font-size: 1.1rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
  font-weight: normal;
  vertical-align: middle;
}

/* 撮影場所選択 */
.shooting-location-options {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.shooting-location-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-size: 1.4rem;
}

.shooting-location-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.shooting-location-detail {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}

.shooting-location-detail .form-group {
  margin-bottom: var(--space-md);
}

.shooting-location-detail .form-group:last-child {
  margin-bottom: 0;
}

/* ========================================
   フォームヒントテキスト
   ======================================== */
.form-group__hint {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-group--half {
  grid-column: span 1;
}

/* ========================================
   サーバー・ドメイン選択（3択UI）
   ======================================== */

/* メイン選択（3択） */
.hosting-main-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hosting-main-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.hosting-main-option:hover {
  border-color: var(--color-primary-light);
}

.hosting-main-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

.hosting-main-option input[type="radio"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.hosting-main-option__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hosting-main-option__label strong {
  font-size: 1.5rem;
}

.hosting-main-option__label small {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* 部分所有時のサブ選択 */
.hosting-partial {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.hosting-partial__label {
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hosting-partial-options {
  display: flex;
  gap: var(--space-md);
}

.hosting-partial-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid var(--color-border);
  font-size: 1.5rem;
}

.hosting-partial-option:hover {
  border-color: var(--color-primary-light);
}

.hosting-partial-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

.hosting-partial-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* 取得方法選択 */
.hosting-acquisition {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.hosting-acquisition__title {
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  font-size: 1.4rem;
}

.hosting-acquisition-options {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hosting-acquisition-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid var(--color-border);
  flex: 1;
  min-width: 200px;
}

.hosting-acquisition-option:hover {
  border-color: var(--color-primary-light);
}

.hosting-acquisition-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

.hosting-acquisition-option input[type="radio"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.hosting-acquisition-option__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hosting-acquisition-option__label strong {
  font-size: 1.4rem;
}

.hosting-acquisition-option__label small {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* どちらも持っていない場合 */
.hosting-none {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-warning);
}

.hosting-acquisition-section {
  margin-bottom: var(--space-xl);
}

.hosting-acquisition-section:last-child {
  margin-bottom: 0;
}

/* 代行取得詳細フォーム */
.proxy-detail {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

.proxy-detail__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

/* ラジオボタン横並び */
.radio-inline {
  display: flex;
  gap: var(--space-lg);
}

.radio-inline__option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 1.5rem;
}

.radio-inline__option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* ========================================
   送信結果表示 & ローディング状態
   ======================================== */
.submit-result {
  display: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: var(--space-md);
  line-height: 1.6;
  white-space: pre-line;
}

.submit-result--visible {
  display: block;
}

.submit-result--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.submit-result--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn--loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.submit-fallback {
  margin-top: var(--space-md);
  text-align: center;
}

.submit-fallback__trigger {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.submit-fallback__trigger::-webkit-details-marker {
  display: none;
}

.submit-fallback__trigger:hover {
  color: rgba(255, 255, 255, 0.8);
}

.submit-fallback__body {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-align: left;
}

.submit-fallback__step {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.submit-fallback__step:not(:first-child) {
  margin-top: var(--space-md);
}

.submit-fallback__address {
  margin-bottom: 0;
}

.submit-fallback__address a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: underline;
}

.submit-fallback__copy,
.submit-fallback__download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 1.2rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: var(--transition-fast);
}

.submit-fallback__copy:hover,
.submit-fallback__download:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.submit-fallback__btn--done {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
