:root {
  --bg: #0b1220;
  --bg-2: #101a2e;
  --panel: #131e34;
  --line: rgba(140, 160, 200, 0.22);
  --text: #e8edf7;
  --sub: #a7b2c9;
  --dim: #6f7c96;
  --accent: #ff5a3c;
  --accent-2: #ffb347;
  --link: #8fb4ff;
  --radius: 14px;
  --max: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

/* 背景：うっすらとした格子（アプリの世界観に合わせる） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(111, 143, 216, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(111, 143, 216, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 50% -10%, #1b2a4d 0%, var(--bg) 60%);
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #b9d0ff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none; }
.brand b { font-size: 22px; letter-spacing: 0.12em; }
.brand small { color: var(--sub); font-size: 12px; letter-spacing: 0.04em; }
nav.site { display: flex; gap: 18px; flex-wrap: wrap; }
nav.site a { color: var(--sub); text-decoration: none; font-size: 14px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

/* 見出し・本文 */
main { padding: 48px 0 72px; }
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.3; margin: 0 0 12px; letter-spacing: 0.02em; }
.hero p.lead { color: var(--sub); font-size: 18px; margin: 0; }
.eyebrow { color: var(--accent-2); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 10px; }

h2 { font-size: 24px; margin: 56px 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.4; }
h3 { font-size: 18px; margin: 32px 0 8px; }
.en { color: var(--dim); font-size: 0.85em; font-weight: normal; margin-left: 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; margin: 0 0 14px; }
li { margin-bottom: 6px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* 会社概要の表 */
table.info { width: 100%; border-collapse: collapse; }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
table.info th { width: 32%; color: var(--sub); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  table.info th, table.info td { display: block; width: 100%; padding: 8px 0; }
  table.info th { border-bottom: 0; padding-top: 16px; }
}

/* 外部送信などの表 */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.data th { background: var(--bg-2); color: var(--sub); }

/* アプリ紹介 */
.app { display: flex; gap: 20px; align-items: center; }
.app-icon {
  width: 88px; height: 88px; border-radius: 22px; flex: none;
  background: radial-gradient(circle at 35% 30%, #ff8a6a, #d81f1f 55%, #6a0a0a);
  box-shadow: 0 0 24px rgba(255, 70, 50, 0.45), inset 0 -6px 12px rgba(0, 0, 0, 0.35);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
}
.badge { display: inline-block; font-size: 12px; color: var(--accent-2); border: 1px solid rgba(255, 179, 71, 0.5); border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: linear-gradient(#ff5d4f, #c8191a); color: #fff; box-shadow: 0 6px 18px rgba(216, 31, 31, 0.35);
}
.btn:hover { color: #fff; filter: brightness(1.08); }

.note { color: var(--sub); font-size: 14px; }

/* 公開前に埋める箇所（埋めたら消える） */
.todo { background: #ffe14d; color: #3a2b00; padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* フッター */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--sub); text-decoration: none; margin-right: 16px; }

/* スマホ幅：ヘッダーを2段にして詰まらないように */
@media (max-width: 640px) {
  header.site .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand small { white-space: nowrap; }
  nav.site { gap: 16px; }
  nav.site a { font-size: 13px; }
  main { padding-top: 24px; }
  .hero h1 { font-size: 28px; }
}
