/* =========================================
   Base (Design Tokens)
   Slack公式ブランドカラー（Aubergine + 4-color mark）ベース。
   Disco勤怠（青基調・寒色グレー）とは意図的に配色系統を変えている
========================================= */
:root {
  --aubergine: #4A154B;
  --aubergine-dark: #350D36;
  --aubergine-light: #F5EBF6;

  --slack-yellow: #ECB22E;
  --slack-green: #2EB67D;
  --slack-red: #E01E5A;
  --slack-blue: #36C5F0;

  --bg: #FFFDFD;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(74, 21, 75, 0.12);

  --text-main: #1D1C1D;
  --text-sub: #616061;

  --radius: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 8px 26px rgba(74, 21, 75, 0.08);
  --shadow-card: 0 12px 38px rgba(74, 21, 75, 0.16);
}

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

body {
  font-family: var(--font-heading), "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

h1, h2, h3 {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 10px; }

p {
  margin-bottom: 18px;
  color: var(--text-sub);
  font-size: 17px;
}

/* =========================================
   Header（Glass UI）
========================================= */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.6s ease;
}
.header.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.logo {
  font-size: 22px;
  font-weight: 900;
}

.logo-en {
  letter-spacing: -0.02em;
}

header nav a {
  margin-left: 22px;
  font-size: 15px;
  transition: 0.2s;
}

.nav-cta {
  background: var(--aubergine);
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff !important;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

/* =========================================
   header-deco（実際のSlack公式サイトのヘッダーに寄せた、白ベース＋下端に
   1pxだけ4色アクセントを効かせる控えめな装飾。派手なグラデーション帯は廃止）
========================================= */
.header-deco {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

.header-deco::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--slack-red), var(--slack-yellow), var(--slack-green), var(--slack-blue));
}

/* =========================================
   Hero
========================================= */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 0 120px;
  overflow: hidden;
}

/* Slackらしい、ぼかしたカラーブロブを背景に散らす */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 340px;
  height: 340px;
  top: -80px;
  left: calc(50% - 480px);
  background: var(--slack-yellow);
}
.hero::after {
  width: 380px;
  height: 380px;
  top: -40px;
  right: calc(50% - 500px);
  background: var(--slack-blue);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 54px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--aubergine) 0%, #8A3E8F 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.8;
}

