/*
 Theme Name:   Astra Portfolio Child
 Description:  Child theme for Astra Portfolio, migrated from Astro.
 Author:       Digital Plan
 Template:     astra
 Version:      2.0.0
*/

/* ============================================
   ASTRA RESET - Override parent theme defaults
   ============================================ */
html, body, #page, .site, .ast-container, #content, #primary, .site-content,
.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .comments-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ast-container { max-width: 100% !important; padding: 0 !important; }
#page { min-height: 100vh; display: flex; flex-direction: column; }
main, .site-main { flex: 1; }
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.widewidth) { max-width: 100% !important; }
.site-content .ast-container { display: block !important; }

/* Remove Astra's default header/footer if they leak through */
.ast-above-header-wrap, .ast-below-header-wrap, .ast-main-header-wrap,
.main-header-bar-wrap, .site-header, #masthead,
.ast-footer-overlay, .ast-small-footer, .site-footer,
.ast-above-header, .ast-below-header { display: none !important; }

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES (Single Source of Truth)
   ============================================ */
:root {
  --color-primary: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-accent: #0ea5e9;
  --color-bg-light: #f8fafc;
  --color-bg-dark: #213054;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #2dd4bf 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
  --spacing-root: 2rem;
  --text-xs: 0.8rem; --text-sm: 0.9375rem; --text-base: 1.1rem;
  --text-lg: 1.25rem; --text-xl: 1.5rem; --text-2xl: 2rem;
  --text-3xl: 3rem; --text-4xl: 4rem;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;
  --space-24: 6rem; --space-32: 8rem; --space-40: 10rem; --space-48: 12rem;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --bg-dark-theme: #213054;
  --text-dark-theme: #ffffff;
  --bg-light-theme: #ffffff;
  --text-light-theme: var(--color-text);
  --bg-dim-theme: #f1f5f9;
  --text-dim-theme: var(--color-text);
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 18px; color: var(--color-text);
  background-color: var(--bg-light-theme);
  line-height: 1.8; overflow-x: hidden;
}
body { background-color: var(--bg-light-theme); color: var(--color-text); transition: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  color: var(--color-bg-dark); line-height: 1.3;
  word-break: keep-all; overflow-wrap: break-word;
}
h2 { margin-top: var(--space-16); margin-bottom: var(--space-8); }
h3 { margin-top: var(--space-12); margin-bottom: var(--space-6); }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container { max-width: 1100px !important; margin: 0 auto !important; padding: 0 2rem !important; width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: white; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.opacity-80 { opacity: 0.8; }
.bg-light { background-color: var(--bg-light-theme); }
.bg-dim { background-color: var(--bg-dim-theme); }
.bg-dark { background-color: var(--color-bg-dark); }

/* ============================================
   SECTION THEMING
   ============================================ */
[data-theme="dark"] { background-color: var(--bg-dark-theme) !important; color: var(--text-dark-theme); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] .section-title { color: var(--bg-light-theme); }
[data-theme="dark"] p, [data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-description { color: rgba(255, 255, 255, 0.8); }
[data-theme="dark"] .premium-card, [data-theme="dark"] .trust-overlay,
[data-theme="dark"] .pricing-card, [data-theme="dark"] .image-overlay-text,
[data-theme="dark"] .caption-tag { color: var(--color-text) !important; }
[data-theme="dark"] .premium-card h3, [data-theme="dark"] .trust-overlay h3,
[data-theme="dark"] .pricing-card h2, [data-theme="dark"] .image-overlay-text { color: var(--color-bg-dark) !important; }
[data-theme="dark"] .premium-card p, [data-theme="dark"] .trust-overlay p,
[data-theme="dark"] .pricing-card p { color: var(--color-text-muted) !important; }
[data-theme="dim"] { background-color: var(--bg-dim-theme) !important; color: var(--text-dim-theme); }
[data-theme="light"] { background-color: var(--bg-light-theme) !important; color: var(--text-light-theme); }

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid { display: grid; gap: var(--space-8); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-12); }
.grid-profile { grid-template-columns: 200px 1fr; align-items: center; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (max-width: 768px) { .grid-profile { grid-template-columns: 1fr; text-align: center; } }

/* ============================================
   SECTION SPACING
   ============================================ */
.section-padding { padding: var(--space-32) 0; }
.section-padding-lg { padding: var(--space-48) 0; }
.section-title { font-size: var(--text-3xl); margin-bottom: var(--space-6); text-align: center; }

/* ============================================
   HEADER (Floating Pill)
   ============================================ */
.header-wrapper {
  position: fixed; top: 1.5rem; left: 0; width: 100%;
  z-index: 1000; padding: 0 2rem; transition: var(--transition-smooth);
}
/* WordPress Admin Bar adjustment - Stronger selector with !important */
body.admin-bar .header-wrapper { 
  top: calc(1.5rem + 32px) !important; 
}
body.admin-bar.scrolled .header-wrapper { 
  top: calc(1rem + 32px) !important; 
}

@media screen and (max-width: 782px) {
  body.admin-bar .header-wrapper { 
    top: calc(1.5rem + 46px) !important; 
  }
  body.admin-bar.scrolled .header-wrapper { 
    top: calc(1rem + 46px) !important; 
  }
}

.header-container {
  max-width: 1200px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3rem; padding: 0.75rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}
.scrolled .header-wrapper { top: 1rem; }
.scrolled .header-container { background: white; box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15); padding: 0.5rem 1.75rem; }
.logo-text {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem;
  background: var(--gradient-primary); background-clip: text;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-list { display: flex; gap: 2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; padding: 1rem 0; }
.nav-list li > a { font-weight: 500; color: var(--color-text); text-decoration: none; transition: var(--transition-smooth); }
.nav-list li > a:hover { color: var(--color-primary) !important; }
.header-wrapper .nav-cta, .header-container .nav-cta, .scrolled .nav-cta {
  background: var(--bg-light-theme) !important; color: var(--color-primary) !important;
  padding: 0.6rem 1.75rem; border-radius: 2rem; font-weight: 700;
  transition: var(--transition-smooth); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.1);
  display: flex !important; align-items: center; justify-content: center; text-decoration: none;
}
.header-wrapper .nav-cta:hover, .header-container .nav-cta:hover {
  background: var(--color-bg-light) !important; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}
.dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white; border-radius: 1.5rem; box-shadow: var(--shadow-lg);
  padding: 1rem; min-width: 280px; opacity: 0; visibility: hidden;
  transition: var(--transition-smooth); z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; gap: 0.5rem;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 1rem; transition: background 0.3s ease; color: var(--color-text); text-decoration: none; }
