/* Almowl — style.css
   Eidowl のデザイン言語を踏襲:
   ダーク基調 / アンバー1点 / 細い罫線 / 等幅見出し / 余白多め
   形は「空洞・直線・直角・三角」
*/

:root {
  --bg:    #161A21;
  --bg2:   #1C212A;
  --line:  #2A313D;
  --tx:    #E6EBF2;
  --tx2:   #8B95A5;
  --tx3:   #5C6573;
  --amber: #E0A800;
  --blue:  #5DA9E8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: "Inter", "Helvetica Neue", Arial, "Yu Gothic UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 56px; }

/* ---- ナビ ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
  max-width: 1100px;
  margin: 0 auto;
}
nav .logo { height: 22px; display: block; opacity: .85; transition: opacity .15s ease; }
nav a:hover .logo { opacity: 1; }

/* ---- 言語トグル ---- */
.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lt {
  background: none; border: none; cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .12em;
  color: var(--tx3); padding: 4px 2px;
  transition: color .15s ease;
}
.lt:hover { color: var(--tx2); }
.lt.active { color: var(--tx); }
.lt-sep { color: var(--tx3); font-size: 12px; font-family: "JetBrains Mono", monospace; }

/* ---- 製図フレームの四隅マーカー ---- */
.corner { position: absolute; width: 13px; height: 13px; border: 1px solid var(--tx3); }
.corner.tl { left: -1px;  top: -1px;    border-right: 0; border-bottom: 0; }
.corner.tr { right: -1px; top: -1px;    border-left: 0;  border-bottom: 0; }
.corner.bl { left: -1px;  bottom: -1px; border-right: 0; border-top: 0; }
.corner.br { right: -1px; bottom: -1px; border-left: 0;  border-top: 0; }

/* ---- ヒーロー ---- */
.hero { padding: 70px 0 60px; }
.hero .box {
  position: relative;
  border: 1px solid var(--line);
  padding: 70px 60px 64px;
  text-align: center;
}
.hero .brand {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(46px, 9vw, 84px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--tx);
}
.hero .tagline {
  margin-top: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--tx3);
  letter-spacing: .34em;
  text-transform: uppercase;
}
.hero .tagline .t { color: var(--amber); }
.hero .lead {
  margin: 34px auto 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 2.0;
  color: var(--tx2);
}
.hero .lead b { color: var(--tx); font-weight: 600; }

/* ---- CTA ボタン ---- */
.cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 3px;
  background: var(--amber);
  color: #1a1a1a;
  font-weight: 600;
  border: 1px solid var(--amber);
  transition: transform .14s ease, background .14s ease;
}
.btn:hover { transform: translateY(-2px); background: #f0b800; }
.btn.ghost {
  background: transparent;
  color: var(--tx2);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .1em;
}
.btn.ghost:hover { color: var(--tx); background: var(--bg2); }

/* ---- セクション共通 ---- */
.sec { padding: 72px 0 0; }
.sec-head { display: flex; align-items: center; margin-bottom: 40px; }
.sec-head .tri {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--amber);
  margin-right: 14px; flex-shrink: 0;
}
.sec-head h2 {
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--tx2); font-weight: 500; white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
}
.sec-head .rule { flex: 1; height: 1px; background: var(--line); margin: 0 18px; }
.sec-head .muted {
  color: var(--tx3); font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .08em; white-space: nowrap;
}

/* ---- コンセプト: カードグリッド（3列、1px隙間が罫線）---- */
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--bg);
  padding: 36px 30px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 14px;
  font-family: "JetBrains Mono", monospace; color: var(--tx);
}
.card p { font-size: 13.5px; line-height: 1.85; color: var(--tx2); }

/* ---- 機能: 番号つき行 ---- */
.feat {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat-no {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: .1em;
  padding-top: 4px;
  width: 36px;
  flex-shrink: 0;
}
.feat-body h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--tx);
}
.feat-body p {
  font-size: 14px; line-height: 1.9; color: var(--tx2); max-width: 720px;
}

/* ---- ダウンロード パネル ---- */
.panel { border: 1px solid var(--line); background: var(--bg2); padding: 40px 38px; }
.panel p { font-size: 14px; line-height: 1.9; color: var(--tx2); margin-bottom: 28px; max-width: 680px; }
.dl-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dl-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--tx3); letter-spacing: .06em;
}

/* ---- TOPへ戻る ---- */
.totop { text-align: center; padding: 64px 0 0; }
.totop a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--tx3); text-decoration: none;
  letter-spacing: .18em;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  transition: color .15s ease;
}
.totop a:hover { color: var(--amber); }
.totop .up {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid currentColor;
}

/* ---- フッター ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 64px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; }
footer .lg { height: 18px; opacity: .55; transition: opacity .15s ease; }
footer a:hover .lg { opacity: .9; }
footer .cp {
  font-size: 12px; color: var(--tx3);
  font-family: "JetBrains Mono", monospace; letter-spacing: .12em;
}

/* ---- スマホ ---- */
@media (max-width: 760px) {
  .wrap { padding: 0 28px; }
  nav { padding: 20px 28px; }
  .hero .box { padding: 50px 28px 46px; }
  .grid3 { grid-template-columns: 1fr; }
  .feat { gap: 18px; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; }
}
