/* ========================================
   new-top.css — /new-top プロトタイプ専用
   既存サイトCSSと干渉しないように .nt- プレフィックスで分離
   ======================================== */

:root {
  --nt-text-dark: #3C2A1E;
  --nt-text-mid: #5F4B3D;
  --nt-text-light: #7A6555;
  --nt-bg-page: #FEF7F2;
  --nt-bg-white: #FFFFFF;
  --nt-bg-hero: #FDEAE0;
  --nt-bg-pink: #FBEAF0;
  --nt-orange: #E08060;
  --nt-pink: #E04080;
  --nt-btn-secondary: #F4D5B8;
  --nt-btn-purple: #C9A8E0;
  --nt-text-purple: #993556;
  --nt-border: #F4D5C4;
  --nt-radius-sm: 8px;
  --nt-radius-md: 12px;
  --nt-radius-lg: 20px;
  --nt-max-width: 1200px;
  --nt-page-padding: 24px;
}

.nt-container {
  width: 100%;
  max-width: var(--nt-max-width);
  margin: 0 auto;
  padding: 0 var(--nt-page-padding);
  box-sizing: border-box;
}

* { box-sizing: border-box; }

body.nt-body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--nt-text-dark);
  background: var(--nt-bg-page);
  line-height: 1.6;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== Header / Navigation ========== */
.nt-header {
  width: 100%;
  background: var(--nt-bg-white);
  border-bottom: 0.5px solid var(--nt-border);
}
.nt-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 8px; padding-bottom: 8px;
}
.nt-logo {
  font-size: 16px; font-weight: 700; color: var(--nt-text-dark);
}
.nt-logo small {
  display: block; font-size: 10px; font-weight: 400;
  color: var(--nt-text-light); margin-top: 2px;
}
.nt-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nt-nav a {
  font-size: 12px; color: var(--nt-text-mid);
  padding: 4px 0; transition: color .2s;
}
.nt-nav a:hover { color: var(--nt-orange); }

