:root {
  /* Colors */
  --primary-color: #4CAF50;
  --primary-gradient: linear-gradient(135deg, #66BB6A, #2E7D32);
  --secondary-color: #6c757d;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  font-weight: 500;
  color: var(--text-color);
}

nav a:hover {
  color: #2E7D32;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 5% 60px;
  background: white;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.hero .highlight {
  color: #0072ff;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(76, 175, 80, 0.3);
}

.hero-mockup {
  margin-top: 60px;
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #eee;
  min-height: 400px;
  /* Placeholder height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1.5rem;
  border: 2px dashed #ccc;
}

.hero-mockup img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Features */
.features {
  padding: 80px 5%;
  background: var(--bg-color);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Feature Icons PFC Colors */
.feature-grid .feature-card:nth-child(1) .feature-icon {
  /* Protein: Red */
  background: linear-gradient(135deg, #FF5252, #FF8A80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-grid .feature-card:nth-child(2) .feature-icon {
  /* Fat: Yellow */
  background: linear-gradient(135deg, #FBC02D, #FDD835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-grid .feature-card:nth-child(3) .feature-icon {
  /* Carbs: Blue */
  background: linear-gradient(135deg, #448AFF, #82B1FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-light);
}

/* Gallery / Screenshots */
.gallery {
  padding: 80px 5%;
  background: var(--white);
}

.screenshot-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
  /* Firefox */
}

.screenshot-container::-webkit-scrollbar {
  display: none;
  /* Chrome */
}

.screenshot-placeholder {
  flex: 0 0 250px;
  height: 500px;
  background: #f0f0f0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  border: 2px dashed #ddd;
  font-weight: 600;
}

.screenshot-img {
  flex: 0 0 auto;
  /* 幅は画像のアスペクト比に任せる */
  height: 500px;
  /* 高さを統一 */
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.screenshot-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #eee;
  padding: 60px 5% 30px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-nav a:hover {
  color: #4CAF50;
  text-decoration: underline;
}

.copyright {
  color: #888;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  /* Mobile: Horizontal Scroll */
  .screenshot-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .screenshot-container::-webkit-scrollbar {
    display: none;
  }

  /* スマホのときはプレースホルダーのサイズを少し小さくするなど調整も可能 */
}