/*
 * ORPHE-CORE-INSOLE.js の紹介ページ（index.html / sample-data/index.html）で共通のスタイル。
 * ページ固有のスタイルは各ページの <style> に置く（このファイルの後に読み込まれる）。
 */

@font-face {
  font-family: "Roboto";
  font-weight: 300;
  src: url("fonts/Roboto/Roboto-Light.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-weight: 400;
  src: url("fonts/Roboto/Roboto-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-weight: 700;
  src: url("fonts/Roboto/Roboto-Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #151719;
  --muted: #59636f;
  --line: #dce2e8;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --charcoal: #101417;
  --cyan: #45e6e6;
  --orange: #ff6040;
  --green: #70c46f;
  --blue: #3b6ea8;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

main {
  overflow: hidden;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 20, 23, 0.08);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 111px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #37414c;
  font-size: 14px;
  font-weight: 400;
}

.nav-links a {
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--cyan);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafb;
}

.language-switch button {
  min-width: 44px;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: #4d5964;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button.active {
  color: #051314;
  background: var(--cyan);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 64px;
  line-height: 1.03;
  font-weight: 700;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.button.primary {
  background: var(--cyan);
  color: #051314;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  color: white;
}

.button.light {
  background: var(--ink);
  color: white;
}

.button.line {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

/* ボタン内の補足（ファイルサイズなど） */
.button .meta {
  margin-left: 6px;
  font-weight: 400;
  opacity: 0.75;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  background: var(--charcoal);
  color: white;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

h2 {
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.dark .lead {
  color: rgba(255, 255, 255, 0.74);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #24303a;
  font-size: 13px;
  font-weight: 700;
}

.tile {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.tile .tag {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tile p {
  margin-bottom: 0;
  color: var(--muted);
}

.dark .tile {
  background: #181d21;
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .tile p {
  color: rgba(255, 255, 255, 0.7);
}

footer {
  padding: 34px 0;
  color: #697580;
  background: white;
  font-size: 14px;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* デバイス識別（CORE = orange / INSOLE = cyan） */
.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.device-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.device-badge.insole::before {
  background: var(--cyan);
}

.dark .device-badge {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.data-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.data-group-head h3 {
  margin: 0;
}

.data-group-head p {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
}

/* ナビが 1 行に収まらない幅では 2 段にし、リンクは横スクロールにする */
@media (max-width: 1180px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 2px;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .nav {
    width: min(100% - 24px, var(--max));
  }

  .brand {
    font-size: 14px;
  }

  .brand img {
    width: 97px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .section-inner {
    width: min(100% - 24px, var(--max));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
