/* ============================================================
   SECONDARYBASE — shared.css
   全ページ共通スタイル(色 / 型 / Header / Footer / Preview Badge /
   PageFV / Section / CTA / Card / Info Table / Legal Text Block)
   ============================================================ */

:root {
  /* Dark theme */
  --bg-deep: #08080A;
  --bg-surface: #131311;
  --bg-elevated: #1C1C18;
  --line: #28281F;
  --line-strong: #3A3A2E;
  --text-primary: #E8E5DC;
  --text-secondary: #93887A;
  --text-muted: #5A5346;

  /* Accent */
  --accent: #B89055;
  --accent-bright: #CDA468;
  --accent-dim: rgba(184,144,85,0.22);
  --accent-deep: #8C6232;

  /* Light theme(body sections) */
  --light-bg: #F8F6F1;
  --light-bg-elevated: #FFFFFF;
  --light-bg-glow: #FBFAF5;
  --light-text-primary: #1A1A18;
  --light-text-secondary: #5A5346;
  --light-text-muted: #93887A;
  --light-line: #E5E1D8;
  --light-line-strong: #C9C2B3;

  /* Preview alert(internal use) */
  --preview-accent: #C8755C;
  --preview-dim: rgba(200, 117, 92, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--light-bg); color: var(--light-text-primary); font-family: 'Noto Sans JP', sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ============================================================
   Header (共通)
   ============================================================ */
.sb-header {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: rgba(8,8,10,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; z-index: 100;
}
.sb-logo {
  font-family: 'Inter', sans-serif; font-weight: 900; font-size: 16px;
  letter-spacing: 0.02em; color: var(--text-primary);
  text-decoration: none;
}
.sb-logo span { color: var(--accent); }
.sb-nav { display: flex; gap: 28px; align-items: center; }
.sb-nav a {
  color: var(--text-secondary); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  transition: color 0.2s;
}
.sb-nav a:hover { color: var(--accent); }
.sb-nav a.active { color: var(--accent); }
.sb-nav a.sb-nav-cta {
  color: var(--accent); border: 1px solid var(--accent-dim);
  padding: 8px 16px; border-radius: 2px; transition: all 0.2s;
}
.sb-nav a.sb-nav-cta:hover { background: var(--accent); color: var(--bg-deep); }

/* Hamburger (mobile) */
.sb-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.sb-burger span { width: 22px; height: 1.5px; background: var(--accent); display: block; }
.sb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Preview Badge */
.sb-preview-badge {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; font-weight: 700;
  padding: 7px 14px; border: 1px solid var(--preview-dim);
  color: var(--preview-accent);
}
.sb-preview-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--preview-accent); }

/* Hidden in public builds (controlled by shared.js) */
body[data-sb-public="true"] .sb-preview-badge,
body[data-sb-public="true"] .sb-preview-only { display: none !important; }

/* ============================================================
   Page FV (汎用)
   ============================================================ */
.sb-page-fv {
  padding: 160px 48px 100px;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, var(--light-bg-glow) 0%, var(--light-bg) 50%, var(--light-bg) 100%);
  border-bottom: 1px solid var(--light-line);
}
.sb-page-fv-inner { max-width: 1200px; margin: 0 auto; }
.sb-page-fv-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase;
  font-weight: 700; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.sb-page-fv-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
.sb-page-fv-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  color: var(--light-text-primary); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.sb-page-fv-title .en { font-family: 'Inter', sans-serif; font-weight: 800; color: var(--accent); }
.sb-page-fv-title .accent { color: var(--accent); }
.sb-page-fv-sub {
  font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 2;
  color: var(--light-text-secondary); max-width: 720px;
}
.sb-page-fv-meta {
  margin-top: 36px; display: flex; gap: 18px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.2em; color: var(--light-text-muted); text-transform: uppercase;
}
.sb-page-fv-meta span { padding: 6px 14px; border: 1px solid var(--light-line); }

/* ============================================================
   Section (汎用)
   ============================================================ */
.sb-section { padding: 100px 48px; }
.sb-section-dark { background: var(--light-bg); color: var(--light-text-primary); border-top: 1px solid var(--light-line); }
.sb-section-light { background: var(--light-bg); }
.sb-section-glow { background: var(--light-bg-glow); border-top: 1px solid var(--light-line); border-bottom: 1px solid var(--light-line); }
.sb-section-inner { max-width: 1200px; margin: 0 auto; }
.sb-section-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase;
  font-weight: 700; margin-bottom: 18px;
}
.sb-section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  line-height: 1.4; margin-bottom: 40px; letter-spacing: -0.02em;
}
.sb-section-light .sb-section-title { color: var(--light-text-primary); }
.sb-section-dark .sb-section-title,
.sb-section-glow .sb-section-title { color: var(--light-text-primary); }
.sb-section-light .sb-section-title.dark { color: var(--light-text-primary); }
.sb-section-title .accent { color: var(--accent); }
.sb-section-sub {
  font-family: 'Noto Sans JP', sans-serif; font-size: 15px;
  line-height: 1.95; color: var(--light-text-secondary); max-width: 880px;
  margin-bottom: 40px;
}
.sb-section-dark .sb-section-sub { color: var(--light-text-secondary); }

