/* ========================================
   LayChat - 共通スタイル
   ブランドカラー:
     Primary:  #1E40AF (深いブルー)
     Accent:   #0EA5E9 (シアンブルー)
     CTA:      #F97316 (オレンジ)
     Text:     #0F172A
     BG:       #F8FAFC
   ======================================== */

:root {
  --primary:    #1E40AF;
  --primary-dark: #1e3a8a;
  --accent:     #0EA5E9;
  --cta:        #F97316;
  --cta-hover:  #ea6c10;
  --text:       #0F172A;
  --text-sub:   #475569;
  --border:     #E2E8F0;
  --bg:         #F8FAFC;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

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

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ========================================
   ヘッダー
   ======================================== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--cta);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--cta-hover) !important;
}

/* ========================================
   共通レイアウト
   ======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--cta-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* ========================================
   特徴セクション
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   サービス比較テーブル
   ======================================== */
.comparison-section {
  background: var(--bg);
}

.comparison-wrap {
  margin-top: 40px;
}

.comparison-scroll {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
}

.comparison-table thead tr {
  background: var(--primary);
  color: white;
}

.comparison-table th {
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

.comparison-table th.feature-col {
  text-align: left;
  min-width: 140px;
  background: #1a3a8c;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.comparison-table th.laychat-col {
  background: #f97316;
  border-right: 1px solid rgba(255,255,255,0.2);
  min-width: 110px;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #f1f5f9;
}

.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  color: var(--text-sub);
  vertical-align: middle;
  line-height: 1.5;
}

.comparison-table td small {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background: #f8fafc;
  border-right: 1px solid var(--border);
  font-size: 0.85rem;
}

.comparison-table td.laychat-col {
  background: #fff8f0;
  font-weight: 600;
  color: var(--text);
  border-right: 2px solid #f97316;
}

.comparison-table td.cloud-cell {
  color: #94a3b8;
  font-size: 0.82rem;
}

.badge-yes {
  display: inline-block;
  color: #16a34a;
  font-size: 0.88rem;
  font-weight: 600;
}

.badge-no {
  display: inline-block;
  color: #dc2626;
  font-size: 0.88rem;
}

.badge-part {
  display: inline-block;
  color: #d97706;
  font-size: 0.82rem;
  font-weight: 500;
}

.comparison-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .comparison-table th,
  .comparison-table td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }
  .comparison-table th.feature-col,
  .comparison-table td.feature-name {
    min-width: 110px;
  }
}

/* ========================================
   プラン比較テーブル
   ======================================== */
.plans-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.plan-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  background: var(--white);
  position: relative;
}

.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,64,175,0.08);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-sub);
}

.plan-desc {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-features li.no::before {
  content: "—";
  color: #CBD5E1;
}

.plan-features li.no {
  opacity: 0.5;
}

.btn-plan {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-plan:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.btn-plan.filled {
  background: var(--primary);
  color: var(--white);
}

.btn-plan.filled:hover {
  background: var(--primary-dark);
}

/* ========================================
   フッター
   ======================================== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo span {
  color: var(--accent);
}

.footer-logo p {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.footer-company {
  margin-top: 16px;
}

.footer-company p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-company a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-company a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========================================
   内部ページ共通（privacy, terms, support）
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  opacity: 0.8;
  font-size: 1rem;
}

.page-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 12px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content .last-updated {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 40px;
}

/* お問い合わせフォーム */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

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

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

.form-group label .required {
  color: #EF4444;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

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

.btn-submit {
  background: var(--cta);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: var(--cta-hover);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  nav {
    gap: 16px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 32px;
  }

  .contact-form {
    padding: 24px;
  }
}
