/* ===========================================
   ストアシステム - カテゴリフィルター
   =========================================== */

/* カテゴリフィルターボタン */
.store-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

.store-category-filter__btn {
  display: inline-block;
  padding: 5px 24px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #294057;
  color: #294057;
  font-size: 0.8em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.store-category-filter__btn:hover {
  background: #294057;
  color: #fff;
}

.store-category-filter__btn.is-active {
  background: #294057;
  color: #fff;
}

/* カテゴリバッジ（カード内） */
.store-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.store-category-badge {
  display: inline-block;
  padding: 0px 5px;
  background: unset;
  border: solid 1px #294057;
  background: #294057;
  color: #fff;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 詳細ページ用バッジ */
.store-category-badges--detail {
  margin-bottom: 15px;
  justify-content: center;
}

.store-category-badges--detail .store-category-badge {
  padding: 2px 14px;
  font-size: 0.7em;
}

.store-category-badge--link {
  text-decoration: none;
  transition: all 0.2s ease;
}

.store-category-badge--link:hover {
  background: linear-gradient(135deg, #3d5a73 0%, #4a6d8a 100%);
  transform: translateY(-1px);
}

/* ===========================================
   ストアシステム - カートフォーム
   =========================================== */

/* フォームコンテナ */
.store_cartsystem__form {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.store_cartsystem__ttl {
  text-align: center;
  font-size: 25px;
  margin-bottom: 40px;
  font-weight: bold;
}

/* ステップインジケーター */
.store-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  position: relative;
}

.store-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #ddd;
  z-index: 0;
}

.store-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.store-step.active .step-number {
  background: #d4af37;
  transform: scale(1.1);
}

.store-step.completed .step-number {
  background: #6c9e4a;
}

.step-label {
  font-size: 12px;
  text-align: center;
  color: #666;
  font-weight: bold;
}

.store-step.active .step-label {
  color: #d4af37;
}

/* フォームステップ */
.store-form-step {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.store-form-step__ttl {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2c4157;
}

/* フォームグループ */
.store-form-group {
  margin-bottom: 25px;
}

.store-form-group label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.store-form-group label.required {
  background: unset;
  font-size: 14px;
  margin-left: 0;
}

.store-form-group label.required::after {
  content: '必須';
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  border-radius: 3px;
  font-weight: normal;
}

.store-form-group input[type='text'],
.store-form-group input[type='email'],
.store-form-group input[type='tel'],
.store-form-group input[type='password'],
.store-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.store-form-group input:focus,
.store-form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.store-form-group input[readonly],
.store-form-group input.readonly-field {
  background: #f5f5f5;
  cursor: not-allowed;
  color: #666;
  border-color: #ccc;
}

.store-form-group input[readonly]:focus,
.store-form-group input.readonly-field:focus {
  border-color: #ccc;
  box-shadow: none;
}

.form-help {
  font-size: 11px;
  letter-spacing: 1px;
  color: #666;
  margin-top: 5px;
  line-height: 1.6;
}

.form-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  padding: 10px;
  background: #ffe6e6;
  border-radius: 5px;
}

/* 注意文 */
.store-notice {
  background: #fffbf0;
  border-left: 4px solid #f39c12;
  padding: 20px;
  margin: 30px 0;
  font-size: 14px;
}

.store-notice h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f39c12;
}

.store-notice ul {
  list-style: none;
  padding: 0;
}

.store-notice ul li {
  padding: 5px 0;
  line-height: 1.8;
  font-size: 14px;
}

.store-notice p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.store-notice p:last-child {
  margin-bottom: 0;
}

.store-notice a {
  color: #3498db;
  text-decoration: underline;
}

/* ラジオボタン */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.radio-label {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-label:hover {
  border-color: #d4af37;
  background: #fafafa;
}

.radio-label input[type='radio'] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.radio-label input[type='radio']:checked + .radio-content {
  color: #d4af37;
  font-weight: bold;
}

.radio-content {
  flex: 1;
}

.radio-title {
  font-size: 16px;
}

/* サブセクションタイトル */
.subsection-title {
  font-size: 20px;
  font-weight: bold;
  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 4px solid #d4af37;
}

/* 入稿データセクション */
.input-data-section {
  margin-top: 30px;
}

.input-data-section h5 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #e74c3c;
}

/* ファイルアップロード */
.input-data-file_section {
  display: flex;
  flex-wrap: wrap;
}

.file-upload-group {
  border: 1px dashed #ddd;
  padding: 20px;
  background: #fafafa;
}

.input-data-file_section .store-form-group {
  width: 23.5%;
  margin-right: 2%;
}

.input-data-file_section .store-form-group:nth-child(4n) {
  margin-right: 0;
}

.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  padding: 7px;
  background: #3498db;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}


.btn-file-upload:hover {
  background: #2980b9;
}

.btn-file-upload .icon {
  font-size: 16px;
}

/* 空の場合のみ非表示 */
.file-preview:empty {
  display: none;
}

.preview-item {
  position: relative;
  display: inline-block;
  width: 100%;
}

.preview-item img, .preview-item video {
  max-width: 100%!important;
  max-height: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.preview-item .filename {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  word-break: break-all;
  text-align: center;
}
.upload-success {
  font-size: 12px;
  text-align: center;
}

.btn-remove-file {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.btn-remove-file:hover {
  background: #c0392b;
}

.upload-progress {
  display: inline-block;
  margin-left: 10px;
  color: #3498db;
  font-size: 14px;
}

/* 動画プレビュー */
.movie-preview {
  margin-top: 20px;
}

.movie-preview iframe,
.movie-preview video {
  width: 100%;
  max-width: 800px;
  height: 450px;
}

/* 注文サマリー */
.order-summary {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.order-summary h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.order-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.order-summary-table tr {
  border-bottom: 1px solid #ddd;
}

.order-summary-table td {
  padding: 15px 10px;
  font-size: 16px;
}

.order-summary-table td:first-child {
  font-weight: bold;
  width: 40%;
}

.order-summary-table td:last-child {
  text-align: right;
}

.order-summary-table .total-row {
  border-top: 2px solid #333;
  background: #fff;
}

.order-summary-table .total-row td {
  padding: 20px 10px;
  font-size: 18px;
}

.order-summary-table .coupon-discount-row td {
  color: #c0392b;
}

/* クーポン入力 */
.coupon-input-section {
  background: #f8f8f8;
  padding: 20px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.coupon-input-section h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.coupon-input-wrapper {
  display: flex;
  gap: 10px;
}

.coupon-input-wrapper input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  text-transform: uppercase;
}

.coupon-input-wrapper input:disabled {
  background: #e9e9e9;
  color: #666;
}

.coupon-input-wrapper .btn {
  padding: 12px 25px;
  white-space: nowrap;
}

.coupon-input-wrapper .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.coupon-message {
  margin-top: 10px;
  font-size: 14px;
}

.coupon-message.success {
  color: #27ae60;
}

.coupon-message.error {
  color: #c0392b;
}

/* フォームナビゲーション */
.store-form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.btn-prev,
.btn-next,
.btn-payment {
  flex: 1;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-prev {
  background: #95a5a6;
  color: #fff;
}

.btn-prev:hover {
  background: #7f8c8d;
}

.btn-next,
.btn-payment {
  background: #d4af37;
  color: #fff;
}

.btn-next:hover,
.btn-payment:hover {
  background: #c49a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-payment {
  font-size: 18px;
  padding: 20px 40px;
}

.btn-payment:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  /* カテゴリフィルター（モバイル） */
  .store-category-filter {
    gap: 8px;
    margin-bottom: 20px;
  }

  .store-category-filter__btn {
    padding: 5px 16px;
    font-size: 0.7em;
  }

  .store-category-badges {
    gap: 4px;
    margin-bottom: 6px;
  }

  .store-category-badge {
    padding: 0px 5px;
    font-size: 0.65em;
  }

  .store-category-badges--detail .store-category-badge {
    padding: 1px 12px;
    font-size: 0.75em;
  }

  /* フォームコンテナ */
  .store_cartsystem__form {
    padding: 0;
  }

  .store_cartsystem__ttl {
    font-size: 20px;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  /* ステップインジケーター */
  .store-steps {
    flex-wrap: nowrap;
    margin-bottom: 30px;
    padding: 10px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
  }

  .store-steps::before {
    top: 28px;
    left: 15%;
    right: 15%;
}

  .store-step {
    flex: 0 0 auto;
    min-width: 60px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .step-label {
    font-size: 9px;
    line-height: 1.3;
    white-space: nowrap;
  }

  /* フォームステップ */
  .store-form-step {
    padding: 20px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  }

  .store-form-step__ttl {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  /* フォームグループ */
  .store-form-group {
    margin-bottom: 18px;
  }

  .store-form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .store-form-group label.required {
    font-size: 13px;
}

  .store-form-group label.required::after {
    font-size: 10px;
    padding: 2px 6px;
  }

  .store-form-group input[type='text'], .store-form-group input[type='email'], .store-form-group input[type='tel'], .store-form-group input[type='password'], .store-form-group textarea {
    padding: 12px;
    font-size: 13px;
    border-radius: 6px;
}

  .form-help {
    font-size: 11px;
    line-height: 1.5;
  }

  /* 注意文 */
  .store-notice {
    padding: 15px;
    margin: 20px 0;
    font-size: 11px;
  }

  .store-notice h4 {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .store-notice ul li {
    font-size: 11px;
    padding: 4px 0;
    line-height: 1.6;
  }

  /* ラジオボタン */
  .radio-group {
    gap: 10px;
  }

  .radio-label {
    padding: 9px;
    border-radius: 6px;
  }

  .radio-label input[type='radio'] {
    width: 15px;
    height: 15px;
    margin-right: 9px;
    flex-shrink: 0;
    margin-top: 0;
}

  .radio-title {
    font-size: 13px;
    letter-spacing: 0;
}

  /* サブセクションタイトル */
  .subsection-title {
    font-size: 16px;
    margin: 25px 0 15px;
    padding-left: 12px;
  }

  /* ファイルアップロード */
  .input-data-file_section {
    flex-direction: column;
  }

  .input-data-file_section .store-form-group {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .file-upload-group {
    padding: 15px;
  }

  .btn-file-upload {
    width: 100%;
    padding: 12px;
    font-size: 13px;
  }

  .preview-item img,
  .preview-item video {
    max-height: 150px;
  }

  .btn-remove-file {
    width: 26px;
    height: 26px;
    font-size: 14px;
    top: -8px;
    right: -8px;
  }

  .store-buy-movie h4 {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .submission-notice {
    padding: 20px 10px;
  }
  .submission-notice .notice-points li {
    font-size: 11px;
  }

  .store_cartsystem__loginform {
    margin: 0 auto 30px;
    padding: 30px 15px 0;
  }

  /* 動画プレビュー */
  .movie-preview iframe,
  .movie-preview video {
    height: 200px;
  }

  /* 注文サマリー */
  .order-summary {
    padding: 18px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .order-summary h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .order-summary-table td {
    font-size: 13px;
    padding: 12px 8px;
  }

  .order-summary-table td:first-child {
    width: 45%;
    font-size: 12px;
  }

  .order-summary-table .total-row td {
    padding: 15px 8px;
    font-size: 15px;
  }

  /* クーポン入力 */
  .coupon-input-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .coupon-input-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .coupon-input-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .coupon-input-wrapper input {
    padding: 12px;
    font-size: 16px; /* iOS zoom防止 */
  }

  .coupon-input-wrapper .btn {
    padding: 12px 20px;
    width: 100%;
  }

  /* フォームナビゲーション */
  .store-form-nav {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .btn-prev,
  .btn-next,
  .btn-payment {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 6px;
  }

  .btn-prev {
    order: 2;
  }

  .btn-next {
    order: 1;
  }

  .btn-payment {
    font-size: 16px;
    padding: 16px 20px;
  }

  /* 2カラムレイアウト調整 */
  .store-form-2col {
    flex-direction: column;
    gap: 0;
  }

  .store-form-2col .store-form-group {
    width: 100%;
  }

  /* 日付ピッカー */
  .flatpickr-calendar {
    width: 100% !important;
    max-width: 320px;
  }

  /* カード入力欄 */
  .card-element-wrapper {
    padding: 12px;
  }

  #card-errors {
    font-size: 12px;
    padding: 10px;
    margin-top: 10px;
  }

  /* 決済処理中表示 */
  .payment-processing {
    font-size: 14px;
  }

  /* 確認事項チェックボックス */
  .confirmation-checkbox {
    padding: 15px;
  }

  .confirmation-checkbox label {
    font-size: 13px;
    gap: 10px;
  }

  .confirmation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .payment-form-section h3 {
    font-size: 18px;
  }
  .card-field-group label {
    font-size: 13px;
  }
}

/* ===========================================
   マイページ
   =========================================== */

.mypage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.mypage-header {
  text-align: center;
  margin-bottom: 50px;
}

.mypage-header h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* タブナビゲーション */
.mypage-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  background: white;
  border: 1px solid #E4E4E4;
  border-radius: 8px;
  overflow: hidden;
}

.mypage-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: #f8f9fa;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mypage-tab:not(:last-child) {
  border-right: 1px solid #E4E4E4;
}

.mypage-tab svg {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.mypage-tab:hover {
  background: #fff;
  color: #2c4157;
}

.mypage-tab:hover svg {
  opacity: 1;
}

.mypage-tab.active {
  background: #2c4157;
  color: white;
}

.mypage-tab.active svg {
  opacity: 1;
  stroke: white;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #e67e22;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
}

.mypage-tab.active .tab-badge {
  background: white;
  color: #2c4157;
}

/* タブコンテンツ */
.mypage-tab-content {
  display: none;
}

.mypage-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* プロフィールヘッダー */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.profile-header h3 {
  margin: 0;
}

.profile-header .btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  color: #2c4157;
  border: 1px solid #2c4157;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s;
  margin: 0;
}

.profile-header .btn-edit-profile:hover {
  background: #2c4157;
  color: white;
}

.profile-header .btn-edit-profile svg {
  transition: stroke 0.3s;
}

.profile-header .btn-edit-profile:hover svg {
  stroke: white;
}

/* ログアウトボタン改善 */
.mypage-actions .btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s;
}

.mypage-actions .btn-logout:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.mypage-actions .btn-logout:hover svg {
  stroke: white;
}

/* 旧互換性 */
.mypage-content {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 顧客情報 */
.customer-info-table {
  width: 100%;
  border-collapse: collapse;
}

.customer-info-table tr {
  border-bottom: 1px solid #eee;
}

.customer-info-table th {
  padding: 15px;
  text-align: left;
  background: #f8f8f8;
  font-weight: bold;
  width: 30%;
}

.customer-info-table td {
  padding: 15px;
}

/* 注文履歴 */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s ease;
}

.order-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.order-number {
  font-size: 18px;
  font-weight: bold;
  color: #d4af37;
}

.order-date {
  color: #666;
  font-size: 14px;
}

.order-item-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-details {
  flex: 1;
}

.order-product {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.order-price {
  color: #666;
  font-size: 14px;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.btn-view-order {
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.btn-view-order:hover {
  background: #2980b9;
}

/* 入稿データ表示 */
.submission-data-section {
  margin-bottom: 40px;
}

.submission-data-section h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4af37;
}

.data-item {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 5px;
}

.data-item-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.data-item-value {
  color: #666;
  line-height: 1.6;
}

.data-item-image img,
.data-item-image video {
  max-width: 300px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.data-item-image video {
  max-height: 200px;
}

/* 空の状態 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-state-message {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #d4af37;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #c49a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* ===========================================
   入稿システム関連スタイル
   =========================================== */

/* 入稿案内ボックス（商品ページ） */
.submission-notice {
  background: #FAFBFC;
  border: 1px solid #E4E4E4;
  padding: 25px;
  margin: 30px 0;
  text-align: center;
}

.submission-notice h4 {
  font-size: 16px;
  color: #294057;
  margin-bottom: 15px;
  font-weight: 600;
}

.submission-notice p {
  font-size: 12px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.submission-notice .notice-points {
  background: white;
  padding: 15px;
  border: 1px solid #E4E4E4;
  margin: 15px 0;
  text-align: left;
}

.submission-notice .notice-points ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.submission-notice .notice-points li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 12px;
}

.submission-notice .notice-points li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.submission-notice .notice-footer {
  margin-top: 15px;
  color: #999;
  font-size: 11px;
}

/* 入稿ステータスバッジ */
.status-badge {
  display: inline-block;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.status-badge.status-waiting {
  background: #fff9e6;
  color: #856404;
  border-color: #ffc107;
}

.status-badge.status-draft {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57c00;
  border-color: #ffc107;
  font-weight: 500;
}

.status-badge.status-completed {
  background: #d4edda;
  color: #155724;
  border-color: #28a745;
}

.status-badge.status-delivered {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #4caf50;
}

/* 締切日警告 */
.deadline-warning {
  margin-top: 12px;
  padding: 10px 15px;
  background: #fff5f5;
  border-left: 3px solid #dc3545;
  color: #dc3545;
  font-size: 12px;
  font-weight: 600;
}

.deadline-warning strong {
  color: #856404;
}

/* マイページ - 注文カード */
.mypage-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.mypage-header {
  text-align: center;
  margin-bottom: 50px;
  background: white;
  padding: 30px 20px;
  border: 1px solid #E4E4E4;
  color: #294057;
}

.mypage-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 2px;
}

.mypage-header p {
  font-size: 14px;
  color: #666;
}

.btn-edit-profile {
  display: inline-block;
  padding: 0.5em 3em;
  background: #2c4157;
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid #2c4157;
  margin-top: 20px;
}

.mypage-section {
  background: white;
  padding: 30px;
  border: 1px solid #E4E4E4;
  margin-bottom: 30px;
}

.mypage-section h3 {
  font-size: 18px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #E4E4E4;
  font-weight: 600;
  color: #294057;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  background: #FAFBFC;
  border: 1px solid #E4E4E4;
}

.info-label {
  font-weight: 600;
  color: #294057;
  font-size: 12px;
}

.info-value {
  font-size: 14px;
  color: #333;
  font-weight: 400;
}

.info-value a {
  color: #294057;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-value a:hover {
  color: #555;
  text-decoration: underline;
}

/* 注文カード */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  background: white;
  border: 1px solid #E4E4E4;
  padding: 20px;
  box-shadow: 0 0 15px #E4E4E4;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #E4E4E4;
}

.order-number {
  font-size: 14px;
  color: #294057;
  font-weight: 600;
}

.order-number strong {
  color: #333;
  margin-right: 5px;
  font-weight: bold;
}

.order-date {
  font-size: 12px;
  color: #999;
}

.order-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.order-info {
  flex: 1;
}

.order-info h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #294057;
  font-weight: 600;
}

.order-info p {
  margin: 5px 0;
  font-size: 12px;
  color: #555;
}

.order-info strong {
  color: #294057;
  margin-right: 5px;
}

/* 金額内訳 */
.order-price-details {
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 10px 0;
}

.order-price-details p {
  margin: 4px 0;
  font-size: 13px;
}

.order-price-details .coupon-discount {
  color: #c0392b;
}

.order-price-details .total-price {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

.order-option-details {
  margin-top: 10px;
  font-size: 12px;
}

.order-option-details summary {
  cursor: pointer;
  color: #666;
}

.order-option-details pre {
  background: #f5f5f5;
  padding: 10px;
  margin-top: 8px;
  font-size: 11px;
  white-space: pre-wrap;
  border-radius: 4px;
  line-height: 1;
}

.order-status {
  flex-shrink: 0;
}

.order-actions {
  text-align: right;
  padding-top: 15px;
  border-top: 1px solid #E4E4E4;
}

/* 注文履歴タイムライン */
.order-history {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #E4E4E4;
}

.history-title {
  font-size: 14px;
  font-weight: 600;
  color: #294057;
  margin-bottom: 15px;
}

.history-timeline {
  position: relative;
  padding-left: 0;
}

.history-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 20px;
  width: 1px;
  height: calc(100% + 8px);
  background: #E4E4E4;
}

.history-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #888;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.customer {
  background: #2c4157;
}

.legend-dot.admin {
  background: #e67e22;
}

.history-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* 顧客アクション */
.history-dot.customer.completed {
  background: #2c4157;
  border: 2px solid #2c4157;
}

.history-dot.customer.waiting {
  background: white;
  border: 2px solid #2c4157;
}

/* 管理者アクション */
.history-dot.admin.completed {
  background: #e67e22;
  border: 2px solid #e67e22;
}

.history-dot.admin.waiting {
  background: white;
  border: 2px solid #e67e22;
}

/* フォールバック（user_typeがない場合） */
.history-dot.completed:not(.customer):not(.admin) {
  background: #294057;
  border: 2px solid #294057;
}

.history-dot.waiting:not(.customer):not(.admin) {
  background: white;
  border: 2px solid #ffc107;
}

.history-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.history-time {
  font-size: 11px;
  color: #999;
}

/* ===========================================
   処理履歴 - チップ/バッジ形式
   =========================================== */
.order-history--chips {
  padding: 15px 0;
  margin-top: 15px;
}

.history-chips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.history-chips-title {
  font-size: 13px;
  font-weight: 600;
  color: #294057;
}

.history-chips-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #888;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.legend-chip.customer {
  color: #2c4157;
}

.legend-chip.admin {
  color: #e67e22;
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 5px;
}

.history-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.history-chip.customer {
  background: #e8eef3;
  color: #2c4157;
  border: 1px solid #2c4157;
}

.history-chip.admin {
  background: #fef5e7;
  color: #e67e22;
  border: 1px solid #e67e22;
}

.history-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.chip-label {
  font-weight: 600;
  line-height: 1.2;
}

.chip-date {
  font-size: 10px;
  opacity: 0.8;
  line-height: 1.2;
}

.chip-connector {
  color: #ccc;
  font-size: 12px;
  margin: 0 2px;
}

/* チップのツールチップ */
.history-chip::after {
  content: attr(data-full-label) "\A" attr(data-full-date);
  white-space: pre-wrap;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  min-width: 120px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.history-chip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.history-chip:hover::after,
.history-chip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* モバイル対応 - チップ形式 */
@media screen and (max-width: 768px) {
  .history-chips {
    gap: 6px;
  }
  
  .history-chip {
    padding: 5px 8px;
    font-size: 10px;
    border-radius: 12px;
  }
  
  .chip-date {
    font-size: 9px;
  }
  
  .chip-connector {
    font-size: 10px;
  }
  
  /* モバイルではツールチップをタップで表示 */
  .history-chip:active::after,
  .history-chip:active::before {
    opacity: 1;
    visibility: visible;
  }
}

.btn-nyukou {
  display: inline-block;
  padding: 0.5em 3em;
  background: #2c4157;
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid #2c4157;
}

.btn-nyukou:hover {
  background: white;
  color: #2c4157;
}

.mypage-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.mypage-actions .btn-store,
.mypage-actions .btn-logout {
  padding: 0.5em 3em;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid #2c4157;
  transition: all 0.3s ease;
}

.mypage-actions .btn-store {
  background: #2c4157;
  color: white;
}

.mypage-actions .btn-store:hover {
  background: white;
  color: #2c4157;
}

.mypage-actions .btn-edit-profile {
  background: white;
  color: #2c4157;
  border: 1px solid #2c4157;
}

.mypage-actions .btn-edit-profile:hover {
  background: #2c4157;
  color: white;
}

.mypage-actions .btn-logout {
  background: white;
  color: #2c4157;
  border: 1px solid #2c4157;
}

.mypage-actions .btn-logout:hover {
  background: #2c4157;
  color: white;
}

.mypage-actions .btn-back {
  display: inline-block;
  padding: 0.5em 3em;
  background: white;
  color: #2c4157;
  border: 1px solid #2c4157;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 14px;
  margin-top: 20px;
}

.mypage-actions .btn-back:hover {
  background: #2c4157;
  color: white;
}

.no-orders {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 14px;
  background: #FAFBFC;
  border: 1px solid #E4E4E4;
}

/* レスポンシブ対応 - マイページ */
@media screen and (max-width: 768px) {
  /* コンテナ */
  .mypage-container {
    padding: 15px 12px;
    margin: 20px auto;
  }

  /* ヘッダー */
  .mypage-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .mypage-header h2 {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .mypage-header p {
    font-size: 12px;
  }

  /* タブナビゲーション - モバイル */
  .mypage-tabs {
    margin-bottom: 20px;
    border-radius: 6px;
  }

  .mypage-tab {
    padding: 12px 10px;
    font-size: 12px;
    gap: 5px;
    flex-direction: column;
  }

  .mypage-tab svg {
    width: 20px;
    height: 20px;
  }

  .tab-badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-header .btn-edit-profile {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .mypage-actions {
    text-align: center;
  }

  .mypage-actions .btn-logout {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  /* セクション */
  .mypage-section {
    padding: 18px 15px;
    margin-bottom: 20px;
  }

  .mypage-section h3 {
    font-size: 15px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  /* 情報グリッド */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-item {
    padding: 12px;
    gap: 5px;
  }

  .info-label {
    font-size: 11px;
  }

  .info-value {
    font-size: 13px;
  }

  /* 注文カード */
  .orders-list {
    gap: 15px;
  }

  .order-card {
    padding: 15px;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .order-number {
    font-size: 13px;
  }

  .order-date {
    font-size: 11px;
  }

  .order-body {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .order-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .order-info p {
    font-size: 11px;
    margin: 3px 0;
  }

  /* 金額内訳 */
  .order-price-details {
    padding: 10px 12px;
    margin: 8px 0;
  }

  .order-price-details p {
    font-size: 12px;
    margin: 3px 0;
  }

  .order-price-details .total-price {
    font-size: 13px;
    margin-top: 6px;
    padding-top: 6px;
  }

  .order-option-details {
    font-size: 11px;
  }

  .order-option-details pre {
    font-size: 10px;
    padding: 8px;
  }

  .order-status {
    text-align: left;
  }

  .order-status .status-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .order-actions {
    text-align: center;
    padding-top: 12px;
  }

  .btn-nyukou {
    display: block;
    width: 100%;
    font-size: 13px;
    padding: 12px 20px;
  }

  /* 注文履歴タイムライン */
  .order-history {
    margin-top: 15px;
    padding: 15px 0;
  }

  .history-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .history-item {
    margin-bottom: 12px;
  }

  .history-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .history-content {
    font-size: 12px;
  }

  .history-date {
    font-size: 10px;
  }

  /* アクションボタン */
  .mypage-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .mypage-actions .btn-store,
  .mypage-actions .btn-logout {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
  }

  .mypage-actions .btn-back {
    padding: 10px 20px;
    font-size: 12px;
    margin-top: 10px;
  }

  /* 納品ファイルセクション */
  .delivery-files-section {
    padding: 15px;
    margin-top: 15px;
  }

  .delivery-files-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .delivery-file-item {
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .delivery-file-name {
    font-size: 12px;
  }

  .btn-download {
    width: 100%;
    text-align: center;
    font-size: 12px;
    padding: 10px 15px;
  }

  /* タブナビゲーション */
  .mypage-tabs {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .mypage-tab {
    padding: 10px 15px;
    font-size: 13px;
  }

  /* コンテンツ */
  .mypage-content {
    padding: 20px 15px;
  }

  /* 顧客情報テーブル */
  .customer-info-table th,
  .customer-info-table td {
    padding: 10px;
    font-size: 12px;
  }

  .customer-info-table th {
    width: 35%;
  }

  /* 空の注文 */
  .no-orders {
    padding: 30px 15px;
    font-size: 13px;
  }
  .nyukou-header h2 {
    font-size: 18px;
  }
}

/* ===========================================
   アカウント編集ページ
   =========================================== */

.edit-profile-form {
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.mypage-section .form-row {
  border: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #294057;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.required-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  border-radius: 3px;
  font-weight: normal;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='tel'],
.form-group input[type='password'] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #c6c6c6;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #294057;
  box-shadow: 0 0 0 2px rgba(41, 64, 87, 0.1);
}

.form-group input.readonly-field {
  background: #f5f5f5;
  cursor: not-allowed;
  color: #666;
  border-color: #ccc;
}

.form-group input.readonly-field:focus {
  border-color: #ccc;
  box-shadow: none;
}

.form-actions {
  text-align: center;
}

.btn-save-profile,
.btn-save-email,
.btn-save-password {
  display: inline-block;
  padding: 0.5em 3em;
  background: #2c4157;
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid #2c4157;
  margin-top: 20px;
}

.btn-save-profile:hover,
.btn-save-email:hover,
.btn-save-password:hover {
  background: white;
  color: #2c4157;
}

.btn-save-profile:disabled,
.btn-save-email:disabled,
.btn-save-password:disabled {
  background: #cccccc;
  border-color: #cccccc;
  cursor: not-allowed;
  color: #666;
}

.profile-status {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.profile-status .status-message {
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.profile-status .status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.profile-status .status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 入稿ページ */
.nyukou-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.nyukou-header {
  text-align: center;
  margin-bottom: 40px;
  background: white;
  padding: 30px 20px;
  border: 1px solid #E4E4E4;
  color: #294057;
}

.nyukou-header h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 400;
  letter-spacing: 2px;
}

.nyukou-header p {
  margin: 0;
  font-size: 12px;
}

.nyukou-header p a {
  color: #294057;
  text-decoration: underline;
  transition: opacity 0.3s;
  font-weight: 400;
}

.nyukou-header p a:hover {
  opacity: 0.7;
}

/* 注文情報ボックス */
.order-info-box {
  background: #FAFBFC;
  border: 1px solid #E4E4E4;
  padding: 25px;
  margin-bottom: 30px;
}

.order-info-box h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #294057;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 1px solid #E4E4E4;
}

/* 入稿締切日情報 */
.deadline-info {
  margin-top: 20px;
  padding: 15px;
  background: #fff9e6;
  border-left: 3px solid #ffc107;
}

.deadline-info .deadline-main {
  font-size: 14px;
  color: #294057;
  margin-bottom: 10px;
}

.deadline-info .deadline-main strong {
  font-weight: 600;
}

.deadline-info .deadline-remaining {
  font-weight: 600;
  color: #856404;
  margin-left: 10px;
}

.deadline-info .deadline-remaining.deadline-urgent-text {
  color: #dc3545;
}

.deadline-info .deadline-note {
  color: #666;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.order-info-historybox .order-history {
  border: none;
  margin: 0 auto;
  max-width: fit-content;
}

.order-info-historybox .history-title {
  font-size: 18px;
  text-align: center;
}

/* 入稿フォーム */
.nyukou-form {
  background: white;
  padding: 30px;
  border: 1px solid #E4E4E4;
}

.nyukou-section {
  padding-bottom: 30px;
}

.nyukou-section:last-of-type {
  border-bottom: none;
}

.nyukou-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #294057;
  font-weight: 600;
  position: relative;
  border-bottom: dashed 1px rgb(41 64 87 / 36%);
  padding-bottom: 0.5em;
}

.nyukou-section h3::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nyukou-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.nyukou-form-group {
  margin-bottom: 20px;
}

.nyukou-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #294057;
  font-size: 14px;
}

.nyukou-file-grid .nyukou-form-group label {
  text-align: center;
}

.nyukou-text-grid.nyukou-file-grid .nyukou-form-group label {
  text-align: left;
}

.nyukou-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E4E4E4;
  font-size: 12px;
  resize: vertical;
  transition: border-color 0.3s ease;
  background: #fff;
  box-shadow: 0 0 10px #e5e5e5;
}

.nyukou-form-group textarea:focus {
  outline: none;
  border-color: #2c4157;
}

.nyukou-actions {
  text-align: center;
}

.btn-submit-nyukou {
  background: linear-gradient(135deg, #2c4157 0%, #3d5a73 100%);
  color: white;
  padding: 14px 32px;
  border: 2px solid #2c4157;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(44, 65, 87, 0.3);
}

.btn-submit-nyukou svg {
  stroke: white;
  transition: transform 0.3s ease;
}

.btn-submit-nyukou:hover {
  background: white;
  color: #2c4157;
  box-shadow: 0 4px 12px rgba(44, 65, 87, 0.25);
}

.btn-submit-nyukou:hover svg {
  stroke: #2c4157;
  transform: scale(1.1);
}

.btn-submit-nyukou:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-submit-nyukou:disabled:hover {
  background: #ccc;
  color: white;
}

.btn-submit-nyukou:disabled svg {
  stroke: white;
}

/* ボタングループ */
.nyukou-btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

/* 一時保存ボタン */
.btn-save-draft {
  background: white;
  color: #2c4157;
  padding: 14px 28px;
  border: 2px dashed #8fa4b8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-save-draft:hover {
  background: #f0f4f8;
  border-style: solid;
  border-color: #2c4157;
  box-shadow: 0 2px 8px rgba(44, 65, 87, 0.15);
}

.btn-save-draft:disabled {
  background: #f5f5f5;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

.btn-save-draft svg {
  stroke: #2c4157;
  transition: transform 0.3s ease;
}

.btn-save-draft:hover svg {
  transform: scale(1.1);
}

.btn-save-draft .btn-icon,
.btn-submit-nyukou .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-save-draft .btn-icon svg,
.btn-submit-nyukou .btn-icon svg {
  width: 18px;
  height: 18px;
}

/* 入稿完了ボタンをフレックス対応 */
.nyukou-btn-group .btn-submit-nyukou {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ボタングループの整列 */
.nyukou-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

/* 保存情報表示 */
.draft-save-info {
  background: linear-gradient(135deg, #e8f4fd 0%, #d4e8f5 100%);
  border: 1px solid #b8d4e8;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #2c4157;
}

.draft-save-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.draft-save-icon svg {
  stroke: #1976d2;
}

.draft-save-text {
  color: #555;
}

#draftSaveTime {
  font-weight: 600;
  color: #2c4157;
}

/* フォームノート（説明テキスト） */
.form-notes {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 20px;
  border: 1px solid #e9ecef;
}

.form-note {
  margin: 0;
  padding: 8px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-note strong {
  white-space: nowrap;
}

.form-note:first-child {
  border-bottom: 1px dashed #dee2e6;
}

.form-note .note-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 1px;
}

.form-note-draft {
  color: #2c4157;
}

.form-note-draft .note-icon {
  background: #e3f2fd;
  color: #1976d2;
}

.form-note-draft .note-icon svg {
  stroke: #1976d2;
}

.form-note-submit {
  color: #795548;
}

.form-note-submit .note-icon {
  background: #fff3e0;
  color: #f57c00;
}

.form-note-submit .note-icon svg {
  stroke: #f57c00;
}

/* 下書きステータスボックス */
.submission-status-box.status-draft {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
}

.submission-status-box.status-draft h3 {
  color: #f57c00;
}

.submission-status-box.status-draft p {
  color: #795548;
}

.draft-saved-info {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ddd;
}

/* トースト通知 */
.nyukou-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2c4157;
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nyukou-toast .toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nyukou-toast .toast-icon svg {
  stroke: white;
}

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

.nyukou-toast.success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.nyukou-toast.error {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

/* ローディングアニメーション */
.btn-save-draft .spin,
.btn-submit-nyukou .spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ステータス表示 */
.nyukou-status {
  margin-top: 30px;
  text-align: center;
}

.status-message {
  padding: 20px;
  border-radius: 10px;
  font-size: 16px;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #28a745;
}

.status-message .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.status-message p {
  margin: 5px 0;
}

/* レスポンシブ対応 - 入稿ページ */
@media (max-width: 768px) {
  /* 入稿コンテナ */
  .nyukou-container {
    margin: 20px auto;
    padding: 0 12px;
  }

  /* 入稿ヘッダー */
  .nyukou-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .nyukou-header h2 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .nyukou-header p {
    font-size: 11px;
  }

  /* 注文情報ボックス */
  .order-info-box {
    padding: 15px;
    margin-bottom: 20px;
  }

  .order-info-box h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .order-details {
    gap: 8px;
  }

  .order-details p {
    font-size: 12px;
  }

  .deadline-info {
    text-align: center;
    padding: 12px;
    margin-top: 12px;
  }

  .deadline-info p {
    font-size: 12px;
    margin: 3px 0;
  }

  /* 入稿フォーム */
  .nyukou-form {
    padding: 18px 15px;
  }

  .nyukou-section {
    padding-bottom: 20px;
  }

  .nyukou-section h3 {
    font-size: 15px;
    margin-bottom: 15px;
    padding-left: 15px;
  }

  /* ファイルグリッド */
  .nyukou-file-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
  }

  .nyukou-form-group {
    margin-bottom: 15px;
  }

  .nyukou-form-group label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .nyukou-form-group textarea {
    padding: 10px;
    font-size: 13px;
  }

  /* ファイルアップロード */
  .file-upload-area {
    padding: 20px 15px;
    min-height: 120px;
  }

  .file-upload-area p {
    font-size: 12px;
  }

  .upload-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .btn-file-select {
    padding: 8px 20px;
    font-size: 12px;
  }

  /* プレビュー */
  .file-preview-area {
    padding: 12px;
    margin-top: 10px;
  }

  .file-preview-area img,
  .file-preview-area video {
    max-height: 120px;
  }

  .file-name {
    font-size: 11px;
    margin-top: 6px;
  }

  .btn-file-remove {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  /* アクションボタン */
  .nyukou-actions {
    padding-top: 15px;
  }

  .nyukou-btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-save-draft,
  .nyukou-btn-group .btn-submit-nyukou {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    justify-content: center;
  }

  .btn-submit-nyukou {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }

  .draft-save-info {
    padding: 10px 15px;
    font-size: 12px;
  }

  .form-notes {
    text-align: center;
  }

  .form-note {
    font-size: 11px;
    margin-top: 12px;
  }

  .nyukou-toast {
    width: auto;
    max-width: 90%;
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 50px;
  }

  /* ステータスメッセージ */
  .nyukou-status {
    margin-top: 20px;
  }

  .status-message {
    padding: 15px;
    font-size: 13px;
  }

  .status-message .status-icon {
    font-size: 18px;
  }

  /* その他共通 */
  .order-body {
    flex-direction: column;
  }

  .order-status {
    text-align: left;
  }

  .order-actions {
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .mypage-actions {
    flex-direction: column;
  }

  .mypage-actions .btn-store,
  .mypage-actions .btn-logout {
    width: 100%;
    text-align: center;
  }
}

/* ===========================================
   Stripe Elements カード入力フォーム
   =========================================== */

.payment-form-section {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

.payment-form-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.card-field-group {
  margin-bottom: 20px;
}

.card-field-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.card-field {
  background: white;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
  min-height: 50px;
}

.card-field:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.card-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card-errors {
  color: #fa755a;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.card-errors:not(:empty) {
  display: block;
}

.btn-payment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-payment .btn-amount {
  font-weight: bold;
  font-size: 18px;
}

.payment-processing {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-top: 20px;
}

.payment-processing .spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.payment-processing p {
  color: #666;
  font-size: 16px;
  font-weight: bold;
}

/* Stripeのロゴ表示エリア */
.stripe-powered {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
}

.stripe-powered p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.stripe-powered img {
  max-width: 100px;
  margin-top: 5px;
  opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .payment-form-section {
    padding: 20px;
  }

  .card-field-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .btn-payment {
    flex-direction: column;
    gap: 5px;
  }

  .btn-payment .btn-amount {
    font-size: 16px;
  }
}

/* ===========================================
   ムービープレビュー（入稿ページ）
   =========================================== */

.movie-preview-box {
    text-align: center;
    max-width: 700px;
    margin: 50px auto;
}

.movie-preview-box h3 {
  font-size: 18px;
  color: #294057;
  margin-bottom: 10px;
  font-weight: 600;
}

.movie-preview-box .preview-note {
  color: #555;
  font-size: 13px;
  margin-bottom: 25px;
  font-weight: 500;
}

.movie-preview {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: fit-content;
  max-width: 900px;
  margin: 0 auto 30px;
}
.movie-preview:before {
  content: "";
  display: block;
  padding-top: 55%;
}
.movie-preview iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  max-width: none;
  min-height: 100%;
  object-fit: cover;
}
.movie-preview video {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  max-width: none;
  min-height: 100%;
  object-fit: cover;
}

.store-buy-movie h4 {
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .movie-preview-box {
    padding: 20px;
  }

  /* 注文履歴タイムライン - モバイル対応 */
  .order-history {
    padding-top: 15px;
    margin-top: 15px;
  }

  .history-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .history-item {
    margin-bottom: 12px;
  }

  .history-label {
    font-size: 12px;
  }

  .history-time {
    font-size: 10px;
  }
}

/* ===========================================
   再入稿申請システム
   =========================================== */

/* ステータス表示ボックス */
.submission-status-box {
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid;
}

.submission-status-box .status-content {
  width: 100%;
}

.submission-status-box .status-content h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.submission-status-box .status-content p {
  margin: 0;
  font-size: 12px;
  color: #555;
}

/* 入稿完了（ロック状態） */
.submission-status-box.status-locked {
  background: #f5f5f5;
  border-color: #95a5a6;
}

.submission-status-box.status-locked h3 {
  color: #7f8c8d;
}

/* 再入稿申請中 */
.submission-status-box.status-pending {
  background: #fff9e6;
  border-color: #ffc107;
}

.submission-status-box.status-pending h3 {
  color: #856404;
}

/* 納品完了 */
.submission-status-box.status-delivered {
  background: #e8f5e9;
  border-color: #4caf50;
}

.submission-status-box.status-delivered h3 {
  color: #2e7d32;
}

/* 再入稿申請セクション */
.resubmit-section {
  background: #fff5f5;
  border: 2px solid #dc3545;
  padding: 25px;
  margin-top: 30px;
}

.resubmit-info {
  margin-bottom: 20px;
}

.resubmit-info h4 {
  font-size: 16px;
  color: #dc3545;
  margin-bottom: 10px;
  font-weight: 600;
}

.resubmit-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* 再入稿申請ボタン */
.btn-request-resubmit {
  display: block;
  width: 100%;
  padding: 0.5em 3em;
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-request-resubmit:hover {
  background: white;
  color: #dc3545;
}

.btn-request-resubmit:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

/* フォーム無効化時のスタイル */
textarea:disabled,
textarea[readonly] {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #dee2e6;
}

.btn-file-upload:disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-remove-file:disabled {
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .submission-status-box {
    text-align: center;
    padding: 15px;
  }

  .resubmit-section {
    padding: 15px;
  }

  .btn-request-resubmit {
    padding: 0.5em 2em;
    font-size: 14px;
  }

  /* アカウント編集ページ - モバイル */
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .profile-status {
    top: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .mypage-actions .btn-edit-profile,
  .mypage-actions .btn-back {
    width: 100%;
    text-align: center;
  }

  .btn-save-profile,
  .btn-save-email,
  .btn-save-password {
    width: 100%;
    padding: 12px 20px;
  }
}

/* ===========================================
   納品ファイル ダウンロードセクション
   =========================================== */

.order-delivery-download {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid #dee2e6;
}

.download-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #294057;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.download-title svg {
  color: #294057;
}

.download-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.download-file-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #294057 0%, #3d5a73 100%);
  border-radius: 8px;
  color: #fff;
}

.file-name {
  font-weight: 500;
  color: #333;
}

.file-size {
  font-size: 12px;
  color: #888;
  margin-left: auto;
  margin-right: 15px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #294057 0%, #3d5a73 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(41, 64, 87, 0.3);
}

.btn-download:hover {
  background: linear-gradient(135deg, #3d5a73 0%, #294057 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(41, 64, 87, 0.4);
  color: #fff;
}

.btn-download svg {
  flex-shrink: 0;
}

.download-expiry-notice {
  margin: 15px 0 0;
  padding: 10px 15px;
  background: #fff9e6;
  border-radius: 6px;
  font-size: 13px;
  color: #856404;
}

.download-expired {
  padding: 20px;
  background: #fff5f5;
  border-radius: 8px;
  text-align: center;
  color: #dc3545;
}

.download-expired p {
  margin: 5px 0;
}

.no-files {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .download-file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
  }

  .file-info {
    width: 100%;
    flex-wrap: wrap;
  }

  .file-size {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 48px;
    margin-top: -5px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================================
   ログインプロンプト（Step3内）
   =========================================== */
.store_cartsystem__login-prompt {
  background: linear-gradient(135deg, #fdfcfa 0%, #f8f6f3 100%);
  border: 1px solid #e8e4de;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.store_cartsystem__login-prompt--text {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.store_cartsystem__login-prompt--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 50px;
  background: #fff;
  border: 2px solid #294057;
  border-radius: 0px;
  color: #fff;
  background: #294057;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.store_cartsystem__login-prompt--btn:hover {
  background: #294057;
  color: #fff;
}

/* ===========================================
   ログインモーダル
   =========================================== */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.login-modal.is-active {
  display: block;
}

.login-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.login-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
}

.login-modal__close:hover {
  background: #eee;
  color: #333;
}

.login-modal__title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.login-modal__text {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 25px;
}

.login-modal__content .wpmem_msg,
.login-modal__content #wpmem_login {
  margin: 0;
}

.login-modal__content #wpmem_login label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.login-modal__content #wpmem_login input[type="text"],
.login-modal__content #wpmem_login input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 15px;
  transition: border-color 0.2s ease;
}

.login-modal__content #wpmem_login input[type="text"]:focus,
.login-modal__content #wpmem_login input[type="password"]:focus {
  outline: none;
  border-color: #c9a86c;
}

.login-modal__content #wpmem_login input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #c9a86c 0%, #b8960b 50%, #d4af37 100%);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
#wpmem_login .link-text {
  padding: 4px 0;
  text-align: center;
  font-size: 11px;
}
#wpmem_login .link-text a {
  text-decoration: underline;
  margin-left: 1em;
}

.login-modal__content #wpmem_login input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 150, 11, 0.4);
}

.login-modal__skip {
  margin-top: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.login-modal__skip-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.login-modal__skip-btn:hover {
  color: #666;
}

/* モーダル内のWP-Membersフォーム調整 */
.login-modal__content #wpmem_login {
  width: 100%;
}

.login-modal__content #wpmem_login fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.login-modal__content #wpmem_login legend {
  display: none;
}

.login-modal__content .div_text {
  margin-bottom: 15px;
  width: 100%;
}

.login-modal__content .div_text label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #555;
}

.login-modal__content .div_text input[type="text"],
.login-modal__content .div_text input[type="password"] {
  width: 100% !important;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.login-modal__content .div_text input[type="text"]:focus,
.login-modal__content .div_text input[type="password"]:focus {
  outline: none;
  border-color: #c9a86c;
}

.login-modal__content .div_checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
  font-size: 13px;
}

.login-modal__content .div_checkbox input[type="checkbox"] {
  margin: 0;
}

.login-modal__content .button_div {
  margin-top: 10px;
  text-align: center;
}

.login-modal__content .button_div input[type="submit"] {
  width: 100% !important;
  padding: 14px;
  background: #294057;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-modal__content .button_div input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 64, 87, 0.4);
}

.login-modal__content p {
  text-align: center;
  font-size: 12px;
  color: #888;
}

.login-modal__content p a {
  color: #294057;
  font-size: 12px;
}

.login-modal__content a {
  color: #294057;
}

@media screen and (max-width: 768px) {
  .login-modal__content {
    padding: 30px 20px;
    width: 95%;
  }

  .login-modal__title {
    font-size: 18px;
  }

  .store_cartsystem__login-prompt {
    padding: 15px;
  }

  .store_cartsystem__login-prompt--text {
    font-size: 13px;
  }

  .store_cartsystem__login-prompt--btn {
    padding: 6px 44px;
    font-size: 12px;
}
}

/* ===========================================
   お急ぎ便情報ボックス
   =========================================== */
.rush-info-box {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0 30px;
}

.rush-info-box__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rush-info-box__icon {
  font-size: 18px;
}

.rush-info-box__title {
  font-size: 15px;
  font-weight: 700;
  color: #8b7355;
}

.rush-info-box__content {
  margin-bottom: 15px;
}

.rush-info-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rush-info-box__list li {
  font-size: 13px;
  color: #555;
  padding: 4px 0;
  padding-left: 1.2em;
  position: relative;
}

.rush-info-box__list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.rush-info-box__price {
  color: #e74c3c;
  font-size: 14px;
}

.rush-info-box__legend {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid #f0d78c;
}

.rush-info-box__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.rush-info-box__legend-item .legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.rush-info-box__legend-item--rush .legend-color {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}

.rush-info-box__legend-item--normal .legend-color {
  background: #fff;
  border: 1px solid #ddd;
}

/* 重要事項（rush-info-box内） */
.rush-info-box__notice {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0d78c;
}

.rush-info-box__notice h4 {
  font-size: 14px;
  font-weight: 700;
  color: #d35400;
  margin-bottom: 10px;
}

.rush-info-box__notice ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rush-info-box__notice li {
  font-size: 12px;
  color: #666;
  padding: 3px 0;
  padding-left: 1em;
  position: relative;
  line-height: 1.6;
}

.rush-info-box__notice li::before {
  content: "";
  position: absolute;
  left: 0;
}

.rush-info-box__notice li strong {
  color: #e74c3c;
}

/* 警告スタイルの店舗ノーティス */
.store-notice--warning {
  background: #fff8e1;
  border: 1px solid #ffca28;
  border-radius: 6px;
  padding: 15px;
}

.store-notice--warning h4 {
  font-size: 14px;
  font-weight: 700;
  color: #f57c00;
  margin-bottom: 10px;
}

.store-notice--warning p {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.store-notice--warning p:last-child {
  margin-bottom: 0;
}

.store-notice--caution {
  background: #ffebee;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px !important;
  color: #c62828 !important;
}

.store-notice--caution a {
  color: #1976d2;
  text-decoration: underline;
}

/* 日付選択時のリアルタイム表示 */
.delivery-date-status {
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-date-status--rush {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
  color: #e65100;
}

.delivery-date-status--normal {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
}

.delivery-date-status__icon {
  font-size: 16px;
}

.delivery-date-status__text {
  font-weight: 600;
}

/* Flatpickrカレンダーのカスタマイズ */
.flatpickr-day.rush-day {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
  border-color: #ffb74d !important;
}

.flatpickr-day.rush-day:hover {
  background: #ffe0b2 !important;
}

.flatpickr-day.rush-day.selected {
  background: #ff9800 !important;
  border-color: #f57c00 !important;
  color: #fff !important;
}

.flatpickr-day.normal-day {
  background: #fff;
}

.flatpickr-day.normal-day:hover {
  background: #e3f2fd;
  border-color: #90caf9;
}

.flatpickr-day.normal-day.selected {
  background: #294057 !important;
  border-color: #294057 !important;
  color: #fff !important;
}

/* Flatpickrの日付セルのレイアウト調整 */
.flatpickr-day {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  line-height: 1.2 !important;
  padding: 4px 0 !important;
}

/* 日付下のラベル */
.day-label {
  font-size: 8px;
  font-weight: 600;
  margin-top: 2px;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1;
}

.day-label--rush {
  color: #e65100;
  background: rgba(255, 152, 0, 0.15);
}

.day-label--normal {
  color: #2e7d32;
  background: rgba(76, 175, 80, 0.1);
}

/* 選択時のラベル色調整 */
.flatpickr-day.selected .day-label--rush,
.flatpickr-day.selected .day-label--normal {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
}

/* 無効な日付のラベル非表示 */
.flatpickr-day.flatpickr-disabled .day-label {
  display: none;
}

@media screen and (max-width: 768px) {
  .rush-info-box {
    padding: 15px;
    margin: 15px 0 20px;
  }

  .rush-info-box__title {
    font-size: 14px;
  }

  .rush-info-box__list li {
    font-size: 12px;
  }

  .rush-info-box__legend {
    flex-direction: column;
    gap: 8px;
  }

  .delivery-date-status {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ===========================================
   カット構成セクション（詳細ページ）
   =========================================== */

.store_detail__cut-composition {
  max-width: 900px;
  margin: 30px auto;
}

/* ヘッダーセクション */
.cut-composition__header-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cut-composition__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #294057;
  border-radius: 10px;
  flex-shrink: 0;
}

.cut-composition__icon-wrap svg {
  color: #fff;
  width: 20px;
  height: 20px;
}

.cut-composition__header-text {
  flex: 1;
}

.cut-composition__title {
  font-size: 1.1em;
  font-weight: 700;
  color: #294057;
  margin: 0;
}

.cut-composition__subtitle {
  font-size: 0.85em;
  color: #888;
  margin: 2px 0 0 0;
}

/* カットリスト */
.cut-composition__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.cut-composition__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.cut-composition__item:hover {
  background: #f5f5f5;
}

.cut-composition__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.cut-composition__item-icon svg {
  color: #294057;
  width: 16px;
  height: 16px;
}

.cut-composition__item-content {
  flex: 1;
  min-width: 0;
}

.cut-composition__item-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

.cut-composition__item-desc {
  font-size: 0.8em;
  color: #888;
  margin-top: 2px;
}

.cut-composition__item-counts {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cut-composition__count-recommended,
.cut-composition__count-max {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85em;
}

.cut-composition__count-recommended {
  background: #e8f5e9;
  color: #2e7d32;
}

.cut-composition__count-max {
  background: #f0f0f0;
  color: #666;
}

.cut-composition__count-recommended .count-label,
.cut-composition__count-max .count-label {
  font-size: 0.85em;
}

.cut-composition__count-recommended .count-value,
.cut-composition__count-max .count-value {
  font-weight: 700;
}

.cut-composition__count-recommended .count-unit,
.cut-composition__count-max .count-unit {
  font-size: 0.85em;
}

/* カテゴリカード */
.cut-composition__category {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.cut-composition__category:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cut-composition__category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
}

.cut-composition__category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cut-composition__category-icon svg {
  color: #888;
  width: 16px;
  height: 16px;
}

.cut-composition__category-info {
  flex: 1;
  min-width: 0;
}

.cut-composition__category-name {
  font-size: 0.95em;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.cut-composition__category-desc {
  font-size: 0.8em;
  color: #888;
  line-height: 1.4;
  margin-top: 2px;
}

.cut-composition__category-counts {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* カテゴリ詳細（画像枚数・テキスト項目） */
.cut-composition__category-details {
  padding: 10px 15px;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cut-composition__detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
  color: #666;
}

.cut-composition__detail-item svg {
  color: #888;
  flex-shrink: 0;
}

.cut-composition__detail-item strong {
  color: #294057;
  font-weight: 600;
}

/* 固定素材アイテム */
.cut-composition__item--fixed {
  background: #f5f5f5;
  border: 1px dashed #ddd;
}

.cut-composition__item-icon--fixed {
  background: #fff;
}

.cut-composition__item-icon--fixed svg {
  color: #888;
}

.cut-composition__count-fixed {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.85em;
  background: #e0e0e0;
  color: #555;
}

.cut-composition__count-fixed .count-value {
  font-weight: 700;
}

.cut-composition__count-fixed .count-unit {
  font-size: 0.85em;
}

/* 合計セクション */
.cut-composition__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #294057;
  border-radius: 8px;
  margin-bottom: 15px;
}

.cut-composition__total-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95em;
}

.cut-composition__total-label svg {
  opacity: 0.8;
  width: 16px;
  height: 16px;
}

.cut-composition__total-counts {
  display: flex;
  gap: 8px;
}

.cut-composition__total .cut-composition__count-recommended {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cut-composition__total .cut-composition__count-recommended .count-label,
.cut-composition__total .cut-composition__count-recommended .count-value,
.cut-composition__total .cut-composition__count-recommended .count-unit {
  color: #fff;
}

.cut-composition__total .cut-composition__count-max {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.cut-composition__total .cut-composition__count-max .count-label,
.cut-composition__total .cut-composition__count-max .count-value,
.cut-composition__total .cut-composition__count-max .count-unit {
  color: rgba(255, 255, 255, 0.9);
}

/* 注意文 */
.cut-composition__notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fef9e7;
  border-radius: 6px;
  border: 1px solid #fce8b2;
}

.cut-composition__notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cut-composition__notice-icon svg {
  color: #f5a623;
  width: 18px;
  height: 18px;
}

.cut-composition__notice-text {
  font-size: 0.85em;
  color: #5d4e37;
  line-height: 1.5;
  margin: 0;
}

/* ===========================================
   カット構成入稿フォーム（マイページ）
   =========================================== */

.nyukou-section--cut {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #f7931e;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.nyukou-section--cut h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7931e;
  border-bottom: 2px solid #f7931e;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 8px;
}

.section-icon svg {
  stroke: #2c4157;
}

/* ====================================
   カット構成入稿フォーム（新）
   ==================================== */
.nyukou-section--cut-composition {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #294057;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.cut-composition-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #294057;
  border-bottom: 2px solid #294057;
  padding-bottom: 15px;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.cut-composition-header h3 svg {
  flex-shrink: 0;
}

.cut-composition-header .form-help {
  margin-bottom: 20px;
}

.cut-composition-categories {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* カテゴリセクション */
.cut-category-section {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
}

.cut-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.cut-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
}

.cut-category-title svg {
  color: #294057;
}

.cut-category-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.info-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
}

.info-recommended {
  background: #e8f5e9;
  color: #2e7d32;
}

.info-max {
  background: #f0f0f0;
  color: #666;
}

.info-images {
  background: #e3f2fd;
  color: #1565c0;
}

.cut-category-description {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
}

/* カットアイテムコンテナ（3〜4カラムグリッド） */
.cut-items-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media screen and (max-width: 1200px) {
  .cut-items-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .cut-items-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .cut-items-container {
    grid-template-columns: 1fr;
  }
}

/* 個別カットアイテム（カード型） */
.cut-item {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cut-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #294057 0%, #3d5a73 100%);
  color: #fff;
}

.cut-item-number {
  font-weight: 600;
  font-size: 0.85em;
}

.btn-remove-cut {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-remove-cut svg {
  color: #fff;
}

.btn-remove-cut:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cut-item-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* 画像セクション */
.cut-images-section {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.cut-section-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.cut-section-label svg {
  color: #888;
  width: 12px;
  height: 12px;
}

.cut-image-count-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8em;
  color: #666;
}

.cut-image-count-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 0.85em;
}

.cut-image-uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cut-image-upload-item {
  position: relative;
  width: 70px;
  height: 70px;
}

.cut-image-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.cut-image-preview {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f5f5f5;
}

.cut-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.cut-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cut-image-placeholder svg {
  color: #ccc;
  width: 20px;
  height: 20px;
}

.cut-image-placeholder span {
  font-size: 0.65em;
}

.cut-image-placeholder:hover {
  background: #eee;
  color: #666;
}

.cut-image-placeholder:hover svg {
  color: #888;
}

.btn-remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  z-index: 10;
  transition: background 0.2s ease;
}

.btn-remove-image:hover {
  background: #e53935;
}

.cut-image-preview .upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7em;
  padding: 4px;
  text-align: center;
}

.cut-image-preview .upload-success {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #4caf50;
  color: #fff;
  font-size: 0.7em;
  padding: 3px 6px;
  border-radius: 3px;
}

/* テキストセクション */
.cut-texts-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cut-text-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cut-text-label {
  font-size: 0.75em;
  font-weight: 600;
  color: #333;
}

.cut-text-label .required {
  color: #fff;
  font-size: 0.8em;
  font-weight: 400;
  margin-left: 5px;
}

.cut-text-item input[type="text"],
.cut-text-item textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.8em;
  transition: border-color 0.2s ease;
}

.cut-text-item input[type="text"]:focus,
.cut-text-item textarea:focus {
  border-color: #294057;
  outline: none;
}

.cut-text-help {
  font-size: 0.7em;
  color: #999;
  display: none; /* グリッド内では非表示 */
}

/* カット追加セクション */
.cut-add-section {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.btn-add-cut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #294057 0%, #3d5a73 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-add-cut svg {
  color: #fff;
}

.btn-add-cut:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(41, 64, 87, 0.3);
}

.cut-count-info {
  font-size: 0.9em;
  color: #666;
}

.cut-count-info strong {
  color: #294057;
}

.cut-upload-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cut-upload-group {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.cut-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.cut-upload-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
}

.cut-icon {
  font-size: 1.2em;
}

.cut-upload-info {
  display: flex;
  gap: 15px;
  font-size: 0.9em;
}

.cut-recommended {
  color: #2e7d32;
  font-weight: 500;
}

.cut-max {
  color: #666;
}

.cut-description {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
  padding-left: 30px;
}

.cut-upload-area {
  position: relative;
  margin-bottom: 15px;
}

.cut-file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.cut-file-input:disabled {
  cursor: not-allowed;
}

.cut-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cut-upload-label:hover {
  border-color: #f7931e;
  background: #fff8f0;
}

.cut-upload-label.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cut-upload-label.disabled:hover {
  border-color: #ccc;
  background: #fafafa;
}

.upload-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.upload-text {
  font-size: 1em;
  color: #555;
  font-weight: 500;
}

.upload-subtext {
  font-size: 0.85em;
  color: #999;
  margin-top: 5px;
}

.cut-preview-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
  min-height: 50px;
}

.cut-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cut-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cut-preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cut-preview-remove:hover {
  background: #e74c3c;
}

.cut-upload-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #666;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 6px;
}

.cut-upload-status .count-num {
  color: #f7931e;
  font-size: 1.2em;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .store_detail__cut-composition {
    margin: 20px 0;
  }

  .cut-composition__header-section {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .cut-composition__icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .cut-composition__icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .cut-composition__title {
    font-size: 1em;
  }

  .cut-composition__subtitle {
    width: 100%;
    font-size: 0.8em;
  }

  .cut-composition__item {
    padding: 10px 12px;
    gap: 10px;
  }

  .cut-composition__item-icon {
    width: 28px;
    height: 28px;
  }

  .cut-composition__item-icon svg {
    width: 14px;
    height: 14px;
  }

  .cut-composition__item-name {
    font-size: 0.8em;
  }

  .cut-composition__item-desc {
    font-size: 0.7em;
    line-height: 1.5;
  }

  .cut-composition__count-recommended, .cut-composition__count-max {
    padding: 4px 5px;
    font-size: 0.7em;
  }

  .cut-composition__total {
    padding: 10px 12px;
  }

  .cut-composition__total-label {
    font-size: 0.8em;
  }

  .cut-composition__notice {
    padding: 10px 12px;
  }

  .cut-composition__notice-icon svg {
    width: 16px;
    height: 16px;
  }

  .cut-composition__notice-text {
    font-size: 0.8em;
  }

  /* カテゴリカード（モバイル） */
  .cut-composition__category-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .cut-composition__category-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .cut-composition__category-icon svg {
    width: 14px;
    height: 14px;
  }

  .cut-composition__category-name {
    font-size: 0.85em;
  }

  .cut-composition__category-desc {
    font-size: 0.75em;
  }

  .cut-composition__category-counts {
    width: 100%;
    justify-content: flex-end;
    margin-top: 5px;
  }

  .cut-composition__category-details {
    padding: 8px 12px;
    gap: 0;
    flex-direction: column;
  }

  .cut-composition__detail-item {
    font-size: 0.75em;
  }

  .cut-composition__detail-item svg {
    width: 12px;
    height: 12px;
  }

  /* カット構成入稿フォーム（モバイル） */
  .nyukou-section--cut-composition {
    padding: 15px;
    margin-bottom: 20px;
  }

  .cut-composition-header h3 {
    font-size: 1em;
    gap: 8px;
  }

  .cut-composition-header h3 svg {
    width: 18px;
    height: 18px;
  }

  .cut-category-section {
    padding: 15px;
  }

  .cut-category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cut-category-title {
    font-size: 1em;
  }

  .cut-category-info {
    width: 100%;
    margin-top: 5px;
  }

  .info-badge {
    padding: 3px 8px;
    font-size: 0.75em;
  }

  .cut-item-header {
    padding: 8px 12px;
  }

  .cut-item-number {
    font-size: 0.9em;
  }

  .btn-remove-cut {
    width: 24px;
    height: 24px;
  }

  .btn-remove-cut svg {
    width: 14px;
    height: 14px;
  }

  .cut-item-content {
    padding: 12px;
    gap: 12px;
  }

  .cut-images-section {
    padding: 12px;
  }

  .cut-section-label {
    font-size: 0.85em;
  }

  .cut-image-count-selector {
    flex-wrap: wrap;
    font-size: 0.85em;
  }

  .cut-image-uploads {
    gap: 4px;
  }

  .cut-image-upload-item {
    width: 60px;
    height: 60px;
  }

  .cut-image-placeholder svg {
    width: 16px;
    height: 16px;
  }

  .cut-image-placeholder span {
    font-size: 0.6em;
  }

  .btn-remove-image {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .cut-text-label {
    font-size: 0.7em;
  }

  .cut-text-item input[type="text"],
  .cut-text-item textarea {
    padding: 5px 6px;
    font-size: 0.75em;
  }

  .cut-text-help {
    display: none;
  }

  .cut-add-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-add-cut {
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85em;
  }

  .cut-count-info {
    text-align: center;
    font-size: 0.8em;
  }

  .nyukou-section--cut {
    padding: 20px;
  }

  .cut-upload-group {
    padding: 20px;
  }

  .cut-upload-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cut-upload-label {
    padding: 30px 15px;
  }

  .cut-preview-area {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }
}

/* ===========================================
   動画確認・修正依頼システム
   =========================================== */

/* ステータスバッジ追加 */
.status-badge.status-inprogress {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.status-badge.status-review {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation: pulse 2s infinite;
}

.status-badge.status-revision {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.status-badge.status-approved {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 動画確認セクション */
/* ================================================
   動画確認セクション（リニューアル版）
   ================================================ */
.video-review-section {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  margin-top: 16px;
  overflow: hidden;
}

.video-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f5 100%);
  border-bottom: 1px solid #e8ecf0;
}

.video-review-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.video-review-label svg {
  color: #667eea;
}

.video-review-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.video-review-status--review_pending {
  background: #fff3cd;
  color: #856404;
}

.video-review-status--revision_requested {
  background: #e3f2fd;
  color: #1565c0;
}

.video-review-status--approved {
  background: #d4edda;
  color: #155724;
}

/* 動画プレビュー */
.video-preview-wrap {
  padding: 16px;
  background: #1a1a1a;
}

.video-preview-wrap video {
  width: 100%;
  max-height: 400px;
  display: block;
  border-radius: 6px;
}

.video-preview-wrap .video-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
}

/* アクションバー */
.video-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fafbfc;
  border-top: 1px solid #e8ecf0;
  gap: 12px;
  flex-wrap: wrap;
}

.revision-badge {
  font-size: 12px;
  color: #666;
  background: #fff;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #e0e4e8;
}

.revision-badge strong {
  color: #667eea;
  font-size: 14px;
}

.video-action-btns {
  display: flex;
  gap: 8px;
}

.btn-video-approve,
.btn-video-revision {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-video-approve {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
}

.btn-video-approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-video-revision {
  background: #fff;
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-video-revision:hover {
  background: #667eea;
  color: #fff;
}

.btn-video-resubmit {
  background: #fff;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.btn-video-resubmit:hover {
  background: #dc3545;
  color: #fff;
}

/* 再入稿モーダルの注意書き */
.resubmit-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.resubmit-notice p {
  margin: 0;
  font-size: 13px;
  color: #856404;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.resubmit-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* 再入稿警告ボックス */
.resubmit-notice--warning {
  background: #fff5f5;
  border: 1px solid #e74c3c;
  border-left: 4px solid #e74c3c;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}

.resubmit-notice--warning .resubmit-notice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #ffeaea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resubmit-notice--warning .resubmit-notice-icon svg {
  stroke: #e74c3c;
}

.resubmit-notice--warning .resubmit-notice-content {
  flex: 1;
}

.resubmit-notice--warning .resubmit-notice-title {
  font-weight: 600;
  color: #c0392b;
  margin: 0 0 10px 0;
  font-size: 14px;
}

.resubmit-notice--warning .resubmit-notice-list {
  margin: 0 0 12px 0;
  padding-left: 18px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.resubmit-notice--warning .resubmit-notice-list li {
  margin-bottom: 4px;
}

.resubmit-notice--warning .resubmit-notice-list strong {
  color: #c0392b;
}

.resubmit-notice--warning p.resubmit-notice-help {
  font-size: 12px;
  color: #888;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed #e0e0e0;
  display: block !important;
  line-height: 1.8;
  gap: 0 !important;
  flex-wrap: unset !important;
  align-items: unset !important;
}

.resubmit-notice--warning .resubmit-notice-help a {
  color: #2c4157;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.resubmit-notice--warning .resubmit-notice-help a:hover {
  color: #e74c3c;
}

/* 再入稿申請ボタン（モーダル内） */
.btn-submit-resubmit {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
}

.btn-submit-resubmit:hover {
  background: #c82333 !important;
  border-color: #c82333 !important;
}

/* ステータスメッセージ */
.video-status-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  border-top: 1px solid #e8ecf0;
}

.video-status-msg--pending {
  background: #e3f2fd;
  color: #1565c0;
}

.video-status-msg--approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.video-status-msg svg {
  flex-shrink: 0;
}

/* やり取り履歴（details/summary） */
.video-history-details {
  border-top: 1px solid #e8ecf0;
}

.video-history-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: #fafbfc;
}

.video-history-summary::-webkit-details-marker {
  display: none;
}

.video-history-summary::after {
  content: '▶';
  margin-left: auto;
  font-size: 10px;
  color: #999;
  transition: transform 0.2s;
}

.video-history-details[open] .video-history-summary::after {
  transform: rotate(90deg);
}

.video-history-list {
  padding: 12px 16px;
  background: #fff;
  max-height: 240px;
  overflow-y: auto;
}

.video-history-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f8f9fc;
  border-radius: 6px;
  border-left: 3px solid #ddd;
}

.video-history-item:last-child {
  margin-bottom: 0;
}

.video-history-item--video_submit {
  border-left-color: #667eea;
}

.video-history-item--revision_request {
  border-left-color: #ffc107;
}

.video-history-item--approval {
  border-left-color: #28a745;
}

.video-history-item--resubmit_request {
  border-left-color: #f39c12;
}

.video-history-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.video-history-date {
  font-size: 11px;
  color: #999;
}

.video-history-type {
  font-size: 11px;
  font-weight: 600;
  color: #555;
}

.video-history-msg {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* 旧クラス互換性（削除予定） */
.order-video-review {
  display: none;
}

.btn-approve-video,
.btn-request-revision {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-approve-video {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
}

.btn-approve-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.btn-request-revision {
  background: #fff;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-request-revision:hover {
  background: #667eea;
  color: #fff;
}

/* ステータスメッセージ */
.revision-status-message,
.approved-status-message {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.revision-status-message p {
  margin: 0;
  color: #f5576c;
  font-weight: 600;
}

.approved-status-message p {
  margin: 0;
  color: #11998e;
  font-weight: 600;
}

/* やり取り履歴アコーディオン */
.review-history-accordion {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.history-accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px;
  background: #f8f9fa;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.history-accordion-title svg {
  color: #667eea;
}

.history-items {
  max-height: 400px;
  overflow-y: auto;
}

.history-accordion-item {
  border-bottom: 1px solid #eee;
}

.history-accordion-item:last-child {
  border-bottom: none;
}

.history-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.2s;
}

.history-accordion-header:hover {
  background: #f0f0f0;
}

.history-accordion-item.active .history-accordion-header {
  background: #e8f4fd;
}

.history-icon {
  font-size: 18px;
}

.history-date {
  font-size: 13px;
  color: #999;
}

.history-type-label {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.history-toggle-icon {
  color: #999;
  transition: transform 0.2s;
}

.history-accordion-item.active .history-toggle-icon {
  transform: rotate(180deg);
}

.history-accordion-content {
  display: none;
  padding: 16px;
  background: #fff;
}

.history-message-content {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.history-video-preview {
  margin-bottom: 12px;
}

.history-video-preview video {
  border-radius: 8px;
}

.history-attachments {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.attachment-link {
  display: inline-block;
  margin: 0 8px 0 0;
  color: #667eea;
  text-decoration: none;
}

.attachment-link:hover {
  text-decoration: underline;
}

/* 修正依頼モーダル */
.revision-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.revision-modal.is-visible {
  display: flex !important;
}

.revision-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.revision-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.revision-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.revision-modal-close:hover {
  color: #333;
}

.revision-modal-title {
  margin: 0 0 20px;
  font-size: 22px;
  color: #333;
}

.revision-modal-info {
  margin-bottom: 20px;
}

.revision-type-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.revision-type-info p {
  margin: 0;
}

.revision-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.revision-badge.free {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
}

.revision-badge.paid {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: #fff;
}

.revision-modal-content .form-group {
  margin-bottom: 20px;
}

.revision-modal-content .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.revision-modal-content .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e4e8;
  border-radius: 8px;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s;
}

.revision-modal-content .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.revision-modal-content .form-group input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #e0e4e8;
  border-radius: 8px;
  background: #fafafa;
}

.revision-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.revision-modal-actions .btn-cancel {
  padding: 12px 24px;
  background: #e0e4e8;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.revision-modal-actions .btn-cancel:hover {
  background: #d0d4d8;
}

.revision-modal-actions .btn-submit-revision,
.revision-modal-actions .btn-approve {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.revision-modal-actions .btn-submit-revision:hover,
.revision-modal-actions .btn-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.revision-modal-actions .btn-submit-revision:disabled,
.revision-modal-actions .btn-approve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 承認モーダル */
.approval-content {
  text-align: center;
}

.approval-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Stripe カード入力 */
#paid-revision-payment {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Stripe カード入力セクション（改善版） */
.paid-payment-section {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
}

.paid-payment-section .card-field-group {
  margin-bottom: 15px;
}

.paid-payment-section .card-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.paid-payment-section .card-field {
  background: white;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-height: 44px;
  transition: border-color 0.2s ease;
}

.paid-payment-section .card-field:focus-within {
  border-color: #2c4157;
  box-shadow: 0 0 0 2px rgba(44, 65, 87, 0.1);
}

.paid-payment-section .card-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.payment-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2c4157;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e4e8;
}

.payment-card-label svg {
  color: #666;
}

#card-element,
.stripe-card-element {
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e0e4e8;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

#card-element:focus-within,
.stripe-card-element:focus-within {
  border-color: #2c4157;
}

.stripe-card-errors {
  font-size: 13px;
  color: #e74c3c;
  margin-top: 10px;
  min-height: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  /* 動画確認セクション（モバイル） */
  .video-review-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .video-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .revision-badge {
    text-align: center;
  }
  
  .video-action-btns {
    flex-direction: column;
  }
  
  .btn-video-approve,
  .btn-video-revision {
    justify-content: center;
    width: 100%;
    padding: 12px;
  }
  
  .video-preview-wrap video {
    max-height: 200px;
  }
  
  .revision-modal-content {
    padding: 24px;
    margin: 16px;
  }
  
  .revision-modal-actions {
    flex-direction: column;
  }
  
  .revision-modal-actions .btn-cancel,
  .revision-modal-actions .btn-submit-revision,
  .revision-modal-actions .btn-approve {
    width: 100%;
    text-align: center;
  }
}
