/* ==========================================================
   無限インターネット 公式サイト
   ライト: 白地 × ネイビー文字 / ダーク: ディープネイビー地
   アクセント: エレクトリックブルー × サイバーグリーン
   ========================================================== */

:root {
  --bg: #f6f8fc;
  --fg: #0b1324;
  --card: #ffffff;
  --muted: #eaeff7;
  --muted-fg: #556074;
  --border: #d9e0ec;
  --input: #cfd8e6;
  --primary: #1d5cff;
  --primary-fg: #ffffff;
  --btn-bg: #1d5cff;
  --accent: #00a676;
  --accent-fg: #ffffff;
  --danger: #d92d4a;
  --radius: 12px;
  --header-h: 64px;
  /* 日本語は端末標準フォント（Mac/iPhone: ヒラギノ, Android: Noto Sans CJK, Windows: 游ゴシック UI/メイリオ） */
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070d1a;
  --fg: #e6ecf5;
  --card: #0d1628;
  --muted: #121c31;
  --muted-fg: #8e9ab1;
  --border: #1e2943;
  --input: #27344f;
  --primary: #3d85ff;
  --accent: #22e3a0;
  --accent-fg: #04140e;
  --btn-bg: #2563eb; /* 白文字とのコントラスト比 4.5:1 以上を確保 */
  --danger: #ff5c77;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-feature-settings: "palt";
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: color-mix(in oklab, var(--primary) 30%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 0; border-radius: 8px;
  background: var(--btn-bg); color: var(--primary-fg);
  font: 700 14px/1 var(--font);
  white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / .15);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--fg); cursor: pointer;
}
.icon-btn:hover { background: var(--muted); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-ja { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.logo-en { display: none; font: 12px var(--mono); color: var(--muted-fg); }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted-fg); transition: color .15s; }
.nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-cta { display: none; }

.icon-moon { display: block; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

.mobile-nav { padding: 0 16px 16px; background: var(--bg); border-top: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 12px 0; font-size: 14px; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.mobile-nav .btn { display: flex; width: 100%; margin-top: 16px; border: 0; }

@media (min-width: 640px) {
  .logo-ja { font-size: 18px; }
  .logo-en { display: inline; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: var(--header-h); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; top: -128px; left: 50%; transform: translateX(-50%);
  width: 768px; max-width: 160%; height: 384px; border-radius: 50%;
  background: color-mix(in oklab, var(--primary) 22%, transparent);
  filter: blur(64px);
}
.hero-inner { position: relative; display: grid; gap: 48px; padding-top: 80px; padding-bottom: 80px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px; padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in oklab, var(--card) 60%, transparent);
  font: 12px var(--mono); color: var(--muted-fg);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.hero-title { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.hero-title > span { display: block; }
.hero-tagline { margin-top: 12px; font-size: 20px; }
.hero-sub { max-width: 36rem; margin-top: 24px; color: var(--muted-fg); }
.hero-cta { width: 100%; margin-top: 32px; white-space: normal; text-align: center; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 28rem; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dt { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted-fg); }
.stats dd { margin: 0; }
.stat-num { font: 500 30px/1.2 var(--mono); }
.stat-unit { margin-left: 2px; font-size: 14px; color: var(--accent); }

.terminal {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: color-mix(in oklab, var(--card) 85%, transparent);
  box-shadow: 0 25px 50px -12px color-mix(in oklab, var(--primary) 18%, transparent);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--muted-fg) 30%, transparent); }
.terminal-bar span { margin-left: 12px; font: 12px var(--mono); color: var(--muted-fg); }
.terminal-body { display: grid; gap: 12px; padding: 20px; font: 13px/1.6 var(--mono); }
.terminal-body li { display: flex; gap: 12px; }
.terminal-body b { width: 12px; flex-shrink: 0; font-weight: 400; }
.terminal-body .muted { color: var(--muted-fg); }
.terminal-body .ok { color: var(--accent); }
.terminal-body .done { color: var(--primary); font-weight: 500; }

@media (min-width: 640px) {
  .hero-title { font-size: 36px; }
  .hero-tagline { font-size: 24px; }
  .hero-cta { width: auto; }
}
@media (min-width: 768px) {
  .hero-inner { padding-top: 112px; padding-bottom: 112px; }
  .hero-title { font-size: 48px; line-height: 1.15; }
  .hero-tagline { font-size: 30px; }
  .hero-sub { font-size: 18px; }
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; }
}

/* ---------- sections ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-alt { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.section-head { max-width: 42rem; margin-bottom: 40px; }
.eyebrow { margin-bottom: 12px; font: 12px var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.eyebrow span { color: var(--muted-fg); }
.section-head h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.01em; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--muted-fg); }
@media (min-width: 768px) {
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
  .section-head h2 { font-size: 30px; }
}

.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.grid-3, .grid-2 { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--muted); color: var(--muted-fg);
  font: 500 11px/1.6 var(--mono);
}
.tags-primary li {
  border-color: color-mix(in oklab, var(--primary) 30%, transparent);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

/* ---------- services ---------- */
.service { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; overflow: hidden; transition: border-color .2s; }
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity .2s;
}
.service:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.service:hover::before { opacity: 1; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.service-icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); border-radius: 10px;
  background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary);
}
.service-icon svg { width: 20px; height: 20px; }
.service-no { font: 12px var(--mono); color: var(--muted-fg); }
.service h3 { font-size: 18px; line-height: 1.5; }
.service p { flex: 1; font-size: 14px; color: var(--muted-fg); }
.service .tags { margin-top: 16px; }

