:root {
  --ink: #12213a;
  --muted: #5b687a;
  --line: #d7e0ea;
  --soft: #f5f9fc;
  --green: #08a75c;
  --green-dark: #057640;
  --green-soft: #eaf8f1;
  --blue: #1f66d1;
  --blue-soft: #edf5ff;
  --orange: #df7a12;
  --orange-soft: #fff5e8;
  --paper: #fff;
  --shadow: 0 18px 44px rgba(18, 33, 58, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pr-page {
  margin: 0;
  background: linear-gradient(180deg, #f7fbfd 0, #eef8f4 420px, #f8fbfd 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.pr-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 44px);
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.pr-brand,
.pr-header a {
  color: var(--ink);
  text-decoration: none;
}

.pr-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.pr-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.pr-brand b {
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}

.pr-header nav {
  display: flex;
  gap: 10px;
}

.pr-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}

.pr-shell {
  width: min(1410px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px) 0 48px;
}

.pr-hero-copy {
  margin-bottom: 18px;
}

.pr-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  font-weight: 950;
}

.pr-hero-copy p {
  max-width: 900px;
  margin: 10px 0 0;
  color: #263a56;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 820;
}

.pr-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.pr-benefits span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #183052;
  font-size: 17px;
  font-weight: 930;
}

.pr-benefits span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
}

.pr-workbench {
  display: grid;
  grid-template-columns: minmax(360px, .52fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pr-input-panel,
.pr-output-panel,
.pr-scenes,
.pr-guide,
.pr-related {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}

.pr-input-panel,
.pr-output-panel {
  padding: clamp(18px, 2vw, 26px);
}

.pr-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pr-panel-head span,
.pr-guide span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.pr-panel-head h2,
.pr-section-head h2,
.pr-guide h2,
.pr-related h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.22;
  font-weight: 950;
}

.pr-panel-head p,
.pr-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 760;
}

.pr-fields {
  display: grid;
  gap: 14px;
}

.pr-fields label {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #1b2c47;
  font-size: 17px;
  font-weight: 950;
}

.pr-fields input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #b8c8d7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 780;
}

.pr-fields input:focus,
.pr-result textarea:focus {
  outline: 3px solid rgba(8, 167, 92, .17);
  border-color: var(--green);
}

.pr-method-presets {
  margin-top: 14px;
}

.pr-method-presets b {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 950;
}

.pr-method-presets > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-method-presets button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.pr-control {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5edf3;
}

.pr-control b {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.pr-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #c6d4e0;
  border-radius: 8px;
  background: #fff;
}

.pr-control:nth-of-type(2) .pr-segments {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pr-segments button,
.pr-output-tabs button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid #c6d4e0;
  background: #fff;
  color: #273650;
  font-size: 16px;
  font-weight: 900;
}

.pr-segments button:last-child,
.pr-output-tabs button:last-child {
  border-right: 0;
}

.pr-segments button.is-active,
.pr-output-tabs button.is-active {
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 2px rgba(8, 167, 92, .32);
}

.pr-primary {
  width: 100%;
  min-height: 64px;
  margin-top: 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(8, 167, 92, .24);
}

.pr-primary:hover {
  background: #079452;
}

.pr-output-panel {
  display: grid;
  gap: 14px;
}

.pr-output-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #c6d4e0;
  border-radius: 8px;
  background: #fff;
}

.pr-output-tabs span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-right: 1px solid #c6d4e0;
  color: #183052;
  font-size: 17px;
  font-weight: 950;
}

.pr-output-tabs span:last-child {
  border-right: 0;
}