.hero-images {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-img,
.hero-img-wide {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero-img { width: 250px; }
.hero-img-wide { width: 100%; max-width: 720px; }

/* =========================================
   Sections（暖色寄りの中間色で切り替え）
========================================= */
section { padding: 80px 0; }

.section-bg-1 { background: #ffffff; }
.section-bg-2 { background: #FBF6FB; }
.section-bg-3 { background: #F5EBF6; }
.section-bg-4 { background: #FDFAFD; }

.section-lead {
  font-size: 18px;
  color: var(--text-sub);
  margin-top: 6px;
}

/* =========================================
   Trust Counter（導入実績。Slack4色グラデーション）
========================================= */
.trust-counter {
  margin: 60px calc(50% - 50vw) -120px calc(50% - 50vw);
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  background: linear-gradient(135deg, var(--aubergine) 0%, var(--aubergine-dark) 100%);
  color: #fff;
}

.trust-counter-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #fff;
}

.trust-counter-number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--slack-yellow);
}

.trust-counter-unit {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.trust-counter-desc {
  font-size: 15px;
  line-height: 1;
  color: #fff;
}

@media (max-width: 600px) {
  .trust-counter {
    margin: 36px calc(50% - 50vw) -120px calc(50% - 50vw);
    padding: 14px 20px;
    gap: 6px 8px;
    flex-wrap: wrap;
  }
  .trust-counter-icon { width: 20px; height: 20px; }
  .trust-counter-number { font-size: 24px; }
  .trust-counter-unit { font-size: 14px; }
  .trust-counter-desc {
    font-size: 13px;
    flex-basis: 100%;
    text-align: center;
    line-height: 1.4;
  }
}

/* =========================================
   Problems（アイコンをSlack4色でローテーション）
========================================= */
.problems-grid {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.problem-block {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.problem-icon-shape {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--slack-yellow);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.problem-block:nth-child(4n+2) .problem-icon-shape { background: var(--slack-green); }
.problem-block:nth-child(4n+3) .problem-icon-shape { background: var(--slack-red); }
.problem-block:nth-child(4n+4) .problem-icon-shape { background: var(--slack-blue); }

.problem-text h3 { color: var(--text-main); }

/* =========================================
   VALUE STEPS
========================================= */
.value-steps {
  position: relative;
  margin-top: 80px;
  padding: 40px 0;
}

.value-step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.value-step.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .value-steps::before {
    left: 50%;
    width: 4px;
    filter: blur(3px);
    opacity: 0.35;
  }

  .value-step,
  .value-step.reverse {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .value-step::before {
    top: -4px;
    width: 24px;
    height: 24px;
  }
}

/* =========================================
   Timeline（導入手順）
========================================= */
.timeline {
  border-left: 4px solid var(--aubergine);
  padding-left: 36px;
  margin-top: 40px;
  max-width: 700px;
}

.timeline-item {
  margin-bottom: 60px;
  position: relative;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: var(--aubergine);
  border-radius: 50%;
  position: absolute;
  left: -48px;
  top: 4px;
  box-shadow: 0 0 12px rgba(74, 21, 75, 0.4);
}

.timeline-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
}

/* =========================================
   Features（アイコンをSlack4色の丸チップに）
========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--aubergine-light);
  color: var(--aubergine);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.features-grid .feature-block:nth-child(4n+2) .feature-icon {
  background: #FFF4DE;
  color: #A6740C;
}
.features-grid .feature-block:nth-child(4n+3) .feature-icon {
  background: #E4F8EF;
  color: #147352;
}
.features-grid .feature-block:nth-child(4n+4) .feature-icon {
  background: #FDE7ED;
  color: #B0123A;
}
.features-grid .feature-block:nth-child(4n+1):not(:nth-child(1)) .feature-icon {
  background: #E3F6FC;
  color: #0E7FA3;
}

/* =========================================
   CTA Button
========================================= */
.cta-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #A6740C;
  opacity: 1;
}

.cta-button {
  position: relative;
  display: inline-block;
  padding: 14px 42px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;

  background: var(--aubergine);
  border: 2px solid transparent;

  color: white;
  box-shadow: 0 10px 28px rgba(74, 21, 75, 0.35);
  overflow: hidden;
  transition: 0.25s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -180%;
  width: 160%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.4),
    rgba(255,255,255,0)
  );
  transform: skewX(-20deg);
  transition: left 0.22s ease;
}

.cta-button:hover::before {
  left: 180%;
}

.cta-button:hover {
  background: var(--aubergine-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(74, 21, 75, 0.45);
}

/* outline variant */
.cta-button.outline {
  background: transparent;
  border: 2px solid var(--aubergine);
  color: var(--aubergine);
  box-shadow: none;
}
.cta-button.outline:hover {
  background: var(--aubergine-light);
}

/* =========================================
   Pricing
========================================= */
.pricing-trust-link {
  color: var(--aubergine);
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-sub);
}

.pricing-trust svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .pricing-trust {
    align-items: flex-start;
  }
  .pricing-trust svg {
    margin-top: 2px;
  }
}

.pricing-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 45px;
}

.price-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 48px 32px;
  border: 1px solid rgba(74, 21, 75, 0.1);
  box-shadow: 0 4px 20px rgba(74, 21, 75, 0.06);
  transition: 0.35s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(74, 21, 75, 0.12);
}

.price-card.highlight {
  border: 2px solid var(--slack-yellow);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 60px rgba(74, 21, 75, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.85);
}

