@charset "UTF-8";

:root {
  --ink: #303730;
  --sub: #6d746d;
  --green: #536b59;
  --green-dark: #3f5546;
  --pale: #eef3ef;
  --paper: #fffefb;
  --line: #d9ddd7;
  --warm: #f6f3ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(203, 218, 205, .46), transparent 25rem),
    linear-gradient(180deg, #faf9f5, #f1f1ed);
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.support-header {
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(83, 107, 89, .15);
  background: rgba(255, 254, 251, .9);
  backdrop-filter: blur(10px);
}
.support-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.support-brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #829085;
  border-radius: 50%;
  font-family: "Yu Mincho", serif;
}
.support-brand strong, .support-brand small { display: block; }
.support-brand strong { font: 18px "Yu Mincho", serif; letter-spacing: .16em; }
.support-brand small { margin-top: 2px; color: #7d837d; font-size: 11px; letter-spacing: .08em; }
.back-link { padding-bottom: 3px; border-bottom: 1px solid #8a958b; color: #657168; font-size: 14px; text-decoration: none; }

.support-main { width: min(840px, calc(100% - 36px)); margin: 0 auto; padding: 62px 0 88px; }
.support-intro { max-width: 700px; margin: 0 auto; text-align: center; }
.support-intro__eyebrow { margin: 0 0 10px; color: #7d8d81; font-size: 13px; letter-spacing: .2em; }
.support-intro h1 { margin: 0; font: 500 clamp(27px, 4vw, 40px) "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .08em; }
.support-intro > p:not(.support-intro__eyebrow) { max-width: 650px; margin: 20px auto 0; color: var(--sub); font-size: 16px; line-height: 2; }
.prototype-note {
  margin: 25px auto 0;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
  background: var(--pale);
  color: #5f6f63;
  font-size: 13px;
}
.prototype-note strong { padding-right: 12px; border-right: 1px solid #c7d2ca; }
.prototype-note a { padding-bottom: 2px; border-bottom: 1px solid #91a097; color: #506457; text-decoration: none; white-space: nowrap; }
.prototype-note[data-mode="ai"] { background: #e9f2f3; color: #466269; }
.prototype-note[data-mode="ai"] strong { border-color: #bfd0d3; color: #34535a; }
.prototype-note[data-mode="checking"] { opacity: .8; }

.steps {
  max-width: 620px;
  margin: 44px auto 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}
.steps li { position: relative; display: grid; justify-items: center; gap: 7px; color: #858c86; font-size: 12px; }
.steps li::before { content: ""; position: absolute; z-index: -1; top: 14px; right: 50%; left: -50%; height: 1px; background: #d4d8d3; }
.steps li:first-child::before { display: none; }
.steps li span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #cdd2cd; border-radius: 50%; background: #f7f6f2; }
.steps li.is-active { color: var(--green-dark); font-weight: 600; }
.steps li.is-active span { border-color: var(--green); background: var(--green); color: #fff; }
.steps li.is-complete::before { background: #93a498; }
.steps li.is-complete span { border-color: #93a498; background: #eef3ef; color: var(--green-dark); }
.generation-message {
  margin: 0 0 15px;
  padding: 12px 15px;
  border: 1px solid #d4c8a8;
  border-left: 4px solid #a28c56;
  border-radius: 5px;
  background: #fffaf0;
  color: #6f603e;
  font-size: 14px;
  line-height: 1.75;
}
.generation-message[hidden] { display: none; }

.support-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 254, 251, .96); box-shadow: 0 18px 52px rgba(65, 70, 65, .08); }
.support-card[hidden] { display: none; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading span { color: #7b897e; font-size: 12px; letter-spacing: .12em; }
.section-heading h2 { margin: 5px 0 0; font: 500 clamp(20px, 3vw, 27px) "Yu Mincho", serif; letter-spacing: .05em; }
.section-lead { margin: 14px 0 30px; color: var(--sub); font-size: 15px; line-height: 1.9; }
.example-button, .secondary-action {
  padding: 9px 13px;
  border: 1px solid #c6ccc7;
  border-radius: 5px;
  background: #fff;
  color: #68716a;
  cursor: pointer;
  font-size: 14px;
}
.example-button:hover, .secondary-action:hover { background: #f4f6f4; }

.question-field { min-width: 0; margin: 0; padding: 27px 0; display: block; border: 0; border-top: 1px solid #e5e5df; }
.question-field:first-of-type { border-top: 0; }
.question-field legend { width: 100%; padding: 0; }
.question-number { display: inline-grid; width: 28px; height: 28px; margin: 0 9px 8px 0; place-items: center; border-radius: 50%; background: var(--pale); color: var(--green); font-size: 12px; vertical-align: middle; }
.question-field > strong, .question-field legend strong { font: 600 18px "Yu Mincho", serif; letter-spacing: .03em; }
.question-field > small, .question-field legend small { display: block; margin: 6px 0 12px 37px; color: #747a75; font-size: 13px; line-height: 1.75; }
.question-field input[type="text"], .question-field textarea,
.proposal-group input, .proposal-group textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid #cfd2ce;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  transition: border-color .2s, box-shadow .2s;
}
.question-field input[type="text"]:focus, .question-field textarea:focus,
.proposal-group input:focus, .proposal-group textarea:focus { border-color: #778c7c; box-shadow: 0 0 0 3px rgba(83, 107, 89, .1); }
.question-field textarea, .proposal-group textarea { resize: vertical; }
.choice-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { min-height: 52px; padding: 9px; display: grid; place-items: center; border: 1px solid #d7dad6; border-radius: 5px; color: #59615b; font-size: 14px; line-height: 1.55; text-align: center; }
.choice-grid input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.choice-grid--impressions { grid-template-columns: repeat(3, 1fr); }
.choice-grid--three { grid-template-columns: repeat(3, 1fr); }
.question-field--paired > label { display: block; margin: 17px 0 0 34px; }
.question-field--paired > label > span { color: #606761; font-size: 13px; font-weight: 600; }
.question-field--paired > label textarea { margin-top: 6px; }
.field-error { min-height: 1em; margin: 8px 0 0; color: #a15e53; font-size: 13px; }
.form-error-summary {
  margin: 8px 0 14px;
  padding: 16px 18px;
  border: 1px solid #d9b7af;
  border-left: 4px solid #a15e53;
  border-radius: 5px;
  background: #fff8f6;
  color: #754a43;
  font-size: 14px;
  line-height: 1.7;
}
.form-error-summary[hidden] { display: none; }
.form-error-summary strong { display: block; color: #6e3f38; font-size: 16px; }
.form-error-summary p { margin: 3px 0 7px; }
.form-error-summary ul { margin: 0; padding-left: 1.4em; }
.question-field.has-error { box-shadow: inset 3px 0 #b97468; }
.question-field.has-error input[type="text"], .question-field.has-error textarea { border-color: #b97468; background: #fffafa; }
.question-field.has-error .choice-grid span { border-color: #c99389; background: #fffafa; }
.validation-inline-error { display: block; margin: 9px 0 0 37px; color: #984f45; font-size: 14px; font-weight: 600; line-height: 1.6; }
.form-footer { margin-top: 10px; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e5e5df; }
.form-footer p { margin: 0; color: #747974; font-size: 12px; }
.primary-action {
  min-height: 45px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}
.primary-action:hover { background: var(--green-dark); }
.primary-action:disabled, .direction-card__button:disabled {
  cursor: wait;
  opacity: .65;
}

.direction-list { display: grid; gap: 13px; }
.direction-card {
  padding: 23px 24px;
  border: 1px solid #dce0db;
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.direction-card:hover { border-color: #9dac9f; box-shadow: 0 8px 25px rgba(65, 78, 68, .08); transform: translateY(-1px); }
.direction-card > span { color: #75847a; font-size: 12px; letter-spacing: .12em; }
.direction-card h3 { margin: 6px 0 10px; font: 600 18px "Yu Mincho", serif; letter-spacing: .04em; }
.direction-card > p { margin: 0; color: #555d57; font-size: 15px; line-height: 1.9; }
.direction-card dl { margin: 16px 0 0; padding: 15px 17px; display: grid; grid-template-columns: 125px 1fr; gap: 9px 15px; background: #f7f8f5; font-size: 13px; line-height: 1.75; }
.direction-card dt { color: #858b85; }
.direction-card dd { margin: 0; }
.direction-card__button { margin-top: 17px; padding: 11px 17px; border: 1px solid var(--green); border-radius: 5px; background: #fff; color: var(--green-dark); cursor: pointer; font-size: 14px; }
.direction-card__button:hover { background: var(--green); color: #fff; }
.review-actions--back-only { justify-content: flex-start !important; }

.draft-notice { margin: 23px 0 28px; padding: 15px 17px; border-left: 3px solid #8ba092; background: var(--pale); }
.draft-notice strong { font-size: 15px; }
.draft-notice p { margin: 7px 0 0; color: #5e6760; font-size: 13px; line-height: 1.85; }
.proposal-form { display: grid; gap: 13px; }
.proposal-group { padding: 20px; border: 1px solid #e1e2de; border-radius: 7px; background: #fff; }
.proposal-group__label { display: block; margin-bottom: 16px; color: var(--green); font: 600 13px "Yu Mincho", serif; letter-spacing: .08em; }
.proposal-group label { display: block; }
.proposal-group label + label { margin-top: 16px; }
.proposal-group label strong { color: #5d655f; font-size: 13px; }
.selected-direction { margin: -12px 0 24px; padding: 14px 16px; border: 1px solid #dce2dc; border-radius: 7px; background: #fafbf8; }
.selected-direction span, .selected-direction strong { display: block; }
.selected-direction span { color: #78867c; font-size: 11px; letter-spacing: .12em; }
.selected-direction strong { margin-top: 6px; font: 600 17px "Yu Mincho", serif; }
.selected-direction p { margin: 7px 0 0; color: #606861; font-size: 13px; line-height: 1.8; }
.design-recommendation { margin: 0 0 18px; padding: 22px 20px; border: 1px solid #dce2dc; border-radius: 8px; background: #fff; }
.design-recommendation__heading > span { color: #78867c; font-size: 11px; letter-spacing: .12em; }
.design-recommendation__heading h3 { margin: 6px 0 0; font: 600 18px "Yu Mincho", serif; letter-spacing: .04em; }
.design-recommendation__heading p { margin: 7px 0 16px; color: #687169; font-size: 13px; line-height: 1.75; }
.design-suggestion-list { display: grid; gap: 8px; }
.design-suggestion {
  width: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #dde1dd;
  border-radius: 6px;
  background: #fff;
  color: #4f5751;
  cursor: pointer;
  text-align: left;
}
.design-suggestion:hover { border-color: #a4b0a6; }
.design-suggestion.is-selected { border-color: #6f8575; box-shadow: 0 0 0 1px #6f8575; background: #fbfdfb; }
.design-suggestion__swatch { width: 92px; height: 64px; border-radius: 4px; }
.design-suggestion__swatch--simple { background: linear-gradient(135deg, #f6f5f1 0 45%, #dddcd7 45% 70%, #aeb3aa 70%); }
.design-suggestion__swatch--modern { background: linear-gradient(135deg, #f3f7fa 0 42%, #c7d9e4 42% 75%, #53778d 75%); }
.design-suggestion__swatch--literary { background: linear-gradient(135deg, #eee7dc 0 42%, #394b46 42% 75%, #1e2825 75%); }
.design-suggestion small, .design-suggestion strong, .design-suggestion__reason { display: block; }
.design-suggestion small { color: #7b897f; font-size: 11px; }
.design-suggestion strong { margin-top: 3px; font: 600 16px "Yu Mincho", serif; }
.design-suggestion__reason { margin-top: 4px; color: #687069; font-size: 12px; line-height: 1.65; }
.design-suggestion__check { min-width: 49px; padding: 5px 7px; border: 1px solid #cdd4ce; border-radius: 14px; color: #6e786f; font-size: 10px; text-align: center; }
.design-suggestion.is-selected .design-suggestion__check { border-color: var(--green); background: var(--green); color: #fff; }
.candidate-list { margin: 8px 0 20px; padding: 10px; display: grid; gap: 6px; border-radius: 6px; background: #f6f7f4; }
.candidate-list:last-child { margin-bottom: 0; }
.candidate-list__heading { margin: 0 2px 3px; color: #747b75; font-size: 12px; }
.candidate-option { width: 100%; padding: 9px 10px; display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 8px; border: 1px solid #dfe2de; border-radius: 5px; background: #fff; color: #555d57; cursor: pointer; text-align: left; }
.candidate-option:hover { border-color: #aab6ac; }
.candidate-option.is-selected { border-color: #748979; box-shadow: 0 0 0 1px #748979; }
.candidate-option__number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #edf1ed; color: #657568; font-size: 11px; }
.candidate-option.is-selected .candidate-option__number { background: var(--green); color: #fff; }
.candidate-option strong, .candidate-option small { display: block; white-space: pre-line; }
.candidate-option strong { font-size: 14px; line-height: 1.75; }
.candidate-option small { margin-top: 4px; color: #747c76; font-size: 12px; line-height: 1.7; }
.answer-summary { margin-top: 6px; border: 1px solid #e1e2de; border-radius: 7px; background: #fafaf7; }
.answer-summary summary { padding: 15px 17px; cursor: pointer; color: #5e6861; font-size: 14px; }
.answer-summary dl { margin: 0; padding: 5px 18px 18px; display: grid; grid-template-columns: 160px 1fr; gap: 10px 17px; font-size: 13px; line-height: 1.75; }
.answer-summary dt { color: #8a8f8a; }
.answer-summary dd { margin: 0; white-space: pre-wrap; }
.review-actions { margin-top: 13px; display: flex; justify-content: space-between; gap: 12px; }

.support-footer { padding: 30px 18px 35px; background: #303b33; color: #e9eee9; text-align: center; }
.support-footer p { margin: 0; font: 14px "Yu Mincho", serif; letter-spacing: .12em; }
.support-footer small { display: block; margin-top: 9px; color: #bfc7c0; font-size: 11px; }

@media (max-width: 640px) {
  .support-header { min-height: 59px; padding: 8px 13px; }
  .support-brand__mark { width: 35px; height: 35px; }
  .support-brand strong { font-size: 15px; }
  .support-brand small { display: none; }
  .support-main { width: min(100% - 22px, 840px); padding: 40px 0 62px; }
  .support-intro > p:not(.support-intro__eyebrow) { font-size: 15px; }
  .prototype-note { display: block; font-size: 12px; line-height: 1.75; }
  .prototype-note strong { display: block; margin-bottom: 3px; padding: 0; border: 0; }
  .prototype-note a { display: inline-block; margin-top: 7px; }
  .steps { margin-top: 32px; }
  .steps li { font-size: 10px; text-align: center; line-height: 1.45; }
  .support-card { padding: 23px 17px 28px; }
  .section-heading { display: block; }
  .example-button { margin-top: 15px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid--impressions { grid-template-columns: 1fr 1fr; }
  .choice-grid--three { grid-template-columns: 1fr; }
  .question-field--paired > label { margin-left: 0; }
  .validation-inline-error { margin-left: 0; }
  .direction-card { padding: 20px 17px; }
  .direction-card dl { grid-template-columns: 1fr; gap: 2px; }
  .direction-card dd + dt { margin-top: 7px; }
  .design-recommendation { padding: 20px 14px; }
  .design-suggestion { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .design-suggestion__swatch { width: 68px; height: 62px; }
  .design-suggestion__check { grid-column: 2; justify-self: start; }
  .form-footer, .review-actions { align-items: stretch; flex-direction: column; }
  .form-footer .primary-action, .review-actions .primary-action { width: 100%; }
  .review-actions .secondary-action { order: 2; }
  .answer-summary dl { grid-template-columns: 1fr; gap: 2px; }
  .answer-summary dd + dt { margin-top: 8px; }
}
