/* 
  ragu (ラグ) - Brand Design System
  Urban, Sophisticated, Minimalist
*/

:root {
  /* Color Palette */
  --bg-primary: #fcfbf7; /* Warm Off-White */
  --bg-secondary: #f4f1ea; /* Soft Warm Beige */
  --bg-accent: #e5e0d5; /* Muted Sand Gray */
  
  --text-main: #333333; /* Deep Charcoal */
  --text-muted: #666666; /* Medium Gray */
  --text-light: #8e8e8e; /* Light Gray */
  
  --accent-color: #a69b8d; /* Sophisticated Taupe */
  --border-color: #e0ddd5;
  
  /* Typography */
  --font-serif: 'Shippori Mincho', serif;
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 5%;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

h1 {
    font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  background: rgba(252, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  height: auto;
  padding: 120px 5% 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 30%;
  position: relative;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-main-copy {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-sub-copy {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  white-space: pre-line;
}

/* Section Styling */
section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent-color);
  margin: 20px auto 0;
}

/* Empathy Section */
.empathy {
  background-color: var(--bg-secondary);
}

.empathy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.empathy-item {
  background: white;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.empathy-item p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Solution Section */
.solution-box {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.solution-item {
  display: flex;
  align-items: center;
  gap: 60px;
}

.solution-item:nth-child(even) {
  flex-direction: row-reverse;
}

.solution-img {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}

.solution-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.img-treatment {
  height: 240px; /* 全体を見せるために少し高さを戻します */
  object-fit: contain; /* 写真を切らずに全体を表示 */
  background-color: #fff; /* 写真の周りの余白を白に */
}

.img-model {
  height: 320px; /* お顔を見せるために少し高さを確保 */
  object-position: top; /* お顔が切れないように上端に合わせる */
}

.solution-item:hover .solution-img img {
  transform: scale(1.05);
}

.solution-text {
  flex: 1;
}

.solution-text h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.solution-text p {
  color: var(--text-muted);
}

/* Menu Section */
.menu {
  background-color: var(--bg-accent);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.menu-card {
  background: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
}

.menu-tag {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.menu-name {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.menu-concept {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.menu-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.menu-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 40px;
}

/* ragu marketing lab Section */
.marketing {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 100px 5%;
}

.marketing .section-title {
  color: #fff;
  margin-bottom: 10px;
}

.marketing-content {
  max-width: 1000px;
  margin: 0 auto;
}

.marketing-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 60px;
  color: #ccc;
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.marketing-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.marketing-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.marketing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.1em;
}

.marketing-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #bbb;
}

.marketing .btn {
  border-color: #fff;
  color: #fff;
}

.marketing .btn:hover {
  background: #fff;
  color: #1a1a1a;
}

/* Journal Section */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.journal-card {
  cursor: pointer;
}

.journal-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.journal-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.journal-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* CTA Footer */
.cta-footer {
  background-color: var(--bg-secondary);
  text-align: center;
  padding: 80px 5%;
}

.btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--text-main);
  color: white;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin: 10px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.btn-line {
  background: #06C755;
}

.btn-line:hover {
  background: #05a647;
}

footer {
  background: white;
  padding: 60px 5% 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-info {
  margin-bottom: 40px;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 60px 5%;
  }

  /* ヘッダーの固定を解除 */
  header {
    position: relative;
    flex-direction: row; /* ロゴとハンバーガーを横並びに */
    justify-content: space-between;
    padding: 15px 5%;
    background: var(--bg-primary);
    z-index: 1000;
  }

  .hamburger {
    display: block;
  }

  /* ハンバーガーメニュー展開時のアニメーション */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ドロップダウンメニューのスタイル */
  nav {
    display: none; /* デフォルトは非表示 */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }

  nav.active {
    display: block; /* .activeクラス付与で表示 */
  }

  nav ul {
    display: flex;
    flex-direction: column;
    padding: 20px 5%;
    gap: 15px;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    border: none;
    padding: 10px 0;
    text-align: left;
    font-size: 1rem;
    box-shadow: none;
    background: transparent;
  }

  .hero-main-copy {
    font-size: 1.6rem;
  }

  .img-treatment, .img-model {
    height: 200px;
  }
  
  .solution-item {
    flex-direction: column !important;
    gap: 30px;
  }

  /* モバイル用固定バナー */
  .mobile-cta-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  footer {
    padding-bottom: 80px; /* バナーに被らないよう余白を追加 */
  }
}

/* デフォルト（PC）ではバナーを非表示 */
.mobile-cta-banner {
  display: none;
}
