/* 8va の LP（css/landing.css）の色・角丸・カードに合わせている */
:root {
  color-scheme: dark;
  --bg: #0f0a1f;
  --bg-2: #1a1030;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.85);
  --muted: rgba(255, 255, 255, 0.6);
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --gradient: linear-gradient(135deg, #60a5fa, #a78bfa);
  --radius: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -120px, rgba(167, 139, 250, 0.28), transparent 70%),
    linear-gradient(180deg, #1a0a2e 0%, var(--bg) 640px);
  background-repeat: no-repeat;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* 言語の切り替え */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding-top: 16px;
  font-size: 0.85rem;
}
.lang-switch > * { padding: 4px 12px; border-radius: 999px; }
.lang-switch [aria-current="page"] { background: rgba(167, 139, 250, 0.18); color: var(--text); }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }

/* 冒頭 */
.hero { padding: 80px 0 88px; text-align: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 15vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.company {
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(1.15rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-en { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.1em; }

/* 節 */
.section { padding: 72px 0; }
.section-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}
.intro { margin: 0 0 32px; max-width: 46em; }

h3 { margin: 0 0 10px; color: var(--text); font-size: 1.12rem; font-weight: 700; line-height: 1.5; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* 事業の柱 */
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pillar { padding: 28px; display: flex; flex-direction: column; }
.channels { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* 成果物 */
.works { padding: 28px; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.works-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.works-head h3 { margin: 0; font-size: 1.3rem; }
.works-head .sub { margin: 2px 0 0; }
.app-icon { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.specs { margin: 20px 0 24px; }
.specs div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.screens img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--gradient);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.25);
}
.button:hover { filter: brightness(1.08); }
.button-outline {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.button-outline:hover { background: rgba(167, 139, 250, 0.12); }

/* 考え方の 6 分野 */
.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field { padding: 24px; display: flex; flex-direction: column; }
.field p { font-size: 0.95rem; }
.field-label {
  margin: 0 0 6px !important;
  color: var(--purple);
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.more { margin-top: auto; padding-top: 8px; font-size: 0.9rem; font-weight: 600; }
.more::after { content: " →"; }

/* 会社概要 */
.profile { margin: 0; padding: 8px 28px; }
.profile div {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.profile div:first-child { border-top: 0; }
.profile dt { color: var(--muted); font-weight: 500; }
.profile dd { margin: 0; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.sub { color: var(--muted); font-size: 0.9rem; }

/* お問い合わせ */
.contact { padding: 32px 28px; text-align: center; }

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; text-align: center; }
.site-footer p { margin: 0; }

@media (min-width: 720px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: 1.1fr 1fr; }
}

@media (min-width: 1000px) {
  .fields { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .hero { padding: 80px 0 56px; }
  .section { padding: 56px 0; }
  .pillar, .works, .profile { padding-left: 20px; padding-right: 20px; }
  .profile div, .specs div { grid-template-columns: 1fr; gap: 2px; }
}