.dropdown-item:hover { background: #f8fafc; }
.dropdown-icon { width: 36px; height: 36px; background: var(--color-bg-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.dropdown-text { display: flex; flex-direction: column; }
.dropdown-label { font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }
.dropdown-sub { font-size: 0.7rem; color: var(--color-text-muted); }

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 18px; background: transparent; border: none;
  cursor: pointer; padding: 0; z-index: 1001; position: relative;
}
.mobile-menu-toggle span { width: 100%; height: 2px; background-color: var(--color-primary); border-radius: 2px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 0;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  z-index: 1000; overflow: hidden; transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.mobile-nav-overlay.active { height: 100vh; pointer-events: auto; }
.mobile-nav-content { opacity: 0; transform: translateY(30px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; width: 100%; }
.mobile-nav-overlay.active .mobile-nav-content { opacity: 1; transform: translateY(0); }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-nav-list li { margin-bottom: 1.5rem; }
.mobile-nav-list a { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--color-bg-dark); text-decoration: none; transition: color 0.3s ease; padding: 0.5rem 1rem; display: block; }
.mobile-nav-list .mobile-nav-cta { background: var(--bg-light-theme) !important; color: var(--color-primary) !important; margin-top: 1rem; padding: 0.8rem 2rem; border-radius: 2rem; display: inline-block; box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15); border: 1px solid rgba(0, 0, 0, 0.05); }
body.menu-open { overflow: hidden; }
@media (max-width: 768px) {
  .nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  .header-container { padding: 1rem 1.5rem !important; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.mesh-bg {
  background-color: var(--color-bg-dark);
  background-image: radial-gradient(at 0% 0%, hsla(224, 64%, 33%, 0.8) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(217, 91%, 60%, 0.5) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(199, 89%, 48%, 0.5) 0, transparent 50%);
  background-attachment: fixed; background-size: cover;
}
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   PREMIUM CARD
   ============================================ */
.premium-card {
  background: white; border-radius: 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 10px -5px rgba(0, 0, 0, 0.02);
  padding: 3rem; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.03); position: relative; overflow: hidden; z-index: 1;
}
.premium-card > *:first-child { margin-top: 0 !important; }
.premium-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
  background: var(--gradient-primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2;
}
.premium-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.premium-card:hover { transform: translateY(-16px) scale(1.02); box-shadow: 0 40px 80px -15px rgba(2, 6, 23, 0.12), 0 20px 40px -20px rgba(0, 0, 0, 0.1); border-color: rgba(59, 130, 246, 0.2); }
.premium-card:hover::before { transform: scaleX(1); }
.premium-card:hover::after { opacity: 1; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1rem 2.5rem 1rem; background: var(--gradient-primary); color: white;
  border-radius: 0.5rem; font-weight: 700;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease; border: none; cursor: pointer; line-height: 1;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4); }
.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1rem 2.5rem 1rem; border: 2px solid rgba(255, 255, 255, 0.2);
  color: white; border-radius: 0.5rem; font-weight: 700; transition: all 0.3s ease; line-height: 1;
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: white; transform: translateY(-2px); }
.btn-secondary { display: inline-block; padding: 0.75rem 1.5rem; border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: 0.5rem; font-weight: 600; }
.btn-secondary:hover { background: var(--color-primary); color: white; }
.btn-magnetic { display: inline-flex; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-block { width: 100%; cursor: pointer; border: none; }
.btn-hero-primary { display: inline-flex; align-items: center; justify-content: center; padding: 1.1rem 3rem 1rem; background: white; color: var(--color-primary); border-radius: 0.5rem; font-weight: 700; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); transition: var(--transition-smooth); line-height: 1; }
.btn-hero-outline { display: inline-flex; align-items: center; justify-content: center; padding: 1.1rem 3rem 1rem; border: 2px solid rgba(255, 255, 255, 0.2); color: white; border-radius: 0.5rem; font-weight: 700; transition: var(--transition-smooth); line-height: 1; }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2); }
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }
.text-gradient { background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline; }
.text-gradient-white { background: linear-gradient(135deg, var(--bg-light-theme) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline; }
.text-gradient-vibrant { background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #0ea5e9 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline; }
.text-link { color: var(--color-primary-light); font-weight: 600; margin-top: 1rem; display: inline-block; }
.text-white .page-subtitle, .text-white .hero-description { color: rgba(255, 255, 255, 0.9) !important; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.abstract-accent { position: absolute; bottom: -10%; left: -10%; width: 40%; height: 60%; background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%); pointer-events: none; }

/* ============================================
   PREMIUM HEADER VISUAL (Subpages)
   ============================================ */
.premium-header-visual {
  position: relative; padding: 10rem 0 6rem;
  background-color: var(--color-bg-dark);
  background-image: linear-gradient(180deg, rgba(33, 48, 84, 0.8) 0%, rgba(33, 48, 84, 0.95) 100%);
  color: white; overflow: hidden;
}
.header-visual-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; mix-blend-mode: luminosity; transform: scale(1.1); transition: transform 10s ease-out; }
.revealed .header-visual-bg { transform: scale(1.0); }
.header-visual-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(33, 48, 84, 0.7) 0%, rgba(33, 48, 84, 0.9) 100%); z-index: 1; }
.premium-header-visual .container { position: relative; z-index: 2; }
.page-title.text-gradient-white { font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 700; margin-bottom: var(--space-4); line-height: 1.2; }
.page-title { margin-bottom: 1rem; }
.page-subtitle { font-size: 1.25rem; opacity: 0.9; }

