/* NeoCliper Modern Dark / Glassmorphism Stylesheet */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #7c3aed, #2563eb);
  --primary-color: #7c3aed;
  --secondary-color: #2563eb;
  --bg-darker: #090d16;
  --bg-dark: #0f172a;
  --bg-panel: #1e293b;
  --border-color: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-glow: rgba(124, 58, 237, 0.4);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-darker);
  overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ナビゲーション */
.navbar {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.nav-menu a:hover {
  color: var(--text-primary);
}

/* ユーティリティ・ボタン */
.text-center { text-align: center; }
.hidden { display: none !important; }
.highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.btn-primary, .btn-secondary, .btn-large {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* ヒーローセクション */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* 背景グラデーション装飾 */
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, rgba(9,13,22,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(9,13,22,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.2rem;
  background: rgba(124, 58, 237, 0.1);
  color: #c084fc;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.05);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
}

/* インタラクティブ・シミュレーター (ヒーロープレビュー) */
.hero-preview {
  position: relative;
  z-index: 10;
}

/* PC操作シミュレーターのパネル */
.pc-sim-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pc-sim-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}

/* コピーサンプル集 */
.copy-samples {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  gap: 10px;
}

.sample-text {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.copy-sample-btn {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.copy-sample-btn:hover {
  opacity: 0.9;
}

.custom-copy-box {
  display: flex;
  gap: 8px;
}

.custom-copy-box input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
}

.custom-copy-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 本物のアプリそっくりのシミュレーターUI */
.app-simulator {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

/* アプリヘッダー */
.app-sim-header {
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-sim-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px;
  border-radius: 8px;
}

.sim-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-tab-btn.active {
  background: var(--border-color);
  color: var(--text-primary);
}

.sim-tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

/* アプリリストエリア */
.sim-list-container {
  flex-grow: 1;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.2);
}

.sim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.sim-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sim-item.selected {
  background: rgba(124, 58, 237, 0.15);
  border-left: 3px solid var(--primary-color);
}

.sim-item-body {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 80%;
}

.sim-item-icon {
  font-size: 1rem;
}

.sim-item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.sim-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-drag-handle {
  color: var(--text-muted);
  cursor: grab;
}

.sim-item.dragging {
  opacity: 0.4;
  border: 1px dashed var(--primary-color);
}

/* アプリエディター */
.sim-editor {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-editor textarea {
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  padding: 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  resize: none;
}

.sim-editor textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.sim-editor-controls {
  display: flex;
  justify-content: flex-end;
}

/* アプリフッター */
.app-sim-footer {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* PCへの貼り付け結果表示 */
.pc-paste-target {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pc-paste-target span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pc-paste-target textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed #475569;
  border-radius: 8px;
  padding: 0.6rem;
  color: #a7f3d0;
  font-family: monospace;
  font-size: 0.85rem;
  width: 100%;
  height: 60px;
  resize: none;
  transition: all 0.3s;
}

.pc-paste-target textarea.flash-input {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.05);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

/* トースト通知 */
.sim-toast {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.sim-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Move to Top のハイライトアニメーション */
.pulse-highlight {
  animation: pulseHighlight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseHighlight {
  0% {
    background: rgba(124, 58, 237, 0.5);
    transform: scale(1.02);
  }
  100% {
    background: transparent;
    transform: scale(1);
  }
}

/* 特徴セクション */
.features {
  padding: 8rem 0;
  background: #060a12;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 5rem;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.3);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(30, 41, 59, 0.5);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.feature-card h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

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

/* CTAセクション */
.cta {
  padding: 8rem 0;
  background: linear-gradient(180deg, #060a12, var(--bg-darker));
  position: relative;
}

.cta h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* フッター */
footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 言語スイッチャー */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* サブページ用のスタイル (Download, Help, Privacy) */
.subpage-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.subpage-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.subpage-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.download-card {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(30, 41, 59, 0.4);
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ガイドステップ */
.guide-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  margin-bottom: 5rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0 10px;
}

/* ヘルプ / FAQ & ショートカット */
.help-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(30, 41, 59, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-table th, .shortcut-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.shortcut-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.shortcut-table kbd {
  background: #334155;
  border-radius: 4px;
  border: 1px solid #475569;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  color: #fff;
  display: inline-block;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 2px 6px;
  white-space: nowrap;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: rgba(30, 41, 59, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.75rem;
  border-radius: 12px;
}

.faq-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* プライバシーポリシー */
.policy-card {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.policy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .nav-menu {
    display: none; /* 簡単化のためモバイルメニューは非表示 */
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.download-command-box {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
}

.download-command-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.download-command-code {
  color: #34d399;
  font-family: monospace;
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.03);
}
