/* ==========================================================================
   小林意匠技研 - Ultra Minimal Stylesheet (Inspired by Zerocam)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --text-main: #0a0a0a;
  --text-body: #2a2a2a;
  --text-sub: #737373;
  --text-muted: #a1a1a1;
  --link: #0f766e;
  --link-hover: #115e59;
  --border: #e5e5e5;
  --bg-subtle: #f5f5f5;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 56px 24px 96px;
  display: flex;
  justify-content: center;
}

.wrap {
  width: 100%;
  max-width: 640px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header & Brand */
.brand {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.brand-en {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0;
  margin-top: 3px;
}

/* Language Switcher */
.lang-bar {
  margin: 22px 0 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-select:hover {
  background-color: #eaeaea;
  border-color: #d1d5db;
}

/* Title & Header */
.page-title {
  margin: 36px 0 0;
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-main);
}

.page-meta {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.page-intro {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Sections */
.section {
  margin-top: 40px;
}

.section h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-main);
}

.section h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 20px 0 8px;
  color: var(--text-main);
}

.section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 10px;
}

.section ul, .section ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 8px 0 12px;
  padding-left: 20px;
}

.section li {
  margin-bottom: 6px;
}

/* App Box (Rarecam) */
.app-card {
  margin-top: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.app-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.app-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.app-catch {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 8px 0 6px;
}

.app-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 14px;
}

.app-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}

/* Definition List (About & Tokushoho) */
.data-table {
  width: 100%;
  margin-top: 12px;
  font-size: 14.5px;
  border-collapse: collapse;
}

.data-table dt {
  color: var(--text-main);
  font-size: 14.5px;
  margin-top: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.data-table dt:first-child {
  margin-top: 0;
}

.data-table dd {
  color: var(--text-body);
  margin-top: 3px;
  line-height: 1.65;
}

/* Back Link & Footer */
.back-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.back-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.footer-nav a {
  color: var(--text-sub);
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
