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

/* --- Design Tokens (Bright & Premium Concept) --- */
:root {
  /* Colors */
  --bg-dark: hsl(30, 20%, 97%); /* Cream/Ivory Base */
  --bg-dark-hover: hsl(30, 20%, 94%);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(0, 0, 0, 0.15);
  
  /* Trust & Premium Accents */
  --accent-gradient: linear-gradient(135deg, hsl(228, 60%, 25%) 0%, hsl(35, 75%, 45%) 50%, hsl(15, 70%, 48%) 100%);
  --accent-indigo: hsl(228, 55%, 32%); /* Trust Anchor */
  --accent-gold: hsl(35, 75%, 45%); /* Quality Anchor */
  --accent-coral: hsl(15, 70%, 48%); /* Soft Warmth */

  --text-primary: hsl(220, 25%, 15%); /* Deep Charcoal for crisp contrast */
  --text-secondary: hsl(220, 10%, 42%); /* Soft Muted Slate */
  
  /* Fonts */
  --font-sans: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  
  /* Shadows - Extremely Soft & Premium */
  --ambient-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --ambient-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 20px rgba(228, 160, 45, 0.05);
  --glass-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.03);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  /* Light organic radial gradients for visual depth */
  background: radial-gradient(circle at 10% 20%, rgba(228, 233, 245, 0.5) 0%, rgba(255, 255, 255, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(245, 235, 220, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.font-display {
  font-family: var(--font-display);
}

.font-serif {
  font-family: var(--font-serif);
}

/* --- Utilities & Common Components --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Glassmorphism Card Base (Bright Concept) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--ambient-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--ambient-shadow-hover);
}

/* Trustworthy Buttons */
.btn-primary {
  background: var(--accent-indigo);
  color: #fff;
  padding: 15px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 42, 76, 0.15);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 130, 20, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-indigo);
  padding: 15px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(26, 42, 76, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  letter-spacing: -0.04em;
}

.logo-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-indigo);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
}

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

/* --- Hero Section --- */
.hero {
  padding-top: 200px;
  padding-bottom: 120px;
  text-align: center;
  position: relative;
  /* Premium Light Background Image with mask */
  background-image: radial-gradient(circle, rgba(253, 251, 248, 0.9) 0%, var(--bg-dark) 100%), url('hero_bg_light.png');
  background-size: cover;
  background-position: center;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  color: var(--accent-indigo);
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26, 42, 76, 0.05);
  border-radius: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.25;
  margin-bottom: 28px;
  color: var(--text-primary);
  font-weight: 900;
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 48px auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Bento Grid Section --- */
.concept-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-display);
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.bento-card {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card-1 {
  grid-column: span 7;
}

.bento-card-2 {
  grid-column: span 5;
}

.bento-card-3 {
  grid-column: span 5;
}

.bento-card-4 {
  grid-column: span 7;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 28px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-indigo);
}

.bento-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.bento-stat {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  margin-top: 24px;
  letter-spacing: -0.02em;
}

/* --- Before/After Vertical Comparison Section --- */
.slider-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.4);
}

.comparison-vertical-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--ambient-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--ambient-shadow-hover);
}

.comparison-badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-before {
  background: #444;
  color: #fff;
}

.badge-after {
  background: var(--accent-indigo);
  color: #fff;
}

/* Connector (Arrow down between cards) */
.comparison-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0;
}

.connector-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #444, var(--accent-indigo));
  z-index: 1;
  opacity: 0.2;
}

.connector-badge {
  background: #fff;
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  letter-spacing: 0.1em;
}

.connector-arrow {
  font-size: 24px;
  color: var(--accent-indigo);
  z-index: 2;
  margin-top: 4px;
  animation: bounceSlow 2s infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Mockup Content Styling (Inside Cards) */
.mock-before-content {
  border: 1px solid #ddd;
  background: white;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  font-family: "MS UI Gothic", "MS PGothic", sans-serif;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}
.mock-before-header {
  border-bottom: 3px double #e00;
  padding-bottom: 5px;
  color: #c00;
  font-size: clamp(14px, 3vw, 22px);
  font-weight: bold;
}
.mock-before-body {
  margin-top: 15px;
  font-size: clamp(11px, 1.8vw, 14px);
  color: #333;
}
.mock-before-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.mock-before-body td {
  border: 1px solid #ccc;
  padding: 5px;
  background: #fdfdfd;
}
.mock-before-warn {
  color: red;
  font-weight: bold;
  margin-top: 10px;
  font-size: 11px;
}

.mock-after-content {
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.mock-after-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mock-after-image {
  background-image: url('matsuya_after.png');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.mock-after-tag {
  color: var(--accent-indigo);
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 700;
  letter-spacing: 2px;
}
.mock-after-title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 3.2vw, 30px);
  line-height: 1.3;
  font-weight: 900;
  margin: 12px 0;
  color: var(--text-primary);
}
.mock-after-desc {
  color: var(--text-secondary);
  font-size: clamp(11px, 1.8vw, 14px);
  margin-bottom: 15px;
  line-height: 1.6;
}
.mock-after-pills {
  display: flex;
  gap: 8px;
}
.mock-after-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(26, 42, 76, 0.05);
  border: 1px solid rgba(26, 42, 76, 0.03);
  font-size: clamp(8px, 1.5vw, 11px);
  color: var(--accent-indigo);
  font-weight: 600;
}
@media (max-width: 600px) {
  .mock-after-content {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .mock-after-image {
    display: block;
    height: 180px;
    order: -1; /* 画像を上に持ってくる */
  }
}

/* --- Pricing Section --- */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.pricing-card.premium {
  border-color: var(--accent-gold);
  border-width: 2px;
  box-shadow: 0 20px 45px rgba(180, 130, 20, 0.06);
}

.pricing-card.premium::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 28px;
  right: -36px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.12em;
}

.pricing-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.pricing-price {
  margin: 28px 0;
  display: flex;
  align-items: baseline;
  color: var(--text-primary);
}

.price-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-indigo);
}

.price-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.price-period {
  color: var(--text-secondary);
  font-size: 16px;
  margin-left: 8px;
}

.pricing-features {
  list-style: none;
  margin: 36px 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 16px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 16px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* --- Team Section --- */
.team-section {
  padding: 100px 0;
}

.team-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px;
  display: flex;
  gap: 36px;
  align-items: center;
  background: #fff;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaeae8 0%, #d8d8d3 100%);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.team-avatar svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0.15;
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.team-role {
  color: var(--accent-indigo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* --- Contact Form Section --- */
.contact-section {
  padding: 100px 0 140px 0;
}

.contact-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px;
  background: #fff;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-indigo);
  background: #fff;
  box-shadow: 0 4px 15px rgba(26, 42, 76, 0.03);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Animation Classes --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(35px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .bento-card {
    grid-column: span 12 !important;
    padding: 36px 30px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .pricing-card {
    padding: 44px 32px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding-top: 160px;
    padding-bottom: 80px;
  }
  
  .team-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  
  .contact-card {
    padding: 40px 24px;
  }
}
