:root {
  --ink: #26282B;
  --ink-soft: #5B5F66;
  --green: #007B43;
  --green-light: #3FBF7F;
  --green-tint: #EAF5EE;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F5;
  --line: #E2E4E0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* header */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
header .logo img { height: 34px; width: auto; }
nav { display: flex; gap: 24px; font-size: 14px; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--green); }
nav .cta { color: #fff; background: var(--green); padding: 8px 16px; border-radius: 999px; }
nav .cta:hover { color: #fff; background: #006236; }

/* hero */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.35; margin: 0 0 24px; font-weight: 700; letter-spacing: 0.02em; }
.hero .lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 36px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: #006236; }
.btn.ghost { border: 2px solid var(--ink); color: var(--ink); padding: 12px 24px; }
.btn.ghost:hover { background: var(--bg-soft); }

/* time tag ("時間の値札") */
.tags { display: flex; flex-direction: column; gap: 18px; }
.tag {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px 18px 18px 14px;
  padding: 18px 22px 16px 52px;
  box-shadow: 4px 4px 0 var(--ink);
}
.tag::before { /* the hole of a price tag */
  content: "";
  position: absolute; left: 18px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--bg-soft);
}
.tags .tag:nth-child(1) { transform: rotate(-1.5deg); }
.tags .tag:nth-child(2) { transform: rotate(1deg) translateX(18px); }
.tags .tag:nth-child(3) { transform: rotate(-0.5deg); }
.tag .task { font-size: 14px; color: var(--ink-soft); margin: 0; }
.tag .time { font-size: 26px; font-weight: 700; margin: 2px 0; letter-spacing: 0.01em; }
.tag .time .arrow { color: var(--ink-soft); font-weight: 500; margin: 0 6px; }
.tag .time .after { color: var(--green); }
.tag .basis { font-size: 12px; color: var(--ink-soft); margin: 0; }
.note { font-size: 12px; color: var(--ink-soft); margin: 14px 0 0; }

/* time tag anatomy */
.tagdoc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tagdoc .intro { margin-bottom: 0; }
.tag.big { padding: 24px 28px 22px 60px; }
.tag.big::before { left: 22px; }
.tag.big .task { font-size: 16px; }
.tag.big .time { font-size: 34px; margin: 6px 0; }
.tag.big .basis { font-size: 14px; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
  margin-right: 8px; vertical-align: 2px; line-height: 1;
}
.tag.big .time .num { vertical-align: 6px; }
.legend { list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; color: var(--ink-soft); }
.legend li { margin: 6px 0; }

/* sections */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; margin: 0 0 8px; }
h2 { font-size: 34px; line-height: 1.45; margin: 0 0 20px; font-weight: 700; }
h3 { font-size: 21px; margin: 0 0 12px; line-height: 1.5; }
.intro { max-width: 680px; color: var(--ink-soft); font-size: 16px; margin: 0 0 40px; }

/* two services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.card .who { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.card p { margin: 0 0 16px; color: var(--ink-soft); }
.card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.card li { padding: 10px 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.card li .t { color: var(--green); font-weight: 700; white-space: nowrap; }
.card .meta { font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.aside { margin: 28px 0 0; font-size: 14px; color: var(--ink-soft); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--ink-soft); margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { width: 7em; font-weight: 700; padding-right: 16px; }
.todo { background: #FFF4CC; padding: 0 4px; border-radius: 4px; }

/* contact */
.contact { text-align: center; }
.contact .intro { margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
footer img { height: 24px; width: auto; }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .services, .about, .tagdoc { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  h2 { font-size: 27px; }
  nav a:not(.cta) { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  header .logo img { height: 28px; }
  .hero h1 { font-size: 31px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .card li { flex-direction: column; gap: 0; }
  .tag .time { font-size: 22px; }
  .tag.big { padding: 20px 20px 18px 48px; }
  .tag.big::before { left: 16px; }
  .tag.big .time { font-size: 26px; }
  .tags .tag:nth-child(2) { transform: rotate(1deg); }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---- calculator page (calc.html) ---- */
[hidden] { display: none !important; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; background: none; }
button.btn.primary { background: var(--green); border: 0; }
.btn.small { padding: 8px 16px; font-size: 13px; border-width: 1.5px; }
.calc-head { padding: 64px 0 40px; }
.page-title { font-size: 40px; line-height: 1.4; margin: 0 0 16px; font-weight: 700; }
.calc-head .intro { margin-bottom: 0; }
.calc-body { padding: 56px 0; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form .field { margin-bottom: 22px; }
.form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.form .opt { font-weight: 500; font-size: 12px; color: var(--ink-soft); margin-left: 6px; }
.form input, .form select {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #C9CCC6; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.form input[type=text] { width: 100%; }
.form input[type=number] { width: 7.5em; }
.form input:focus, .form select:focus { outline: 3px solid var(--green-light); outline-offset: 1px; border-color: var(--green); }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }
.form-actions { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.result { position: sticky; top: 24px; }
.result .tag.big .time { min-height: 1.4em; }
.stats { margin: 28px 0 0; display: grid; gap: 10px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.stats dt { font-size: 12px; color: var(--ink-soft); }
.stats dd { margin: 0; font-size: 18px; font-weight: 700; }
.warn { margin: 16px 0 0; font-size: 14px; color: #A33A00; }
.result .buttons { margin-top: 24px; }
.copied { font-size: 13px; color: var(--green); min-height: 1.5em; margin: 8px 0 0; }
.rules { max-width: 760px; }
.rules ul { color: var(--ink-soft); font-size: 14px; padding-left: 1.2em; margin: 0; }
.rules li { margin: 6px 0; }
h2.small { font-size: 20px; margin-bottom: 12px; }
.calc-link { margin-top: 28px; }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .result { position: static; }
  .page-title { font-size: 30px; }
  .calc-head { padding: 40px 0 28px; }
}
.pending { font-weight: 700; font-size: 16px; margin: 0 0 24px; }
