/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*= require_self */
/**
 * Swipe LP Creator Styles
 * Modern, responsive design with clean architecture
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Layout Components */
.swipe-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.app-header {
  background: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
}

.app-title {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ColorMe Shop連携ステータス */
.colorme-status {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.colorme-status.connected {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #1e7e34;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-cta {
  background-color: #ff6b6b;
  color: white;
  padding: 0.875rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(255, 107, 107, 0.3);
}

.btn-cta:hover {
  background-color: #ff5252;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.5);
  color: white;
  text-decoration: none;
}

.btn-cta:visited {
  color: white;
}

.btn-cta:focus {
  color: white;
  text-decoration: none;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

/* Main Content Layout */
.main-content {
  flex: 1;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* LP List View Styles */
.lp-list-view {
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.lp-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.list-title {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.create-new-lp-btn {
  padding: 0.75rem 1.5rem;
}

/* Editor View Styles */
.editor-view {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.editor-title-section {
  flex: 1;
}

.public-url-display {
  margin-top: 0.75rem;
}

.url-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  display: block;
}

.url-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #f8f9fa;
  font-size: 0.875rem;
  color: #495057;
}

.copy-url-btn {
  padding: 0.5rem;
  font-size: 0.75rem;
  min-width: auto;
}

.back-to-list-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.logout-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
}

/* LP Title Editing */
.lp-title-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lp-title {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.edit-title-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.edit-title-btn:hover {
  opacity: 1;
  background: #f0f0f0;
}

.lp-title-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lp-title-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.save-title-btn,
.cancel-title-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  min-width: auto;
}

/* Slide Reorder Controls */
.slide-reorder-controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 10;
}

.btn-reorder {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-reorder:hover {
  background: #fff;
  border-color: #007bff;
  color: #007bff;
  transform: scale(1.05);
}

.btn-reorder:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-reorder:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ddd;
  color: inherit;
}

/* Preview Section */
.preview-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mobile-frame {
  width: 375px;
  height: 667px;
  background: linear-gradient(145deg, #1a1a1a, #000);
  border-radius: 30px;
  padding: 15px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.content-viewer {
  width: 100%;
  height: calc(100% - 50px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  touch-action: manipulation;
  background: #000;
}

/* Slide Styles */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  color: white;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.5rem 0.5rem;
}

.slide-cta-container {
  padding: 1rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.slide-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
}

.slide-description {
  margin-bottom: 0;
  opacity: 0.95;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}

/* Triangle Navigation */
.triangle-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.triangle-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.triangle-nav:hover {
  transform: translateY(-50%) scale(1.2);
}

.triangle-left {
  left: 20px;
}

.triangle-right {
  right: 20px;
}

.triangle-nav svg {
  opacity: 0.9;
  transition: all 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.triangle-nav:hover svg {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* Editor Section */
.editor-section {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-height: 700px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
}

.editor-title {
  margin-bottom: 2rem;
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 600;
}

.slide-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Slide Editor */
.slide-editor {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  background: #fafafa;
  position: relative;
}

.slide-editor.active {
  border-color: #007bff;
  background: #f8f9ff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.slide-preview {
  width: 80px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Form Styles */
.slide-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .mobile-frame {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
  }
  
  .app-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .app-title {
    font-size: 1.25rem;
  }
  
  .editor-section {
    max-height: none;
  }
  
  .lp-list-view {
    padding: 1rem;
  }
  
  .lp-list-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .editor-view {
    flex-direction: column;
  }
  
  .editor-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mobile-frame {
    height: 600px;
  }
  
  .slide-overlay {
    padding: 2rem 1rem 1.5rem;
  }
  
  .slide-title {
    font-size: 1.25rem;
  }
  
  .editor-section {
    padding: 1rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .btn,
  .triangle-nav {
    transition: none;
  }
}

/* Focus visible for better keyboard navigation */
.slide:focus-visible,
.triangle-nav:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .slide-overlay {
    background: rgba(0, 0, 0, 0.95);
  }
  
  .triangle-nav svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
  }
  
  .triangle-nav svg path {
    fill: #fff;
  }
}

/* Empty State Styles */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #495057;
}

.empty-state-description {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 280px;
  opacity: 0.8;
}

.editor-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

.editor-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.editor-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #495057;
}

.editor-empty-description {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.8;
}

/* Slide Placeholder Styles */
.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  text-align: center;
  padding: 2rem;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.placeholder-text {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
  margin: 0;
}

/* Preview Placeholder Styles */
.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
}

.preview-placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
  color: #6c757d;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-large {
  max-width: 800px;
}

/* ColorMe Product Search Modal */
.colorme-product-modal {
  width: 80vw;
  height: 80vh;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.colorme-product-modal .modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Product Search Phase */
.product-search-phase {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.search-form-section {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.search-input-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.875rem;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  min-width: auto;
}

.search-results-section {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.results-header {
  margin-bottom: 1.5rem;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.products-table th,
.products-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.products-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
}

.product-image-cell {
  width: 80px;
}

.product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.image-placeholder {
  width: 60px;
  height: 60px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  text-align: center;
}

.image-placeholder-large {
  width: 100%;
  max-height: 300px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
  text-align: center;
  min-height: 200px;
}

.product-name-cell {
  font-weight: 500;
  color: #2c3e50;
}

.product-price-cell {
  font-weight: 600;
  color: #28a745;
}

.select-product-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-width: auto;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-width: auto;
}

.pagination-info {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Product Detail Phase */
.product-detail-phase {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.detail-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background: #f8f9fa;
}

.detail-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.detail-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.product-images-section {
  margin-bottom: 2rem;
}

.product-image-viewer {
  text-align: center;
  margin-bottom: 1rem;
}

.main-product-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.image-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.image-nav-btn {
  background: none;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #495057;
  transition: all 0.2s ease;
}

.image-nav-btn:hover:not(:disabled) {
  border-color: #007bff;
  color: #007bff;
}

.image-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.image-indicator {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-info-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.product-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

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

.product-info-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  gap: 1rem;
}

.product-info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #495057;
  min-width: 80px;
}

.info-value {
  color: #2c3e50;
  flex: 1;
}

.detail-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.confirm-select-btn {
  padding: 0.75rem 2rem;
}

/* Loading and Empty States */
.loading-state,
.empty-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6c757d;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e9ecef;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.empty-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* Responsive adjustments for ColorMe modal */
@media (max-width: 768px) {
  .colorme-product-modal {
    width: 95vw;
    height: 90vh;
  }
  
  .products-table {
    font-size: 0.8rem;
  }
  
  .product-image {
    width: 50px;
    height: 50px;
  }
  
  .search-input-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-input {
    width: 100%;
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #495057;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Table Styles */
.lp-list-container {
  overflow-x: auto;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.lp-table th,
.lp-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.lp-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  position: sticky;
  top: 0;
}

.lp-table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lp-table tbody tr:hover {
  background: #f8f9fa;
}

.lp-table .hash-id {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.edit-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.edit-btn:hover {
  background: #0056b3;
}

.delete-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-btn:hover {
  background: #c82333;
}

/* Public LP Styles */
.public-lp {
  min-height: 100vh;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  /* スマートフォンでのスクロール防止 */
  overflow: hidden;
}

.public-frame {
  margin: 0 auto;
}

@media (max-width: 480px) {
  /* スマートフォン用の全画面表示 */
  html, body {
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
    position: fixed;
    width: 100%;
  }
  
  .public-lp {
    padding: 0;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100); /* JavaScriptで設定されるカスタムプロパティ */
    height: 100dvh; /* 動的ビューポート高さ */
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    background: #000;
  }
  
  .public-frame {
    width: 100%;
    height: 100%;
    height: calc(var(--vh, 1vh) * 100); /* JavaScriptで設定されるカスタムプロパティ */
    height: 100dvh; /* 動的ビューポート高さ */
    max-width: 100vw;
    max-height: 100vh;
    max-height: calc(var(--vh, 1vh) * 100); /* JavaScriptで設定されるカスタムプロパティ */
    max-height: 100dvh; /* 動的ビューポート高さ */
    border-radius: 0;
    padding: 0;
    background: #000;
    box-shadow: none;
    overflow: hidden;
  }
  
  .public-frame .content-viewer {
    border-radius: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* タッチスクロール防止 */
    touch-action: pan-x;
    -webkit-overflow-scrolling: auto;
  }
  
  .triangle-left {
    left: 16px;
  }
  
  .triangle-right {
    right: 16px;
  }
  
  .slide-cta-container {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    /* Safari下部URLバー対応 */
    margin-bottom: env(keyboard-inset-height, 0px);
  }
  
  .slide-title {
    font-size: 1.3rem;
  }
  
  .slide-description {
    font-size: 0.9rem;
  }
  
  .btn-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 50px;
  }
}