/* CSS Variables */
:root {
  /* Colors - Premium White Base */
  --color-base: #FFFFFF;
  --color-bg-subtle: #F8FAFC;
  /* Very light cool gray for separation */

  /* Primary Brand Colors */
  --color-main: #0F172A;
  /* Deep Navy - Trustworthy, Sharp */
  --color-main-light: #334155;

  /* Accents */
  --color-accent: #00D2A0;
  /* Vibrant Mint/Teal - Freshness, Modern Tech */
  --color-accent-hover: #00B88D;
  --color-cta: #FFC400;
  /* Warm Gold for High Conversion Buttons */
  --color-cta-hover: #EAB308;

  /* Typography Colors */
  --color-text: #334155;
  /* Slate 700 - Softer than black */
  --color-text-light: #64748B;
  /* Slate 500 */
  --color-border: #E2E8F0;

  /* Typography */
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 28px;
  --font-size-2xl: 40px;
  --font-size-3xl: 64px;
  /* Larger Hero */

  /* Spacing */
  --spacing-xs: 12px;
  --spacing-sm: 24px;
  --spacing-md: 48px;
  --spacing-lg: 96px;
  --spacing-xl: 144px;

  /* Layout */
  --max-width: 1200px;
  /* Wider for modern feel */
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;

  /* Effects */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-main);
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: var(--font-size-xl);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
  color: var(--color-main);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Buttons - Simpler, cleaner */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: var(--font-size-base);
  font-weight: 700;
  text-align: center;
  border-radius: var(--border-radius-pill);
  /* Modern Pill Shape */
  cursor: pointer;
  transition: var(--transition);
  border: none;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-hover) 100%);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.5);
}

.btn-lg {
  padding: 20px 60px;
  font-size: var(--font-size-lg);
}

/* ============================================
   Header
   ============================================ */
/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-cta {
  padding: 10px 24px;
  font-size: var(--font-size-sm);
  min-width: auto;
  box-shadow: none;
  background: var(--color-cta);
  color: white;
}

/* ============================================
   Hero Section - White Base
   ============================================ */
/* ============================================
   Hero Section - Modern & Impactful
   ============================================ */
.hero {
  padding: calc(60px + var(--spacing-md)) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  /* Centering vertically if needed */
  align-items: center;
}

/* Hero Container */
.hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  /* Ensure height */
  text-align: center;
}

/* Hero Visual (Background) */
.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Blur slightly to help text readability if needed, or keeping sharp with overlay */
  /* filter: blur(2px); */
}

/* Overlay for Readability */
.hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.65);
  /* White overlay */
  backdrop-filter: blur(2px);
  /* Subtle glass effect */
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  /* Above overlay */
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-main);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
  border: 1px solid var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge-icon {
  margin-right: 8px;
}

.hero-title {
  font-size: var(--font-size-3xl);
  /* Big Impact */
  color: var(--color-main);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title-sub {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.2em;
}

.hero-title-main {
  display: inline-block;
  /* Changed from block to inline-block for better wrapping */
  color: var(--color-main);
  /* Solid color for readability */
  /* Removing gradient text for better contrast on image */
  background: none;
  -webkit-text-fill-color: var(--color-main);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.8);
  /* Glow effect */
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

.hero-lead {
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.highlight {
  color: var(--color-accent);
  /* Teal Highlight */
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(0, 210, 160, 0.2) 60%);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center for overlay layout */
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.hero-note {
  font-size: 12px;
  color: #94A3B8;
}

/* Hero Mobile Adjustments */
@media (max-width: 991px) {
  .hero-container {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }
}

/* ============================================
   Worries Section (Pain Points)
   ============================================ */
.section-worries {
  padding: 120px 0 100px !important;
  /* Increased top padding for separation */
  background-color: var(--color-bg-subtle);
  /* Slight separation */
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-label {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.worries-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 800px;
  margin: 0 auto;
}

.worry-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 24px 32px;
  border-radius: var(--border-radius-pill);
  /* Speech bubble look */
  box-shadow: var(--shadow-soft);
  position: relative;
  max-width: 90%;
  animation: fade-up 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.worry-card:nth-child(1) {
  animation-delay: 0.1s;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.worry-card:nth-child(2) {
  animation-delay: 0.2s;
  align-self: flex-end;
  flex-direction: row-reverse;
  border-bottom-right-radius: 4px;
  border: 1px solid var(--color-border);
}

.worry-card:nth-child(3) {
  animation-delay: 0.3s;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.worry-icon {
  font-size: 32px;
  margin: 0 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Restoring worry-text p */
.worry-text p {
  margin-bottom: 0;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  line-height: 1.4;
}

/* Solution Transition */
.solution-transition {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.solution-header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 16px;
}

.solution-badge {
  display: inline-block;
  background-color: #E11D48;
  /* Rose Red from reference */
  color: white;
  font-weight: 700;
  padding: 8px 32px;
  /* Wide pill */
  border-radius: 100px;
  font-size: var(--font-size-base);
  box-shadow: 0 4px 6px rgba(225, 29, 72, 0.25);
  position: relative;
}

/* Little triangle for speech bubble effect on badge if needed, or just pill */
.solution-badge::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #E11D48 transparent transparent transparent;
}

.solution-title {
  font-size: var(--font-size-2xl);
  color: var(--color-main);
  margin: 0;
  font-weight: 800;
}

.solution-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-top: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.worry-text strong {
  color: var(--color-main);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #E2E8F0 60%);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .worry-card {
    border-radius: var(--border-radius-lg) !important;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .worry-card:nth-child(2) {
    flex-direction: column;
  }

  .worry-icon {
    margin: 0 0 16px 0;
  }
}

/* ============================================
   Section Base - All White
   ============================================ */
.section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-base);
}

/* Remove colored backgrounds */
/* Restore subtle background for visibility */
.section-alt {
  background-color: var(--color-bg-light);
  position: relative;
  padding-top: 120px !important;
}

.section-blue {
  /* Keep blue section white or maybe very light blue? 
     Let's use bg-light for consistency or a very faint tint if "White Base" allows. 
     User said "White is too distinct" -> "Content not visible". 
     Alternating backgrounds help. 
  */
  background-color: var(--color-base);
  padding-top: 120px !important;
  /* process-list items are white, so section-alt being gray works well. */
}

.section-blue::before {
  display: none;
}

.section-title::after {
  display: none;
}

/* Remove underlined decoration */



/* ============================================
   Service Overview
   ============================================ */
/* ============================================
   Service Overview (Removed - merged into Worries)
   ============================================ */
/* .service-overview removed */

/* ============================================
   Strengths (3 Points)
   ============================================ */
/* ============================================
   Strengths (3 Points)
   ============================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.strength-card {
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.strength-icon {
  width: 80px;
  height: 80px;
  background-color: #F0FDFA;
  /* Mint Tint */
  /* Light Cyan for Trust/Clean look */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  box-shadow: 0 4px 15px rgba(0, 210, 160, 0.15);
  /* Tint color shadow */
}

.strength-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-accent);
  /* Vibrant Teal Icon */
}

