@import url("/service/base.css");
:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", sans-serif;
  color: #193c36;
  background: #f3f6f3;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #126955;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #156750;
  border-radius: 9px;
  background: #156750;
  color: white;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 650;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  background: white;
  color: #235b4c;
  border-color: #c9d6ce;
}
.danger {
  color: #994433;
  border-color: #ead4ce;
  background: white;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c8d6cd;
  border-radius: 7px;
  color: #203f36;
  background: white;
  line-height: 1.6;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #79ae93;
  outline-offset: 2px;
}
.check {
  flex-direction: row;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 500;
}
.check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #167052;
}
h1,
h2,
p {
  margin-top: 0;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.8;
  font-size: 14px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 40px;
  border-bottom: 1px solid #dce5dc;
  background: #fbfdf9;
}
.topbar > a:last-child {
  margin-left: auto;
  font-size: 12px;
}
.brand {
  font-size: 27px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 2.3px;
  margin-top: 2px;
}
.local-tag,
.status-tag {
  background: #e3eee4;
  border-radius: 6px;
  color: #326140;
  font-size: 11px;
  padding: 8px 10px;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 40px 60px;
}
.intro {
  max-width: 750px;
  margin-bottom: 30px;
}
.eyebrow,
.step {
  font-size: 10px;
  letter-spacing: 2px;
  color: #4e8062;
  font-weight: 750;
}
.step {
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.intro p:last-child {
  color: #698074;
  font-size: 13px;
}
.card {
  background: #fff;
  border: 1px solid #dce6de;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 3px 8px #213b2a03;
  margin-bottom: 20px;
}
.workspace-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 24px;
}
.workspace-bar label {
  min-width: 240px;
  margin: 0;
}
.workspace-bar button {
  margin-top: 22px;
}
.workspace-bar .muted {
  margin-left: auto;
}
.studio-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}
.field-note,
.muted {
  color: #728179;
  font-size: 11px;
  line-height: 1.9;
}
.field-note {
  margin-top: 14px;
}
.empty {
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 70px;
}
.empty-mark {
  display: flex;
  width: 90px;
  height: 90px;
  border: 1px dashed #aac4ad;
  background: #f1f7ed;
  align-items: center;
  justify-content: center;
  color: #6b936c;
  font-size: 23px;
  border-radius: 25px;
  margin-bottom: 28px;
}
.empty p {
  max-width: 400px;
}
.history button {
  width: 100%;
  text-align: left;
  background: #f5f8f4;
  border: 0;
  color: #3d5a46;
  margin-top: 8px;
  font-weight: 500;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
}
.section-head a {
  font-size: 11px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 0;
}
.metric {
  border-left: 2px solid #e6eddf;
  padding-left: 12px;
}
.metric strong {
  font-size: 22px;
  display: block;
  font-weight: 550;
}
.metric span {
  font-size: 10px;
  color: #728179;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.actions button {
  font-size: 11px;
  padding: 8px 12px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #496550;
}
details {
  border-top: 1px solid #e5ece5;
  padding-top: 18px;
}
#sources p {
  font-size: 11px;
  word-break: break-all;
  margin: 12px 0;
}
#warnings {
  font-size: 11px;
  color: #7c705b;
  padding-left: 20px;
  line-height: 1.9;
}
.candidate {
  border: 1px solid #dce6db;
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
  background: #fcfdfb;
}
.candidate > .check {
  margin-top: 0;
}
.candidate label {
  margin: 8px 0;
}
.candidate input,
.candidate textarea {
  font-size: 12px;
}
.candidate blockquote {
  margin: 8px 0;
  border-left: 3px solid #b8cda8;
  background: #f0f5ea;
  padding: 12px;
  color: #5c704e;
  font-size: 11px;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}
.candidate a {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.apply-bar {
  border-top: 1px solid #e4eae0;
  margin-top: 24px;
  padding-top: 14px;
}
.apply-bar .muted {
  display: block;
  margin-top: 10px;
}
.preview-stage {
  position: relative;
  border: 1px solid #d9e3d9;
  border-radius: 10px;
  overflow: hidden;
  min-height: 650px;
  background: #edf1e9;
}
.preview-stage iframe {
  border: 0;
  width: 100%;
  height: 650px;
  display: block;
  background: white;
}
.faq-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(350px, calc(100% - 32px));
  max-height: 550px;
  overflow: auto;
  border: 1px solid #d7e3d4;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 36px #183c3329;
  padding: 18px;
}
.faq-panel header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ecdf;
  font-size: 14px;
}
.faq-panel header span {
  font-size: 10px;
  color: #70816f;
}
.faq-panel label {
  margin: 12px 0;
  font-size: 11px;
}
.faq-panel details {
  padding: 12px 0;
}
.faq-panel summary {
  line-height: 1.7;
  color: #254d3a;
}
.faq-panel details p {
  white-space: pre-wrap;
  font-size: 12px;
  margin: 12px 0 0;
}
.faq-panel details a {
  font-size: 10px;
}
.faq-panel > .field-note {
  margin-bottom: 0;
}
#notice:not(:empty) {
  background: #fff8e7;
  border: 1px solid #e8d9b0;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 13px;
  white-space: pre-wrap;
}
footer {
  border-top: 1px solid #dce5dc;
  padding: 24px 40px;
  font-size: 10px;
  color: #789080;
  text-align: center;
}
[hidden] {
  display: none !important;
}
.preview-only .intro,
.preview-only .workspace-bar,
.preview-only aside,
.preview-only #job > .card:not(.preview-card) {
  display: none;
}
.preview-only .studio-grid {
  display: block;
}
.preview-only main {
  max-width: none;
  padding: 20px;
}
.preview-only .preview-stage,
.preview-only .preview-stage iframe {
  height: calc(100vh - 245px);
  min-height: 550px;
}
@media (max-width: 1000px) {
  .studio-grid {
    grid-template-columns: 285px minmax(0, 1fr);
  }
  main {
    padding: 28px 20px;
  }
  .card {
    padding: 18px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .empty {
    padding: 35px 20px;
  }
  .workspace-bar {
    flex-wrap: wrap;
  }
  .workspace-bar .muted {
    margin-left: 0;
  }
  .topbar {
    padding: 16px 20px;
  }
}
@media (max-width: 720px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    gap: 12px;
  }
  .local-tag {
    max-width: 150px;
    font-size: 9px;
    line-height: 1.6;
  }
  .brand {
    font-size: 23px;
  }
  .workspace-bar label {
    width: 100%;
  }
  .workspace-bar button {
    margin-top: 0;
  }
  main {
    padding: 24px 14px;
  }
  .intro p:last-child {
    font-size: 12px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .preview-card {
    padding: 14px;
  }
  .faq-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
  footer {
    padding: 20px;
  }
  .preview-only main {
    padding: 10px;
  }
}