/* ============================================
   PREMIUM CTA SECTION
   ============================================ */
.premium-cta-section { background-color: var(--color-bg-dark); color: white; padding: var(--space-32) 0; text-align: center; position: relative; overflow: hidden; }
.premium-cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 10% 100%, rgba(59, 130, 246, 0.15), transparent 50%), radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.1), transparent 50%); pointer-events: none; }
.premium-cta-section h2 { color: white; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; font-weight: 800; }
.premium-cta-section p { color: rgba(255, 255, 255, 0.7); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 700px; margin: 0 auto 3rem auto; line-height: 1.7; }
.cta-button-group { display: flex; justify-content: center; gap: 1.5rem; position: relative; z-index: 5; }
@media (max-width: 640px) { .cta-button-group { flex-direction: column; align-items: center; gap: 1rem; } }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--color-bg-dark); color: white; padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.footer-info h3 { color: white; margin-bottom: 1rem; }
.footer-info p { color: var(--color-text-muted); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { color: var(--color-text-muted); }
.footer-nav a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; font-size: 0.85rem; color: var(--color-text-muted); }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }

/* Back to Top */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--color-primary); border: 1px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-md); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: white; transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--color-primary-light); }

/* ============================================
   HOME PAGE - Hero
   ============================================ */
