/* =================================================
   Global Base
================================================= */

body {
    padding:0;
    margin:0;
    background: #ffd6e5 !important; /* 明显粉 */
    min-height: 100vh;
}


/* =================================================
   Home Page (Scoped, Mobile First)
   Scope: .home-page
================================================= */

/* ===============================
   Site Header & Logo
   =============================== */

.site-header {
  text-align: center;
  padding: 22px 0 18px;
}

/* Logo 容器 */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* 主 Logo 文本 */
.site-logo .logo-main {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;

  color: #ff6fa1;
  background: linear-gradient(135deg, #ff9ec4, #ff6fa1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-family:
    "Comic Sans MS",
    "Rounded Mplus 1c",
    "Hiragino Maru Gothic ProN",
    "Noto Sans JP",
    system-ui,
    sans-serif;
}

/* 副标题 */
.site-logo .logo-sub {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;

  background: #ffe1ec;
  color: #ff5f96;
  letter-spacing: 0.08em;
}

/* Hover（桌面） */
.site-logo:hover .logo-main {
  filter: brightness(1.05);
}

.site-logo:hover .logo-sub {
  background: #ffd3e4;
}

/* 手机端微调 */
@media (max-width: 480px) {
  .site-logo .logo-main {
    font-size: 26px;
  }
  .site-logo .logo-sub {
    font-size: 12px;
  }
}


.home-page {
  font-family: -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN",
               "Noto Sans JP",
               Meiryo, sans-serif;
  /*background: linear-gradient(180deg, #f6f7fb 0%, #eef1f6 100%);*/
  min-height: 100vh;
  padding: 16px 0 40px;
}

.home-page .container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ---------- Hero ---------- */

/* ===============================
   Home Hero
   =============================== */
/* ===============================
   Home Hero（Japanese clean style）
   =============================== */

.home-hero {
  padding: 4px 20px 16px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* 小眉标（eyebrow text） */
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #ff8fb3;
  margin-bottom: 12px;
}

/* 主标题 */
.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 18px;

  color: #333;
}

/* 描述 */
.hero-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
}

/* 手机端 */
@media (max-width: 480px) {
  .home-hero {
    padding: 48px 16px 40px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 14px;
  }
}



/* ---------- Diagnosis List ---------- */

.home-page .diagnosis-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ---------- Card ---------- */

.home-page .card {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.home-page .card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Image ---------- */

.home-page .card-image {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  margin-bottom: 16px;
}

/* ---------- Content ---------- */

.home-page .card-content {
  text-align: center;
}

.home-page .card-title {
  font-size: 18px;
  margin: 6px 0 4px;
  letter-spacing: 0.05em;
}

.home-page .card-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */

.home-page .card-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.home-page button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 主按钮 */

.home-page .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fb2, #ff6f91);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255,111,145,0.4);
}

/* 次按钮 */

.home-page .btn-secondary {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #555;
}

/* 点击反馈（手机很重要） */

.home-page .btn-primary:active,
.home-page .btn-secondary:active {
  transform: scale(0.96);
}

/* ---------- Footer ---------- */

.home-page .site-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* =================================================
   Hair Diagnosis Page (Scoped, Safe CSS)
   Scope: .hair-diagnosis
================================================= */

.hair-diagnosis {
  font-family: -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN",
               "Noto Sans JP",
               Meiryo, sans-serif;
  color: #333;
  line-height: 1.7;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
  padding: 24px 0;
}

.hair-diagnosis .container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* ---------- Headings ---------- */

.hair-diagnosis h1 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 24px;
  letter-spacing: 0.05em;
}

.hair-diagnosis h2 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.hair-diagnosis h3 {
  font-size: 16px;
  margin: 20px 0 10px;
  color: #555;
}

/* ---------- Progress ---------- */

.hair-diagnosis #progress-text {
  margin: 16px 0 12px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ---------- Questions ---------- */

.hair-diagnosis .question {
  padding: 18px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
}

.hair-diagnosis .question h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Options ---------- */

.hair-diagnosis .option {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
}

.hair-diagnosis .option input {
  margin-right: 8px;
}

.hair-diagnosis .option:hover {
  background: #f6f9ff;
  border-color: #cddcff;
}

.hair-diagnosis .option input:checked {
  accent-color: #4f7cff;
}

/* ---------- Ads ---------- */

.hair-diagnosis .ad-slot {
  margin: 14px 0;
  /*padding: 14px;*/
  border-radius: 10px;
  background: repeating-linear-gradient(
    45deg,
    #f4f4f4,
    #f4f4f4 10px,
    #f9f9f9 10px,
    #f9f9f9 20px
  );
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* ---------- Buttons ---------- */

.hair-diagnosis button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6a8dff, #4f7cff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79,124,255,0.35);
}

.hair-diagnosis #retry-button {
  background: #ddd;
  color: #333;
  box-shadow: none;
}

/* ---------- Result ---------- */

.hair-diagnosis #result-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  animation: hdFadeIn 0.4s ease;
}

.hair-diagnosis #result-block img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 16px;
  border-radius: 14px;
}

/* ---------- Section ---------- */

.hair-diagnosis .sec {
  margin-top: 60px;
  padding: 40px 0;
  background: #fafafa;
}

.hair-diagnosis .sec_header {
  text-align: center;
  margin-bottom: 32px;
}

.hair-diagnosis .sec_ttl {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.hair-diagnosis .sec_ttl::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: #4f7cff;
  transform: translateX(-50%);
}

.hair-diagnosis .sec_body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Explanation ---------- */

.hair-diagnosis .txt_wrap.new-explanation {
  display: grid;
  row-gap: 48px;
}

.hair-diagnosis .txt_wrap.new-explanation h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
}

.hair-diagnosis .diagnosis-item {
  display: block;
  max-width: 360px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.hair-diagnosis .txt_wrap ul {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 16px;
  background: #f4f6fb;
  border-radius: 12px;
  border-left: 4px solid #4f7cff;
}

.hair-diagnosis .txt_wrap ul li {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}


/* ===============================
   Site Footer
   =============================== */

.site-footer {
  background: #2b2b2b;
  color: #aaa;
  font-size: 12px;              /* 字体整体变小 */
  text-align: center;
  padding: 28px 16px 18px;
}

/* 链接区 */

.site-footer ._flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* 链接样式 */

.site-footer a {
  color: #ddd;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 分隔符 */

.site-footer ._flex::before,
.site-footer ._flex::after {
  content: "";
}

/* Copyright */

.site-footer p {
  margin: 0;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
}

/* ===============================
   Mobile Optimization
   =============================== */

@media (max-width: 480px) {
  .site-footer {
    padding: 22px 12px 14px;
  }

  .site-footer a {
    font-size: 12px;
  }

  .site-footer p {
    font-size: 10px;
  }
}


/* ---------- Animation ---------- */

@keyframes hdFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .hair-diagnosis {
    padding: 12px 0;
  }

  .hair-diagnosis .container {
    padding: 18px 14px 22px;
  }

  .hair-diagnosis .txt_wrap.new-explanation h3 {
    text-align: center;
  }

  .hair-diagnosis .diagnosis-item {
    margin: 0 auto;
  }
}
