@font-face {
  font-family: "Material Symbols";
  src: url("assets/material-symbols.woff2") format("woff2");
  font-weight: 300;
  font-display: block;
}

:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --ink: #232e29;
  --muted: #515e56;
  --green: #203d32;
  --accent: #3a594a;
  --line: #d5dcd2;
  --warm: #78531b;
  --white: #fff;
  font: 400 100%/1.7 "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .3em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #98723d; outline-offset: 4px; }

.frame { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.home-page { display: flex; flex-direction: column; min-height: 100vh; }
.home-main { flex: 1 0 auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .masthead-tools, .wordmark { display: flex; align-items: center; }
.masthead-inner { justify-content: space-between; min-height: 82px; gap: 12px; }
.masthead-tools { gap: clamp(12px, 3vw, 34px); font-size: .875rem; }
.wordmark, .text-button { color: var(--ink); background: transparent; border: 0; padding: 4px 0; }
.wordmark { gap: 11px; font-size: 1.1rem; font-weight: 600; letter-spacing: .07em; white-space: nowrap; }
.text-button { text-decoration: underline; text-underline-offset: .3em; }
.design-switch { white-space: nowrap; }
.preview-label { color: var(--muted); }

.reception-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(36px, 6.2vw, 90px);
  padding-block: clamp(44px, 6.9vw, 88px) clamp(38px, 5vw, 72px);
}
.reception-content { align-self: center; padding-block: 10px 13px; }
.section-label { font-size: .9rem; color: var(--accent); letter-spacing: .11em; font-weight: 600; }
.display {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  font-weight: 500;
  letter-spacing: .018em;
  line-height: 1.22;
}
.reception-content h1 { font-size: clamp(2rem, 4vw, 3.65rem); margin-top: 17px; }
.sample-form { max-width: 535px; margin-top: 30px; }
.sample-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .93rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.domain-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid #aebbb0;
  padding-inline: 12px;
  background: var(--white);
  border-radius: 4px;
  color: var(--accent);
}
.domain-field input { min-width: 0; width: 100%; padding-block: 12px; color: var(--ink); background: transparent; border: 0; }
.domain-field:focus-within { outline: 2px solid #98723d; outline-offset: 2px; }
.domain-field input:focus-visible { outline: 0; }
.icon {
  font: 300 1.38rem/1 "Material Symbols";
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  direction: ltr;
  flex: none;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--green);
  border-radius: 4px;
  white-space: nowrap;
}
.primary { background: var(--green); color: var(--white); }
.primary:hover { background: #315344; }
.secondary { color: var(--green); background: transparent; }
.secondary:hover { background: #edf1e9; }
.secondary .icon { font-size: 1.15rem; }
.privacy { display: flex; gap: 9px; align-items: flex-start; margin-top: 24px; color: var(--muted); font-size: .875rem; }
.privacy .icon { color: var(--accent); font-size: 1.14rem; }

.instrument {
  min-height: 420px;
  background: #d5d8d0 url("assets/inspection-glass.webp") center 49% / cover no-repeat;
}

.scope { border-top: 1px solid var(--line); padding-block: 23px 37px; scroll-margin-top: 20px; }
.scope h2, .observations h2, .actions h2 { font-size: 1.16rem; letter-spacing: .02em; font-weight: 600; }
.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.scope-group { padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, var(--white)); }
.scope-group:first-child { grid-row: span 3; }
.scope-group h3 { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 600; }
.scope-group .icon { color: var(--accent); }
.scope-links { margin: 9px 0 0; padding: 0; list-style: none; }
.scope-links li { border-top: 1px solid var(--line); }
.scope-links a { display: block; padding-block: 6px; font-size: .875rem; overflow-wrap: anywhere; }
.scope-links a:hover { color: var(--ink); }

.report { padding-block: clamp(30px, 5.3vw, 65px) 44px; }
.report-back { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: .875rem; }
.report-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
.report-heading h1 { font-size: clamp(2.45rem, 4.7vw, 4.15rem); }
#report-edition { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.report-date { color: var(--muted); font-size: .85rem; }
.report-date time { margin-left: 9px; color: var(--ink); }

.grade {
  border-radius: 4px;
  padding: clamp(21px, 3.3vw, 36px);
  background: var(--green);
  color: #f8faf4;
}
.grade-label { font-size: .88rem; color: #d7e6da; font-weight: 600; letter-spacing: .12em; }
.grade h2 { font-size: clamp(2.25rem, 4vw, 3.55rem); margin-top: 7px; color: #f2ddad; }
.grade p:last-child { margin-top: 13px; max-width: 34ch; color: #eef4ea; }

.actions {
  min-width: 0;
  background: #fdfefa;
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 34px);
  border-radius: 4px;
}
.actions-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; }
.actions-heading .button { min-height: 41px; padding: 7px 11px; }
.action-list { margin: 18px 0 0; padding-inline-start: 27px; }
.action-list li { padding: 18px 0 17px 9px; border-top: 1px solid var(--line); }
.action-list li:last-child { padding-bottom: 0; }
.action-list li::marker { color: var(--accent); font: 500 1.33rem/1 Georgia, serif; font-variant-numeric: lining-nums; }
.owner { color: var(--accent); font-size: .85rem; margin-bottom: 3px; overflow-wrap: anywhere; }
.action-body h3 { font-size: clamp(1.04rem, 1.9vw, 1.26rem); font-weight: 600; line-height: 1.5; }
.instruction { margin-top: 5px; color: var(--muted); }
.copy-status { margin-top: 12px; color: var(--accent); font-size: .875rem; }
.copy-status:empty { margin: 0; }
#copy-fallback { width: 100%; margin-top: 8px; padding: 8px; color: var(--ink); background: var(--white); border: 1px solid var(--line); resize: vertical; }

.page-footer { text-align: end; border-top: 1px solid var(--line); padding-block: 20px 30px; color: var(--muted); font-size: .85rem; }

@media (max-width: 960px) {
  .frame { width: calc(100% - 56px); }
}

@media (max-width: 720px) {
  .frame { width: calc(100% - 36px); }
  .masthead-inner { min-height: 63px; }
  .masthead-tools { gap: 10px; }
  .wordmark { gap: 6px; font-size: .99rem; }
  .reception-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reception-grid { padding-block: 26px 25px; }
  .reception-content h1 { margin-top: 12px; font-size: clamp(1.6rem, 7.1vw, 3.2rem); }
  .sample-form { margin-top: 20px; max-width: none; }
  .privacy { margin-top: 16px; }
  .instrument { min-height: clamp(200px, 51vw, 345px); }
  .instrument { background-position: center 47%; }
  .scope { padding-bottom: 26px; }
  .scope-list { grid-template-columns: minmax(0, 1fr); }
  .scope-group:first-child { grid-row: auto; }
  .report-heading { align-items: start; flex-direction: column; gap: 10px; }
}

@media (max-width: 390px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .masthead-tools { font-size: .79rem; }
  .preview-label { display: none; }
}

@media (max-width: 350px) {
  .masthead-tools { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
}
