:root {
  --navy: #152d38;
  --green: #356b58;
  --paper: #f6f7f3;
  --line: #dde2dc;
  --muted: #65746d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans JP",
    sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 25px 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 0;
}
.mark {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-size: 24px;
  line-height: 42px;
  width: 42px;
  text-align: center;
  border-radius: 2px;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  text-decoration: none;
  font-size: 12px;
}
.hero {
  max-width: 1120px;
  margin: auto;
  padding: 72px 40px 56px;
  position: relative;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--green);
}
.dot {
  display: inline-block;
  background: var(--green);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.4;
  letter-spacing: 4px;
  margin: 21px 0;
}
.hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 2.1;
}
.hero-bottom {
  display: flex;
  gap: 0;
  margin-top: 28px;
}
.hero-bottom span {
  font-size: 11px;
  padding: 0 20px;
  border-right: 1px solid #c6cec7;
}
.hero-bottom span:first-child {
  padding-left: 0;
}
.hero-bottom span:last-child {
  border: 0;
}
.hero-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}
.hero:after {
  content: "無";
  position: absolute;
  right: 100px;
  top: 65px;
  font-size: 230px;
  line-height: 1.3;
  color: #e6ece3;
  font-weight: 800;
  transform: rotate(-9deg);
  z-index: -0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.maker {
  max-width: 1120px;
  margin: auto;
  padding: 34px 40px 64px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 24px;
  letter-spacing: 1px;
  margin: 6px 0;
}
.section-heading p {
  font-size: 11px;
  color: var(--muted);
}
.maker-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
}
.panel {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title h3 {
  font-size: 15px;
  margin: 0;
}
.step {
  font-size: 11px;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 2px 6px;
}
.muted {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 22px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 17px 0 7px;
}
label span:not(.swatch) {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  background: #fafbf8;
  border: 1px solid #d9dfd8;
  padding: 11px 12px;
  border-radius: 3px;
  color: var(--navy);
  min-height: 46px;
}
input::placeholder {
  color: #98a19c;
}
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #80ad97;
  outline-offset: 3px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.templates {
  display: flex;
  gap: 10px;
}
.template {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 10px 8px;
  margin: 0;
  gap: 6px;
  font-size: 11px;
  flex: 1;
  cursor: pointer;
}
.template:has(input:checked) {
  border-color: var(--green);
  background: #f4f8f3;
}
.template input {
  accent-color: var(--green);
}
.swatch {
  width: 24px;
  height: 16px;
  border: 1px solid #d8ded8;
}
.classic {
  background: #fff;
}
.navy {
  background: var(--navy);
}
.help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  margin: 20px 0 9px;
}
.consent input {
  accent-color: var(--green);
  margin-top: 4px;
}
.consent span {
  font-size: 11px !important;
  color: var(--navy) !important;
}
.primary,
.secondary {
  display: block;
  width: 100%;
  border-radius: 3px;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  margin-top: 20px;
}
.primary:hover {
  background: #285442;
}
.primary span {
  float: right;
}
.secondary {
  background: transparent;
  border: 1px solid #bcc8bf;
  color: var(--navy);
  margin-top: 12px;
}
.secondary:hover {
  background: #e9eee7;
}
.preview-panel {
  padding: 27px 0;
}
.live {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}
.canvas-wrap {
  padding: 38px 23px;
  background: #e9ede6;
  border-radius: 4px;
  margin-top: 24px;
  border: 1px solid #e0e5db;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 12px 20px #182d3814;
  border-radius: 2px;
}
.preview-caption {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 18px;
}
.preview-note {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
}
.preview-note > span {
  font-size: 23px;
}
.success {
  color: var(--green);
  font-size: 12px;
  margin-top: 25px;
}
.status {
  font-size: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.status.error {
  color: #a03737;
}
dl {
  font-size: 11px;
}
dt {
  color: var(--muted);
  margin-top: 10px;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.principles {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 34px 0 50px;
}
.principles span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--green);
}
.principles h3 {
  font-size: 17px;
  margin: 10px 0;
}
.principles p {
  font-size: 11px;
  color: var(--muted);
}
.delete-section {
  max-width: 1040px;
  margin: auto;
  padding: 40px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  border-top: 1px solid var(--line);
}
.delete-section h2 {
  font-size: 23px;
  margin: 7px 0 15px;
}
.delete-section p {
  font-size: 12px;
  color: var(--muted);
}
.delete-section form label:first-child {
  margin-top: 0;
}
footer {
  background: #e9eee7;
  padding: 32px max(40px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}
.brand-text {
  font-size: 14px;
  font-weight: 700;
}
.brand-text small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
footer p,
footer > span {
  font-size: 9px;
  color: var(--muted);
}
.mobile {
  display: none;
}
.public-page {
  max-width: 700px;
  margin: auto;
  padding: 70px 24px;
  min-height: 60vh;
}
.public-page h1 {
  font-size: 28px;
}
.public-page canvas {
  margin: 30px 0;
}
.public-info {
  margin: 25px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.public-info h2 {
  overflow-wrap: anywhere;
}
.public-info p {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .site-header {
    padding: 19px 20px;
  }
  .brand {
    font-size: 13px;
    gap: 8px;
  }
  .brand small {
    font-size: 7px;
  }
  .mark {
    width: 34px;
    line-height: 34px;
    font-size: 20px;
  }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 10px;
  }
  .hero {
    padding: 45px 22px 35px;
  }
  .hero:after {
    right: 20px;
    top: 50px;
    font-size: 150px;
    opacity: 0.6;
  }
  .hero h1 {
    letter-spacing: 2px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-note {
    font-size: 9px;
  }
  .maker {
    padding: 25px 20px 35px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading p {
    margin-top: 6px;
  }
  .maker-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .panel {
    padding: 20px;
  }
  .preview-panel {
    padding: 22px 0;
  }
  .canvas-wrap {
    padding: 25px 17px;
  }
  .principles {
    margin: 0 22px;
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .principles p {
    margin: 5px 0;
  }
  .principles h3 {
    margin: 5px 0;
  }
  .delete-section {
    margin: 0 22px;
    padding: 30px 0 40px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .delete-section p {
    margin-bottom: 0;
  }
  footer {
    padding: 25px 22px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .mobile {
    display: block;
  }
  .field-row {
    gap: 10px;
  }
  .templates {
    gap: 7px;
  }
  .template {
    font-size: 10px;
  }
  .live {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9e0da;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  resize: vertical;
  color: #152d38;
  background: #fff;
}
textarea:focus {
  outline: 2px solid #54806b;
  outline-offset: 2px;
}
.duty-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
  margin-bottom: 16px;
}
.duty-row label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}
.duty-row button {
  width: auto;
  min-width: 64px;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  white-space: nowrap;
}
#add-duty {
  margin-top: 4px;
}
.profile-company {
  color: #68776f;
  font-size: 14px;
}
.profile-badge {
  display: inline-block;
  padding: 5px 12px;
  background: #e8f0e9;
  color: #315f49;
  border-radius: 20px;
  font-size: 13px;
}
.profile-details {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px 20px;
  margin: 28px 0;
  text-align: left;
}
.profile-details dt {
  color: #68776f;
}
.profile-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-section {
  border-top: 1px solid #d9e0da;
  padding-top: 20px;
  margin-top: 24px;
  text-align: left;
  overflow-wrap: anywhere;
}
.profile-section h3 {
  font-size: 17px;
}
.biography p {
  white-space: pre-wrap;
  line-height: 1.9;
}
.duties li {
  margin: 8px 0;
}
@media (max-width: 600px) {
  .profile-details {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 12px;
    font-size: 13px;
  }
}