/* Ribbon */
.price-ribbon {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.price-ribbon.free { background: var(--slack-yellow); color: #4A3400; }
.price-ribbon.basic { background: var(--aubergine); }
.price-ribbon.team { background: var(--aubergine-dark); }

.price-name {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.price-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.price-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--aubergine);
  margin-bottom: 6px;
}

.price-main span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sub);
}

.price-capacity-note {
  font-size: 13px;
  font-weight: 700;
  color: #A6740C;
  margin-top: 6px;
}

.price-capacity {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.price-list {
  list-style: none;
}

.price-list li {
  padding: 6px 0;
  font-size: 15px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-list li::before {
  content: "✔";
  color: var(--aubergine);
  font-weight: 700;
  font-size: 15px;
}

/* =========================================
   Footer（Aubergine背景で締める）
========================================= */
footer {
  padding: 50px 0;
  background: var(--aubergine-dark);
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   Animations
========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.92);
  transition: 0.8s ease-out;
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* =========================================
   VALUE STEP ICON（Slack4色の丸チップ）
========================================= */
.value-icon {
  color: var(--aubergine);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--aubergine-light);
  flex-shrink: 0;
}

.value-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.value-steps .value-step:nth-child(4n+2) .value-icon {
  background: #FFF4DE;
  color: #A6740C;
}
.value-steps .value-step:nth-child(4n+3) .value-icon {
  background: #E4F8EF;
  color: #147352;
}
.value-steps .value-step:nth-child(4n+4) .value-icon {
  background: #FDE7ED;
  color: #B0123A;
}

/* SP（中央強調） */
@media (max-width: 768px) {
  .value-icon {
    margin: 0 auto;
    width: 72px;
    height: 72px;
  }

  .value-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* =========================================
   Mobile Header Fix
========================================= */
@media (max-width: 768px) {
  header nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  header nav a {
    font-size: 14px;
    margin-left: 0 !important;
    padding: 4px 6px;
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .logo {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  header nav {
    display: flex;
    gap: 10px;
  }

  header nav a {
    margin: 0 !important;
    padding: 4px 0;
    font-size: 13.5px;
  }

  .nav-cta {
    padding: 6px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .logo {
    font-size: 18px;
  }
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 16px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid rgba(74, 21, 75, 0.08);
}

.comparison-table th {
  background: var(--aubergine-light);
  font-weight: 700;
  color: var(--aubergine-dark);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: #FDFAFD;
  color: #374151;
}

.comparison-table .yes {
  color: var(--aubergine);
  font-weight: 700;
}

.comparison-table .no {
  color: #9ca3af;
  font-weight: 600;
}


.faq-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 50px;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.8;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: 14px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.command-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--aubergine-light);
  color: var(--aubergine-dark);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.hero-img-small {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* ======================================
   SP Header: CTAだけ表示
====================================== */
@media (max-width: 768px) {
  header nav a {
    display: none;
  }

  header nav .header-cta {
    display: inline-flex;
  }

  .header-inner {
    justify-content: space-between;
  }
}

/* ======================================
   Slack "Add to Slack" ボタン（Aubergine）
====================================== */
.slack-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--aubergine);
  color: #fff;

  padding: 14px 28px;
  border-radius: 8px;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;

  box-shadow: 0 6px 20px rgba(74, 21, 75, 0.35);
  transition: 0.2s ease;

  text-decoration: none;
}

.slack-button:hover {
  background: var(--aubergine-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(74, 21, 75, 0.45);
}

.slack-button:active {
  transform: translateY(0);
}

.header-slack-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 32px;
  padding: 18px 14px;

  background: var(--aubergine);
  color: #ffffff;

  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;

  line-height: 1;
  white-space: nowrap;

  transition: background-color 0.15s ease;
}

.header-slack-button:hover {
  background: var(--aubergine-dark);
}

@media (max-width: 768px) {
  .header-slack-button {
    height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
  }
}