.hero { min-height: 90vh; display: flex; align-items: center; position: relative; }
.hero-image-wrapper { position: absolute; top: 0; right: 0; width: 60%; height: 100%; opacity: 0.4; mask-image: linear-gradient(to left, black 40%, transparent); -webkit-mask-image: linear-gradient(to left, black 40%, transparent); pointer-events: none; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center; max-width: 900px; }
.hero-eyebrow { font-size: 1.1rem; font-weight: 700; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); color: var(--bg-light-theme); line-height: 1.1; margin-bottom: 2rem; font-weight: 800; }
.hero-description { font-size: 1.25rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 3rem; max-width: 600px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 2rem; }
.hero-floating-elements { position: relative; height: 400px; }
.floating-card { position: absolute; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 1.5rem; border-radius: 1rem; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); color: white; animation: float 6s ease-in-out infinite; }
.perf-card { top: 10%; right: 10%; animation-delay: 0s; width: 180px; }
.cms-card { bottom: 15%; right: 30%; animation-delay: 2s; width: 220px; }
.sales-card { top: 50%; right: 0; animation-delay: 4s; width: 200px; display: flex; align-items: center; gap: 0.75rem; }
.card-head { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.5rem; }
.card-value { font-size: 2.5rem; font-weight: 800; }
.small { font-size: 1rem; margin-left: 2px; }
.card-bar { height: 4px; background: var(--color-accent); width: 80%; border-radius: 2px; margin-top: 1rem; }
.card-tag { font-size: 0.7rem; background: var(--color-primary-light); width: fit-content; padding: 2px 8px; border-radius: 10px; margin-bottom: 1rem; }
.cms-mock-lines span { display: block; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 3px; margin-bottom: 6px; }
.cms-mock-lines span:nth-child(2) { width: 60%; }

/* Home - Method icons & misc */
.method-icon { width: 60px; height: 60px; background: rgba(59, 130, 246, 0.05); color: var(--color-primary); border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; padding: 12px; border: 1px solid rgba(59, 130, 246, 0.1); }
.method-icon img { width: 100%; height: 100%; object-fit: contain; }
.target-list { display: inline-block; text-align: left; font-size: 1.1rem; }
.target-list li { margin-bottom: 1rem; display: flex; gap: 1rem; align-items: center; }
.target-list span { background: var(--color-accent); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.premium-image-container { position: relative; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-lg); height: 350px; transition: var(--transition-smooth); }
.premium-image-container:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25); }
.philosophy-img, .premium-image { width: 100%; height: 100%; object-fit: cover; }
.image-overlay-text { position: absolute; bottom: 2rem; left: 2rem; background: var(--glass-bg); backdrop-filter: var(--glass-blur); padding: 0.5rem 1.5rem; border-radius: 2rem; font-weight: 700; color: white; border: 1px solid var(--glass-border); }
.image-overlay-text.accent { color: var(--color-accent); }
.pricing-card-simple { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); padding: 3rem; border-radius: 2rem; display: inline-block; margin-bottom: 2rem; }
.price-label { font-size: 1.25rem; opacity: 0.8; }
.price-value { font-size: 5rem; font-weight: 800; }
.currency { font-size: 1.5rem; }
.price-note { font-size: 0.9rem; opacity: 0.6; }
.author-image-wrapper { width: 240px; height: 240px; overflow: hidden; border-radius: 50%; border: 4px solid white; box-shadow: var(--shadow-lg); margin-inline: 0; display: block; }
.author-image { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-floating-elements { display: none; }
  .hero-ctas { flex-direction: column; }
  .author-image-wrapper { margin: 0 auto 2rem; }
}

/* ============================================
   SERVICE PAGE
   ============================================ */
