:root {
  --bg: #faf9f5;
  --bg-card: #ffffff;
  --bg-soft: #f4f2ec;
  --text-primary: #1a1a2e;
  --text-secondary: #5a5a6a;
  --text-tertiary: #8a8a96;
  --border: rgba(26, 26, 46, 0.08);
  --border-strong: rgba(26, 26, 46, 0.18);
  --accent: #1d9e75;
  --accent-dark: #0f6e56;
  --accent-soft: #e1f5ee;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w: 1080px;
}

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

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

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Header ===== */
.site-header {
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.logo span { color: var(--accent); }
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--text-primary); font-weight: 500; }
.nav-cta {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  background: var(--text-primary);
  color: var(--bg) !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: #2a2a4a; }

.menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

.lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  color: var(--text-tertiary);
  font-family: inherit;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { color: var(--accent); border-color: var(--accent); }

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 0.5px solid var(--border);
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-brand p { font-size: 12px; color: var(--text-tertiary); line-height: 1.7; }
.footer-links {
  display: flex;
  gap: 2.5rem;
  font-size: 13px;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.copyright {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 0.5px solid var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ===== Common layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.page-title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.page-title em { font-style: normal; color: var(--accent); }

.page-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  font-weight: 500;
}

/* ===== Pricing page ===== */
.price-hero {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.ph-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.ph-tag {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.ph-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.ph-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.ph-price { text-align: right; white-space: nowrap; }
.ph-num {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.ph-num-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.pages-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.page-box {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.75rem;
  text-align: center;
}
.page-icon { font-size: 22px; color: var(--accent); display: block; margin-bottom: 0.4rem; }
.page-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.page-jp { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; letter-spacing: 0.02em; }

.factor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.factor {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  align-items: center;
}
.factor:nth-child(odd) { border-right: 0.5px solid var(--border); }
.factor:nth-last-child(-n+2) { border-bottom: none; }
.factor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.opt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.opt-table td {
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.opt-table tr:last-child td { border-bottom: none; }
.opt-name { color: var(--text-primary); font-weight: 500; width: 28%; }
.opt-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.opt-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  width: 28%;
  font-weight: 500;
}

.running-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rc {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
}
.rc-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rc-icon { font-size: 16px; color: var(--accent); }
.rc-price {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.rc-price small { font-size: 12px; font-weight: 400; color: var(--text-secondary); margin-left: 3px; }
.rc-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }

.flow-wrap {
  display: flex;
  align-items: stretch;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.fl-step {
  flex: 1;
  padding: 1.1rem 1rem;
  border-right: 0.5px solid var(--border);
}
.fl-step:last-child { border-right: none; }
.fl-num { font-size: 11px; color: var(--text-tertiary); margin-bottom: 0.4rem; letter-spacing: 0.05em; }
.fl-name { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem; }
.fl-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }

.note-bar {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 2rem;
}
.note-bar strong { color: var(--text-primary); font-weight: 500; }

.cta-section {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-section h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.cta-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text-primary);
  color: var(--bg) !important;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.cta-btn:hover { background: #2a2a4a; }
.contact-qr-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.contact-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.contact-qr-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
}
.contact-qr-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== Works page ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}
.stat-c {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.stat-n {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-l { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.f-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.f-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.f-url-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}
.f-url {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}
.f-ext { font-size: 15px; color: var(--accent); }
.f-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.f-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.f-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.tag-corp { background: #e1f5ee; color: #085041; }
.tag-brand { background: #e6f1fb; color: #185fa5; }
.tag-func { background: #eeedfe; color: #534ab7; }
.tag-multi { background: #faeeda; color: #854f0b; }

.f-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.fb {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 0.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.fb:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.fb.on {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

.arc-wrap {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.arc {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.arc th {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  letter-spacing: 0.05em;
  background: var(--bg-soft);
}
.arc td {
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
  font-size: 14px;
}
.arc tr:last-child td { border-bottom: none; }
.arc tbody tr { transition: background 0.15s; }
.arc tbody tr:hover { background: var(--bg-soft); }

.cname { font-weight: 500; color: var(--text-primary); display: block; line-height: 1.3; }
.cdomain {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 3px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.cind { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.cbadge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 0.15s;
}
.view-link:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ===== Index/landing simple ===== */
.landing-hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.landing-hero h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero .lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.landing-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text-primary);
  color: var(--bg) !important;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-primary:hover { background: #2a2a4a; }
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary) !important;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--text-primary); }

/* ===== Cross-promo banner ===== */
.cross-promo {
  background: var(--accent-soft);
  border: 1px solid rgba(29, 158, 117, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.cp-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.cp-icon {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.cp-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.cp-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.cp-btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.cp-btn:hover { background: var(--accent-dark); }

/* ===== Homepage service cards ===== */
.svc-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.svc-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.svc-tag {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.svc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.svc-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ===== SNS page ===== */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sns-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.sns-price-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sns-price-num {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.sns-price-unit {
  font-size: 13px;
  color: var(--text-secondary);
}
.sns-inc-list {
  list-style: none;
  margin-top: 1rem;
  flex: 1;
}
.sns-inc-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.sns-inc-list li:last-child { border-bottom: none; }
.sns-inc-check { color: var(--accent); font-size: 14px; flex-shrink: 0; }

/* ===== Mobile responsive ===== */
@media (max-width: 720px) {
  .container { padding: 2rem 1.25rem; }
  .page-title { font-size: 28px; }
  .page-lead { font-size: 15px; }
  .landing-hero h1 { font-size: 32px; }
  .landing-hero .lead { font-size: 15px; }

  .price-hero { padding: 1.5rem; }
  .ph-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ph-price { text-align: left; }
  .ph-num { font-size: 26px; }
  .ph-name { font-size: 18px; }

  .pages-row { grid-template-columns: repeat(2, 1fr); }
  .factor-list { grid-template-columns: 1fr; }
  .factor:nth-child(odd) { border-right: none; }
  .factor:nth-last-child(-n+2) { border-bottom: 0.5px solid var(--border); }
  .factor:last-child { border-bottom: none; }

  .running-grid { grid-template-columns: 1fr; }

  .flow-wrap { flex-direction: column; }
  .fl-step { border-right: none; border-bottom: 0.5px solid var(--border); }
  .fl-step:last-child { border-bottom: none; }

  .opt-table td { padding: 0.85rem 1rem; font-size: 13px; }
  .opt-name { width: auto; display: block; padding-bottom: 0.25rem !important; }
  .opt-desc { display: none; }
  .opt-price { font-size: 14px; }

  .cross-promo { flex-direction: column; gap: 1.25rem; }
  .cp-btn { width: 100%; text-align: center; }
  .svc-grid { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .sns-grid { grid-template-columns: 1fr; }
  .sns-price-num { font-size: 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-c { padding: 1rem; }
  .stat-n { font-size: 26px; }

  .arc th, .arc td { padding: 0.75rem 0.85rem; font-size: 12px; }
  .arc th:nth-child(2), .arc td:nth-child(2) { display: none; }
  .cname { font-size: 13px; }

  .cta-section { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
