/* クリスマス診断 2026 — mobile-first, zero dependency */
:root {
  --red: #c0392b;
  --red-deep: #96281b;
  --green: #1e7145;
  --gold: #d4a017;
  --cream: #fdf6ec;
  --ink: #2c2420;
  --sub: #8a7d72;
  --card: #ffffff;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }

/* ---- header ---- */
.site-head {
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(150, 40, 27, .25);
}
.site-head .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.site-head .logo svg { width: 22px; height: 22px; }
.site-head .tag { font-size: 11px; opacity: .85; font-weight: 400; }

/* ---- hero ---- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #1a5c38, #0e3d24 60%, #0a2d1a);
  color: #fff;
  text-align: center;
  padding: 40px 20px 46px;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.hero::before { width: 340px; height: 340px; top: -120px; left: -100px; }
.hero::after { width: 260px; height: 260px; bottom: -100px; right: -70px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,160,23,.2);
  border: 1px solid rgba(212,160,23,.55);
  color: #f3d27a;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero .badge svg { width: 13px; height: 13px; }
.hero h1 { font-size: 27px; line-height: 1.4; letter-spacing: .01em; }
.hero h1 .accent { color: #f3d27a; }
.hero p.lead { margin-top: 10px; font-size: 13.5px; opacity: .88; max-width: 34em; margin-left: auto; margin-right: auto; }
.hero .meta { margin-top: 14px; font-size: 12px; color: #bcd9c6; }
.hero .meta strong { color: #f3d27a; font-size: 15px; }

/* ---- main ---- */
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 64px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin: 26px 0 12px;
}
.section-title svg { width: 18px; height: 18px; color: var(--red); }
.section-title:first-child { margin-top: 6px; }

/* ---- diagnosis cards ---- */
.diag-list { display: grid; gap: 12px; }
.diag-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; gap: 14px; align-items: center;
  border: 1px solid #efe3d3;
  box-shadow: 0 2px 10px rgba(60, 40, 20, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.diag-card:active { transform: scale(.985); }
.diag-card .icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
}
.diag-card .icon svg { width: 26px; height: 26px; }
.ic-red { background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.ic-green { background: linear-gradient(135deg, #219a5e, var(--green)); }
.ic-gold { background: linear-gradient(135deg, #e8b93c, #b5830e); }
.ic-blue { background: linear-gradient(135deg, #3f7fbf, #275d94); }
.diag-card .body { min-width: 0; }
.diag-card h3 { font-size: 15.5px; line-height: 1.45; }
.diag-card p { font-size: 12.5px; color: var(--sub); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.diag-card .arrow { margin-left: auto; flex: none; color: #cbb9a4; }
.diag-card .arrow svg { width: 18px; height: 18px; }

/* ---- how-to ---- */
.howto { display: grid; gap: 10px; }
.howto .step {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border-radius: 12px; padding: 12px 14px;
  border: 1px solid #efe3d3;
  font-size: 13px;
}
.howto .step .n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 12.5px; margin-top: 1px;
}

/* ---- input form ---- */
.form-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid #efe3d3;
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(60, 40, 20, .05);
}
.form-card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card label .opt { font-weight: 400; color: var(--sub); font-size: 11.5px; }
.form-card input[type=text] {
  width: 100%;
  font-size: 16px;
  padding: 13px 14px;
  border: 2px solid #e4d5c0;
  border-radius: 12px;
  background: var(--cream);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.form-card input[type=text]:focus { border-color: var(--green); }
.btn-main {
  width: 100%;
  margin-top: 20px;
  border: none;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  padding: 15px;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(150, 40, 27, .35);
  transition: transform .12s ease;
  font-family: inherit;
}
.btn-main:active { transform: scale(.97); }
.btn-main svg { width: 19px; height: 19px; }
.form-note { text-align: center; font-size: 11.5px; color: var(--sub); margin-top: 10px; }

/* ---- result ---- */
.result { display: none; }
.result.show { display: block; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result-type {
  background: linear-gradient(150deg, #fffdf7, #fdf3df);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-type .label { font-size: 12px; letter-spacing: .18em; color: #a3862c; font-weight: 700; }
.result-type h2 { font-size: 24px; margin-top: 8px; line-height: 1.4; color: var(--red-deep); }
.result-type .who { font-size: 13px; color: var(--sub); margin-top: 8px; }
.result-type .deco {
  position: absolute; color: rgba(212,160,23,.16); pointer-events: none;
}
.result-type .deco svg { width: 90px; height: 90px; }
.result-type .deco.d1 { top: -14px; left: -14px; }
.result-type .deco.d2 { bottom: -18px; right: -18px; }
.result-desc {
  font-size: 14px; text-align: left; margin-top: 16px;
  background: #fff; border-radius: 12px; padding: 14px 16px;
  border: 1px solid #f0e4cf;
}
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.chip {
  background: #fff; border-radius: 12px; padding: 12px;
  border: 1px solid #f0e4cf; text-align: center;
}
.chip .k { font-size: 11px; color: var(--sub); letter-spacing: .08em; }
.chip .v { font-size: 13.5px; font-weight: 700; color: var(--green); margin-top: 3px; }
.scores { margin-top: 12px; display: grid; gap: 8px; }
.score-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.score-row .k { flex: none; width: 5.5em; color: var(--sub); }
.score-row .bar { flex: 1; height: 8px; background: #efe4d2; border-radius: 999px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #2fa76a); border-radius: 999px; }
.score-row .v { flex: none; width: 2.6em; text-align: right; font-weight: 700; color: var(--green); }

/* letter */
.letter {
  background: #fffdf5;
  border: 1px solid #e8d8b8;
  border-radius: 12px;
  padding: 26px 22px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 14.5px;
  line-height: 2.1;
  white-space: pre-wrap;
  margin-top: 16px;
  position: relative;
}
.letter::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed #d9c491;
  border-radius: 8px;
  pointer-events: none;
}
.letter .sig { text-align: right; }

/* ---- share ---- */
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: 999px;
  padding: 13px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform .12s ease;
}
.share-btn:active { transform: scale(.96); }
.share-btn svg { width: 17px; height: 17px; }
.btn-line { background: #06c755; color: #fff; }
.btn-x { background: #1d1d1d; color: #fff; }
.btn-copy { background: #fff; color: var(--ink); border: 1.5px solid #d8c9b4 !important; }
.btn-save { background: var(--gold); color: #fff; }
.share-note { text-align: center; font-size: 11.5px; color: var(--sub); margin-top: 8px; }

/* ---- others / footer ---- */
.other-list { display: grid; gap: 8px; }
.other-link {
  background: #fff; border-radius: 12px; padding: 12px 14px;
  border: 1px solid #efe3d3;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
}
.other-link svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.other-link .go { margin-left: auto; color: #cbb9a4; }
.other-link .go svg { color: #cbb9a4; }
footer {
  text-align: center; font-size: 11.5px; color: var(--sub);
  padding: 26px 16px 40px;
}
footer nav { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
footer nav a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- article (SEO body) ---- */
.article { margin-top: 26px; font-size: 13px; color: #55483c; }
.article h2 { font-size: 15.5px; margin: 20px 0 8px; color: var(--ink); }
.article p { margin-bottom: 8px; }
.article ul { padding-left: 1.2em; margin-bottom: 8px; }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: rgba(30, 25, 20, .92); color: #fff;
  font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 99;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* snow (light, css only) */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snow i {
  position: absolute; top: -4vh; color: #fff; opacity: .5;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(108vh); }
}
@media (prefers-reduced-motion: reduce) { .snow { display: none; } .result.show { animation: none; } }
