/* 出欠ワン 共通スタイル（LP・法務ページ用 / ワークスペース側も .site-header / .site-footer を共用）
   外部フォント・外部CDN不使用。システムフォントのみ。 */
:root {
  --navy: #16283f;
  --navy-2: #1e3a5c;
  --green: #1f9d66;
  --green-dark: #177a4e;
  --amber: #f2b134;
  --paper: #f7f5ef;
  --ink: #22303f;
  --muted: #5c6a78;
  --line: #ddd8cc;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header / footer (共通) ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.site-header .brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  position: relative;
}
.site-header .brand .brand-mark::after {
  content: "";
  position: absolute;
  top: 5px; right: 5px;
  width: 5px; height: 9px;
  border-radius: 3px;
  background: var(--amber);
}
.site-header nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a {
  color: #dbe5f0;
  text-decoration: none;
  font-size: .92rem;
}
.site-header nav a:hover { color: #fff; text-decoration: underline; }
.site-header .header-cta {
  background: var(--amber);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.site-header .header-cta:hover { text-decoration: none; filter: brightness(1.05); }

.site-footer {
  background: var(--navy);
  color: #c9d5e2;
  margin-top: 72px;
  padding: 36px 0 28px;
  font-size: .9rem;
}
.site-footer .footer-brand { color: #fff; font-weight: 800; font-size: 1.05rem; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 16px; }
.site-footer nav a { color: #c9d5e2; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .copyright { color: #8fa3b8; font-size: .82rem; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(242, 177, 52, .16);
  color: var(--amber);
  border: 1px solid rgba(242, 177, 52, .5);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  line-height: 1.35;
  margin: 0 0 18px;
  font-weight: 900;
}
.hero h1 .hl { color: var(--amber); }
.hero h1 .check { color: #4ade9e; }
.hero p.lead { font-size: 1.05rem; color: #d7e2ee; max-width: 640px; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: .85rem; color: #9db2c7; margin-top: 14px; }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid #7d93ab; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- sections ---------- */
section.block { padding: 56px 0 8px; }
section.block h2 {
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.4;
}
section.block h2 .check { color: var(--green); }
section.block .sub { color: var(--muted); margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.card h3 .ic { color: var(--green); margin-right: 6px; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }

.pain-solve { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.pain-solve .arrow { align-self: center; font-size: 1.6rem; color: var(--green); font-weight: 900; }
.pain { background: #fdf1ec; border: 1px solid #f0d5c8; border-radius: var(--radius); padding: 20px; }
.solve { background: #ecf7f1; border: 1px solid #bfe6d2; border-radius: var(--radius); padding: 20px; }
.pain h3, .solve h3 { margin: 0 0 10px; font-size: 1rem; }
.pain ul, .solve ul { margin: 0; padding-left: 1.2em; font-size: .93rem; }
@media (max-width: 640px) {
  .pain-solve { grid-template-columns: 1fr; }
  .pain-solve .arrow { transform: rotate(90deg); justify-self: center; }
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; margin-bottom: 10px;
}
.step .num::after { content: ""; }
.step h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--navy); }
.step p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- pricing ---------- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .95rem;
}
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare thead th { background: var(--navy); color: #fff; }
table.compare thead th.plan-pro { background: var(--green); }
table.compare tbody th { font-weight: 600; color: var(--navy); background: #fbfaf6; width: 34%; }
table.compare .yes { color: var(--green-dark); font-weight: 700; }
table.compare .no { color: #b3b9bf; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.price-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
}
.price-card.pro { border-color: var(--green); }
.price-card .plan-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.price-card .amount { font-size: 2rem; font-weight: 900; color: var(--navy); margin: 8px 0 2px; }
.price-card .amount small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price-card .per { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.price-card .badge {
  display: inline-block; background: var(--amber); color: var(--navy);
  font-size: .78rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; margin-bottom: 8px;
}
.billing-msg { margin-top: 14px; font-size: .92rem; min-height: 1.6em; }
.billing-msg.info { color: var(--muted); }
.billing-msg.error { color: #b3402a; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; }
.faq-item p { margin: 0 0 16px; font-size: .95rem; color: var(--ink); }

/* ---------- share ---------- */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-btn {
  display: inline-block;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { background: var(--navy); color: #fff; }

/* ---------- ads ---------- */
.ad-slot { margin: 40px 0 8px; }
.ad-slot .ad-label { font-size: .72rem; color: var(--muted); letter-spacing: .12em; margin-bottom: 8px; }
.ad-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ad-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
}
.ad-item:hover { border-color: var(--green); }
.ad-item .ad-title { font-weight: 700; color: var(--navy); font-size: .98rem; }
.ad-item .ad-desc { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.ad-item .ad-via { font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* ---------- legal / plain pages ---------- */
.doc { padding: 44px 0 8px; }
.doc h1 { font-size: 1.6rem; color: var(--navy); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.15rem; color: var(--navy); margin: 30px 0 8px; }
.doc p, .doc li { font-size: .96rem; }
.doc ul { padding-left: 1.3em; }
.doc table { border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.doc table th, .doc table td { border: 1px solid var(--line); padding: 8px 14px; text-align: left; }
.doc table th { background: #fbfaf6; color: var(--navy); }
