@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg-base: #0B0C10;
  --bg-surface: #12141C;
  --bg-surface-light: #1A1D29;
  --bg-card: rgba(26, 29, 41, 0.85);
  --gold-primary: #D4AF37;
  --gold-light: #F0C05A;
  --gold-dark: #AA771C;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #C5C6C7;
  --text-muted: #8892B0;
  --status-new: #38bdf8;
  --status-quoted: #eab308;
  --status-confirmed: #10b981;
  --status-printing: #8b5cf6;
  --status-shipped: #06b6d4;
  --status-cancel: #ef4444;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
.site-header {
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-badge {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-light);
}

/* メインコンテナ */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ヒーローバナー */
.page-hero {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.page-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 0.2rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #FFFFFF 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* セクションタイトル */
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.75rem;
}

.section-step {
  background: var(--gold-primary);
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.section-h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

/* カレンダーカード一覧グリッド */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.calendar-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.calendar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
}

.calendar-card.selected {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 2px var(--gold-primary), 0 10px 25px rgba(0, 0, 0, 0.6);
}

.calendar-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  z-index: 2;
}

.card-img-wrap {
  width: 100%;
  height: 220px;
  background: #000;
  overflow: hidden;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.calendar-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
}

.price-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-select-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calendar-card.selected .card-select-indicator {
  color: var(--gold-light);
}

/* フォームブロック */
.form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.req-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.opt-badge {
  background: #64748b;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

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

/* リアルタイム見積もりサマリーボックス */
.estimate-summary-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(11, 12, 16, 0.9));
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.estimate-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.estimate-item-calc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.estimate-total-wrap {
  text-align: right;
}

.estimate-total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.estimate-total-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
}

.tax-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ボタン */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #000;
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  filter: brightness(1.08);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #dc2626;
}

/* 管理画面専用スタイル */
.admin-nav-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-gold);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-secondary);
  padding: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* バッジ */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-new { background: rgba(56, 189, 248, 0.15); color: var(--status-new); border: 1px solid var(--status-new); }
.badge-quoted { background: rgba(234, 179, 8, 0.15); color: var(--status-quoted); border: 1px solid var(--status-quoted); }
.badge-confirmed { background: rgba(16, 185, 129, 0.15); color: var(--status-confirmed); border: 1px solid var(--status-confirmed); }
.badge-printing { background: rgba(139, 92, 246, 0.15); color: var(--status-printing); border: 1px solid var(--status-printing); }
.badge-shipped { background: rgba(6, 182, 212, 0.15); color: var(--status-shipped); border: 1px solid var(--status-shipped); }
.badge-cancel { background: rgba(239, 68, 68, 0.15); color: var(--status-cancel); border: 1px solid var(--status-cancel); }

/* モーダルウィンドウ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
}

/* フッター */
.site-footer {
  background: #060709;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 1.7rem;
  }
  .estimate-summary-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .estimate-total-wrap {
    text-align: left;
    width: 100%;
  }
}
