/* ── ヒーロー ── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b2a 100%);
  color: #fff; padding: 80px 48px 64px;
  text-align: center; position: relative; overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 44px;
}
.hero-logo-wrap img {
  width: min(460px, 88%); height: auto; display: block;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,160,74,0.3);
  border: 1px solid rgba(233,200,119,0.4);
  color: #E9C877; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; padding: 6px 16px; border-radius: 20px;
  margin-bottom: 20px;
}
#hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.3; margin-bottom: 20px; letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 50px rgba(0,0,0,0.6);
}
#hero h1 em { font-style: normal; color: #E9C877; }
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  max-width: 640px; margin: 0 auto 12px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ── ヒーロー 農場 ── */
.hero-farm {
  position: absolute;
  bottom: -100px;
  right: -150px;
  width: 900px;
  pointer-events: none;
  z-index: 0;
  filter: invert(1) brightness(0.30);
  mix-blend-mode: screen;
  user-select: none;
  -webkit-mask-image: linear-gradient(315deg, transparent 5%, black 42%, black 68%, transparent 100%);
  mask-image: linear-gradient(315deg, transparent 5%, black 42%, black 68%, transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-inner::before {
  content: '';
  position: absolute;
  inset: -60px -80px;
  background: radial-gradient(ellipse at center, rgba(10,20,35,0.72) 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* ── セクション共通 ── */
section { padding: 80px 48px; }
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; line-height: 1.3; margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem; color: var(--sub); max-width: 640px; margin-bottom: 40px;
}
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ── 課題提起 ── */
#pain { background: var(--light); }
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.pain-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
}
.pain-card .icon { font-size: 2rem; margin-bottom: 12px; }
.pain-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px; color: var(--navy);
}
.pain-card p { font-size: 0.9rem; color: var(--sub); line-height: 1.6; }

/* ── スクリーンショット ── */
#screenshots { background: var(--navy); }
#screenshots .section-label { color: #E9C877; }
#screenshots .section-title { color: #fff; }
#screenshots .section-desc { color: rgba(255,255,255,0.6); }
.screenshots-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; max-width: 1100px; margin: 0 auto 40px;
}
.app-window {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.win-titlebar {
  background: #2d3748; padding: 9px 14px;
  display: flex; align-items: center; gap: 6px;
}
.win-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.win-dot-r { background: #ff5f57; }
.win-dot-y { background: #febc2e; }
.win-dot-g { background: #28c840; }
.win-title {
  font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-left: 8px;
}
.win-body img { width: 100%; display: block; }
.screenshot-caption {
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.screenshot-caption h3 {
  font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.screenshot-caption p {
  font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.5;
}
.screenshots-cta { text-align: center; }

/* ── 強み ── */
#strengths { background: #fff; max-width: 1200px; margin: 0 auto; }
.strengths-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.strength-item { display: flex; flex-direction: column; gap: 12px; }
.strength-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.strength-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.strength-item p { font-size: 0.9rem; color: var(--sub); line-height: 1.65; }

/* ── 機能一覧 ── */
#features { background: var(--navy); color: #fff; }
#features .section-label { color: #E9C877; }
#features .section-title { color: #fff; }
#features .section-desc { color: rgba(255,255,255,0.6); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px 22px; transition: background 0.2s;
}
.feature-card:hover { background: rgba(255,255,255,0.12); }
.feature-card .tag {
  display: inline-block;
  background: rgba(201,160,74,0.35); color: #E9C877;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 0.86rem; color: rgba(255,255,255,0.58); line-height: 1.6; }

/* ── 比較表 ── */
#comparison { background: var(--light); }
.comparison-table {
  width: 100%; max-width: 840px; margin: 0 auto;
  border-collapse: collapse; font-size: 0.94rem;
}
.comparison-table th {
  padding: 14px 20px; text-align: center; font-weight: 700;
}
.comparison-table th:nth-child(1) { text-align: left; color: var(--sub); }
.comparison-table th:nth-child(2) {
  background: var(--navy); color: #fff; border-radius: 8px 8px 0 0;
}
.comparison-table th:nth-child(3) { color: var(--sub); }
.comparison-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); }
.comparison-table td:nth-child(1) { font-weight: 600; }
.comparison-table td:nth-child(2) {
  background: rgba(30,42,58,0.04); text-align: center;
  font-weight: 600; color: var(--navy);
}
.comparison-table td:nth-child(3) { text-align: center; color: var(--sub); }
.ok { color: #22a05a; }
.ng { color: #e05252; }

/* ── 事例 ── */
#casestudy { background: #fff; }
#casestudy > * { max-width: 1200px; }
.case-grid {
  display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center;
}
@media (max-width: 680px) {
  .case-grid { grid-template-columns: 1fr; gap: 12px; }
  .case-arrow { display: none; }
}

/* ── 料金 ── */
#pricing { background: #fff; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.price-card {
  background: var(--light); border: 2px solid var(--border);
  border-radius: 16px; padding: 32px 28px; position: relative;
}
.price-card.featured { border-color: var(--navy); box-shadow: 0 8px 32px rgba(30,42,58,0.12); background: #fff; }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; white-space: nowrap; letter-spacing: 0.04em;
}
.price-type { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: var(--sub); margin-bottom: 8px; }
.price-main { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.price-unit { font-size: 0.82rem; color: var(--sub); margin-bottom: 20px; }
.price-note { font-size: 0.82rem; color: var(--sub); margin-bottom: 20px; font-style: italic; }
.price-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 8px; font-size: 0.88rem; color: #3d4a5c;
}
.price-features li::before { content: "✓ "; color: #22a05a; font-weight: 700; }
.trial-note {
  text-align: center; margin-top: 32px;
  font-size: 0.9rem; color: var(--sub);
}
.trial-note strong { color: var(--navy); }

/* ── フォーム ── */
#cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b2a 100%);
  color: #fff; text-align: center; padding: 80px 48px;
}
#cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
#cta > p { color: rgba(255,255,255,0.65); margin-bottom: 40px; font-size: 1rem; }
.form-wrap {
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; color: white; padding: 11px 14px; width: 100%; min-width: 0;
  font-size: 0.92rem; font-family: inherit; outline: none; transition: border 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #E9C877; }
.form-group select option { background: #1e2a3a; color: white; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: center; }
#form-message {
  display: none; font-size: 0.88rem; text-align: left;
  padding: 12px 16px; border-radius: 8px;
  background: rgba(224,82,82,0.15); color: #ffb3a8;
  border: 1px solid rgba(224,82,82,0.35);
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  nav.cc-nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 56px 20px; }
  #hero { padding: 56px 20px 48px; }
  .form-row { grid-template-columns: 1fr; }
  #cta { padding: 56px 20px; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