/* ============================================================
   CTA (汎用)
   ============================================================ */
.sb-cta-section {
  padding: 100px 48px; background: var(--light-bg-glow); color: var(--light-text-primary);
  border-top: 1px solid var(--light-line); text-align: center;
}
.sb-cta-inner { max-width: 760px; margin: 0 auto; }
.sb-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase;
  font-weight: 700; margin-bottom: 20px;
}
.sb-cta-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 800;
  color: var(--light-text-primary); line-height: 1.45; margin-bottom: 22px;
}
.sb-cta-sub {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14.5px;
  color: var(--light-text-secondary); line-height: 1.9; margin-bottom: 36px;
}
.sb-cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 44px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
}
.sb-cta-btn:hover { background: var(--accent); color: var(--bg-deep); }

/* Mini CTA(数字後など) */
.sb-mini-cta {
  margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--light-line);
  text-align: center;
}
.sb-mini-cta a {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14px;
  color: var(--light-text-secondary); text-decoration: none;
}
.sb-mini-cta a strong {
  color: var(--accent); font-weight: 600; margin-left: 8px;
  transition: color 0.2s;
}
.sb-mini-cta a:hover strong { color: var(--accent-deep); }

/* ============================================================
   Card Grid (汎用 3カード / 4カード)
   ============================================================ */
.sb-cards { display: grid; gap: 22px; }
.sb-cards-3 { grid-template-columns: repeat(3, 1fr); }
.sb-cards-4 { grid-template-columns: repeat(4, 1fr); }
.sb-card {
  background: var(--light-bg-elevated); border: 1px solid var(--light-line);
  padding: 30px 26px; position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.sb-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.sb-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 48px; height: 2px; background: var(--accent);
}
.sb-card-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.22em; color: var(--accent);
  font-weight: 700; margin-bottom: 14px; text-transform: uppercase;
}
.sb-card-name {
  font-family: 'Noto Sans JP', sans-serif; font-size: 19px;
  font-weight: 700; color: var(--light-text-primary);
  margin-bottom: 4px; line-height: 1.45;
}
.sb-card-jp {
  font-family: 'Noto Sans JP', sans-serif; font-size: 13px;
  font-weight: 500; color: var(--light-text-muted); margin-bottom: 16px;
}
.sb-card-desc {
  font-family: 'Noto Sans JP', sans-serif; font-size: 12.5px;
  color: var(--light-text-secondary); line-height: 1.95;
}

/* Dark card variant */
.sb-section-dark .sb-card {
  background: var(--light-bg-elevated); border-color: var(--light-line);
}
.sb-section-dark .sb-card-name { color: var(--light-text-primary); }
.sb-section-dark .sb-card-jp { color: var(--light-text-muted); }
.sb-section-dark .sb-card-desc { color: var(--light-text-secondary); }

/* ============================================================
   Info Table (Company等の法人情報)
   ============================================================ */
.sb-info-block {
  background: var(--light-bg-elevated); border: 1px solid var(--light-line);
  padding: 32px 36px 26px; margin-bottom: 24px;
}
.sb-info-block-head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 22px; border-bottom: 1px solid var(--light-line);
  margin-bottom: 22px; flex-wrap: wrap;
}
.sb-info-block-name {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 26px;
  color: var(--light-text-primary); letter-spacing: 0.01em;
}
.sb-info-block-name .accent { color: var(--accent); }
.sb-info-block-name-jp {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14px;
  color: var(--light-text-muted); font-weight: 500;
}
.sb-info-block-role {
  margin-left: auto; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; color: var(--light-text-muted);
  text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; border: 1px solid var(--light-line-strong);
}
.sb-info-table { width: 100%; border-collapse: collapse; }
.sb-info-table th, .sb-info-table td {
  padding: 11px 0; vertical-align: top; text-align: left;
  font-size: 14px; line-height: 1.7;
}
.sb-info-table th {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; color: var(--light-text-muted);
  text-transform: uppercase; font-weight: 700;
  width: 180px; padding-right: 24px;
  border-bottom: 1px solid var(--light-line);
}
.sb-info-table td {
  font-family: 'Noto Sans JP', sans-serif; color: var(--light-text-primary);
  border-bottom: 1px solid var(--light-line);
}
.sb-placeholder-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.15em; color: var(--accent-bright);
  text-transform: uppercase; border: 1px dashed var(--accent-dim);
  vertical-align: middle;
}
body[data-sb-public="true"] .sb-placeholder-tag,
body[data-sb-public="true"] .sb-preview-only-inline { display: none !important; }
.sb-tbd { color: var(--light-text-muted); font-style: italic; }

