/* FoodTech News Styles */

:root {
  --brand-primary: #00a86b;
  --brand-secondary: #1e3a5f;
  --brand-accent: #ff6b35;
  --text-main: #1a1a1a;
  --text-muted: #556274;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #d7e0ea;
  --shadow-soft: 0 10px 30px rgba(0, 30, 80, 0.08);
  --shadow-card: 0 18px 40px rgba(0, 30, 80, 0.12);
  --radius-lg: 18px;
  --radius-md: 14px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--surface-alt);
  line-height: 1.8;
  overflow-x: hidden;
}

img,
.news-card-image,
.news-article-image,
.news-article figure img,
.featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.main-nav {
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.95), rgba(30, 58, 95, 0.98));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 45, 80, 0.12);
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu li:first-child a {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

main {
  max-width: 1080px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2.1rem;
  color: var(--brand-secondary);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--brand-primary);
  border-radius: 999px;
  margin: 0.75rem auto 0;
}

.news-list {
  display: grid;
  gap: 2rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.15), rgba(255, 107, 53, 0.2));
}

.news-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card-title {
  font-size: 1.2rem;
  color: var(--brand-secondary);
  line-height: 1.5;
}

.news-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.news-card-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--brand-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 107, 53, 0.2);
  padding-bottom: 0.2rem;
  transition: var(--transition);
}

.news-card-link:hover {
  color: var(--brand-secondary);
  border-bottom-color: rgba(30, 58, 95, 0.4);
}

.news-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.news-title {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--brand-secondary);
}

.news-article-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.news-content h2 {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.news-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.news-source-section {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.news-source-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.news-source-list a {
  color: var(--brand-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.25);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}

.share-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #0a7ac0);
}

.share-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #0d47a1);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 30, 80, 0.15);
}

/* Article specific layouts */
.article-hero {
  position: relative;
  min-height: 400px;
  height: 60vh;
  margin-top: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero .hero-bg {
  position: absolute;
  inset: 0;
}

.article-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 0;
}

.article-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}

.article-hero .hero-content h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.4;
  text-align: center;
}

.hero-title {
  display: grid;
  gap: 0.75rem;
}

.hero-title .title-main {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

.hero-title .title-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  opacity: 0.85;
}

.article-body {
  display: grid;
  gap: 3rem;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.article-toc {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.article-toc h3 {
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.article-toc ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.article-toc a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.article-toc a:hover {
  color: var(--brand-primary);
  padding-left: 0.25rem;
}

.article-section {
  margin-bottom: 3.5rem;
}

.article-section h2 {
  font-size: 2rem;
  color: var(--brand-secondary);
  border-bottom: 3px solid var(--brand-primary);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.article-section h3 {
  font-size: 1.45rem;
  margin: 2rem 0 1rem;
  color: var(--brand-secondary);
}

.article-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.12), rgba(255, 107, 53, 0.12));
  border-left: 4px solid var(--brand-primary);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
}

.recipe-box {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  margin: 2rem 0;
}

.recipe-box h3 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.recipe-box ol {
  margin-left: 1.5rem;
  color: var(--text-muted);
}

.recipe-box li {
  margin-bottom: 0.75rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.solution-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--brand-accent);
  transition: var(--transition);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.solution-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--brand-accent);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.related-articles {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--surface-alt);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.related-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-card-content {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.related-card-content h4 {
  font-size: 1.1rem;
  color: var(--brand-secondary);
}

.related-card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.related-card-content a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 600;
}

footer {
  background: var(--brand-secondary);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-image {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    margin-top: 2.5rem;
  }

  .news-article {
    padding: 1.75rem;
  }

  .news-title {
    font-size: 1.6rem;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