/* ========== Hero (FV) ========== */
.nt-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 5;
  min-height: 220px;
  max-height: 300px;
  background-color: #FEF7F2;
  background-image:
    linear-gradient(to right, #FEF7F2 0%, rgba(254,247,242,0.6) 55%, rgba(254,247,242,0) 75%),
    url('/images/new-top/hero-main.jpg');
  background-size: 100% 100%, auto 122%;
  background-position: left center, right 25%;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 0.5px solid var(--nt-border);
  display: flex;
  align-items: center;
}
.nt-hero-inner {
  max-width: var(--nt-max-width); margin: 0 auto;
  width: 100%;
  padding: 0 var(--nt-page-padding);
}
.nt-hero-text {
  max-width: 55%;
  margin-left: 6%;
  position: relative;
  z-index: 2;
}
.nt-hero-text { text-align: center; }
.nt-hero-sub {
  font-size: 13px; color: #E84A6F; margin: 0 auto 10px;
  font-weight: 500; letter-spacing: .04em;
  display: inline-block;
  border-bottom: 1.5px dotted #E84A6F;
  padding-bottom: 2px;
}
.nt-hero-title {
  font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  font-size: 26px; font-weight: 500; line-height: 1.25;
  color: #3D2C28; margin: 0 0 12px;
  letter-spacing: .04em;
}
.nt-hero-title .accent { color: #FF6B85; }
.nt-hero-title .small { font-size: 24px; }
.nt-hero-tags {
  list-style: none; padding: 0;
  display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px;
  justify-content: center;
}
.nt-hero-tags li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; background: rgba(255, 255, 255, 0.95);
  border-radius: 999px; font-size: 12px;
  color: #5C4842; font-weight: 500;
}
.nt-check-icon { display: inline-block; flex-shrink: 0; }
.nt-hero-buttons {
  display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap;
  max-width: 100%; justify-content: center; align-items: center;
}
.nt-hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nt-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.nt-hero-btn.primary { background: #E04A6E; color: #fff; }
.nt-hero-btn.secondary { background: #D9A87A; color: #fff; }
.nt-hero-btn.tertiary { background: #A78BD9; color: #fff; }
.nt-hero-btn .arrow { display: none; }
.nt-hero-photo {
  background: var(--nt-bg-pink); border-radius: var(--nt-radius-lg);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  color: var(--nt-text-light); font-size: 12px; text-align: center;
  border: 0.5px dashed var(--nt-border); padding: 18px;
  max-height: 280px;
}

/* ========== Common Section ========== */
.nt-section {
  max-width: var(--nt-max-width); margin: 0 auto;
  padding: 12px var(--nt-page-padding) 20px;
}
.nt-section-title {
  text-align: center; font-size: 18px; font-weight: 700;
  color: var(--nt-text-dark); margin: 0 0 16px; letter-spacing: .03em;
}
.nt-section-title::before, .nt-section-title::after {
  content: '—'; color: var(--nt-text-light); margin: 0 12px;
}

/* ========== Section 2: 悩みカード ========== */
.nt-mood-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.nt-mood-card {
  background: var(--nt-bg-white); border: 0.5px solid var(--nt-border);
  border-radius: var(--nt-radius-md); padding: 12px 8px;
  text-align: center; transition: transform .2s, box-shadow .2s;
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 170px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.nt-mood-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(224,128,96,0.10); }
.nt-mood-icon {
  width: 48px; height: 48px; margin: 0 auto 4px;
  border-radius: 50%; background: var(--nt-bg-pink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nt-mood-icon img { width: 78%; height: 78%; object-fit: contain; }
.nt-mood-name {
  font-size: 15px; font-weight: 700; margin: 6px 0 4px;
  color: var(--nt-text-dark);
}
.nt-mood-desc {
  font-size: 11px; color: var(--nt-text-light); margin: 0;
  line-height: 1.4;
}
.nt-mood-card .nt-arrow {
  position: absolute; top: 8px; right: 10px;
  color: var(--nt-text-light); font-size: 12px;
}

/* ========== Section 3: ランキングTOP5 ========== */
.nt-ranking-section {
  background: var(--nt-bg-page); padding: 4px var(--nt-page-padding) 20px;
}
.nt-section:has(.nt-mood-grid) { padding-bottom: 4px; }
.nt-ranking-inner {
  max-width: var(--nt-max-width); margin: 0 auto;
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  align-items: center;
  background: var(--nt-bg-white);
  border-radius: var(--nt-radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(60, 42, 30, 0.06);
  border: 0.5px solid var(--nt-border);
}
.nt-ranking-side {
  text-align: left;
}
.nt-ranking-side .crown { font-size: 22px; }
.nt-ranking-side h2 {
  font-size: 14px; font-weight: 700; margin: 4px 0 4px;
  color: var(--nt-text-dark); line-height: 1.4;
}
.nt-ranking-side p {
  font-size: 11px; color: var(--nt-text-mid); margin: 0 0 10px;
  line-height: 1.5;
}
.nt-ranking-btn {
  display: inline-block; padding: 6px 12px;
  background: var(--nt-pink); color: #fff;
  border-radius: 999px; font-size: 11px;
  font-weight: 700;
}
.nt-ranking-products {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.nt-product-card {
  background: transparent; border-radius: 0;
  border: none;
  padding: 18px 4px 0; text-align: center; position: relative;
  transition: transform .2s;
}
.nt-product-card:hover { transform: translateY(-3px); }
.nt-rank-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  padding: 2px 12px; border-radius: 999px; font-size: 10px; font-weight: 700;
  color: #fff; white-space: nowrap;
  z-index: 2;
}
.nt-rank-1 { background: #D4AF37; }
.nt-rank-2 { background: #B8B8B8; }
.nt-rank-3 { background: #CD7F32; }
.nt-rank-4, .nt-rank-5 {
  background: transparent;
  color: #555;
  border: 1px solid #C9C2BA;
}
.nt-product-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--nt-radius-sm); margin: 4px 0 4px;
  background: #fff;
}
.nt-product-name {
  font-size: 10px; font-weight: 700; line-height: 1.3;
  color: var(--nt-text-dark); margin: 0 0 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nt-product-rating {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 10px; margin: 0 0 2px;
}
.nt-stars {
  position: relative; display: inline-block; line-height: 1;
  font-size: 12px; letter-spacing: 1px;
}
.nt-stars-empty { color: #E0D7CF; }
.nt-stars-fill {
  position: absolute; top: 0; left: 0;
  color: #F5B400; overflow: hidden; white-space: nowrap;
  width: var(--rate, 0%);
}
.nt-rating-num {
  font-size: 11px; color: var(--nt-text-mid); font-weight: 700;
}
.nt-product-link {
  display: block;
  font-size: 10px; font-weight: 600;
  color: var(--nt-pink);
  margin-top: 2px;
  padding-top: 3px;
  border-top: 0.5px solid var(--nt-border);
}
.nt-product-card:hover .nt-product-link {
  color: #C03060;
}

/* ========== Section 4: タイプ・特徴 ========== */
.nt-type-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.nt-type-card {
  background: var(--nt-bg-white); border: 0.5px solid var(--nt-border);
  border-radius: var(--nt-radius-md); padding: 10px 8px;
  text-align: center; transition: transform .2s;
  max-width: 180px; margin: 0 auto; width: 100%;
}
.nt-type-card:hover { transform: translateY(-3px); }
.nt-type-title {
  font-size: 13px; font-weight: 700; line-height: 1.35;
  color: var(--nt-text-dark); margin: 0 0 6px; min-height: 34px;
}
.nt-type-img {
  aspect-ratio: 1/1; border-radius: var(--nt-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.nt-type-img.pink { background: #FBE3EC; }
.nt-type-img.brown { background: #E8DDD0; }
.nt-type-img.gray { background: #E5E7EB; }
.nt-type-img.blue { background: #DCEAF5; }
.nt-type-img.purple { background: #E5D9F0; }
.nt-type-img.orange { background: var(--nt-orange); color: #fff; }

/* ========== Section 5: 診断CTA ========== */
.nt-shindan {
  padding: 24px 28px;
  background: linear-gradient(135deg, #FFF5E5 0%, #FFE8D4 100%);
  border-radius: var(--nt-radius-lg);
  display: grid; grid-template-columns: 80px 1fr auto; gap: 20px;
  align-items: center;
  max-width: calc(var(--nt-max-width) - 48px); margin: 12px auto;
  box-shadow: 0 4px 16px rgba(224, 128, 96, 0.08);
}
.nt-shindan-illust {
  font-size: 38px; text-align: center;
}
.nt-shindan-text .small {
  font-size: 11px; color: var(--nt-text-light); margin: 0 0 2px;
}
.nt-shindan-text h2 {
  font-size: 17px; font-weight: 700; margin: 0 0 2px;
  color: var(--nt-pink);
}
.nt-shindan-text p {
  font-size: 13px; color: var(--nt-text-dark); margin: 0; font-weight: 600;
}
.nt-shindan-text p .accent { color: var(--nt-pink); font-weight: 700; }
.nt-shindan-btn {
  background: var(--nt-pink); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: transform .2s;
}
.nt-shindan-btn:hover { transform: translateY(-2px); }

/* ========== Section 6+7: 完全ガイド + 口コミ（2カラム） ========== */
.nt-guide-review {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.nt-guide, .nt-review {
  background: var(--nt-bg-white); border: 0.5px solid var(--nt-border);
  border-radius: var(--nt-radius-lg); padding: 24px;
  box-shadow: 0 4px 16px rgba(60, 42, 30, 0.06);
}
.nt-guide h2, .nt-review h2 {
  font-size: 15px; font-weight: 700; margin: 0 0 12px;
  color: var(--nt-text-dark);
}
.nt-guide-content {
  display: grid; grid-template-columns: 1fr 70px; gap: 12px;
  align-items: start;
}
.nt-guide ul {
  margin: 0 0 10px; padding-left: 16px; font-size: 12px;
  color: var(--nt-text-mid); line-height: 1.85;
}
.nt-guide-img {
  width: 70px; height: 70px; background: var(--nt-orange);
  border-radius: var(--nt-radius-sm); display: flex;
  align-items: center; justify-content: center;
  font-size: 28px;
}
.nt-cta-link {
  display: inline-block; color: var(--nt-orange);
  font-size: 12px; font-weight: 700;
}
.nt-review p {
  font-size: 12px; color: var(--nt-text-mid); margin: 0 0 12px;
}
.nt-review-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.nt-review-btn {
  padding: 9px; border-radius: var(--nt-radius-sm);
  text-align: center; font-size: 12px; font-weight: 700;
  transition: transform .2s;
}
.nt-review-btn:hover { transform: translateY(-2px); }
.nt-review-btn.good { background: #FFEDD8; color: #B25A20; }
.nt-review-btn.bad { background: #E5E7EB; color: var(--nt-text-mid); }

/* ========== Section 8: 新着記事 ========== */
.nt-news-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.nt-news-header h2 {
  font-size: 18px; font-weight: 700; margin: 0;
  color: var(--nt-text-dark);
}
.nt-news-link {
  background: var(--nt-bg-white); border: 0.5px solid var(--nt-border);
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; color: var(--nt-text-mid); font-weight: 700;
}
.nt-news-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.nt-news-card {
  background: var(--nt-bg-white); border-radius: var(--nt-radius-sm);
  overflow: hidden; transition: transform .2s;
}
.nt-news-card:hover { transform: translateY(-3px); }
.nt-news-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.nt-news-body { padding: 8px 10px; }
.nt-news-title {
  font-size: 10px; line-height: 1.4; color: var(--nt-text-dark);
  margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nt-news-date {
  font-size: 9px; color: var(--nt-text-light);
}

/* ========== Footer ========== */
.nt-footer {
  background: var(--nt-bg-white); border-top: 0.5px solid var(--nt-border);
  padding: 24px; text-align: center;
}
.nt-footer ul {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.nt-footer a { font-size: 12px; color: var(--nt-text-mid); }
.nt-footer .copy { font-size: 11px; color: var(--nt-text-light); }

/* ========== PC layout: 1024px以上 → サイト幅1200px固定 ========== */
@media (min-width: 1024px) {
  html,
  body.nt-body {
    min-width: 1200px !important;
    overflow-x: auto !important;
  }
}

/* ========== Responsive (mobile/tablet) : 1023px以下 ========== */
@media (max-width: 1023px) {
  html,
  body.nt-body {
    min-width: auto !important;
    overflow-x: hidden !important;
  }
  .nt-header-inner { flex-direction: column; align-items: flex-start; }
  .nt-nav { gap: 12px; font-size: 12px; }

  .nt-hero {
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: none;
    background-image: url('/images/hero-top-mobile.jpg?v=20260505a');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    align-items: flex-end;
    padding: 0;
    border-radius: 0;
    margin: 0;
  }
  .nt-hero-inner { padding: 0 16px 24px; }
  .nt-hero-text {
    max-width: 100%;
    margin-left: 0;
    padding: 16px 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
  }
  .nt-hero-title { font-size: 22px; }
  .nt-hero-title .small { font-size: 18px; }
  .nt-hero-buttons { max-width: 100%; flex-direction: column; align-items: center; }
  .nt-hero-buttons .nt-hero-btn { width: 100%; max-width: 240px; }

  .nt-section { padding: 12px 16px 18px; }
  .nt-section-title { font-size: 16px; margin: 0 0 14px; }
  .nt-news-header h2 { font-size: 16px; }
  .nt-type-card { padding: 12px 8px; max-width: none; }
  .nt-type-title { font-size: 12px; min-height: 32px; }
  .nt-section-title::before, .nt-section-title::after { margin: 0 6px; }

  .nt-mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nt-mood-card { padding: 14px 10px; }
  .nt-mood-icon { width: 50px; height: 50px; }
  .nt-mood-name { font-size: 15px; margin: 8px 0 4px; }
  .nt-mood-desc { font-size: 11px; }
  .nt-mood-card:nth-child(5) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }

  .nt-ranking-section { padding: 40px 16px; }
  .nt-ranking-inner { grid-template-columns: 1fr; }
  .nt-ranking-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .nt-type-grid { grid-template-columns: repeat(3, 1fr); }

  .nt-shindan {
    grid-template-columns: 1fr;
    text-align: center; padding: 28px 20px; margin: 16px;
  }
  .nt-shindan-text h2 { font-size: 18px; }

  .nt-guide-review { grid-template-columns: 1fr; }
  .nt-guide-content { grid-template-columns: 1fr; }
  .nt-guide-img { width: 100%; height: 80px; }

  .nt-news-grid { grid-template-columns: repeat(2, 1fr); }
}
