:root {
  color-scheme: light;
  --page: #f7f3e8;
  --surface: #fffdf8;
  --text: #17212b;
  --muted: #59636e;
  --teal: #0f5c58;
  --teal-dark: #0b4643;
  --teal-soft: #dcedea;
  --yellow: #f3c958;
  --border: #c8d2cf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 16px 56px;
  background: var(--page);
  color: var(--text);
  line-height: 1.75;
}

.experiment { width: min(760px, 100%); margin: 0 auto; }
.series-label { margin: 0 0 8px; color: var(--teal); font-size: .86rem; font-weight: 750; letter-spacing: .035em; }
.series-label span { color: var(--muted); padding-inline: .3em; }
h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.3; }
.lead { max-width: 650px; margin: 12px 0 22px; color: var(--muted); font-size: 1.08rem; }
h2 { font-size: 1.3rem; line-height: 1.4; }

.guide-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  align-items: end;
  gap: 12px;
  width: min(620px, 100%);
  margin: 20px 0 24px auto;
}

.guide-callout__bubble {
  position: relative;
  margin-bottom: 16px;
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 4px 18px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(23 33 43 / 5%);
}

.guide-callout__bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 16px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transform: rotate(-45deg);
}

.guide-callout__bubble strong { display: block; margin-bottom: 3px; color: var(--teal); font-size: .78rem; letter-spacing: .04em; }
.guide-callout__bubble p { margin: 0; font-weight: 680; line-height: 1.58; }
.guide-callout img { display: block; width: 136px; height: 154px; object-fit: contain; object-position: bottom center; }
.guide-callout--instruction { margin-top: 26px; }
.guide-callout--result { margin-top: 20px; }

.experiment-card {
  padding: clamp(17px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(23 33 43 / 5%);
}

.experiment-card label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; font-weight: 750; }
.limit { color: var(--muted); font-size: .85rem; font-weight: 500; }
textarea { display: block; width: 100%; min-height: 126px; padding: 12px 14px; border: 1px solid #879894; border-radius: 9px; background: #fff; color: var(--text); font: inherit; resize: vertical; }
textarea:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
textarea:disabled { background: #f0efea; color: #59636e; }
.privacy-note { margin: 9px 0 0; color: var(--muted); font-size: .84rem; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
button { min-height: 44px; padding: 8px 17px; border: 2px solid var(--teal); border-radius: 8px; background: var(--teal); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
button:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
button.secondary { background: transparent; color: var(--teal); }
button.secondary:hover:not(:disabled) { background: var(--teal-soft); }
button:disabled { opacity: .55; cursor: not-allowed; }
.status { min-height: 1.75em; margin: 13px 0 0; padding-left: 12px; border-left: 4px solid var(--yellow); }
.status[data-kind="success"] { border-color: var(--teal); }
.status[data-kind="error"] { border-color: #a43131; color: #792424; }
.how-it-works { max-width: 700px; margin: 30px auto 0; }
.how-it-works h2 { margin-bottom: 8px; }
.how-it-works p { margin: 0 0 12px; }
.disclaimer { margin-top: 24px; padding: 12px 14px; border-left: 4px solid var(--yellow); background: var(--surface); color: var(--muted); font-size: .9rem; }

@media (max-width: 480px) {
  body { padding: 23px 14px 40px; }
  .guide-callout { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; margin-block: 17px; }
  .guide-callout__bubble { margin-bottom: 10px; padding: 12px 13px; }
  .guide-callout__bubble p { font-size: .94rem; }
  .guide-callout img { width: 96px; height: 124px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions button { width: 100%; }
}

@media (max-width: 350px) {
  .guide-callout { grid-template-columns: minmax(0, 1fr) 78px; gap: 5px; }
  .guide-callout img { width: 78px; height: 106px; }
}
