@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+JP:wght@400;500;700;900&family=Outfit:wght@400;700;900&display=swap');

:root {
  /* Core Colors - Refined Coral & Gold Palette */
  --primary-h: 355;
  --primary-s: 100%;
  --primary-l: 71%;
  --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-dark: hsl(var(--primary-h), 80%, 55%);
  --primary-light: hsl(var(--primary-h), 100%, 85%);
  
  --secondary-color: #f8fafc;
  --accent-color: #ffd93d;
  --text-dark: #1e293b;
  --text-light: #64748b;
  
  --bg-gradient: linear-gradient(135deg, #fff9f9 0%, #fff1f1 100%);
  --btn-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --card-shadow: 0 20px 40px rgba(255, 107, 107, 0.05);
  --hover-shadow: 0 30px 60px rgba(255, 107, 107, 0.12);
  
  --border-radius-xl: 32px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  
  --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Scroll Reveal Base */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Background Elements */
.bg-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(var(--primary-h), 100%, 71%, 0.07) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

.blob-1 { top: -200px; right: -200px; }
.blob-2 { bottom: -200px; left: -200px; }

/* Header */
.header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.8rem 8%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.header-logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  margin-bottom: 2rem;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/images/kitchen_hero_premium.png') center/cover no-repeat;
  border-radius: 0 0 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px; /* 幅を広げて1行に収まりやすく */
  width: 95%;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.05);
  animation: heroEntry 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -2px;
  white-space: nowrap; /* 1行に強制 */
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-light);
  font-weight: 500;
  max-width: 100%; /* 幅を制限しない */
  margin: 0 auto 2.5rem;
  white-space: nowrap; /* 1行に強制 */
}

/* Search Bar */
.search-container {
  max-width: 800px;
  margin: -50px auto 4rem;
  position: relative;
  z-index: 100; /* 最前面に配置 */
  padding: 0 5%;
}

.search-input {
  width: 100%;
  padding: 1.8rem 3.5rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: white;
  font-size: 1.2rem;
  outline: none;
  box-shadow: 0 20px 50px rgba(255, 107, 107, 0.1);
  transition: var(--transition-smooth);
}

.search-input:focus {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(255, 107, 107, 0.15);
  border-color: var(--primary-light);
}

/* Sections */
.section {
  padding: 8rem 8%;
  max-width: 1600px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 5rem;
  position: relative;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--btn-gradient);
  border-radius: 10px;
}

/* Grid & Premium Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 3rem;
}

.card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--hover-shadow);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.card-text {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

/* Buttons */
.btn-primary {
  background: var(--btn-gradient);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.45);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1rem 2.5rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 100px;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.tab-btn.active {
  background: var(--btn-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.25);
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 4rem 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

.spec-table th, .spec-table td {
  padding: 1.8rem;
  text-align: left;
}

.spec-table th {
  background: #fcfcfc;
  font-weight: 800;
  color: var(--text-dark);
  width: 30%;
  border-right: 1px solid rgba(0,0,0,0.03);
}

.spec-table tr:not(:last-child) td, 
.spec-table tr:not(:last-child) th {
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Related Box */
.related-box {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  margin-top: 5rem;
  border-left: 10px solid var(--primary-color);
  transition: var(--transition-smooth);
}

.related-box:hover {
  transform: translateX(10px);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 8rem 8% 4rem;
  text-align: center;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.footer nav a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.footer nav a:hover {
  color: white;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .section { padding: 6rem 5%; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; white-space: normal; } /* モバイルは改行を許可 */
  .hero-subtitle { font-size: 1.1rem; white-space: normal; }
  .hero-content { padding: 3rem 1rem; }
  .section-title { font-size: 2.2rem; }
  .grid { grid-template-columns: 1fr; }
  .header { padding: 1rem 5%; flex-direction: column; gap: 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .search-input { padding: 1.5rem 2.5rem; font-size: 1.1rem; }
}