.strength-card h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-main);
  font-size: var(--font-size-lg);
}

.strength-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   Portfolio (制作事例)
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.portfolio-card {
  background-color: var(--color-base);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

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

.portfolio-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-image span {
  position: relative;
  z-index: 1;
  color: var(--color-base);
  font-weight: 700;
  font-size: var(--font-size-lg);
  opacity: 0.9;
  letter-spacing: 0.1em;
}

.portfolio-info {
  padding: 20px;
  text-align: left;
}

.portfolio-info h3 {
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-info p {
  font-size: var(--font-size-lg);
  color: var(--color-main);
  margin-bottom: 0;
  font-weight: 700;
}

/* ============================================
   Process (制作の流れ)
   ============================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.process-list::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 2px;
  background: var(--color-border);
  z-index: 0;
}

.process-item {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
  background: var(--color-base);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-border);
}

.process-item:hover {
  transform: translateX(8px);
  border-color: var(--color-accent);
}

.process-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--color-main);
  color: var(--color-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  border: 2px solid white;
}

.process-content {
  flex: 1;
}

.process-content h3 {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.process-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding-top: var(--spacing-xl);
}

.faq-section .section-title {
  color: var(--color-main);
  /* Changed back to dark for white background */
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-base);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--color-main);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--color-bg-subtle);
  color: var(--color-accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  background: #E2E8F0;
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
}

/* Restore FAQ Icon Pseudo Elements */
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-main);
  transition: var(--transition);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* Allow enough height */
  transition: max-height 0.5s ease-in;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ... existing icon lines */

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--color-bg-subtle);
  /* Light gray instead of gradient */
  padding: var(--spacing-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.cta-section h2 {
  color: var(--color-main);
  margin-bottom: var(--spacing-md);
}

.cta-text {
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-main);
  color: var(--color-base);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-company {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  opacity: 1;
  letter-spacing: 0.05em;
}

.footer-address {
  font-size: var(--font-size-sm);
  opacity: 0.7;
  margin-bottom: var(--spacing-xs);
}

.footer-email a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.footer-email a:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: white;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-copyright {
  font-size: var(--font-size-sm);
  opacity: 0.6;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Responsive - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  :root {
    --font-size-2xl: 40px;
    --font-size-xl: 28px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .strengths-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    padding-left: var(--spacing-lg);
  }
}

/* ============================================
   Responsive - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  :root {
    --font-size-2xl: 48px;
    --font-size-xl: 32px;
    --font-size-lg: 20px;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .hero {
    padding: calc(80px + var(--spacing-2xl)) var(--spacing-md) var(--spacing-2xl);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .strength-card {
    padding: var(--spacing-lg);
  }

  .strength-icon {
    width: 100px;
    height: 100px;
  }

  .strength-icon svg {
    width: 50px;
    height: 50px;
  }
}