/* ========================================
   L-SHIFT 販売サイト - CSS
   ======================================== */

:root {
  /* L-SHIFTナチュラルカラー */
  --primary: #5B8A72;
  --primary-dark: #4A7361;
  --primary-light: #E8F0EC;
  --secondary: #E8A07E;
  --secondary-dark: #D4837E;
  --text: #4A4540;
  --text-muted: #8B8178;
  --bg: #FAF8F3;
  --bg-gray: #F5F2EB;
  --bg-card: #FFFFFF;
  --border: #E5DFD7;
  --accent-warm: #E8A07E;
  --accent-cool: #89B9D0;
  --accent-soft: #D4C5B5;
  --shadow: 0 4px 6px -1px rgba(74,69,64,0.08), 0 2px 4px -2px rgba(74,69,64,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(74,69,64,0.1), 0 4px 6px -4px rgba(74,69,64,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-large {
  padding: 20px 48px;
  font-size: 18px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.header-cta {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.header-cta:hover {
  background: var(--primary-dark);
}

/* ========================================
   ヒーロー
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, #F0EBE3 100%);
  text-align: center;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--text);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
}

.hero-desc {
  font-size: 20px;
  margin-bottom: 16px;
}

.hero-desc strong {
  color: var(--primary);
  font-size: 24px;
}

.hero-note {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   セクション共通
   ======================================== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ========================================
   悩みセクション
   ======================================== */
.problems {
  background: var(--bg-gray);
}

.problem-list {
  list-style: none;
  max-width: 600px;
  margin: 40px auto;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}

.checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 4px;
}

.problem-item strong {
  color: var(--secondary-dark);
}

.problem-cta {
  text-align: center;
  font-size: 20px;
  margin-top: 40px;
}

.problem-cta strong {
  color: var(--primary);
}

/* ========================================
   デモセクション
   ======================================== */
.demo-video {
  max-width: 700px;
  margin: 0 auto;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.video-placeholder:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.play-button {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}

.video-placeholder p {
  color: white;
  font-size: 14px;
}

.demo-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 14px;
}

/* ========================================
   特徴セクション
   ======================================== */
.features {
  background: var(--bg-gray);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
}

/* ========================================
   比較セクション
   ======================================== */
.comparison-table {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.comparison-header {
  background: var(--bg-gray);
  font-weight: 700;
}

.comparison-col {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-col.label {
  text-align: left;
  font-weight: 500;
}

.comparison-col.before {
  color: var(--text-muted);
}

.comparison-col.after {
  background: var(--primary-light);
}

.comparison-col.highlight {
  color: var(--primary);
  font-weight: 700;
}

.comparison-col.big {
  font-size: 20px;
}

/* ========================================
   testimonials
   ======================================== */
.testimonials {
  background: var(--bg-gray);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name {
  font-weight: 700;
}

.author-role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   料金セクション
   ======================================== */
.pricing-card {
  max-width: 500px;
  margin: 40px auto;
  background: white;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary);
}

.price-main {
  margin-bottom: 24px;
}

.price-currency {
  font-size: 20px;
  color: var(--text-muted);
}

.price-amount {
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
}

.price-unit {
  font-size: 16px;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-trial {
  background: var(--bg-gray);
  margin: -48px;
  margin-top: 32px;
  padding: 32px;
  border-radius: 0 0 14px 14px;
}

.trial-badge {
  font-size: 14px;
  color: var(--text-muted);
}

.trial-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
}

.trial-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-plans {
  margin-top: 48px;
}

.plans-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 24px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}

.plan-card.popular {
  border: 2px solid var(--primary);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.plan-period {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 14px;
}

.plan-price span {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.plan-save {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 700;
  margin-top: 8px;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  background: var(--bg-gray);
}

.faq-list {
  max-width: 700px;
  margin: 40px auto;
}

.faq-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.faq-question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-question::before {
  content: "Q. ";
  color: var(--primary);
}

.faq-answer {
  color: var(--text-muted);
}

.faq-answer::before {
  content: "A. ";
  color: var(--secondary);
  font-weight: 700;
}

/* ========================================
   CTA
   ======================================== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 28px;
  }
}

.cta-desc {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.8;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: #1f2937;
  color: white;
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   モーダル
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* フォーム */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.required {
  color: #ef4444;
}

/* プラン選択 */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.plan-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.plan-option input[type="radio"]:checked + .plan-label {
  color: var(--primary);
}

.plan-option.recommended {
  border-color: var(--primary);
  background: var(--primary-light);
}

.plan-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.plan-label .plan-name {
  font-weight: 700;
}

.plan-label .plan-price {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-label .plan-price small {
  color: var(--secondary);
  font-weight: 500;
}

.plan-label .badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.form-note {
  background: var(--bg-gray);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.form-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 決済完了モーダル */
.success-modal {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
}

.success-message {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.license-info {
  background: var(--bg-gray);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.license-key {
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  background: white;
  padding: 12px;
  border-radius: 8px;
  margin: 8px 0 16px;
  text-align: center;
  letter-spacing: 2px;
}

.license-note {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 12px;
}

/* ========================================
   料金セクション追加スタイル
   ======================================== */
.pricing-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-per {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plans-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
}

@media (max-width: 768px) {
  .plans-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .plans-grid.four-col {
    grid-template-columns: 1fr;
  }
}

.plan-monthly {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ========================================
   事業所数セレクター
   ======================================== */
.facility-count-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.count-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.count-btn:active {
  background: var(--primary);
  color: white;
}

.facility-count-wrapper input[type="number"] {
  width: 60px;
  height: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 8px;
  -moz-appearance: textfield;
}

.facility-count-wrapper input[type="number"]::-webkit-outer-spin-button,
.facility-count-wrapper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.count-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   合計金額ボックス
   ======================================== */
.total-price-box {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.total-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.total-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.total-note {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 500;
  margin-top: 8px;
}

/* ========================================
   プランオプション追加スタイル
   ======================================== */
.plan-label .discount {
  color: var(--secondary);
  font-weight: 500;
  font-size: 12px;
}
