/* ==========================================================================
   KOKORO & KARADA 整骨整体院 - Design System & Reset
   ========================================================================== */

:root {
  /* Color Palette (Trust & Healing Green theme) */
  --bg-color: #f5f7f5;           /* Soft sage tint background */
  --text-main: #242c26;          /* Deep olive green black */
  --text-muted: #5e6b61;         /* Sage muted gray */
  --primary-color: #3b6247;      /* Trustful deep forest green */
  --primary-light: #6a9677;      /* Healing green mist */
  --primary-dark: #274530;       /* Deep moss green */
  --accent-color: #e59f4c;       /* Healthy warm orange/yellow accent */
  --accent-light: #e6ede8;       /* Very soft mint tint */
  --card-bg: #ffffff;            /* Pure white for cards */
  --border-color: #dfede2;       /* Light sage border line */
  --glass-bg: rgba(245, 247, 245, 0.85);
  
  /* Fonts */
  --font-serif: 'Playfair Display', 'Noto Serif JP', serif;
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Utilities */
  --max-width: 1140px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(36, 44, 38, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

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

/* Reusable Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.section-sub {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--primary-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 98, 71, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--text-main);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ==========================================================================
   Header & Navbar Style
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

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

.nav-menu a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  opacity: 0.85;
}

.nav-menu a:hover {
  color: var(--primary-color);
  opacity: 1;
}

.nav-btn {
  padding: 0.6rem 1.6rem;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(59, 98, 71, 0.15);
}

.nav-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section Style
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1519824141125-994e37c7af46?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
  z-index: -2;
}

.hero:hover .hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(36, 44, 38, 0.7) 0%, rgba(36, 44, 38, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 650px;
  padding: 0 2rem;
  margin-left: calc((100% - var(--max-width)) / 2 + 2rem);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-light);
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: #ffffff;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { top: -15px; }
  50% { top: 40px; }
  100% { top: 40px; }
}

/* ==========================================================================
   Concept Section Style
   ========================================================================== */

.concept-section {
  padding: 8rem 0;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.concept-img-wrapper {
  position: relative;
}

.concept-img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.img-accent-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius);
  z-index: -1;
  transform: translate(-10px, -10px);
}

.concept-text {
  padding-left: 1rem;
}

.concept-p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.concept-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

/* ==========================================================================
   Trouble Section Style
   ========================================================================== */

.trouble-section {
  padding: 8rem 0;
  background-color: var(--accent-light);
}

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

.trouble-box {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.trouble-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.trouble-box i {
  font-size: 1.8rem;
  color: var(--primary-light);
}

.trouble-box p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Menu Plan Section Style
   ========================================================================== */

.menu-section {
  padding: 8rem 0;
}

.menu-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 950px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(36, 44, 38, 0.07);
}

.plan-badge {
  position: absolute;
  top: 1.5rem;
  right: -3.5rem;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 4rem;
  transform: rotate(45deg);
}

.plan-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.plan-header h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.plan-header .duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
}

.price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.price-new {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.plan-note {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 700;
}

.plan-body ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.plan-body ul li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-body ul li i {
  color: var(--primary-light);
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ Section Style
   ========================================================================== */

.faq-section {
  padding: 8rem 0;
  background-color: var(--accent-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  cursor: pointer;
  user-select: none;
}

.faq-question span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 1.5rem;
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 700;
  flex-grow: 1;
}

.faq-question i {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.4s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 2rem 0 4.2rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 1.5rem;
}

/* FAQ Active State */
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Large enough to hold content */
}

/* ==========================================================================
   Booking & Contact Section Style
   ========================================================================== */

.reserve-section {
  padding: 8rem 0;
}

.reserve-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.reserve-content {
  padding-right: 2rem;
}

.reserve-p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.booking-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.option-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.option-item i {
  font-size: 2.2rem;
  margin-top: 4px;
}

.line-opt i {
  color: #06c755;
}

.web-opt i {
  color: var(--primary-color);
}

.option-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.option-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.option-item a {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 700;
}

.line-btn {
  background-color: #06c755;
  color: #ffffff;
}

.line-btn:hover {
  background-color: #05ae4a;
  transform: translateY(-1px);
}

.web-btn {
  background-color: var(--primary-color);
  color: #ffffff;
}

.web-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.clinic-details {
  padding: 3.5rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
}

.clinic-details h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.clinic-details .tagline {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 4px;
}

.detail-row p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.detail-row strong {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
}

.map-link {
  font-size: 0.8rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 1px;
}

/* ==========================================================================
   Footer & Access Style
   ========================================================================== */

.access-section {
  background-color: #1a221c;
  color: #ffffff;
  padding: 6.5rem 0 3rem;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 2.5rem;
}

.footer-desc-p {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.access-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 360px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #272e29;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.25);
}

.map-placeholder i {
  font-size: 2.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
  .navbar {
    padding: 1.2rem 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    font-weight: 700;
  }
  
  .nav-btn {
    display: none;
  }

  .concept-grid,
  .trouble-grid,
  .menu-plan-grid,
  .reserve-wrapper,
  .access-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .concept-img-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .concept-img {
    height: 380px;
  }

  .clinic-details {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
}
