/* xmeal — site styles */
:root {
  --paper: #FFFFFF;
  --ink: #1C1C1A;
  --ink-soft: #4A4D49;
  --leaf: #1E7F55;
  --leaf-deep: #155E3E;
  --leaf-soft: #E3F2EA;
  --tag: #FFD43B;
  --line: #D9DDD8;
  --mist: #F3F5F2;
  --round: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  --measure: 38em;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }

:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; gap: 20px; font-size: 14px; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--leaf); }

/* ---------- hero ---------- */
.hero { padding-block: 64px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--round);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}
.hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 30em; margin: 0 0 32px; }

.add-line { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--leaf);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--leaf-deep); color: #fff; }
.qr {
  width: 112px; height: 112px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; line-height: 1.5; color: var(--ink-soft); text-align: center;
}
.qr img { width: 100%; height: 100%; }
.qr.has-img { border: 0; border-radius: 0; }
.add-line .note { font-size: 13px; color: var(--ink-soft); }

/* ---------- the label (signature element) ---------- */
.label {
  border: 3px solid var(--ink);
  padding: 14px 18px 12px;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.label h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.4;
}
.label .basis { font-size: 13px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 8px solid var(--ink); }
.label dl { margin: 0; }
.label .row { display: flex; justify-content: space-between; align-items: baseline; padding-block: 7px; border-bottom: 1px solid var(--ink); }
.label .row:last-child { border-bottom: 0; }
.label dt { font-size: 15px; }
.label dd { margin: 0; font-size: 20px; font-weight: 800; }
.label dd small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.label .free dd { background: var(--tag); padding: 0 8px; }
.label .foot { font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); margin: 10px 0 0; padding-top: 8px; border-top: 4px solid var(--ink); }

/* ---------- sections ---------- */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
section h2 {
  font-family: var(--round);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.4;
  margin: 0 0 12px;
}
section .intro { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 40px; }

/* how it works: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps figure { margin: 0 0 20px; background: var(--mist); border-radius: 20px; padding: 24px 24px 0; overflow: hidden; height: 390px; }
.steps figure img { width: 100%; max-width: 230px; margin-inline: auto; }
.steps h3 { font-size: 18px; line-height: 1.5; margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.steps h3::before {
  content: counter(step);
  font-family: var(--round);
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--leaf); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 15px;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.caption { font-size: 13px; color: var(--ink-soft); margin: 28px 0 0; max-width: var(--measure); }

/* features: plain list with tag markers */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; margin: 0; padding: 0; list-style: none; }
.features li { padding-left: 22px; position: relative; max-width: 30em; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 14px; background: var(--tag); }
.features h3 { font-size: 17px; margin: 0 0 4px; line-height: 1.6; }
.features p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* audience */
.audience { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.audience li { border: 2px solid var(--leaf); color: var(--leaf-deep); border-radius: 999px; padding: 8px 20px; font-weight: 700; }

/* price */
.price { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.price .tag {
  background: var(--tag);
  font-family: var(--round);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  padding: 24px 32px 22px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.price .tag span { font-size: 24px; margin-left: 4px; }
.price p { margin: 0; max-width: 30em; color: var(--ink-soft); }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 24px; align-items: start; }
.plan { border: 2px solid var(--line); border-radius: 14px; padding: 24px; }
.plan.pro { border: 3px solid var(--ink); }
.plan h3 { font-family: var(--round); font-size: 19px; margin: 0 0 8px; }
.plan .amount { font-family: var(--round); font-weight: 700; font-size: 40px; line-height: 1.2; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.plan .amount span { font-size: 14px; font-weight: 600; margin-left: 4px; }
.plan.pro .amount { background: var(--tag); display: inline-block; padding: 2px 12px; border-radius: 4px; }
.plan ul { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--ink-soft); }
.plan li { margin-bottom: 6px; }

/* cautions */
.cautions { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
.cautions li { margin-bottom: 10px; }

/* operator table */
.facts { border-collapse: collapse; width: 100%; max-width: 640px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts th { width: 9em; font-weight: 700; padding-right: 16px; }

/* contact form */
.form { max-width: 560px; display: grid; gap: 20px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid #B9BEB8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--leaf); outline: 3px solid var(--leaf-soft); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; margin: 0; min-height: 1.5em; }
.form-status.ok { color: var(--leaf-deep); font-weight: 700; }
.form-status.err { color: #B3261E; font-weight: 700; }

/* ---------- legal pages ---------- */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--round); font-size: clamp(26px, 4vw, 34px); line-height: 1.4; margin: 0 0 8px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 19px; margin: 44px 0 10px; line-height: 1.5; }
.doc p, .doc li { font-size: 15.5px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc .draft { background: var(--tag); padding: 12px 16px; border-radius: 6px; font-size: 14px; margin: 0 0 32px; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; }
.doc th { background: var(--mist); width: 11em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #E9ECE8; padding-block: 40px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #E9ECE8; }
.site-footer small { color: #B8BDB6; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .label { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps figure img { max-width: 220px; }
  .features { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; gap: 20px; }
  .plans { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .qr { display: none; }
}
@media (max-width: 480px) {
  .hero { padding-block: 40px 56px; }
  section { padding-block: 56px; }
  .facts th { width: 6.5em; }
}

@media (prefers-reduced-motion: no-preference) {
  .label { animation: stamp 0.5s ease-out 0.15s both; }
  @keyframes stamp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
