/* おかラボ — ベーススタイル（デザイン未確定・最小構成） */

:root {
  --color-bg:        #ffffff;
  --color-text:      #1a1a1a;
  --color-text-mute: #666666;
  --color-border:    #e0e0e0;
  --color-accent:    #0066cc;
  --color-accent-hover: #0052a3;

  --font-sans: system-ui, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-mono: "Courier New", monospace;

  --width-content: 720px;
  --spacing-page:  1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:        #111111;
    --color-text:      #e8e8e8;
    --color-text-mute: #999999;
    --color-border:    #333333;
    --color-accent:    #4d9fff;
    --color-accent-hover: #7ab8ff;
  }
}

/* ---- リセット ---- */

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

/* ---- ベース ---- */

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

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

/* ---- ヘッダー ---- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--spacing-page);
}

.site-nav {
  max-width: var(--width-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
}

.site-nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__logo:hover { color: var(--color-accent); text-decoration: none; }

.site-nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav__links a {
  font-size: 0.9rem;
  color: var(--color-text-mute);
}
.site-nav__links a:hover { color: var(--color-accent); text-decoration: none; }

/* ---- メインコンテンツ ---- */

.site-main {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 3rem var(--spacing-page);
}

/* ---- タイポグラフィ ---- */

h1 { font-size: 2rem;   line-height: 1.3; margin-bottom: 1.5rem; }
h2 { font-size: 1.4rem; line-height: 1.4; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.1rem; line-height: 1.4; margin: 2rem 0 0.75rem; }

p  { margin-bottom: 1rem; }

ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.25rem; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

blockquote {
  border-left: 3px solid var(--color-border);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  color: var(--color-text-mute);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
th, td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.9rem;
  text-align: left;
}
th { background: var(--color-border); font-weight: 600; }

/* ---- ボタン ---- */

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  margin: 0.25rem 0.25rem 0.25rem 0;
}
.btn:hover { background: var(--color-accent-hover); color: #fff; text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn--ghost:hover { background: var(--color-accent); color: #fff; }

/* ---- ヒーローセクション ---- */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.hero h1 { font-size: 2.2rem; }

/* ---- サービスカード ---- */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
}
.service-card--wip { opacity: 0.85; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15em 0.6em;
  border-radius: 3px;
  background: var(--color-border);
  color: var(--color-text-mute);
  margin-bottom: 0.5rem;
}
.badge--active {
  background: #0066cc22;
  color: var(--color-accent);
}

/* ---- フッター ---- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem var(--spacing-page);
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-mute);
}

.site-footer__nav {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.site-footer__nav a { color: var(--color-text-mute); }
.site-footer__nav a:hover { color: var(--color-accent); }

/* ---- レスポンシブ ---- */

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.7rem; }
  .site-nav__links { display: none; } /* TODO: ハンバーガーメニュー */
  .service-cards { grid-template-columns: 1fr; }
}
