/* ===== デザイントークン（CSS変数） ===== */
:root {
  /* プライマリカラー - 親しみやすさと信頼感のバランス */
  --color-primary: #5B7FA6;
  --color-primary-dark: #4A6B8F;
  --color-primary-light: #7A9BC4;
  
  /* アクセントカラー - 生活感を残す温かみ */
  --color-accent: #8B9A6B;
  --color-accent-light: #A8B88A;
  
  /* テキストカラー - 読みやすさ重視 */
  --color-text: #2C3E50;
  --color-text-secondary: #5A6C7D;
  --color-text-muted: #8A95A5;
  
  /* 背景カラー - 清潔感と温かみ */
  --color-bg: #FFFFFF;
  --color-bg-light: #F8F9FA;
  --color-bg-warm: #FDFCFB;
  
  /* ボーダーカラー */
  --color-border: #E1E8ED;
  --color-border-light: #F0F4F8;
  --danger-color: #dc3545;
  --danger-color-dark: #c62828;
  
  /* フォントサイズ */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  
  /* 行間 */
  --line-height-tight: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* フォントウェイト */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* ボーダーラディウス */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  
  /* 影 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
  
  /* 余白スケール */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
}

/* ===== Base ===== */

* {
  box-sizing: border-box;
}

/* ===== アクセシビリティ ===== */

/* スクリーンリーダー専用テキスト（視覚的には非表示、スクリーンリーダーには読み上げられる） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.stripe-card-element {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.admin-code-block {
  margin: 0;
  padding: var(--space-4);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: var(--line-height-relaxed);
}

.ops-banner {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff3cd;
  border-bottom: 1px solid #ffe08a;
  color: #5c4400;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ops-banner--maintenance {
  background: #fde2e2;
  border-bottom-color: #f5a3a3;
  color: #7a1f1f;
}

.ops-banner--booking_paused {
  background: #fff3cd;
  border-bottom-color: #ffe08a;
  color: #5c4400;
}

.ops-banner--payment_paused {
  background: #fff0e6;
  border-bottom-color: #ffc58f;
  color: #713900;
}

.ops-banner__resume {
  font-weight: 600;
}

.ops-banner__contact {
  text-decoration: underline;
  font-weight: 600;
}

.ops-banner__refresh {
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  background: transparent;
  color: inherit;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.ops-paused-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10001;
  max-width: 380px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--danger-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
}

.ops-paused-panel__inner {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.ops-paused-panel p {
  margin: 0;
}

.ops-paused-panel__meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.ops-paused-panel a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  font-weight: 600;
}

.is-disabled-link {
  opacity: 0.55;
  pointer-events: none;
}

.form-error {
  margin: 6px 0 0;
  color: var(--danger-color);
  font-size: var(--font-size-sm);
}

.beta-banner {
  width: 100%;
  padding: 10px 16px;
  background: #fff4d6;
  color: #6b4b00;
  border-bottom: 1px solid #f0d58a;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

/* フォーカスインジケーターの改善 */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ボタンとリンクのフォーカススタイル */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* スキップリンク（メインコンテンツへ直接移動） */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  top: 0;
}

/* フォーカストラップ（モーダル内でフォーカスを閉じ込める） */
.focus-trap {
  position: relative;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
}

.section.light {
  background: var(--color-bg-light);
}

.section.gray {
  background: var(--color-bg-light);
}

/* ===== Header ===== */

