/* css/style.css — 名刺と同一トーンの診断サイト。装飾は最小限、モバイルファースト。 */

:root {
  --navy: #16315C;
  --magenta: #ED1E79;
  --bg: #ffffff;
  --text: #1a1a1a;
  --line: #e3e6ec;
  --muted: #5a6472;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

main {
  max-width: 480px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- hero ---------- */

#hero {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

#hero .brand {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}

#hero .tagline {
  margin: 4px 0 20px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

#hero .catch {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

#hero .catch .accent {
  color: var(--magenta);
}

.hero-areas {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.hero-areas li {
  font-size: 14px;
  padding: 10px 14px;
  background: #f5f7fb;
  border-radius: 8px;
  color: var(--text);
}

/* ---------- buttons / chips (common) ---------- */

button {
  font-family: inherit;
  cursor: pointer;
}

#start-btn,
#submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--magenta);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
}

#start-btn:active,
#submit-btn:active {
  opacity: 0.85;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.chip {
  min-height: 48px;
  font-size: 16px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  line-height: 1.4;
}

.chip.selected {
  background: var(--navy);
  color: #fff;
}

.chip-input {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
  font-family: inherit;
}

.step-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 4px;
}

.step-next {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 999px;
  margin-top: 16px;
}

/* ---------- quiz ---------- */

#quiz {
  padding: 24px 20px 40px;
}

#progress {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.step[hidden] {
  display: none;
}

#freetext {
  width: 100%;
  min-height: 96px;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 16px;
}

.cf-turnstile {
  margin-bottom: 16px;
}

#loading {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- result ---------- */

#result {
  background: var(--navy);
  color: #fff;
  padding: 32px 20px 40px;
}

#result-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--magenta);
  line-height: 1.6;
  margin: 0 0 20px;
}

#result-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.result-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}

.result-card .result-what {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.result-card .result-step-label {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta);
}

.result-card .result-step {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

#result-closing {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
}

#fallback-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: -8px 0 16px;
}

.btn-line {
  display: block;
  text-align: center;
  min-height: 52px;
  line-height: 52px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--magenta);
  border-radius: 999px;
  text-decoration: none;
}

/* ---------- works ---------- */

#works {
  padding: 40px 20px;
  border-bottom: 1px solid var(--line);
}

#works h2 {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 16px;
}

#works h2:not(:first-child) {
  margin-top: 32px;
}

.work-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--navy);
}

.work-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.consult-list {
  margin: 0;
  padding-left: 20px;
}

.consult-list li {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

/* ---------- profile ---------- */

#profile {
  padding: 40px 20px;
  text-align: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: top; /* 縦長写真の中央切り出しだと顔が円の上で切れるため顔基準にする */
  border-radius: 50%;
  margin: 0 auto 16px;
}

.profile-name {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}

.profile-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.profile-text {
  font-size: 14px;
  color: var(--text);
  text-align: left;
  margin: 0;
}

/* ---------- footer ---------- */

footer {
  padding: 24px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer #line-footer {
  display: inline-block;
  min-height: 48px;
  line-height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  text-decoration: none;
}

footer noscript p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