.method-tag { display: inline-block; padding: 0.25rem 1rem; background: var(--color-primary); color: white; border-radius: 2rem; font-weight: 700; margin-bottom: 1rem; }
.method-tag.accent { background: var(--color-accent); }
.method-title { font-size: 3rem; margin-bottom: 1.5rem; text-align: left; }
.description { font-size: 1.2rem; line-height: 1.8; color: var(--color-text-muted); }
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-list li { position: relative; padding-left: 1.5rem; }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--color-primary-light); font-weight: bold; }
.table-container { overflow-x: auto; background: var(--bg-dim-theme); border-radius: 1rem; box-shadow: var(--shadow-md); padding: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1.5rem 1rem; text-align: left; border-bottom: 1px solid var(--bg-dim-theme); }
th { font-weight: 700; color: var(--color-bg-dark); background: var(--color-bg-light); }
.order-2-md { /* default: no reorder */ }
@media (max-width: 768px) { .order-2-md { order: 2; } .method-title { text-align: center; } }

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-card { position: relative; padding: 4rem 3rem 3rem !important; display: flex; flex-direction: column; border: 1px solid rgba(0, 0, 0, 0.05); background: white; }
.pricing-card.active-card { border: 2px solid var(--color-primary-light); box-shadow: var(--shadow-lg); }
.pricing-card .card-tag, .card-tag { position: absolute; top: 1.5rem; left: 1.5rem; padding: 0.25rem 1rem; background: var(--color-primary-light); color: white; border-radius: 2rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.card-tag.dark { background: var(--color-bg-dark); }
.card-tag.gray { background: var(--color-text-muted); }
.price-header { margin-bottom: 2rem; }
.card-title { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--color-bg-dark); font-weight: 700; }
.price { font-size: 4rem; font-weight: 800; color: var(--color-primary); line-height: 1; margin-bottom: 0.5rem; }
.unit { font-size: 1.25rem; font-weight: 600; color: var(--color-text-muted); margin-left: 0.25rem; }
.subtitle { font-size: 0.95rem; color: var(--color-text-muted); font-weight: 500; }
.card-divider { height: 1px; background: rgba(0, 0, 0, 0.05); margin-bottom: 2rem; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 2.5rem 0; }
.check-list li { margin-bottom: 1rem; font-size: 1rem; display: flex; align-items: center; gap: 0.85rem; color: var(--color-text); }
.check-list li::before { content: '✔'; color: var(--color-accent); font-weight: bold; }
.note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: auto; }
.detail-block h3 { margin-bottom: 1rem; color: var(--color-primary); }
.detail-block p { line-height: 1.8; color: var(--color-text-muted); }
.note-list { max-width: 800px; margin: 0 auto; list-style: disc; padding-left: 1.5rem; color: var(--color-text-muted); }
.note-list li { margin-bottom: 1rem; }
.pb-0 { padding-bottom: 0; }
.premium-image-card { position: relative; background: white; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.trust-image { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.trust-overlay { padding: 4rem; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--bg-light-theme) 100%); }
.overlay-badge { display: inline-block; width: fit-content; padding: 0.25rem 1rem; background: var(--color-primary-light); color: white; border-radius: 2rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.trust-overlay h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--color-primary); }
.trust-overlay p { color: var(--color-text-muted); line-height: 1.8; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } .premium-image-card { grid-template-columns: 1fr; } .trust-overlay { padding: 3rem 2rem; } }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-features li { margin-bottom: 0.75rem; font-size: 1rem; }

/* ============================================
   MAINTENANCE PAGE
   ============================================ */