/* ---------- career timeline ---------- */
.timeline { position: relative; margin-left: 6px; border-left: 1px solid var(--border); }
.timeline > li { position: relative; padding: 0 0 40px 28px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; top: 7px; left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px var(--bg);
}
.timeline > li.current::before { background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 10px var(--accent); }
.period { font: 14px var(--mono); color: var(--muted-fg); }
.entries { display: grid; gap: 24px; margin-top: 4px; }
.entries h3 { font-size: 18px; }
.entries p { margin-top: 4px; color: var(--muted-fg); }
.entries .tags { margin-top: 12px; }

@media (min-width: 768px) {
  .timeline { margin-left: 0; border-left: 0; }
  .timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 168px; width: 1px; background: var(--border); }
  .timeline > li { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding-left: 0; }
  .timeline > li::before { left: 163px; }
  .period { padding-top: 2px; text-align: right; }
  .entries { margin-top: 0; padding-left: 0; }
}

/* ---------- availability ---------- */
.plan { display: flex; flex-direction: column; }
.plan-head { padding: 24px; border-bottom: 1px solid var(--border); }
.plan-head h3 { font-size: 18px; }
.price { margin-top: 12px; }
.price small { font-size: 12px; color: var(--muted-fg); }
.price strong { font: 500 30px/1.2 var(--mono); letter-spacing: -.02em; }
.price span { margin-left: 4px; font-size: 14px; color: var(--muted-fg); }
.checks { display: grid; gap: 12px; padding: 24px 24px 0; }
.checks li { position: relative; padding-left: 28px; font-size: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-note { margin-top: auto; padding: 24px 24px 0; font-size: 12px; color: var(--muted-fg); }
.plan::after { content: ""; display: block; height: 24px; }

/* ---------- contact ---------- */
.contact-inner { display: grid; gap: 40px; }
.contact-inner .section-head { margin-bottom: 0; }
@media (min-width: 1024px) { .contact-inner { grid-template-columns: .8fr 1.2fr; } }

.form-card { padding: 24px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field label em { margin-left: 6px; font-style: normal; font-size: 12px; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 12px;
  border: 1px solid var(--input); border-radius: 8px;
  background: var(--bg); color: var(--fg);
  font: 14px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { height: 44px; }
.field textarea { min-height: 128px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.field ::placeholder { color: color-mix(in oklab, var(--muted-fg) 70%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.select-wrap svg { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted-fg); pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { width: 100%; }
@media (min-width: 640px) { .form-submit { width: auto; justify-self: start; } }
.form-error { font-size: 14px; color: var(--danger); }
.form-mock { font: 12px var(--mono); color: var(--muted-fg); }

.form-done { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
.form-done svg { width: 48px; height: 48px; color: var(--accent); }
.form-done-title { margin-top: 16px; font-size: 18px; font-weight: 700; }
.form-done p:last-child { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 12px; color: var(--muted-fg); }
.biz { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.biz dd { margin: 0; }
.biz strong { color: var(--fg); }
.copyright { font-family: var(--mono); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
