:root {
  --bg: #0b0f14;
  --surface: #121a24;
  --surface-2: #0f1720;
  --text: #e9edf3;
  --muted: #b8c2d1;
  --line: rgba(255,255,255,0.12);
  --primary: #1da1f2;
  --accent: #f3c861;
  --danger: #ff6b6b;
  --ok: #5bd18b;
  --shadow: 0 18px 40px rgba(0,0,0,0.35);

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(29,161,242,0.22), transparent 55%),
              radial-gradient(1000px 600px at 85% 20%, rgba(243,200,97,0.18), transparent 55%),
              var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  line-height: 1.7;
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* Top bar */
.topbar {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.topbar__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(243,200,97,0.16);
  color: var(--accent);
  border: 1px solid rgba(243,200,97,0.22);
  white-space: nowrap;
}
.topbar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__phone {
  text-decoration: none;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.topbar__phone:hover { border-color: rgba(255,255,255,0.25); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,0.65);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.site-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__name {
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand__tagline {
  font-size: 12px;
  color: var(--muted);
}
.custom-logo { max-height: 44px; width: auto; }

.primary-nav .menu {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.primary-nav .menu a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
}
.primary-nav .menu a:hover { background: rgba(255,255,255,0.04); color: var(--text); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
}
.nav-toggle__icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(var(--text), var(--text)) 0 0/100% 2px,
    linear-gradient(var(--text), var(--text)) 0 5px/100% 2px,
    linear-gradient(var(--text), var(--text)) 0 10px/100% 2px;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.nav-toggle__text { font-size: 13px; color: var(--muted); }

.header-cta { justify-self: end; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.btn--primary {
  background: linear-gradient(180deg, rgba(29,161,242,0.95), rgba(29,161,242,0.65));
  border-color: rgba(29,161,242,0.55);
  color: #07111a;
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--outline {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.25); }

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.text-link:hover { text-decoration: underline; }

/* Content */
.site-content { padding-bottom: 64px; }

.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(29,161,242,0.18), transparent 55%),
    radial-gradient(900px 520px at 85% 20%, rgba(243,200,97,0.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 10px 0 14px;
}
.hero__eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(243,200,97,0.28);
  color: var(--accent);
  background: rgba(243,200,97,0.08);
  font-weight: 700;
  font-size: 13px;
}
.hero__lead { color: var(--muted); max-width: 64ch; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 18px 0 0;
}
.hero__badges li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 54px 0;
}
.section--alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.section h3 { margin: 0 0 8px; }
.section p { color: var(--muted); }
.section__cta { margin-top: 18px; }

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

.cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.card__icon img { width: 22px; height: 22px; }

.steps {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
}
.steps li { margin: 10px 0; color: var(--muted); }
.steps strong { color: var(--text); }

.testimonials {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}
.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 16px;
}
.testimonial blockquote { margin: 0; color: var(--text); }
.testimonial figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.callout {
  margin-top: 18px;
  border: 1px solid rgba(243,200,97,0.25);
  background: rgba(243,200,97,0.06);
  border-radius: var(--radius);
  padding: 16px;
}
.callout p { margin: 10px 0; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.checklist li {
  padding-left: 28px;
  margin: 10px 0;
  position: relative;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(91,209,139,0.18);
  border: 1px solid rgba(91,209,139,0.32);
  position: absolute;
  left: 0;
  top: 4px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 18px 0 10px;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { text-decoration: underline; color: var(--text); }

/* Page / post */
.page, .post { padding: 26px 0; }
.page-header, .post-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.page-title, .post-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}
.post-meta { color: var(--muted); font-size: 14px; display: flex; gap: 10px; }
.post-content, .page-content { color: var(--muted); }
.post-content h2, .page-content h2 { color: var(--text); margin-top: 26px; }
.post-content a, .page-content a { color: var(--primary); }

.post-list {
  display: grid;
  gap: 14px;
  padding: 18px 0;
}
.post-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 16px;
}
.post-card__title { margin: 0 0 6px; font-size: 20px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__meta { color: var(--muted); font-size: 14px; }
.post-card__excerpt { margin: 10px 0 0; color: var(--muted); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
}
.info-table th, .info-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  width: 160px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

/* Forms */
.contact-form { margin-top: 16px; }
.form-grid { display: grid; gap: 12px; }
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
label em { color: var(--accent); font-style: normal; font-weight: 700; }
input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(29,161,242,0.7); }
.form-note { color: var(--muted); font-size: 13px; }
.hp { display: none; }

.alert {
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.alert-success { border-color: rgba(91,209,139,0.35); background: rgba(91,209,139,0.08); }
.alert-danger { border-color: rgba(255,107,107,0.35); background: rgba(255,107,107,0.08); }

.pagination { margin-top: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 16px;
  padding: 40px 0;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__mark { width: 28px; height: 28px; }
.footer__title { font-size: 16px; margin: 0 0 10px; }
.footer__text { color: var(--muted); }
.footer__meta { color: var(--muted); font-size: 14px; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-menu a { text-decoration: none; color: var(--muted); }
.footer-menu a:hover { color: var(--text); text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
}
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.to-top { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.to-top:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.widget { border: 1px solid var(--line); background: rgba(255,255,255,0.02); border-radius: var(--radius); padding: 14px; }
.widget-title { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.small { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .header__inner { grid-template-columns: 1fr auto auto; }
  .brand__tagline { display: none; }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(11,15,20,0.98);
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .primary-nav { display: block; }
  .primary-nav .menu { flex-direction: column; padding: 10px; }
  .primary-nav .menu a { padding: 12px; }
  .header-cta { display: none; }
  .topbar__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