.pr-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pr-result {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 12px;
  min-height: 396px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pr-result[data-output-panel="short"] {
  border-color: rgba(8, 167, 92, .42);
  background: linear-gradient(180deg, #fbfffd 0, #fff 100%);
}

.pr-result[data-output-panel="polite"] {
  border-color: rgba(31, 102, 209, .35);
}

.pr-result[data-output-panel="individual"] {
  border-color: rgba(223, 122, 18, .36);
  background: linear-gradient(180deg, #fffaf3 0, #fff 100%);
}

.pr-result h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
}

.pr-result textarea {
  width: 100%;
  min-height: 260px;
  padding: 16px;
  border: 1px solid #c6d4e0;
  border-radius: 8px;
  background: #fbfdfc;
  color: #17233b;
  font-size: 18px;
  font-weight: 730;
  line-height: 1.75;
  resize: vertical;
}

.pr-result button,
.pr-scene-grid button small + span {
  justify-self: end;
}

.pr-result button,
.pr-related a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 930;
}

.pr-result button.is-copied {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.pr-safety {
  padding: 16px;
  border: 1px solid #cbdbea;
  border-radius: 8px;
  background: #fbfdff;
}

.pr-safety h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 22px;
}

.pr-safety label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-bottom: 1px dashed #d7e2ec;
  font-size: 16px;
  font-weight: 880;
}

.pr-safety label:last-of-type {
  border-bottom: 0;
}

.pr-safety input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.pr-safety p {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 860;
}

.pr-safety p.is-risk {
  background: #fff4e8;
  color: #9a4f00;
}

.pr-scenes,
.pr-guide,
.pr-related {
  margin-top: 22px;
  padding: clamp(18px, 2vw, 24px);
}

.pr-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pr-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pr-scene-grid button {
  min-height: 132px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.pr-scene-grid button:nth-child(1) { border-color: rgba(8, 167, 92, .45); }
.pr-scene-grid button:nth-child(2) { border-color: rgba(31, 102, 209, .35); }
.pr-scene-grid button:nth-child(3) { border-color: rgba(223, 122, 18, .35); }

.pr-scene-grid span,
.pr-scene-grid button::after {
  grid-row: 1 / 3;
}

.pr-scene-grid span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 950;
}

.pr-scene-grid button:nth-child(2) span {
  background: var(--blue-soft);
  color: var(--blue);
}

.pr-scene-grid button:nth-child(3) span {
  background: var(--orange-soft);
  color: var(--orange);
}

.pr-scene-grid b {
  font-size: 20px;
  line-height: 1.25;
}

.pr-scene-grid small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.pr-guide > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pr-guide article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pr-guide span {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.pr-guide b {
  display: block;
  font-size: 19px;
}

.pr-guide p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 760;
}

.pr-related > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pr-related a {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 74px;
  color: #183052;
  border-color: var(--line);
  text-align: left;
}

.pr-related a b {
  font-size: 15px;
}

.pr-related a span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.pr-footer {
  padding: 32px;
  background: #05331e;
  color: #e9fff5;
  text-align: center;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .pr-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-scene-grid,
  .pr-guide > div,
  .pr-related > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .pr-header {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
  }

  .pr-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pr-header nav a {
    flex: 0 0 auto;
  }

  .pr-shell {
    width: min(100% - 20px, 640px);
    padding-top: 16px;
  }

  .pr-hero h1 {
    font-size: 32px;
  }

  .pr-hero-copy p {
    font-size: 16px;
  }

  .pr-benefits {
    gap: 8px;
  }

  .pr-benefits span {
    width: 100%;
    min-height: 40px;
    font-size: 15px;
  }

  .pr-input-panel,
  .pr-output-panel,
  .pr-scenes,
  .pr-guide,
  .pr-related {
    padding: 14px;
  }

  .pr-fields {
    gap: 10px;
  }

  .pr-fields label {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    font-size: 15px;
  }

  .pr-fields input {
    min-height: 46px;
    font-size: 16px;
  }

  .pr-segments,
  .pr-control:nth-of-type(2) .pr-segments,
  .pr-output-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-segments button,
  .pr-output-tabs button {
    min-height: 44px;
    border-right: 0;
    border-bottom: 1px solid #c6d4e0;
  }

  .pr-segments button:last-child,
  .pr-output-tabs button:last-child {
    border-bottom: 0;
  }

  .pr-primary {
    min-height: 58px;
    font-size: 20px;
  }

  .pr-result {
    padding: 12px;
    min-height: 0;
  }

  .pr-result textarea {
    min-height: 260px;
    font-size: 16px;
  }

  .pr-output-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-section-head {
    display: block;
  }

  .pr-scene-grid button {
    min-height: 112px;
    padding: 14px;
  }
}