.section-badge { display: block; width: fit-content; margin-left: auto; margin-right: auto; padding: 0.5rem 1.5rem; background: rgba(30, 58, 138, 0.05); color: var(--color-primary); border-radius: 2rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2rem; border: 1px solid rgba(30, 58, 138, 0.1); }
.feature-card { padding: 3rem !important; display: flex; flex-direction: column; gap: 1.5rem; border: 1px solid rgba(30, 58, 138, 0.05); background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); }
.feature-icon-box { width: 56px; height: 56px; background: rgba(59, 130, 246, 0.08); border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--color-primary); border: 1px solid rgba(59, 130, 246, 0.15); flex-shrink: 0; }
.feature-content h3 { font-size: 1.25rem; color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 700; }
.feature-content p { font-size: 1rem; line-height: 1.6; color: var(--color-text-muted); margin: 0; }
.precision-visual { padding: 4rem 0; }
.maintenance-visual-card { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--color-bg-dark); border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-lg); align-items: center; }
.visual-content { padding: 5rem; color: white; }
.maintenance-tag { display: inline-block; padding: 0.25rem 1rem; background: var(--color-primary-light); border-radius: 2rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.visual-content h3 { color: white; font-size: 2.25rem; margin-bottom: 1.5rem; }
.visual-content p { opacity: 0.8; line-height: 1.8; font-size: 1.1rem; }
.visual-image-wrapper { height: 100%; min-height: 400px; }
.maintenance-image { width: 100%; height: 100%; object-fit: cover; }
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; margin-top: 5rem; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.vs-side { background: var(--bg-light-theme); }
.vs-header { padding: 1.5rem; font-size: 1.5rem; font-weight: 700; text-align: center; color: white; }
.vs-side.safe .vs-header { background: var(--color-primary); }
.vs-side.change .vs-header { background: var(--color-accent); }
.vs-content { padding: 4rem; text-align: center; }
.vs-goal { font-weight: 700; font-size: 1.4rem; margin-bottom: 2.5rem; color: var(--color-bg-dark); }
.vs-list { text-align: left; margin-bottom: 3.5rem; display: inline-block; }
.vs-list li { margin-bottom: 1rem; color: var(--color-text-muted); }
.vs-list li::before { content: '・'; font-weight: bold; margin-right: 0.5rem; }
.vs-price { font-weight: 700; padding: 1.5rem; background: var(--color-bg-light); border-radius: 0.75rem; color: var(--color-bg-dark); }
.vs-divider { background: var(--bg-dim-theme); display: flex; align-items: center; justify-content: center; padding: 0 2.5rem; font-weight: 900; color: var(--color-text-muted); font-size: 2rem; }
.flow-v { position: relative; padding-left: 2.5rem; margin-left: 1.5rem; }
.flow-v::before { content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--color-primary-light); opacity: 0.4; transform: translateX(-50%); }
.flow-v-item { position: relative; margin-bottom: 4rem; }
.flow-v-item::before { content: ''; position: absolute; left: -2.5rem; top: 0.45rem; width: 12px; height: 12px; background: var(--color-primary); border-radius: 50%; transform: translateX(-50%); z-index: 2; border: 4px solid var(--bg-dim-theme); }
.flow-v-item h4 { font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--color-primary); }
@media (max-width: 768px) {
  .maintenance-visual-card { grid-template-columns: 1fr; }
  .visual-content { padding: 3rem 2rem; }
  .vs-grid { grid-template-columns: 1fr; gap: 1rem; box-shadow: none; overflow: visible; }
  .vs-divider { display: none; }
  .vs-side { border-radius: 1rem; box-shadow: var(--shadow-md); margin-bottom: 1rem; }
  .flow-v { margin-left: 1rem; }
  .feature-card { padding: 2rem !important; flex-direction: row; align-items: flex-start; gap: 1.25rem; }
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 2.5rem; }
.faq-item { padding: 3.5rem; opacity: 0; animation: fadeIn 0.8s ease-out forwards; }
.faq-question, .faq-answer { display: flex; gap: 1.5rem; align-items: flex-start; }
.faq-question { margin-bottom: 2rem; }
.faq-content { flex: 1; }
.q-icon, .a-icon { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.q-icon { background: var(--color-primary); color: white; }
.a-icon { background: var(--color-accent); color: white; }
.faq-question h3 { font-size: 1.35rem; color: var(--color-bg-dark); line-height: 1.4; margin: 0; }
.faq-answer p { font-size: 1.05rem; line-height: 1.8; color: var(--color-text-muted); margin: 0; }
@media (max-width: 640px) { .faq-item { padding: 1.5rem; } .faq-question h3 { font-size: 1.15rem; } }

/* ============================================
   PROFILE PAGE
   ============================================ */
.avatar-large-wrapper { position: relative; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 500px; margin: 0 auto; }
.avatar-large-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-badge { position: absolute; top: 2rem; right: 2rem; background: var(--color-primary); color: white; padding: 0.5rem 1.5rem; border-radius: 2rem; font-weight: 700; font-size: 0.8rem; }
.lead { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.philosophy-card { padding: 3rem !important; display: flex; flex-direction: column; background: var(--bg-dim-theme); text-align: left; }
.philosophy-header { margin-bottom: 1.5rem; }
.num-label { display: block; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 800; color: var(--color-primary-light); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.philosophy-header h3 { font-size: 1.35rem; color: var(--color-primary); margin: 0; font-weight: 700; line-height: 1.4; }
.philosophy-card .card-divider { width: 40px; height: 3px; background: var(--gradient-primary); margin-bottom: 2rem; }
.philosophy-card p { font-size: 1.05rem; line-height: 1.8; color: var(--color-text-muted); margin: 0 0 1.5rem 0; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.tech-stack span { font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--color-primary); background: rgba(59, 130, 246, 0.05); padding: 0.25rem 0.6rem; border-radius: 4px; letter-spacing: 0.02em; }
.history-block { line-height: 1.8; font-size: 1.1rem; color: var(--color-text-muted); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.grid-contact { grid-template-columns: 1fr 1.5fr; gap: 6rem; align-items: start; }
.guide-item { margin-bottom: 2rem; padding-left: 1rem; border-left: 3px solid var(--color-accent); }
.guide-item h4 { color: var(--color-primary); margin-bottom: 0.5rem; }
.guide-item p { font-size: 0.9rem; color: var(--color-text-muted); }
.reply-promise { background: var(--bg-dim-theme); padding: 1.5rem; border-radius: 0.5rem; text-align: center; color: var(--color-primary); }
.contact-form-container { padding: 4rem; }
.form-group { margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.required { color: #e11d48; font-size: 0.8rem; margin-left: 0.5rem; }
input, select, textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--bg-dim-theme); border-radius: 0.5rem; font-size: 1rem; font-family: inherit; transition: var(--transition-smooth); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.form-privacy { text-align: center; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--color-text-muted); }
.form-privacy a { color: var(--color-primary-light); text-decoration: underline; }
.form-success-message { text-align: center; padding: 3rem; }
.form-success-message h3 { color: var(--color-primary); margin-bottom: 1rem; }
@media (max-width: 768px) { .grid-contact { grid-template-columns: 1fr; gap: 3rem; } .contact-info { text-align: center; } .guide-item { text-align: left; } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; gap: 1.5rem; } .contact-form-container { padding: 1.5rem; } }

/* ============================================
   METHOD PAGE
   ============================================ */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.flow-item { padding: 3.5rem 2.5rem 2.5rem; background: white; border-radius: 1.5rem; box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05); position: relative; border-top: 5px solid var(--color-primary-light); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.flow-num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 900; color: var(--color-primary-light); line-height: 1; opacity: 0.15; pointer-events: none; z-index: 1; transform: perspective(1000px) rotateX(10deg) rotateY(-20deg); text-shadow: 1px 1px 0px rgba(30, 58, 138, 0.5), 2px 2px 0px rgba(30, 58, 138, 0.4), 3px 3px 0px rgba(30, 58, 138, 0.3), 4px 4px 0px rgba(30, 58, 138, 0.2), 5px 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.flow-item:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -15px rgba(30, 58, 138, 0.12); }
.flow-item:hover .flow-num { opacity: 0.4; transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(20px) scale(1.1); color: var(--color-primary); }
.flow-item h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--color-primary); font-weight: 700; }
.flow-item p { font-size: 1rem; color: var(--color-text-muted); line-height: 1.6; }
.flow-item.highlight { border-color: var(--color-accent); background: rgba(14, 165, 233, 0.05); }
.flow-item.final { border-color: var(--color-bg-dark); }
.visual-break { padding: 4rem 0; }
.premium-image-wrapper { position: relative; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-lg); height: 500px; }
.full-width-image { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.premium-image-wrapper:hover .full-width-image { transform: scale(1.05); }
.image-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 6rem 2rem 2rem; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); color: white; }
.image-caption h3 { color: #ffffff !important; margin-bottom: 0.5rem; font-size: 1.6rem; font-weight: 800; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }
.image-caption p { color: #ffffff !important; opacity: 0.95; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.rules .premium-card { padding: 3rem 3rem 3rem 4rem !important; background: linear-gradient(135deg, #ffffff 0%, #fcfdfe 100%); border: 1px solid rgba(0, 0, 0, 0.05); overflow: hidden; }
.rules .premium-card::before { display: none !important; }
.rules .premium-card::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 8px; background: var(--gradient-primary); opacity: 1 !important; transition: width 0.3s ease; pointer-events: none; }
.rules .premium-card:hover::after { width: 12px; }
.rules h3 { font-size: 1.6rem; color: var(--color-primary); font-weight: 800; margin-bottom: 1.25rem; }
.rules p { font-size: 1.05rem; line-height: 1.8; color: var(--color-text-muted); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .premium-image-wrapper { height: 300px; } .flow-grid { grid-template-columns: 1fr; } }

/* ============================================
   WORKS PAGE
   ============================================ */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
