/* === NAD.jp — Monochrome Design System === */

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  line-height: 1.8;
  background: #fff;
}
a { color: inherit; text-decoration: none; }

/* === Grayscale Image Hover Effect === */
img:not(.no-grayscale) {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
img:not(.no-grayscale):hover {
  filter: grayscale(0%);
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
header > .site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
  max-width: none;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a1a1a;
}
.logo span {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #999;
  font-family: "Noto Sans JP", sans-serif;
}
nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #666;
  transition: color 0.2s;
}
nav a:hover { color: #1a1a1a; }
.nav-cta {
  background: #1a1a1a;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: #333; }

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 99;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  color: #333;
  padding: 0.3rem 0;
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  header > .site-inner { padding: 0 1.2rem; }
}

/* === Hero === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  max-width: 900px;
}
.hero-content h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 2;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-block;
  background: #fff;
  color: #1a1a1a;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === Sections === */
section {
  padding: 6rem 2rem;
}
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.section-desc {
  font-size: 0.95rem;
  color: #666;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 2;
}

/* === About NMN Section === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-card {
  background: #f5f5f5;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.about-num {
  font-family: "Noto Serif JP", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  opacity: 0.12;
  margin-bottom: 1rem;
  line-height: 1;
}
.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}
.about-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.9;
}

/* === Product Section === */
.bg-dark {
  background: #1a1a1a;
  color: #fff;
}
.bg-dark .section-label { color: rgba(255,255,255,0.4); }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-desc { color: rgba(255,255,255,0.6); }
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .product-features { grid-template-columns: 1fr; }
}
.feature-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2rem;
}
.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.feature-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* === FAQ Section === */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
}
.faq-q {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #999;
}
.faq-a {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.9;
  padding-left: 1.5rem;
}

/* === Numbers === */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
}
.number-item { text-align: center; }
.number-item .num {
  font-family: "Noto Serif JP", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.number-item .num small {
  font-size: 1rem;
  font-weight: 400;
}
.number-item .label {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.3rem;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
  text-align: center;
}
.cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #1a1a1a;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-2px);
}

/* === Footer === */
footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-info .footer-logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}
.footer-info p {
  font-size: 0.8rem;
  line-height: 1.8;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* === Page Hero === */
.page-hero {
  padding-top: 120px;
  padding-bottom: 4rem;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

/* === Articles Page === */
.news-section { padding: 3rem 2rem; }
.news-container { max-width: 800px; margin: 0 auto; }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-card {
  display: flex;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.news-card-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { flex: 1; min-width: 0; }
.news-card-date {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-bottom: 0.3rem;
}
.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .news-card { flex-direction: column; }
  .news-card-thumb { width: 100%; height: 160px; }
}

/* News pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.page-btn:hover { border-color: #1a1a1a; }
.page-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* News back link */
.news-back {
  display: inline-block;
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  transition: opacity 0.15s;
}
.news-back:hover { opacity: 0.7; }

/* News article detail */
.news-article-date {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}
.news-article-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}
.news-article-author {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.news-article-body {
  font-size: 0.95rem;
  line-height: 2;
  color: #333;
}
.news-article-body h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a1a1a;
}
.news-article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5rem 0 0.8rem;
}
.news-article-body p { margin-bottom: 1rem; }
.news-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}
.news-article-body ul, .news-article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1rem;
}
.news-article-body blockquote {
  border-left: 3px solid #1a1a1a;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: #666;
  background: #f5f5f5;
  border-radius: 0 6px 6px 0;
}
.news-article-body a { color: #333; text-decoration: underline; }
.news-article-body a:hover { opacity: 0.8; }

/* Latest news section on top page */
.latest-news { padding: 4rem 2rem; background: #f5f5f5; }
.latest-news .section-inner { max-width: 1000px; margin: 0 auto; }
.latest-news-list { display: flex; flex-direction: column; gap: 0; }
.latest-news-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  transition: background 0.15s;
}
.latest-news-item:hover { background: rgba(0,0,0,0.02); }
.latest-news-item time {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #999;
  width: 100px;
}
.latest-news-item .news-link {
  font-size: 0.95rem;
  color: #333;
  transition: color 0.15s;
}
.latest-news-item .news-link:hover { color: #1a1a1a; }

@media (max-width: 768px) {
  .latest-news-item {
    flex-direction: column;
    gap: 0.2rem;
  }
  .latest-news-item time { width: auto; }
}

/* === Product Page === */
.product-hero-section {
  padding: 6rem 2rem;
  text-align: center;
}
.product-hero-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .ingredients-grid { grid-template-columns: 1fr; }
}
.ingredient-card {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}
.ingredient-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.ingredient-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.8;
}

/* === About Page === */
.about-section { padding: 4rem 2rem; }
.about-section:nth-child(even) { background: #f5f5f5; }
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.mission-text {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.about-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 2.2;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  text-align: center;
  padding: 2rem;
}
.value-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}
.value-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.9;
}