header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.nav {
  display: flex;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.nav a {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.nav a.active {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Hero ===== */

.hero {
  background: #f7f7f7;
  text-align: center;
  padding: 110px 0;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero p:not(.hero__subtitle):not(.hero__helper) {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

/* ===== Buttons ===== */

.btn-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Headings ===== */

.section-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section-lead {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

/* ===== Cards ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.card.highlight {
  border: 2px solid var(--color-primary);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

.card ul {
  padding-left: 18px;
  margin-bottom: 20px;
}

.card li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* ===== Price / Area ===== */

.price-box {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.price-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #ddd;
  padding: 12px 0;
  font-size: 14px;
}

/* ===== Safety ===== */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.icon-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.icon-card h4 {
  margin-bottom: 8px;
}

/* ===== FAQ ===== */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-q {
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 14px;
  color: #555;
}

/* ===== Footer ===== */

footer {
  background: #333;
  color: #eee;
  padding: 60px 0 40px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  margin-bottom: 20px;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  color: #888;
  font-size: 12px;
}

/* ===== Worker Page Styles ===== */

/* ワーカー領域共通：ダッシュボード・プロフィール等で背景を統一 */
.worker-page {
  background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
  min-height: 100vh;
}

/* dashboard.html の worker-dashboard-page は将来のダッシュボード専用スタイル用。背景は上記 .worker-page のみ（グレー上書きしない） */

.worker-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.worker-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.worker-header .nav {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}

.worker-header .nav a {
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.worker-header .nav a:hover {
  background: #f0f0f0;
}

.worker-header .nav a.active {
  background: var(--color-primary);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-header .header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}

.worker-header .header-actions .btn-icon,
.worker-header .header-actions .avatar {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.worker-header .header-actions .avatar {
  width: auto;
  max-width: 96px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  padding: 8px;
  border-radius: 50%;
  transition: 0.2s ease;
}

.btn-icon:hover {
  background: #f0f0f0;
}

a.btn-icon {
  text-decoration: none;
  color: inherit;
}

.profile-freeform-text {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-availability-read {
  margin: 0;
}

.profile-select-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(100px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 768px) {
  .profile-select-grid {
    grid-template-columns: 1fr;
  }
}

.profile-select-row-actions {
  display: flex;
  align-items: flex-end;
}

.service-area-rows-mount {
  max-height: 55vh;
  overflow-y: auto;
}

.availability-days-mount {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}

.availability-day-row {
  padding: 12px 14px;
  margin-bottom: 0;
}

.availability-day-label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.availability-day-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.availability-day-controls .js-day-time-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.availability-day-controls .js-day-time-range select {
  min-width: 88px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  transition: 0.2s ease;
}

.avatar:hover {
  opacity: 0.8;
}

.worker-main {
  padding: var(--space-5) 0 var(--space-7);
  min-height: calc(100vh - 200px);
}

.dashboard-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-5);
}

.card-container,
.card-standard {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-5);
}

.dashboard-card .section-title {
  text-align: left;
  margin-bottom: 0;
}

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

.text-error {
  color: #c62828;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.auth-message-success {
  color: #2e7d32;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.is-hidden {
  display: none !important;
}

.no-wrap { white-space: nowrap; }

.flex { display: flex; }
.inline-block { display: inline-block; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-4xl { font-size: 4rem; line-height: 1; }
.text-danger { color: #e74c3c; }
.text-white { color: #fff; }
.opacity-80 { opacity: 0.8; }
.bg-light { background: #f5f5f5; }
.bg-primary { background: var(--primary-color); }
.rounded-md { border-radius: var(--radius-md); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-8 { padding: var(--space-8); }
.mt-sm { margin-top: var(--space-2); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mb-xs { margin-bottom: var(--space-1); }
.mb-sm { margin-bottom: var(--space-2); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.no-margin { margin: 0; }
.max-w-70 { max-width: 70%; }
.max-h-60vh { max-height: 60vh; }
.overflow-y-auto { overflow-y: auto; }
.whitespace-pre-wrap { white-space: pre-wrap; }

.welcome-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.welcome-section h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
}

.welcome-section p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.welcome-section .text-muted {
  color: rgba(255, 255, 255, 0.92);
}

.quick-actions {
  margin-bottom: var(--space-6);
}

.quick-actions .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.action-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
  min-height: 132px;
  display: grid;
  place-content: center;
  gap: var(--space-1);
}

.action-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.action-icon {
  font-size: clamp(32px, 5vw, 40px);
  margin-bottom: var(--space-1);
}

.action-card h3 {
  margin: 0;
  font-size: 16px;
}

.action-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.new-jobs-section {
  margin-bottom: 40px;
}

.job-request-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-request-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.job-request-badges {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.job-request-badges .job-status {
  margin: 0;
}

.job-reward-badge {
  background: rgba(91, 127, 166, 0.12);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  border: 1px solid rgba(91, 127, 166, 0.24);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  padding: 6px 10px;
}

.badge-new {
  background: #fff3cd;
  color: #856404;
}

.job-request-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  padding-right: 138px;
}

.job-request-time {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.job-request-title {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.job-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.job-request-meta-item {
  font-size: 13px;
  color: #5b6a78;
  background: #f7fafd;
  border: 1px solid #e8edf3;
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.job-request-fee {
  color: #1f5d2a;
  background: #ecf8ef;
  border-color: #d9eedf;
  font-weight: 700;
}

.job-request-description {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #555;
}

.export-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header .section-title {
  text-align: left;
  margin: 0;
  font-size: 20px;
}

.link-more {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.link-more:hover {
  text-decoration: underline;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.job-date {
  font-size: 13px;
  color: #666;
}

.job-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.job-status.new {
  background: #fff3cd;
  color: #856404;
}

.job-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.job-info {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.job-description {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.job-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.job-actions .btn {
  flex: 1;
  text-align: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-action {
  min-height: 48px;
  padding: 12px 14px;
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-link {
  font-weight: var(--font-weight-semibold);
}

.btn-danger,
.btn.btn-danger {
  background: var(--danger-color);
  border-color: var(--danger-color);
  color: #ffffff !important;
}

.btn-danger:hover,
.btn.btn-danger:hover {
  background: var(--danger-color-dark);
  border-color: var(--danger-color-dark);
  color: #ffffff !important;
}

.today-schedule {
  margin-bottom: 40px;
}

.today-schedule .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.schedule-time {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
  min-width: 100px;
}

.schedule-content {
  flex: 1;
}

.schedule-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.schedule-content p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #666;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.pending {
  background: #e3f2fd;
  color: #1976d2;
}

.status-badge.active {
  background: #e8f5e9;
  color: #388e3c;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.reward-summary {
  margin-bottom: 40px;
}

.reward-summary .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.reward-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.reward-summary-card {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: var(--shadow-lg);
  border: none;
}

.reward-hero {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(255,255,255,0.08);
}

.reward-hero__label {
  font-size: 14px;
  opacity: 0.95;
}

.reward-hero__amount {
  font-size: clamp(42px, 9vw, 56px);
  line-height: 1;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
}

.reward-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.reward-item:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
}

.reward-label {
  font-size: 14px;
  opacity: 0.9;
}

.reward-amount {
  font-size: 28px;
  font-weight: 700;
}

.reward-count,
.reward-date {
  font-size: 18px;
  font-weight: 600;
}

.reward-card .btn {
  width: 100%;
  background: #fff;
  color: var(--color-primary);
  margin-top: 8px;
}

.reward-card .btn:hover {
  opacity: 0.9;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {

  .worker-header .header-inner {
    gap: 8px;
  }

  .worker-header .header-actions {
    gap: 6px;
  }

  .worker-header .header-actions .btn-icon,
  .worker-header .header-actions .avatar {
    min-width: 34px;
    height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .worker-header .header-actions .avatar {
    max-width: 76px;
  }

  .worker-header .logo {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    display: none; /* MVPなので簡易対応 */
  }

  .section {
    padding: 70px 0;
  }

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

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

  .worker-header .nav {
    display: none;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .job-actions {
    flex-direction: row;
    gap: var(--space-2);
  }

  .job-actions .btn {
    min-height: 48px;
    font-size: var(--font-size-sm);
  }

  .job-request-card {
    padding-top: var(--space-6);
  }

  .job-request-head {
    padding-right: 0;
    align-items: flex-start;
  }

  .job-request-badges {
    top: var(--space-2);
    right: var(--space-2);
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-time {
    min-width: auto;
  }

  .schedule-actions {
    width: 100%;
  }

  .schedule-actions .btn {
    width: 100%;
  }

}

/* ===== Jobs Page Styles ===== */

.jobs-header {
  margin-bottom: 32px;
}

.jobs-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.jobs-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-card h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.filter-select,
.filter-input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.jobs-stats {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.jobs-list-section.section-block {
  margin-bottom: var(--space-6);
}

.job-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

.tag-large {
  padding: 6px 16px;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.page-info {
  font-size: 14px;
  color: #666;
}

/* ===== Job Detail Page Styles ===== */

.back-link {
  margin-bottom: 24px;
}

.back-link a {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
}

.back-link a:hover {
  text-decoration: underline;
}

.booking-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-detail__header {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: 12px;
}

.booking-detail__header .header-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.booking-detail__header .service-title {
  margin: 0;
  font-size: 22px;
}

.status-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-steps .step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--color-text-muted);
}

.status-steps .step .step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  box-shadow: var(--shadow-xs);
}

.status-steps .step.is-active {
  color: var(--color-text);
}
.status-steps .step.is-active .step-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(91,127,166,0.12);
}

.booking-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.info-item {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.info-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
}

.info-text .info-title {
  font-size: 12px;
  color: var(--color-text-muted);
}
.info-text .info-value {
  font-size: 14px;
  color: var(--color-text);
}

.booking-notes h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
}
.booking-notes p {
  margin: 0;
  color: #555;
}

.booking-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-detail-actions .booking-detail-payment-method {
  flex: 1 1 100%;
  min-width: 100%;
  margin-bottom: 0;
}

.booking-detail-actions .booking-detail-payment-method .form-select {
  width: 100%;
}

.action-bar--fixed .action-bar-payment-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.action-bar--fixed .action-bar-payment-stack .booking-detail-payment-method {
  margin-bottom: 0;
}

.action-bar--fixed .action-bar-payment-stack .form-select {
  width: 100%;
}

/* ===== Customer 予約詳細 — モバイル最適化 (customer/booking-detail.html) ===== */
@media (max-width: 768px) {
  .customer-page .booking-detail__header {
    padding: 16px;
  }

  .customer-page .booking-detail__header .header-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .customer-page .booking-detail__header .service-title {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.3;
  }

  .customer-page .booking-detail .status-steps {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
  }

  .customer-page .booking-detail .status-steps .step {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    min-height: 48px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
  }

  .customer-page .booking-detail .status-steps .step .step-dot {
    align-self: center;
  }

  .customer-page .booking-detail .status-steps .step .step-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }

  .customer-page .booking-detail .booking-info-card {
    padding: 16px;
  }

  .customer-page .booking-detail .info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .customer-page .booking-detail .info-item {
    padding: 14px 16px;
    min-width: 0;
  }

  .customer-page .booking-detail .info-item .info-value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 場所（2番目のカード）は長い住所対策 */
  .customer-page .booking-detail .info-grid .info-item:nth-child(2) .info-value {
    word-break: break-all;
  }

  .customer-page .booking-detail .booking-notes p {
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .customer-page .booking-detail .map-section .map-address {
    overflow-wrap: anywhere;
    word-break: break-all;
    margin-top: 10px;
    line-height: 1.5;
  }

  .customer-page .booking-detail .booking-detail-actions {
    gap: 8px;
  }
}

/* 狭いスマホは1カラムのまま、やや幅があるときだけ日時・料金を2カラム・場所は全幅 */
@media (max-width: 768px) and (min-width: 420px) {
  .customer-page .booking-detail .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-page .booking-detail .info-grid .info-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .customer-page .booking-detail .info-grid .info-item:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .customer-page .booking-detail .info-grid .info-item:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.worker-display-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.worker-display-card .worker-details {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.worker-display-card .worker-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  font-size: 1.8rem;
}
.worker-display-card .worker-text {
  min-width: 0;
  flex: 1;
}
.worker-display-card .worker-text h3 {
  margin: 0 0 6px;
}
.worker-display-card .worker-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.worker-display-card .rating-score {
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1;
}
.worker-display-card .worker-bio {
  margin: 6px 0 0;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.worker-display-card .worker-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.worker-display-card .btn.btn-primary {
  box-shadow: var(--shadow-sm);
}

@media (max-width: 576px) {
  .worker-display-card {
    flex-direction: column;
  }
  .worker-display-card .worker-details {
    flex-direction: row;
  }
}
.cancellation-policy.soft {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--color-border-light);
  margin-bottom: 12px;
}

.map-placeholder.modern {
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.map-placeholder .map-surface {
  height: 220px;
  background: linear-gradient(180deg, #e6eef7 0%, #f7fbff 100%);
  position: relative;
}
.map-placeholder .map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 144, 156, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 144, 156, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-placeholder .map-caption {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
}

.action-bar--fixed {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  padding: 12px 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: center;
  z-index: 5;
}

.job-detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.job-detail-card.section-block {
  padding: var(--space-5);
}

.job-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.job-detail-header.card-standard {
  margin-bottom: var(--space-4);
}

.job-detail-header h1 {
  margin: 8px 0 0 0;
  font-size: 24px;
}

.job-payment-large {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}

.job-detail-info {
  margin-bottom: 32px;
}

.job-detail-info.card-standard,
.job-detail-content.card-standard {
  margin-bottom: var(--space-4);
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
  min-width: 120px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
}

.info-value {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.job-detail-content {
  margin-bottom: 32px;
}

.job-detail-content h2 {
  margin: 24px 0 12px 0;
  font-size: 20px;
}

.job-detail-content h3 {
  margin: 20px 0 8px 0;
  font-size: 16px;
}

.job-detail-content p {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: #555;
}

.job-detail-content ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.job-detail-content li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #555;
}

.notice-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.notice-box p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #856404;
}

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

.job-detail-actions {
  display: flex;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.job-detail-actions .btn-action {
  min-height: 52px;
}

.btn-large {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
}

.client-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.client-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.client-actions .btn-action {
  min-height: 48px;
}

.client-info-card h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
}

.client-details {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.client-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.client-text p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

.map-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.map-section h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
}

.map-placeholder {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: #999;
}

.map-address {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

/* ===== Calendar Page Styles ===== */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.calendar-header.section-block {
  margin-bottom: var(--space-5);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-controls h1 {
  margin: 0;
  font-size: 24px;
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-toggle .btn.active {
  background: var(--color-primary);
  color: #fff;
}

.calendar-month-view {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}

.calendar-month-view.section-block {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekday {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  padding: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  position: relative;
  min-height: 80px;
}

.calendar-day.empty {
  border: none;
}

.day-number {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.calendar-day.has-job {
  background: #f0f9ff;
  border-color: var(--color-primary);
}

.calendar-job {
  font-size: 11px;
  color: var(--color-primary);
  line-height: 1.4;
  margin-top: 4px;
}

.is-hidden {
  display: none !important;
}

.calendar-view-panel {
  width: 100%;
}

.week-view-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.week-view-scroll {
  overflow: auto;
  max-height: min(70vh, 720px);
  border-radius: var(--radius-md);
}

.week-view-table {
  display: flex;
  align-items: stretch;
  min-width: 640px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-border-light);
  gap: 1px;
}

.week-time-rail {
  width: 52px;
  flex-shrink: 0;
  background: #fafafa;
  padding-top: 48px;
  display: flex;
  flex-direction: column;
}

.week-time-rail .week-time-cell {
  height: 20px;
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
  padding-right: 6px;
  line-height: 1;
  box-sizing: border-box;
}

.week-time-rail .week-time-cell.is-hour {
  color: #475569;
  font-weight: 600;
  border-top: 1px solid #e2e8f0;
}

.week-columns {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

.week-col {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.week-col-head {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  color: #334155;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  min-height: 48px;
  box-sizing: border-box;
}

.week-col-head small {
  display: block;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

.week-col-body {
  position: relative;
  height: 960px;
  flex: 1;
}

.week-slots-col {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

.week-slot {
  flex: 0 0 20px;
  height: 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  transition: background 0.12s ease;
}

.week-slot:hover:not(.is-booking) {
  background: #f8fafc;
}

.week-slot.is-blocked {
  background: #fecaca;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(185, 28, 28, 0.06) 3px,
    rgba(185, 28, 28, 0.06) 6px
  );
}

.week-slot.is-booking {
  background: #e0f2fe;
  cursor: default;
}

.week-slot.is-blocked.is-booking {
  background: #ddd6fe;
}

.week-bookings-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.week-booking-block {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  padding: 4px 6px;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  display: block;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.week-booking-block:hover {
  filter: brightness(1.05);
}

.day-view-timeline {
  position: relative;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.day-view-hours {
  display: flex;
  flex-direction: column;
}

.day-view-hour-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 56px;
  border-bottom: 1px solid #f1f5f9;
}

.day-view-hour-row:last-child {
  border-bottom: none;
}

.day-view-hour-label {
  font-size: 12px;
  color: #64748b;
  padding: 6px 8px;
  text-align: right;
  background: #fafafa;
  border-right: 1px solid #f1f5f9;
}

.day-view-hour-body {
  position: relative;
  background: #fff;
}

.day-view-now-line {
  position: absolute;
  left: 52px;
  right: 0;
  height: 2px;
  background: #ef4444;
  z-index: 3;
  pointer-events: none;
}

.day-view-bookings-layer {
  position: absolute;
  left: 52px;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.day-booking-card {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
  background: rgba(59, 130, 246, 0.12);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: var(--shadow-xs);
}

.day-booking-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.day-booking-card a:hover {
  text-decoration: underline;
}

.day-booking-card .day-booking-time {
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
}

.day-booking-card .day-booking-meta {
  font-size: 12px;
  color: #64748b;
}

.weekly-schedule {
  margin-bottom: 32px;
}

.weekly-schedule.section-block {
  margin-bottom: var(--space-5);
}

.weekly-schedule .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.date-day {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.date-weekday {
  font-size: 12px;
  color: #666;
}

.block-settings {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.block-settings.section-block {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.block-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.block-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 8px;
}

.block-list .block-item.card-standard {
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.block-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.block-info p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* ===== Profile Page Styles ===== */

.profile-header {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}

.profile-header.section-block,
.profile-section.section-block {
  margin-bottom: var(--space-5);
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

.profile-info h1 {
  margin: 0 0 12px 0;
  font-size: 24px;
}

.profile-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stars {
  color: #ffc107;
  font-size: 18px;
}

.rating-score {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
}

.rating-count {
  font-size: 14px;
  color: #666;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-card.card-standard {
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}

.skill-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.area-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.area-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.area-name {
  font-weight: 600;
  font-size: 14px;
}

.area-detail {
  font-size: 13px;
  color: #666;
}

.availability-table {
  overflow-x: auto;
}

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

.availability-table th,
.availability-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.availability-table th {
  font-weight: 600;
  font-size: 14px;
  color: #666;
  background: #f7f7f7;
}

.availability-table td {
  font-size: 14px;
}

.reviews-summary {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.review-stat {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.review-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.breakdown-bar {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

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

.reviewer-name {
  font-weight: 600;
  font-size: 14px;
}

.review-stars {
  color: #ffc107;
  font-size: 14px;
}

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

.review-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.settings-list.card-standard {
  margin-bottom: 0;
}

.rating-fill-80 { width: 80%; }
.rating-fill-15 { width: 15%; }
.rating-fill-4 { width: 4%; }
.rating-fill-0 { width: 0%; }

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: 0.2s ease;
}

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

.settings-item:hover {
  background: #f7f7f7;
}

.settings-item.link-danger,
.link-danger {
  color: #dc3545;
}

/* ===== Rewards Page Styles ===== */

.rewards-header {
  margin-bottom: 32px;
}

.rewards-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.rewards-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.rewards-summary-section {
  margin-bottom: 32px;
}

.rewards-summary-section .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.rewards-summary-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.premium-summary-card {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-xl);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.summary-item {
  text-align: center;
}

.summary-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.summary-amount {
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 700;
}

.summary-count {
  font-size: 24px;
  font-weight: 600;
}

.summary-date {
  font-size: 18px;
  font-weight: 600;
}

.payment-history {
  margin-bottom: 32px;
}

.payment-history .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-item.card-standard {
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}

.payment-info {
  flex: 1;
}

.payment-date {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.payment-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.payment-status {
  text-align: right;
}

.payment-date-detail {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.rewards-detail {
  margin-bottom: 32px;
}

.rewards-detail .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rewards-detail .section-title {
  text-align: left;
  margin: 0;
  font-size: 20px;
}

.rewards-table {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow-x: auto;
}

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

.rewards-table th,
.rewards-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.rewards-table th {
  font-weight: 600;
  color: #666;
  background: #f7f7f7;
}

.rewards-table tfoot {
  font-weight: 600;
}

.total-label {
  text-align: right;
  padding-right: 12px;
}

.total-amount {
  font-size: 18px;
  color: var(--color-primary);
}

.payment-info-section {
  margin-bottom: 32px;
}

.payment-info-section .section-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

.payment-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.info-note p {
  margin: 8px 0;
  font-size: 13px;
  color: #666;
}

.info-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===== Responsive Updates ===== */

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .job-detail-header {
    flex-direction: column;
    gap: 16px;
  }

  .job-detail-actions {
    flex-direction: column;
  }

  .job-detail-actions .btn-action {
    width: 100%;
    min-height: 52px;
  }

  .calendar-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .calendar-day {
    min-height: 60px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .reviews-summary {
    flex-direction: column;
    gap: 24px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .payment-status {
    text-align: left;
    width: 100%;
  }

  .rewards-table {
    font-size: 12px;
  }

  .rewards-table th,
  .rewards-table td {
    padding: 8px;
  }
}

/* ===== Customer Page Styles ===== */

.customer-page {
  background: linear-gradient(135deg, #FFC107 0%, #FFFFFF 100%);
  min-height: 100vh;
}

.customer-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.customer-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.customer-header .nav {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.customer-header .nav a {
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.customer-header .nav a:hover {
  background: #f0f0f0;
}

.customer-header .nav a.active {
  background: var(--color-primary);
  color: #fff;
}

.customer-main {
  padding: 32px 0 60px;
  min-height: calc(100vh - 200px);
}

/* ===== Common Section Block (customer dashboard) ===== */
.section-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-5);
}
.section-block .section-title {
  text-align: left;
}

/* ===== Upcoming Timeline ===== */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(91, 127, 166, 0.28) 0%, rgba(91, 127, 166, 0.08) 100%);
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.timeline-dot {
  position: absolute;
  left: -18px;
  top: 16px;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91,127,166,0.14);
}
.timeline-item.is-before .timeline-dot {
  background: #1976d2;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.18);
}
.timeline-item.is-progress .timeline-dot {
  background: #388e3c;
  box-shadow: 0 0 0 4px rgba(56, 142, 60, 0.18);
}
.timeline-item.is-complete .timeline-dot {
  background: #2e7d32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-3) var(--space-4);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.timeline-date {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
.timeline-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.timeline-status.confirmed { background: #e3f2fd; color: #1976d2; }
.timeline-status.in-progress { background: #e8f5e9; color: #388e3c; }
.timeline-status.completed { background: #f1f8e9; color: #2e7d32; }
.timeline-status.cancelled { background: #ffebee; color: #c62828; }
.timeline-body h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}
.timeline-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.timeline-address {
  font-size: 13px;
  color: #555;
  margin: 0 0 8px 0;
}
.timeline-actions .btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
}

/* ===== History Horizontal Scroll ===== */
.history-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.history-cards {
  display: flex;
  gap: 12px;
  min-width: 100%;
  padding-bottom: 4px;
}
.history-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.history-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
.history-card__title {
  margin: 0 0 4px 0;
  font-size: 16px;
}
.history-card__meta {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #666;
}
.history-card__amount {
  color: var(--color-primary);
  font-weight: 700;
}
.history-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ===== Notice List with Badges ===== */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 12px 14px;
}
.notice-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.notice-title {
  margin: 0;
  font-size: 15px;
}
.notice-text {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #555;
}
.notice-time {
  font-size: 11px;
  color: #999;
}
.notice-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.notice-badge--important {
  background: #ffebee;
  color: #c62828;
}
.notice-badge--message {
  background: #e3f2fd;
  color: #1976d2;
}
/* ===== Booking Form Styles ===== */

.booking-header {
  margin-bottom: 32px;
}

.booking-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.booking-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px 0;
  font-size: 20px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.required {
  color: #dc3545;
  font-size: 12px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 127, 166, 0.1);
}

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

.form-hint {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* フォームエラーメッセージ */
.form-error {
  display: none;
  font-size: var(--font-size-sm);
  color: #E53935;
  margin-top: var(--space-1);
  padding-left: var(--space-2);
  position: relative;
}

.form-error::before {
  content: '⚠️';
  margin-right: var(--space-1);
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #E53935;
  background-color: #FFF5F5;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-success .form-input,
.form-group.has-success .form-select,
.form-group.has-success .form-textarea {
  border-color: #4CAF50;
}

/* パスワード強度インジケーター */
.password-strength {
  margin-top: var(--space-2);
  height: 4px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: var(--radius-sm);
}

.password-strength-bar.weak {
  width: 33%;
  background-color: #E53935;
}

.password-strength-bar.medium {
  width: 66%;
  background-color: #FF9800;
}

.password-strength-bar.strong {
  width: 100%;
  background-color: #4CAF50;
}

.password-strength-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.checkbox-item:hover {
  background: #f7f7f7;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
  color: var(--color-primary);
  font-weight: 600;
}

.checkbox-label {
  font-size: 14px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 24px;
}

/* ===== Booking Wizard ===== */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.step-indicator__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}
.step-indicator__item.is-active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}
.step-indicator__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
}
.step-indicator__item:not(.is-active) .step-indicator__num {
  background: var(--color-primary-light);
  opacity: 0.6;
}
.step-indicator__label {
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.wizard-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  padding: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-5);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.wizard-actions__spacer {
  flex: 1;
}

.quick-shortcut-card {
  background: #f8fbff;
  border: 1px solid #d9e7f7;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.quick-shortcut-card h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: 16px;
}

.quick-shortcut-summary p {
  margin: 0 0 var(--space-2) 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.quick-shortcut-btn {
  width: 100%;
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .step-indicator {
    grid-template-columns: 1fr;
  }
  .wizard-actions {
    position: static;
    border-radius: var(--radius-lg);
  }
}

/* ===== Worker Selection Styles ===== */

.selection-header {
  margin-bottom: 32px;
}

.selection-header h1 {
  margin: 16px 0 20px 0;
  font-size: 28px;
}

.booking-summary {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.summary-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.summary-value {
  font-size: 14px;
  color: #333;
}

.workers-section {
  margin-bottom: 32px;
}

.workers-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Select Worker Modern Card Enhancements ===== */
.worker-card.worker-card--modern {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-md);
}
.worker-card.worker-card--modern .btn-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
}
.worker-card.worker-card--modern .btn-favorite:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.worker-card.worker-card--modern .btn-favorite.favorited {
  border-color: #e74c3c33;
  background: #fff5f5;
}
.worker-stats.worker-stats--highlight {
  background: #f7fbff;
  border: 1px solid #e6eef7;
  border-radius: var(--radius-md);
}
.worker-reviews-preview .reviews-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-preview-item {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.review-preview-item::before {
  content: '“';
  position: absolute;
  left: 8px;
  top: -10px;
  font-size: 28px;
  color: var(--color-primary-light);
}
.review-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-preview-stars {
  color: #FFB74D;
}
.review-preview-date {
  font-size: 12px;
  color: #666;
}
.review-preview-comment {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

/* Price summary sticky/floating */
.price-summary.price-summary--sticky {
  position: sticky;
  top: 12px;
}
@media (max-width: 992px) {
  .price-summary.price-summary--sticky {
    position: static;
  }
  .price-summary.price-summary--floating {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 -8px 16px rgba(0,0,0,0.08);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.26s ease, transform 0.26s ease;
  }
  .price-summary.price-summary--floating.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .price-summary.price-summary--floating .price-card {
    box-shadow: none;
    border: none;
    padding: 8px 16px;
    max-height: calc(46vh - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .selection-actions {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    z-index: 21;
    background: transparent;
  }

  /* フローティング時に下部が隠れないよう余白を確保 */
  .has-floating-summary .customer-main {
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  }
}

.worker-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  transition: 0.2s ease;
  position: relative;
}

.worker-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.worker-card.selected {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(91, 127, 166, 0.2);
}

.worker-select {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.worker-select input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.worker-content {
  flex: 1;
}

.worker-header-info {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.worker-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.worker-basic h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.worker-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 8px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 88px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Worker profile modal stats: keep horizontal card layout even on small screens */
.worker-stats.worker-profile-stats {
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.worker-stats.worker-profile-stats .stat-item {
  flex: 1 1 120px;
  align-items: center;
  text-align: center;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
}

.worker-skills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  font-size: 12px;
}

.worker-reviews {
  margin-bottom: 16px;
}

.worker-reviews h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
}

.review-item-small {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
}

.review-stars {
  color: #ffc107;
  font-size: 12px;
}

.review-text {
  color: #555;
  flex: 1;
}

.worker-actions {
  display: flex;
  gap: 12px;
}

.price-summary {
  margin-bottom: 32px;
}

.price-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.price-card h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.price-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-row.total {
  border-top: 2px solid var(--color-primary);
  border-bottom: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  margin-top: 8px;
}

.price-note {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.selection-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* ===== Bookings List Styles ===== */

.bookings-header {
  margin-bottom: 32px;
}

.bookings-header h1 {
  margin: 0 0 20px 0;
  font-size: 28px;
}

.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: -2px;
}

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

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

.tab-content {
  display: none;
}

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

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-card-large {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.booking-date-time-large {
  flex: 1;
}

.date-large {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.time-large {
  font-size: 14px;
  color: #666;
}

.booking-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.booking-service h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.booking-worker-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.worker-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.worker-info-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.worker-rating-small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.booking-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 8px;
}

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

.price-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.booking-notes h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
}

.booking-notes p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.cancellation-info {
  padding: 12px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.info-text {
  margin: 0;
  font-size: 12px;
  color: #856404;
  line-height: 1.6;
}

.booking-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-card-large.completed {
  opacity: 0.8;
}

.reviewed-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #e8f5e9;
  color: #388e3c;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.btn--outline.danger {
  color: var(--danger-color);
  border-color: var(--danger-color);
  background: #fff;
}

.btn--outline.danger:hover {
  background: var(--danger-color);
  color: #ffffff !important;
}

/* ===== Customer Bookings Refresh ===== */
.bookings-header {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.bookings-shell {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.bookings-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tab-nav {
  background: var(--color-bg-light);
  border-radius: var(--radius-full);
  padding: 4px;
}

.tab-btn {
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.bookings-list {
  margin-top: 20px;
}

.booking-card-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.booking-date-spot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.booking-date-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
}

.date-large {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.time-large {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.booking-status {
  border-radius: var(--radius-full);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.booking-status.confirmed,
.booking-status.pending {
  background: #e7f1ff;
  color: #1e63b6;
}

.booking-status.in-progress {
  background: #e8f8ed;
  color: #1f7a3b;
  position: relative;
}

.booking-status.in-progress::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: bookingPulse 1.2s infinite ease-in-out;
}

.booking-status.cancelled {
  background: #f2f4f7;
  color: #7a8699;
}

.booking-worker-info {
  background: #fafcff;
  border: 1px solid #e9eef5;
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.booking-card-actions {
  justify-content: flex-end;
}

.booking-card-actions .btn {
  border-radius: var(--radius-full);
}

@keyframes bookingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ===== Chat Styles ===== */

.chat-main {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  padding: 0;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 64px;
  z-index: 10;
  box-shadow: var(--shadow-xs);
}

.back-link-small a {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
}

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

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-partner-text h2 {
  margin: 0 0 2px 0;
  font-size: 16px;
}

.chat-status {
  font-size: 12px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

/* チャットメニュー */
.chat-menu-container {
  position: relative;
}

.chat-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.chat-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: var(--font-size-base);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-menu-item:hover {
  background-color: var(--color-bg-light);
}

.chat-menu-item span {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f7f7f7;
}

.message-date {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin: 20px 0;
  position: relative;
}

.message-date::before,
.message-date::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #ddd;
}

.message-date::before {
  left: 0;
}

.message-date::after {
  right: 0;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.message.sent {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message.sent .message-content {
  align-items: flex-end;
}

.message-text {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-xs);
}

.message.received .message-text {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.message.sent .message-text {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
}

.message-image {
  margin-bottom: 4px;
}

.message-image img {
  max-width: 200px;
  border-radius: 8px;
}

.message-time {
  font-size: 11px;
  color: #999;
  padding: 0 4px;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 127, 166, 0.12);
}

.chat-attach-btn,
.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
}

.chat-attach-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
}

.chat-send-btn {
  border: none;
  font-size: 18px;
}

/* Socket受信時アニメーション */
.message.message-enter {
  opacity: 0;
  transform: translateY(8px);
}

.message.message-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* 送信直後の自分の吹き出しをキビキビ表示 */
.message.message-sent-enter {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.message.message-sent-enter.is-visible-sent {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.2s ease-out var(--sent-stagger-delay, 0ms),
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) var(--sent-stagger-delay, 0ms);
}

/* ===== Payment Styles ===== */

.payment-header {
  margin-bottom: 32px;
}

.payment-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.payment-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.payment-method-section {
  margin-bottom: 32px;
}

.payment-method-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 8px;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon {
  font-size: 32px;
}

.card-details h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.card-details p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.credit-card {
  position: relative;
  background: linear-gradient(135deg, #f9fbff 0%, #eef4fb 100%);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credit-card__brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.credit-card__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credit-card__brand::before {
  content: 'CARD';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #dfe7f2;
  color: #2c3e50;
}

.card-brand-visa .credit-card__brand::before,
.credit-card__brand[data-brand="visa"]::before {
  content: 'VISA';
  background: #e9f1ff;
  color: #1a4fb5;
}

.card-brand-mastercard .credit-card__brand::before,
.credit-card__brand[data-brand="mastercard"]::before {
  content: 'MC';
  background: #fff1ec;
  color: #b23a20;
}

.card-brand-jcb .credit-card__brand::before,
.credit-card__brand[data-brand="jcb"]::before {
  content: 'JCB';
  background: #eaf8ef;
  color: #1f7a3b;
}

.card-brand-amex .credit-card__brand::before,
.credit-card__brand[data-brand="amex"]::before {
  content: 'AMEX';
  background: #e9fbff;
  color: #0f6f86;
}

.card-brand-discover .credit-card__brand::before,
.credit-card__brand[data-brand="discover"]::before {
  content: 'DISC';
  background: #fff6e9;
  color: #b85b13;
}

.credit-card__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.12em;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.credit-card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.credit-card__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.default-badge {
  padding: 4px 12px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.payment-note {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.payment-note p {
  margin: 4px 0;
}

.payment-history-section {
  margin-bottom: 32px;
}

.history-table {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow-x: auto;
}

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

.history-table th,
.history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.history-table tbody tr:hover {
  background: var(--color-bg-light);
}

.payments-table.modern td:nth-child(1),
.payments-table.modern th:nth-child(1) {
  white-space: nowrap;
}

.receipt-btn {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.receipt-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.muted {
  color: var(--color-text-muted);
}

.history-table th {
  font-weight: 600;
  color: #666;
  background: #f7f7f7;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--color-primary-dark);
}

.monthly-summary {
  margin-bottom: 32px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.summary-card--soft {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
}

.summary-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.summary-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.bulk-download {
  margin-bottom: 32px;
}

.bulk-download-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bulk-download-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.bulk-download-card p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666;
}

.download-options {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== Customer notifications (customer/notifications.html) ===== */

.customer-page .notifications-page-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
}

.customer-page .notifications-page-header__intro {
  flex: 1 1 240px;
  min-width: 0;
}

.customer-page .notifications-page-header__row #markAllRead {
  flex-shrink: 0;
  align-self: flex-start;
}

.customer-page .notification-container {
  margin-bottom: 8px;
}

.customer-page .notifications-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xs);
}

.customer-page .notifications-loading__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.customer-page .notifications-loading__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-border-light);
  border-top-color: var(--color-primary);
  animation: notifications-spin 0.75s linear infinite;
}

@keyframes notifications-spin {
  to {
    transform: rotate(360deg);
  }
}

.customer-page .notifications-error {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: #fff5f5;
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: var(--danger-color-dark);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.customer-page .notifications-controls-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border-light);
}

.customer-page .notifications-section-header {
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 0;
}

.customer-page .notifications-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.customer-page .notifications-filters .filter-select {
  min-width: 148px;
}

.customer-page .notifications-list--cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-page .notification-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px 16px;
  align-items: start;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  border-left: 4px solid transparent;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.customer-page .notification-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--color-border);
  transform: translateY(-2px);
}

.customer-page .notification-card.unread {
  background: #f0fdf4;
  border-left-color: var(--color-primary);
}

.customer-page .notification-card__icon-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.customer-page .notification-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-bg-light);
  font-size: 22px;
  line-height: 1;
}

.customer-page .notification-icon {
  border-radius: var(--radius-full);
}

.customer-page .notification-card.unread .notification-card__icon {
  background: #fff;
}

.customer-page .notification-card__main {
  min-width: 0;
}

.customer-page .notification-card__row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.customer-page .notification-card__row-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.customer-page .notification-card__unread-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  line-height: 1.4;
}

.customer-page .notification-card__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  background: #eef1f5;
  border-radius: 999px;
  padding: 3px 10px;
}

.customer-page .notification-card.unread .notification-card__badge {
  background: rgba(91, 127, 166, 0.18);
  color: var(--color-primary-dark);
}

.customer-page .notification-card__time {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.customer-page .notification-card__title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.customer-page .notification-card__preview {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.customer-page .notification-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.customer-page .notifications-empty {
  text-align: center;
  padding: 48px 24px 56px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed var(--color-border);
}

.customer-page .notifications-empty__icon {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

.customer-page .notifications-empty__title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.customer-page .notifications-empty__hint {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .customer-page .notification-card {
    grid-template-columns: 44px 1fr;
  }
}

/* ===== Modal Styles ===== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.56);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(2px);
}

.modal.is-open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.modal-content--wide {
  max-width: 800px;
}

.modal-inline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close-lg {
  font-size: 1.5rem;
}

.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
}

/* レビュー投稿モーダル — スターレーティング（DOM: value 5→1 + row-reverse で左が1つ星） */
#reviewModal .rating-input {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

#reviewModal .rating-input input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

#reviewModal .rating-input .star-label {
  cursor: pointer;
  font-size: 2.35rem;
  line-height: 1;
  color: #d8dde6;
  transition: color 0.15s ease, transform 0.12s ease;
  user-select: none;
}

#reviewModal .rating-input .star-label:hover {
  transform: scale(1.06);
}

/* 選択中: チェックされた input より後続の星ラベルが左側ブロック（1〜N）に対応して点灯 */
#reviewModal .rating-input input:checked ~ .star-label {
  color: #ffca08;
}

/* ホバー時は一旦選択表示を下げ、ホバー位置までの星をプレビュー */
#reviewModal .rating-input:hover input:checked ~ .star-label {
  color: #d8dde6;
}

#reviewModal .rating-input:hover .star-label:hover,
#reviewModal .rating-input:hover .star-label:hover ~ .star-label {
  color: #ffca08;
}

#reviewModal .rating-input input:focus-visible + .star-label {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.modal-body {
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-actions .btn-action {
  min-height: 46px;
}

.modal-summary {
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-3);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.modal-summary p {
  margin: 4px 0;
}

.modal-summary-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.chat-image-clickable {
  cursor: pointer;
}

.modal-image-viewer {
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.image-viewer-frame {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.image-viewer-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.worker-profile-modal-card {
  padding: var(--space-4);
}

.worker-profile-modal-top {
  text-align: center;
  margin-bottom: 1.5rem;
}

.worker-profile-modal-avatar {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.worker-profile-modal-name {
  margin-bottom: 0.5rem;
}

.worker-profile-modal-rating,
.worker-profile-modal-grid,
.worker-profile-modal-bio-wrap {
  margin-bottom: 1.5rem;
}

.worker-profile-modal-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-bold);
}

.worker-profile-modal-bio {
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
}

.worker-profile-modal-reviews {
  margin-top: 1.5rem;
}

.worker-profile-modal-reviews-title {
  margin-bottom: 1rem;
}

.worker-profile-modal-review-item {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.worker-profile-modal-review-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.worker-profile-modal-review-date {
  font-size: 0.875rem;
  color: #666;
}

.worker-profile-modal-review-comment {
  margin: 0;
  white-space: pre-wrap;
}

.support-modal-field {
  margin-top: 1.5rem;
}

.support-modal-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-bold);
}

.support-modal-box {
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: var(--radius-sm);
}

.support-modal-box-pre {
  white-space: pre-wrap;
}

.support-modal-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.support-chat-link-wrap {
  margin-bottom: 1rem;
}

.support-chat-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: var(--radius-md);
}

.support-chat-row {
  margin-bottom: 1rem;
}

.support-chat-row.is-customer {
  text-align: right;
}

.support-chat-bubble {
  display: inline-block;
  max-width: 70%;
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: var(--radius-md);
}

.support-chat-bubble.is-customer {
  background: #5B7FA6;
  color: #fff;
}

.support-chat-meta {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

/* ===== Worker Register Refresh ===== */
.auth-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.auth-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  padding: var(--space-6);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.auth-logo {
  display: inline-block;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.auth-header h1 {
  margin: 0 0 var(--space-2) 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-section.section-block.card-standard {
  margin-bottom: 0;
  padding: var(--space-5);
}

.form-section__title {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--font-size-xl);
}

.form-step-note {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--font-size-sm);
}

.terms-card {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.register-submit-btn {
  min-height: 52px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.file-preview-item {
  margin-top: var(--space-3);
}

.preview-image {
  max-width: 300px;
  max-height: 200px;
  margin-top: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.upload-status {
  margin-top: var(--space-2);
}

#errorMessage,
#successMessage {
  display: none;
  margin-bottom: var(--space-3);
}

.cancellation-fee-info {
  margin: 20px 0;
}

.cancellation-fee-info ul {
  margin: 12px 0;
  padding-left: 24px;
}

.cancellation-fee-info li {
  margin-bottom: 8px;
  font-size: 14px;
}

.fee-amount {
  margin-top: 16px;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 14px;
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 12px;
}

/* ===== Responsive Updates for Customer Pages ===== */

@media (max-width: 768px) {
  .customer-header .nav {
    display: none;
  }

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

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

  .worker-card {
    flex-direction: column;
  }

  .worker-stats {
    flex-direction: column;
    gap: 12px;
  }

  .worker-stats.worker-profile-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .booking-card-actions {
    flex-direction: column;
  }

  .booking-card-actions .btn {
    width: 100%;
  }

  .chat-messages {
    padding: 12px;
  }

  .message-content {
    max-width: 85%;
  }

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

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .download-options {
    flex-direction: column;
    align-items: stretch;
  }

  .download-options .btn {
    width: 100%;
  }
}

/* ===== Favorites Page (customer) ===== */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.favorite-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.favorite-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.favorite-card.is-removing {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.favorite-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #f2c3c3;
  background: #fff5f5;
  color: #e74c3c;
  box-shadow: var(--shadow-xs);
}

.favorite-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.favorite-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f0fa, #f3f8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.favorite-worker-info h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.favorite-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.favorite-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 154, 107, 0.16);
  color: #5b6a3f;
  font-weight: 600;
}

.favorite-voice {
  border-left: 3px solid var(--color-primary-light);
  background: #f9fbff;
  border-radius: 8px;
  padding: 10px 12px;
}

.favorite-voice p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.favorite-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.favorite-actions .btn {
  flex: 1;
}

.favorites-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  padding: 40px 20px;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }

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

/* ===== Admin Page Styles ===== */

.admin-login-page {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-login-page,
.auth-page {
  background: linear-gradient(135deg, #FFC107 0%, #FFFFFF 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worker-login-page {
  background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  color: var(--color-primary);
}

.customer-login-page .login-header h1 {
  color: #FF8A65;
}

.worker-login-page .login-header h1 {
  color: #66BB6A;
}

.login-header h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-block {
  width: 100%;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.login-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-security-note {
  margin-top: var(--space-5);
  padding: var(--space-3);
  background: #fff3cd;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: #856404;
  text-align: center;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
}

.login-links a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-links a:hover,
.login-links a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
  outline: none;
}

.customer-login-page .login-links a {
  color: #FF8A65;
}

.customer-login-page .login-links a:hover,
.customer-login-page .login-links a:focus-visible {
  color: #F4511E;
}

.worker-login-page .login-links a {
  color: #66BB6A;
}

.worker-login-page .login-links a:hover,
.worker-login-page .login-links a:focus-visible {
  color: #4CAF50;
}

.customer-login-page .btn-primary {
  background: #FF8A65;
  border-color: #FF8A65;
}

.customer-login-page .btn-primary:hover,
.customer-login-page .btn-primary:focus-visible {
  background: #F4511E;
  border-color: #F4511E;
}

.customer-login-page .btn-secondary {
  border-color: #FF8A65;
  color: #FF8A65;
}

.customer-login-page .btn-secondary:hover,
.customer-login-page .btn-secondary:focus-visible {
  background: #FF8A65;
  color: #fff;
  border-color: #FF8A65;
}

.worker-login-page .btn-primary {
  background: #66BB6A;
  border-color: #66BB6A;
}

.worker-login-page .btn-primary:hover,
.worker-login-page .btn-primary:focus-visible {
  background: #4CAF50;
  border-color: #4CAF50;
}

.worker-login-page .btn-secondary {
  border-color: #66BB6A;
  color: #66BB6A;
}

.worker-login-page .btn-secondary:hover,
.worker-login-page .btn-secondary:focus-visible {
  background: #66BB6A;
  color: #fff;
  border-color: #66BB6A;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: var(--space-5) 0;
  text-align: center;
}

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

.login-divider span {
  padding: 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-primary-light);
  color: var(--color-bg);
  border-color: var(--color-primary-light);
}

.admin-page {
  background: #f4f6f8;
  min-height: 100vh;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-inner {
  max-width: 100%;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}

.admin-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 32px;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.admin-nav a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.admin-nav a:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.admin-nav a.active {
  background: var(--color-primary);
  color: #fff;
}

.admin-user-info {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-user-info .btn-icon {
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.admin-role {
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  font-weight: 600;
}

.admin-name {
  color: #333;
}

.admin-main {
  padding: 32px 20px;
}

.admin-dashboard-page .admin-main {
  padding-top: 0;
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-page-header {
  margin-bottom: 32px;
}

.admin-page-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.admin-page-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.kpi-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-dashboard-hero {
  background: linear-gradient(135deg, #20344f 0%, #2b4a6d 100%);
  color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 40px 28px 110px;
  margin: -32px -20px 0;
  box-shadow: var(--shadow-sm);
}

.admin-dashboard-hero h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
}

.admin-dashboard-hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 14px;
}

.admin-stats-overlap {
  margin-top: -74px;
  position: relative;
  z-index: 2;
}

.kpi-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.kpi-summary .card-standard {
  margin-bottom: 0;
}

.admin-stat-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(24, 39, 75, 0.08);
}

.kpi-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 12px;
}

.kpi-content {
  flex: 1;
}

.kpi-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.admin-stat-val {
  font-size: 34px;
  letter-spacing: 0.01em;
}

.kpi-change {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.kpi-change.positive {
  color: #388e3c;
}

.admin-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-5);
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
  border: 1px solid #e8edf3;
}

.admin-card .section-title {
  text-align: left;
  margin-bottom: 0;
}

.admin-filter-section {
  margin-bottom: 24px;
}

.filter-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.admin-table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: var(--color-bg-light);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
  letter-spacing: 0.02em;
}

.admin-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.admin-table tr:hover {
  background: var(--color-bg-warm);
}

.admin-dashboard-table th {
  background: #f6f9fc;
  color: #54657a;
}

.admin-dashboard-table th,
.admin-dashboard-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.admin-dashboard-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.admin-dashboard-table tbody tr:hover {
  background: #f0f5fb;
}

.admin-table tr.pending-row {
  background: #fff3cd;
}

.admin-table tr.error-row {
  background: #ffebee;
}

.status-badge.suspended {
  background: #ffebee;
  color: #c62828;
}

.status-badge.error {
  background: #ffebee;
  color: #c62828;
}

.status-badge.approved {
  background: #e8f5e9;
  color: #388e3c;
}

.inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inquiry-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: 0.2s ease;
}

.inquiry-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.inquiry-item.urgent {
  border-left: 4px solid #dc3545;
}

.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inquiry-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inquiry-id {
  font-weight: 700;
  color: var(--color-primary);
}

.inquiry-type {
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.inquiry-priority {
  padding: 4px 12px;
  background: #ffebee;
  color: #c62828;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

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

.inquiry-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.inquiry-content p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

.inquiry-text {
  margin-top: 8px;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.inquiry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.inquiry-status {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inquiry-assignee {
  font-size: 12px;
  color: #666;
}

.inquiry-actions {
  display: flex;
  gap: 8px;
}

.chart-container {
  margin: 20px 0;
}

.chart-placeholder {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: #999;
}

.chart-note {
  font-size: 12px;
  margin-top: 8px;
}

.admin-chart-card {
  padding-bottom: 20px;
}

.admin-chart-wrap {
  margin-top: 16px;
}

.admin-chart-area {
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid #dce5ef;
  background-color: #f9fcff;
  background-image:
    linear-gradient(to right, rgba(120, 144, 156, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 144, 156, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.sales-by-area {
  margin-top: 32px;
}

.sales-by-area h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
}

.settings-card {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-card h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.template-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  cursor: pointer;
}

/* ===== Responsive for Admin Pages ===== */

@media (max-width: 1200px) {
  .admin-nav {
    display: none;
  }

  .kpi-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-dashboard-hero {
    margin: -12px -12px 0;
    padding: 28px 16px 88px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .admin-dashboard-hero h1 {
    font-size: 26px;
  }

  .admin-stats-overlap {
    margin-top: -58px;
  }

  .admin-stat-val {
    font-size: 28px;
  }

  .admin-header-inner {
    flex-wrap: nowrap;
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }

  .admin-user-info {
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
    gap: 8px;
  }

  .kpi-summary {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .sales-summary {
    grid-template-columns: 1fr;
  }

  .inquiry-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .worker-header .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .worker-header .header-actions .btn-icon,
  .worker-header .header-actions .avatar {
    max-width: 64px;
    padding-left: 7px;
    padding-right: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-logo {
    font-size: 15px;
    margin-right: 0;
  }

  .admin-user-info {
    gap: 6px;
  }

  .admin-name {
    display: none;
  }

  .admin-role {
    padding: 4px 8px;
    font-size: 12px;
  }

  .admin-user-info .btn-icon {
    padding: 7px 8px;
  }
}

/* ===== Landing Page Styles ===== */

.landing-page {
  overflow-x: hidden;
}

.landing-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(141,110,99,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(93,64,55,0.05);
  backdrop-filter: blur(10px);
}

/* カラフルな背景 - ナチュラルなカラーパレット */
.light-blue-bg {
  background: #E8F5E9;
}

.orange-bg {
  background: #FFF8E1;
  color: #5D4037;
}

.light-yellow-bg {
  background: #F5F5DC;
}

/* ヒーローセクション */
.hero-section {
  padding: 80px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #5D4037;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: #5D4037;
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: #6D4C41;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-media {
  position: relative;
}

.video-placeholder {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(93,64,55,0.2);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-xl);
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #5D4037;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 20px rgba(93,64,55,0.2);
}

.play-button:hover {
  transform: scale(1.1);
  background: #fff;
}

/* Aboutセクション */
.about-section {
  padding: 100px 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-title-white {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #5D4037;
  margin: 0 0 32px 0;
  line-height: 1.2;
}

.about-text {
  font-size: 16px;
  line-height: 2;
  color: #6D4C41;
}

.about-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(200,230,201,0.3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #5D4037;
  border: 2px dashed rgba(93,64,55,0.2);
}

/* サービスセクション */
.services-section {
  padding: 120px 0 80px;
}

.section-title-box {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-outline {
  display: inline-block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #5D4037;
  border: 3px solid #8D6E63;
  padding: 16px 48px;
  border-radius: var(--radius-xl);
  background: #fff;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(93,64,55,0.1);
  transition: 0.3s ease;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(93,64,55,0.2);
}

.service-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.image-placeholder-small {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.service-content {
  padding: 24px;
}

.service-content h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #5D4037;
}

.service-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* メリットセクション */
.advantages-section {
  padding: 100px 0;
}

.advantages-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.advantages-header {
  text-align: left;
}

.section-title-orange {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #8D6E63;
  margin: 0;
  line-height: 1.2;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.advantage-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(93,64,55,0.1);
  text-align: center;
  transition: 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(93,64,55,0.2);
}

.advantage-icon {
  margin-bottom: 24px;
}

.icon-illustration {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: #C8E6C9;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: 0 4px 15px rgba(93,64,55,0.1);
}

.advantage-content h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #333;
}

.advantage-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* FAQセクション */
.faq-section {
  padding: 100px 0;
}

.faq-container {
  max-width: 1200px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(93,64,55,0.08);
}

.faq-q {
  font-weight: 700;
  font-size: 15px;
  color: #8D6E63;
  margin-bottom: 12px;
}

.faq-a {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* レビューセクション */
.reviews-section {
  padding: 100px 0;
}

.reviews-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.reviews-header {
  position: relative;
}

.review-illustration {
  font-size: 120px;
  margin-top: 20px;
  opacity: 0.8;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-block {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(93,64,55,0.1);
}

.review-stars {
  color: #FFB74D;
  font-size: 20px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.review-author {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin: 0;
}

/* お問い合わせセクション */
.contact-section {
  padding: 100px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.section-title-white-large {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #5D4037;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 16px;
  color: #6D4C41;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input-white,
.form-textarea-white {
  width: 100%;
  padding: 16px;
  border: 2px solid rgba(141,110,99,0.3);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  color: #5D4037;
  font-size: 14px;
  font-family: inherit;
  transition: 0.3s ease;
}

.form-input-white::placeholder,
.form-textarea-white::placeholder {
  color: rgba(93,64,55,0.6);
}

.form-input-white:focus,
.form-textarea-white:focus {
  outline: none;
  border-color: #8D6E63;
  background: #fff;
}

.btn-white {
  background: #8D6E63;
  color: #fff;
  border: none;
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(141,110,99,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-icon:hover {
  background: rgba(141,110,99,0.3);
  transform: scale(1.1);
}

.contact-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-placeholder {
  font-size: 120px;
  opacity: 0.8;
}

.landing-footer {
  background: #333;
  color: #eee;
  padding: 60px 0 40px;
  font-size: 13px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .hero-container,
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
    min-height: auto;
  }

  .about-section,
  .services-section,
  .advantages-section,
  .faq-section,
  .reviews-section,
  .contact-section {
    padding: 60px 0;
  }

  .services-grid,
  .advantages-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title-white,
  .section-title-orange {
    font-size: 32px;
  }

  .video-thumbnail {
    clip-path: none;
  }
}

/* ===== TOPページ専用スタイル（index.html） ===== */

/* ヘッダー（BEM記法） */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
}

@media (min-width: 768px) {
  .header__inner {
    padding: var(--space-4) 0;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.logo__image {
  height: 48px;
  width: auto;
  display: block;
}

.logo__text {
  display: inline-block;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .header__nav {
    gap: var(--space-4);
  }
}

.nav__link {
  font-size: 0.875rem;
  color: #2c3e50;
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--color-bg-light);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ヒーロー */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-image: url('../images/common/alyson-mcphee-yWG-ndhxvqY-unsplash.jpg');
  /* 背景画像の最適化: 画像はpreloadで優先読み込み */
  background-size: cover;
  background-position: center;
  background-color: #E8F5E9;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.5);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-bg);
  padding: var(--space-6) 0;
}

.hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3rem;
  }
}

.hero__subtitle {
  font-size: 1rem;
  margin-bottom: var(--space-5);
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: var(--font-weight-medium);
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
    color: #ffffff !important;
  }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }
}

.hero__helper {
  font-size: 0.875rem;
  opacity: 0.9;
}

.link {
  color: var(--color-bg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link:hover,
.link:focus-visible {
  opacity: 0.8;
  outline: 2px solid var(--color-bg);
  outline-offset: 2px;
}

/* ボタン（BEM記法） */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-primary-light);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* カードリスト */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-list--three {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-list--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カテゴリカード */
.category-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.category-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--color-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.category-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-4) var(--space-4) var(--space-2);
}

.category-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 var(--space-4) var(--space-4);
}

/* サービスの仕組み */
.how-it-works-section {
  background: var(--color-bg-light);
}

.how-it-works__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-6);
}

.how-it-works__cta {
  text-align: center;
  margin-top: var(--space-6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn--flow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--color-primary);
  color: var(--color-bg);
  border: 2px solid var(--color-primary);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 0 auto;
}

.btn--flow:hover,
.btn--flow:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--flow__arrow {
  width: 1em;
  height: 1em;
  object-fit: contain;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.btn--flow:hover .btn--flow__arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .how-it-works__text {
    font-size: 1.125rem;
  }
}

/* 特徴カード */
.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.feature-card__icon-image {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* CTAセクション */
.cta-section {
  background: var(--color-bg-light);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.cta {
  text-align: center;
}

.cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .cta__title {
    font-size: 1.75rem;
  }
}

.cta__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 768px) {
  .cta__buttons {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }
}

/* ステップ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.step {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-4);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* FAQ（BEM記法） */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.faq__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq__question:hover {
  background: var(--color-bg-light);
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq__answer p {
  margin: 0;
}

/* フッター（BEM記法） */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-bg);
  outline: 2px solid var(--color-bg);
  outline-offset: 2px;
}

.footer__copy {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* セクションタイトル（BEM記法） */
.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .section__title {
    font-size: 2rem;
    margin-bottom: var(--space-6);
  }
}

/* ===== エラーページ ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  padding: var(--space-4);
}

.error-container {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.error-content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.error-code {
  font-size: 8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

@media (min-width: 768px) {
  .error-code {
    font-size: 10rem;
  }
}

.error-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

@media (min-width: 768px) {
  .error-title {
    font-size: var(--font-size-3xl);
  }
}

.error-message {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

/* ===== ご利用の流れページ ===== */

/* パンくずリスト */
.breadcrumb {
  background: var(--color-bg-light);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-sm);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
  content: '>';
  margin-left: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumb__item a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__item a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
  color: var(--color-text-secondary);
}

/* ページヘッダー */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: var(--space-8) 0;
  text-align: center;
}

.page-header__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-4) 0;
  line-height: var(--line-height-tight);
}

.page-header__subtitle {
  font-size: var(--font-size-lg);
  margin: 0;
  opacity: 0.95;
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: 2.5rem;
  }
  
  .page-header__subtitle {
    font-size: var(--font-size-xl);
  }
}

/* フローステップ */
.flow-section {
  padding: var(--space-8) 0;
}

.flow-section--worker {
  background: var(--color-bg-light);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: var(--space-8) 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.flow-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 60px;
  width: 2px;
  height: calc(100% + var(--space-6));
  background: var(--color-border);
}

.flow-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.flow-section--worker .flow-step__number {
  background: var(--color-accent);
}

.flow-step__content {
  flex: 1;
  padding-top: var(--space-1);
}

.flow-step__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--space-3) 0;
  color: var(--color-text);
}

.flow-step__text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

.flow-cta {
  text-align: center;
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .flow-steps {
    gap: var(--space-7);
  }
  
  .flow-step {
    gap: var(--space-6);
  }
  
  .flow-step__number {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-xl);
  }
  
  .flow-step:not(:last-child)::after {
    left: 24px;
    top: 72px;
  }
  
  .flow-step__title {
    font-size: var(--font-size-2xl);
  }
  
  .flow-step__text {
    font-size: var(--font-size-lg);
  }
}

@media (min-width: 768px) {
  .error-message {
    font-size: var(--font-size-lg);
  }
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .error-actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }
}

.error-actions .btn {
  min-width: 200px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}

.error-links a {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--color-primary-dark);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== 法的文書ページ ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg);
  line-height: var(--line-height-relaxed);
}

.legal-content__updated {
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.legal-section {
  margin-bottom: var(--space-7);
}

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

.legal-section__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary);
}

.legal-section__subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.legal-list {
  margin: var(--space-4) 0;
  padding-left: var(--space-5);
  color: var(--color-text);
}

.legal-list li {
  margin-bottom: var(--space-3);
  line-height: var(--line-height-relaxed);
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list ol {
  margin-top: var(--space-2);
  padding-left: var(--space-5);
}

.legal-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-2);
}

.legal-contact {
  background: var(--color-bg-light);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  border-left: 4px solid var(--color-primary);
}

.legal-contact p {
  margin-bottom: var(--space-2);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-content__footer {
  text-align: right;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-weight: var(--font-weight-medium);
}

@media (min-width: 768px) {
  .legal-content {
    padding: var(--space-8) var(--space-6);
  }
  
  .legal-section__title {
    font-size: var(--font-size-2xl);
  }
  
  .legal-section__subtitle {
    font-size: var(--font-size-xl);
  }
}

/* ===== ワーカー設定サブページ（通知設定・パスワード変更）===== */
.worker-settings-page .worker-header--compact .header-inner {
  min-height: 52px;
  height: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}

.worker-settings-page .worker-header--compact .nav a {
  padding: 6px 10px;
  font-size: 13px;
}

.worker-settings-page .worker-header--compact .logo {
  font-size: 1.05rem;
}

.worker-settings-main {
  padding-top: var(--space-4);
}

.worker-settings-stack {
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  box-sizing: border-box;
}

.worker-settings-hero.page-header--compact {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border-radius: 12px;
  margin-bottom: var(--space-4);
}

.worker-settings-hero .page-header__title--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 var(--space-3);
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}

.worker-settings-hero .page-header__title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.worker-settings-hero .page-header__subtitle--compact {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 32rem;
  opacity: 0.95;
}

.settings-card {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.07),
    0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--color-border-light);
  padding: var(--space-6) var(--space-5);
  box-sizing: border-box;
}

.settings-card__loading {
  margin: var(--space-4) 0;
}

.settings-card__intro {
  margin: 0 0 var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.settings-card__footnote {
  margin: var(--space-5) 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.settings-card__footnote a {
  color: var(--color-primary);
  font-weight: 500;
}

.settings-pref-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.settings-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  min-height: 56px;
  border-bottom: 1px solid var(--color-border-light);
}

.settings-pref-row--last {
  border-bottom: none;
}

.settings-pref-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: var(--space-2);
  text-align: left;
}

.settings-pref-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.settings-pref-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* CSS のみのトグル（チェックボックス） */
.settings-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-switch-input {
  position: absolute;
  opacity: 0;
  width: 52px;
  height: 30px;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.settings-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: #c8d0dc;
  transition: background 0.22s ease;
  pointer-events: none;
}

.settings-switch-thumb {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  z-index: 1;
}

.settings-switch-input:focus-visible ~ .settings-switch-track {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.settings-switch-input:checked + .settings-switch-track {
  background: var(--color-primary);
}

.settings-switch-input:checked + .settings-switch-track + .settings-switch-thumb {
  transform: translateX(22px);
}

.settings-switch-input:disabled + .settings-switch-track {
  opacity: 0.5;
}

.settings-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}

.settings-form-actions--password {
  margin-top: var(--space-5);
}

.settings-btn-back {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 500;
}

.settings-btn-back:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.settings-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--color-text);
}

.settings-form-group .settings-form-input {
  margin-top: 0;
}

.settings-form-separator {
  border: 0;
  height: 1px;
  margin: var(--space-6) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border-light) 12%,
    var(--color-border-light) 88%,
    transparent 100%
  );
}

.settings-password-section .settings-form-group + .settings-form-group {
  margin-top: var(--space-4);
}

@media (max-width: 480px) {
  .settings-pref-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    min-height: 0;
  }

  .settings-pref-text {
    padding-right: 0;
  }

  .settings-switch {
    align-self: flex-end;
  }
}

/* ===== 依頼者ダッシュボード「今後の予約」モダンカード ===== */
.customer-dashboard-upcoming .customer-upcoming-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--space-4));
  padding: 4px var(--space-4) 12px;
  scroll-snap-type: x proximity;
}

@media (min-width: 768px) {
  .customer-dashboard-upcoming .customer-upcoming-scroll {
    margin: 0;
    padding: 4px 0 12px;
  }
}

.customer-upcoming-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: stretch;
}

.customer-upcoming-empty {
  flex: 1 1 100%;
  text-align: center;
  padding: var(--space-5);
}

.customer-upcoming-card {
  position: relative;
  flex: 0 0 min(300px, 86vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.customer-upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border-color: #dce3ec;
}

.customer-upcoming-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1.2;
  max-width: calc(100% - 88px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-upcoming-badge--confirmed {
  background: #e8f4fc;
  color: #1565a8;
  border: 1px solid #c5dff3;
}

.customer-upcoming-badge--progress {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.customer-upcoming-badge--done {
  background: #f1f8e9;
  color: #558b2f;
  border: 1px solid #dcedc8;
}

.customer-upcoming-badge--cancelled {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.customer-upcoming-card__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  padding: 14px 12px 14px 14px;
  min-height: 148px;
}

.customer-upcoming-datebox {
  flex-shrink: 0;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #bbf7d0;
  color: #065f46;
  padding: 8px 4px;
}

.customer-upcoming-datebox__day {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.customer-upcoming-datebox__dow {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.9;
}

.customer-upcoming-datebox__month {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.75;
}

.customer-upcoming-datebox--pending {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #92400e;
  gap: 4px;
}

.customer-upcoming-datebox__icon {
  font-size: 22px;
  line-height: 1;
}

.customer-upcoming-datebox__pending-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.customer-upcoming-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  padding-top: 2px;
}

.customer-upcoming-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  padding-right: 72px;
}

.customer-upcoming-card__time {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.customer-upcoming-worker {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.customer-upcoming-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.customer-upcoming-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customer-upcoming-avatar__fallback {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.customer-upcoming-worker__text {
  flex: 1;
  min-width: 0;
}

.customer-upcoming-worker__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.customer-upcoming-worker__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.customer-upcoming-worker__rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.customer-upcoming-stars {
  font-size: 12px;
  letter-spacing: -1px;
  line-height: 1;
  color: #fbbf24;
  user-select: none;
}

.customer-upcoming-rating-num {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.customer-upcoming-card__address {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-upcoming-card__actions {
  margin-top: auto;
  padding-top: 10px;
}

.customer-upcoming-card__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