/* ============================================================
   Form (Contact)
   ============================================================ */
.sb-form { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.sb-form-field { display: flex; flex-direction: column; gap: 8px; }
.sb-form-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--light-text-muted);
  text-transform: uppercase; font-weight: 700;
}
.sb-form-label .req { color: var(--preview-accent); margin-left: 6px; }
.sb-form-input,
.sb-form-select,
.sb-form-textarea {
  font-family: 'Noto Sans JP', sans-serif; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--light-line-strong);
  background: var(--light-bg-elevated); color: var(--light-text-primary);
  transition: border-color 0.2s;
}
.sb-form-input:focus,
.sb-form-select:focus,
.sb-form-textarea:focus { outline: none; border-color: var(--accent); }
.sb-form-textarea { min-height: 160px; resize: vertical; }
.sb-form-consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--light-text-secondary); line-height: 1.8;
  padding: 16px 18px; background: var(--light-bg-glow);
  border: 1px solid var(--light-line);
}
.sb-form-consent input { margin-top: 4px; }
.sb-form-submit {
  align-self: center; padding: 18px 56px;
  border: 1px solid var(--accent); background: var(--accent);
  color: var(--bg-deep); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; cursor: pointer; transition: all 0.25s;
}
.sb-form-submit:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.sb-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   Legal page disclaimer(preview only)
   ============================================================ */
.sb-legal-disclaimer {
  max-width: 860px; margin: 0 auto 48px;
  padding: 18px 22px;
  border: 1px solid var(--preview-dim);
  border-left: 3px solid var(--preview-accent);
  background: rgba(200, 117, 92, 0.06);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; line-height: 1.75;
  color: var(--light-text-primary);
}
.sb-legal-disclaimer-label {
  display: inline-block; margin-right: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--preview-accent); font-weight: 700;
}

/* ============================================================
   Legal text block(Privacy / Legal用)
   ============================================================ */
.sb-legal-body {
  max-width: 860px; margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14.5px; line-height: 1.95; color: var(--light-text-primary);
}
.sb-legal-body h2 {
  font-size: 18px; font-weight: 700; margin: 40px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--light-line);
}
.sb-legal-body h3 {
  font-size: 15px; font-weight: 600; margin: 22px 0 8px;
  color: var(--light-text-secondary);
}
.sb-legal-body p { margin-bottom: 14px; color: var(--light-text-secondary); }
.sb-legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.sb-legal-body ul li { color: var(--light-text-secondary); margin-bottom: 6px; }
.sb-legal-revision {
  margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--light-line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--light-text-muted);
  text-transform: uppercase;
}

/* ============================================================
   Footer (共通)
   ============================================================ */
.sb-footer {
  background: var(--bg-deep); color: var(--text-primary);
  border-top: 1px solid var(--line);
  padding: 80px 48px 40px;
}
.sb-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px; padding-bottom: 50px; border-bottom: 1px solid var(--line);
}
.sb-footer-brand-name {
  font-family: 'Inter', sans-serif; font-weight: 900; font-size: 22px;
  letter-spacing: 0.02em; color: var(--text-primary);
}
.sb-footer-brand-name span { color: var(--accent); }
.sb-footer-brand-tag {
  margin-top: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent);
  text-transform: uppercase; font-weight: 700;
}
.sb-footer-brand-sub {
  margin-top: 18px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.85;
}
.sb-footer-col-head {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.22em; color: var(--accent);
  text-transform: uppercase; font-weight: 700; margin-bottom: 18px;
}
.sb-footer-links { display: flex; flex-direction: column; gap: 11px; }
.sb-footer-links a {
  color: var(--text-secondary); text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px;
  transition: color 0.2s;
}
.sb-footer-links a:hover { color: var(--accent); }
.sb-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   Utility
   ============================================================ */
.sb-spacer { display: block; height: 64px; } /* ヘッダー分の余白 */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .sb-nav { display: none; }
  .sb-burger { display: flex; }
  .sb-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(8,8,10,0.97); border-bottom: 1px solid var(--line);
    padding: 28px 36px; gap: 18px; backdrop-filter: blur(14px);
  }
  .sb-page-fv { padding: 130px 24px 80px; }
  .sb-section { padding: 80px 24px; }
  .sb-cta-section { padding: 80px 24px; }
  .sb-footer { padding: 60px 24px 32px; }
  .sb-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .sb-cards-3, .sb-cards-4 { grid-template-columns: 1fr; }
  .sb-info-table th { width: 140px; }
  .sb-info-table th, .sb-info-table td { padding: 9px 0; font-size: 13px; }
}
@media (max-width: 600px) {
  .sb-info-table th, .sb-info-table td { display: block; width: 100%; }
  .sb-info-table th { border-bottom: none; padding-bottom: 4px; }
}
