:root {
  --orange: #E77F31;
  --orange-deep: #c2611a;
  --orange-light: #fbe7d4;
  --green: #30B200;
  --green-deep: #3C931C;
  --ink: #080404;
  --paper: #ffffff;
  --bg: #fbfbf9;
  --soft: #f4f5f7;
  --line: #d8dbe0;
  --note: #757b84;
  --bad: #D32F2F;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
body.is-loading { cursor: wait; }
a { color: var(--orange-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.38; }
h1 { font-size: clamp(28px, 4.8vw, 42px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.8vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0 0 12px; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.note { color: var(--note); font-size: 13px; }
.small { font-size: 12px; }
.text-center { text-align: center; }

.l-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #EEE;
  padding: 12px 0;
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.hd-info__logo { margin: 0; line-height: 0; }
.hd-info__logo a { text-decoration: none; color: var(--ink); display: inline-block; }
.hd-info__logo-img { display: block; height: 36px; width: auto; }
.hd-info__logo-text { font-weight: 800; letter-spacing: .02em; }
.l-breadcrumb { background: transparent; padding: 12px 0; font-size: 13px; line-height: 1.5; }
.l-breadcrumb__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.l-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; color: #555; }
.l-breadcrumb li { display: inline-flex; align-items: center; }
.l-breadcrumb li + li::before { content: ">"; margin: 0 10px; color: #999; font-weight: 400; }
.l-breadcrumb a { color: #555; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.l-breadcrumb a:hover { color: #000; text-decoration: underline; }
.l-breadcrumb__icon { width: 14px; height: 14px; vertical-align: -2px; flex-shrink: 0; }
.l-breadcrumb [aria-current="page"] { color: #555; }
.diagnosis-overlay { position: fixed; inset: 0; background: rgba(20, 20, 22, 0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.diagnosis-overlay__inner { text-align: center; color: #fff; max-width: 480px; width: 100%; }
.diagnosis-overlay__spinner { width: 72px; height: 72px; border: 5px solid rgba(255,255,255,0.18); border-top-color: var(--orange); border-radius: 50%; margin: 0 auto 28px; animation: diagspin 1s linear infinite; }
@keyframes diagspin { to { transform: rotate(360deg); } }
.diagnosis-overlay__title { font-size: 22px; font-weight: 800; margin: 0 0 14px; letter-spacing: .02em; }
.diagnosis-overlay__step { font-size: 14px; color: rgba(255,255,255,0.9); min-height: 1.7em; margin: 0 0 18px; transition: opacity .2s; }
.diagnosis-overlay__note { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; }
@media (max-width: 760px) {
  .diagnosis-overlay__spinner { width: 56px; height: 56px; border-width: 4px; margin-bottom: 22px; }
  .diagnosis-overlay__title { font-size: 18px; }
  .diagnosis-overlay__step { font-size: 13px; }
}
.prefill-note { display: flex; align-items: center; gap: 10px; background: #f0faea; border: 1px solid #c0dd97; color: #173404; padding: 12px 16px; border-radius: 6px; font-size: 13px; margin: 0 auto 24px; max-width: 560px; }
.prefill-note .ck { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #3b6d11; color: #fff; border-radius: 50%; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.timerex-wrap { background: #fff; border: 3px solid var(--ink); border-radius: 8px; padding: 24px; margin: 16px auto 0; max-width: 720px; }
#timerex_calendar { min-height: 480px; margin: 0 -8px; }
.timerex-sp { display: none; text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
@media (max-width: 760px) {
  .timerex-wrap { padding: 16px; }
  #timerex_calendar { min-height: 360px; }
  .timerex-sp { display: block; }
}
.hd-info__btn { margin: 0; }
.hd-info__btn a {
  display: inline-block;
  padding: 10px 22px 10px 18px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--green);
  box-shadow: 0 4px 0 0 var(--green-deep);
  text-decoration: none;
  border-radius: 3px;
}

.l-footer {
  background-color: #EEE;
  padding: 30px 0 20px;
  text-align: center;
  border-top: 1px solid #ddd;
}
.ft-logo { margin: 0 0 14px; line-height: 0; }
.ft-logo a { display: inline-block; }
.ft-logo-img { display: block; height: 24px; width: auto; opacity: .85; }
.ft-logo-text { font-weight: 800; font-size: 16px; color: var(--ink); }
.f_link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 auto 14px;
}
.f_link a { font-size: 12px; color: var(--ink); text-decoration: none; }
.f_link a:hover { text-decoration: underline; }
.ft-cr { margin: 0; }
.ft-cr__txt { font-size: 11px; color: #666; }

.section { padding: 60px 0; }
.section.bordered { border-bottom: 1px solid var(--line); }
.section-label {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: 3px solid var(--ink);
  font-weight: 800;
  padding: 4px 14px;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: 16px;
  border-radius: 3px;
}
.lead { font-size: 15px; margin: 10px 0 28px; }

.hero {
  background: linear-gradient(180deg, #fff 0%, var(--orange-light) 100%);
  padding: 56px 0 64px;
  border-bottom: 3px solid var(--ink);
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.hero h1 { margin: 0 0 14px; }
.hero h1 .em {
  color: var(--orange-deep);
  background: #fff;
  padding: 0 8px;
  border: 3px solid var(--ink);
  display: inline-block;
}
.hero .sub { font-size: clamp(15px, 2vw, 17px); margin-bottom: 22px; font-weight: 500; }
.hero-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.badge-pill {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 30px;
}
.hero-form {
  background: #fff;
  border: 3px solid var(--ink);
  padding: 24px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 6px 6px 0 var(--ink);
}
.hero-form-title { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-align: center; margin-bottom: 14px; }
.hero-form-title span {
  background: var(--orange);
  color: #fff;
  padding: 3px 12px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  display: inline-block;
}
.hero-form-row { display: grid; grid-template-columns: 1fr 210px auto; gap: 10px; align-items: end; }
.hero-form-row label, .form-row label { display: block; font-weight: 800; font-size: 12px; margin-bottom: 5px; }
input, select, textarea {
  width: 100%;
  border: 2px solid var(--ink);
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
input[readonly] { background: var(--soft); cursor: not-allowed; }
textarea { min-height: 96px; resize: vertical; }
.req { color: var(--bad); margin-left: 4px; }
.opt { color: var(--note); margin-left: 4px; font-size: 11px; font-weight: 400; }
.cta-green {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 3px solid var(--ink);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: .04em;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
  font-family: inherit;
}
.cta-green:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.hero-form .cta-green { height: 50px; padding: 0 28px; white-space: nowrap; font-size: 15px; }
.hero-form .meta { font-size: 11px; color: var(--note); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: center; }
.hero-form .meta b { color: var(--ink); }

.card-grid { display: grid; gap: 16px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 3px solid var(--ink);
  padding: 18px;
  border-radius: 6px;
}
.card h3 { margin-bottom: 6px; }
.card .num, .logic-step .num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}
.compare-table {
  width: 100%;
  background: #fff;
  border: 3px solid var(--ink);
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
  font-size: 14px;
}
.compare-table th, .compare-table td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.compare-table thead { background: var(--ink); color: #fff; }
.compare-table tbody tr:nth-child(odd) { background: var(--soft); }

.faq-list { margin: 0; padding: 0; }
.faq-item { background: #fff; border: 3px solid var(--ink); border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.faq-item dt { padding: 14px 18px; font-weight: 800; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.faq-item dt::after { content: '+'; color: var(--orange-deep); font-size: 18px; }
.faq-item.open dt::after { content: '-'; }
.faq-item dd { margin: 0; padding: 0 18px; max-height: 0; overflow: hidden; transition: all .25s; background: var(--soft); }
.faq-item.open dd { padding: 14px 18px; max-height: 600px; border-top: 2px solid var(--ink); }

.loading-box { background: #fff; border: 3px solid var(--ink); padding: 32px; border-radius: 6px; text-align: center; }
.loading-target, .target-url {
  display: inline-block;
  background: var(--soft);
  border: 2px solid var(--ink);
  padding: 6px 14px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  border-radius: 3px;
  margin: 8px 0 12px;
  word-break: break-all;
}
.loading-avg { display: inline-block; background: var(--orange-light); border: 2px solid var(--ink); padding: 8px 16px; font-weight: 800; font-size: 13px; margin: 12px 0; border-radius: 4px; }
.loading-bar { height: 14px; background: var(--soft); border: 2px solid var(--ink); margin: 16px 0; overflow: hidden; border-radius: 4px; }
.loading-bar .fill { height: 100%; width: 62%; background: var(--orange); border-right: 2px solid var(--ink); animation: loadbar 1.4s ease-in-out infinite alternate; }
@keyframes loadbar { from { width: 28%; } to { width: 82%; } }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; text-align: left; }
.stepper .step { background: var(--soft); border: 2px solid var(--ink); padding: 10px; font-size: 12px; border-radius: 4px; }
.stepper .step.done { background: #e7f5dc; }
.stepper .step.now { background: var(--orange-light); }
.stepper .step b { display: block; font-size: 10px; letter-spacing: .06em; color: var(--note); margin-bottom: 2px; }

.alert {
  background: #fff;
  border: 3px solid var(--bad);
  padding: 16px;
  border-radius: 6px;
  margin: 18px 0;
}
.result-head {
  background: #fff;
  border: 3px solid var(--ink);
  padding: 24px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}
.gauge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 8px solid var(--ink);
  background: conic-gradient(var(--orange) var(--gauge-deg, 0deg), var(--soft) 0 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.gauge-inner {
  width: 130px;
  height: 130px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-score { font-size: 48px; font-weight: 800; line-height: 1; }
.gauge-max { font-size: 12px; color: var(--note); }
.grade-badge { display: inline-block; background: var(--orange); color: #fff; border: 3px solid var(--ink); font-weight: 800; font-size: 20px; padding: 5px 14px; border-radius: 6px; margin-bottom: 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 16px; }
.cat-card { background: #fff; border: 3px solid var(--ink); padding: 14px; border-radius: 4px; position: relative; }
.cat-card.good { background: #e7f5dc; }
.cat-card.warn { background: var(--orange-light); }
.cat-card.bad { background: #fde2e2; }
.cat-card.focus::after {
  content: '業種で重視';
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
}
.cat-card .id { font-size: 10px; letter-spacing: .06em; color: var(--note); font-weight: 800; }
.cat-card .name { font-size: 13px; font-weight: 800; margin: 2px 0 6px; padding-right: 68px; }
.cat-card .sc { font-size: 24px; font-weight: 800; }
.cat-card .lbl { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border: 2px solid var(--ink); background: #fff; border-radius: 3px; margin-top: 4px; }

.acc { margin-top: 20px; }
.acc-item { background: #fff; border: 3px solid var(--ink); margin-bottom: 8px; border-radius: 4px; overflow: hidden; }
.acc-head { padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; font-weight: 800; }
.acc-head .sc { display: inline-block; background: var(--orange); color: #fff; border: 2px solid var(--ink); padding: 2px 10px; font-size: 13px; border-radius: 3px; }
.acc-body { padding: 18px; border-top: 2px solid var(--ink); display: none; background: var(--soft); }
.acc-item.open .acc-body { display: block; }
.rule-list { display: grid; gap: 8px; margin: 12px 0 0; }
.rule {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
}
.rule b { display: block; margin-bottom: 2px; }
.status {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  margin-right: 6px;
}
.status.pass { background: #e7f5dc; }
.status.warn { background: var(--orange-light); }
.status.fail { background: #fde2e2; }

.code-tabs { margin-top: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.code-tabnav { display: flex; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.code-tabnav button {
  flex: 1;
  background: var(--soft);
  border: none;
  border-right: 1px solid var(--ink);
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  min-width: 100px;
}
.code-tabnav button.active { background: var(--ink); color: #fff; }
.code-panel { display: none; padding: 14px; }
.code-panel.active { display: block; }
.code-panel pre {
  background: var(--ink);
  color: #e7f5dc;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.copy-btn, .btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  text-decoration: none;
}
.copy-btn { background: var(--orange); color: #fff; padding: 5px 12px; border-width: 2px; font-size: 11px; }

.pre-form-h {
  margin-top: 36px;
  background: var(--orange-light);
  border: 3px solid var(--ink);
  padding: 24px;
  border-radius: 6px;
  text-align: center;
}
.inquiry-form {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 32px;
  margin-top: 0;
  border-top: none;
}
.form-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.consent { font-size: 12px; color: var(--note); margin: 14px 0; }
.consent input { width: auto; margin-right: 6px; }
.form-cta-wrap { text-align: center; margin-top: 20px; }

.thanks-box {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 8px;
}
.thanks-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.timerex-mock { background: var(--soft); border: 3px solid var(--ink); border-radius: 6px; padding: 20px; text-align: center; margin: 16px auto 0; max-width: 540px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 340px; margin: 0 auto; }
.cal-grid .d { padding: 8px 0; font-size: 11px; border: 1px solid var(--line); background: #fff; border-radius: 3px; }
.cal-grid .d.head { font-weight: 800; background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-grid .d.avail { background: #e7f5dc; font-weight: 800; border-color: var(--green-deep); }
.cal-grid .d.now { background: var(--orange); color: #fff; font-weight: 800; border-color: var(--ink); }
.notify-card { background: var(--soft); border: 2px solid var(--ink); padding: 14px; border-radius: 4px; margin: 14px auto 0; max-width: 540px; font-size: 13px; }
.notify-card b { color: var(--green-deep); }
.thanks-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .l-header__inner { align-items: flex-start; }
  .hd-info__btn a { padding: 8px 12px; font-size: 12px; }
  .hd-info__logo-img { height: 26px; }
  .ft-logo-img { height: 20px; }
  .l-breadcrumb__inner { padding: 0 16px; }
  .l-breadcrumb ol { font-size: 12px; }
  .hero-form-row, .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4, .result-head, .form-row, .stepper { grid-template-columns: 1fr; }
  .hero-form .cta-green { height: auto; padding: 14px 28px; font-size: 16px; width: 100%; }
  .result-head { text-align: center; }
  .inquiry-form { padding: 22px; }
}

