/* src/app/static/css/landing.css
 * Futuristic Tech テイスト（blue/purple グロー、ダーク基調）。
 * 対象: landing.html のみ。
 */

:root {
  --bg:        #0a0e1a;
  --panel:     #111827;
  --border:    rgba(255,255,255,0.08);
  --text:      #e5e7eb;
  --text-mu:   #9ca3af;
  --accent1:   #3b82f6;
  --accent2:   #8b5cf6;
  --accent-g:  linear-gradient(90deg,#3b82f6,#8b5cf6);
  --glow:      0 0 20px rgba(139,92,246,0.4);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--accent1); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 56px 0; border-bottom: 1px solid var(--border); }
.sec-num {
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec h2 { font-size: 26px; margin: 0 0 18px; font-weight: 800; }

.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

abbr[data-term] {
  border-bottom: 1px dotted var(--accent2);
  cursor: help;
  color: #c4b5fd;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 24px 72px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(59,130,246,0.35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.35), transparent 55%),
    linear-gradient(180deg,#0a0e1a,#111827);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(59,130,246,0.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg,  rgba(139,92,246,0.05) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 999px;
  font-size: 11px;
  color: #c4b5fd;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 900;
  margin: 0 0 18px;
  line-height: 1.1;
  background: var(--accent-g);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--text-mu); max-width: 620px; margin: 0 0 26px; font-size: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent-g); color: #fff; box-shadow: var(--glow); }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.hero-btns   { display: flex; gap: 12px; flex-wrap: wrap; }

/* 02 Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step  { padding: 18px; }
.step .shot {
  height: 150px;
  background: rgba(59,130,246,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.step .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step .n { font-size: 11px; color: var(--accent1); font-weight: 800; margin-bottom: 6px; letter-spacing: 2px; }
.step h3 { font-size: 15px; margin: 0 0 6px; }
.step p  { font-size: 13px; color: var(--text-mu); margin: 0; }

/* 03 Samples */
.samples { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.sample  {
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.sample:hover { transform: translateY(-2px); border-color: rgba(139,92,246,0.4); }
.sample .thumb {
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(135deg,#1e3a8a,#581c87);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 10px;
}
.sample h3 { font-size: 14px; margin: 0 0 2px; }
.sample p  { font-size: 12px; color: var(--text-mu); margin: 0; }

/* 04 Try (embedded form container)
 * フォームの内部 UI は request_form.html 由来のインライン CSS に依存するので
 * 埋め込み時にも同じスタイルを共有する必要がある。
 * ここでは外枠だけダーク基調に整えて、内部要素は明るい配色のままで配置する。
 */
#try .try-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.97);
  color: #1f2937;
  border-radius: 12px;
}
#try .try-wrap #map { height: 460px; border-radius: 10px; border: 1px solid #d9e0ea; }
#try .try-wrap input,
#try .try-wrap select,
#try .try-wrap button,
#try .try-wrap textarea { font-family: inherit; }

/* 05 Tech badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.3);
}

/* 06 Articles */
.articles { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.article  { padding: 16px; display: block; color: inherit; text-decoration: none; }
.article[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.article .src {
  font-size: 10px;
  color: var(--accent2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.article h3 { font-size: 14px; margin: 0 0 4px; }
.article p  { font-size: 12px; color: var(--text-mu); margin: 0; }

/* 07 Glossary */
.glossary-list dt { color: #c4b5fd; font-weight: 700; margin-top: 12px; font-size: 14px; }
.glossary-list dd { margin: 2px 0 0 0; font-size: 13px; color: var(--text-mu); }

/* Footer */
.foot {
  padding: 28px 24px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 980px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 32px; }
  .steps   { grid-template-columns: 1fr; }
  .samples { grid-template-columns: repeat(2,1fr); }
  .articles{ grid-template-columns: 1fr; }
  #try .try-wrap { grid-template-columns: 1fr; }
  #try .try-wrap #map { height: 360px; }
  .sec { padding: 36px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sample { transition: none; }
}
html { scroll-behavior: smooth; }

/* Task 11: embedded form visibility helpers */
#try .hidden { display: none !important; }
