/*
Theme Name: Mulayim
Theme URI: https://mulayim.jp/
Author: 合同会社ムライム
Author URI: https://mulayim.jp/
Description: 合同会社ムライム公式テーマ - AI × Web制作の中小企業向けダーク系テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mulayim
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg-deep: #06080f;
  --bg-card: #0d1117;
  --bg-card-hover: #131922;
  --accent: #00a0e9;
  --accent-light: #33b5ed;
  --accent-glow: rgba(0,160,233,0.12);
  --accent-glow-strong: rgba(0,160,233,0.25);
  --text-primary: #e8ecf1;
  --text-secondary: #8b95a5;
  --text-muted: #5a6577;
  --border: rgba(0,160,233,0.1);
  --border-hover: rgba(0,160,233,0.3);
  --gradient-hero: linear-gradient(135deg, #06080f 0%, #0a1628 50%, #06080f 100%);
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --section-padding: clamp(60px, 10vw, 120px) clamp(16px, 5vw, 80px);
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-jp);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,8,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 80px);
  transition: background var(--transition);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 2px;
}
.nav-logo img { height: 38px; width: auto; margin-right: -2px; }
.nav-logo-text {
  font-weight: 900; font-size: 1.4rem; color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a {
  color: var(--text-secondary); font-size: 0.85rem;
  font-weight: 500; transition: color var(--transition);
  position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent); color: var(--bg-deep);
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.82rem;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,160,233,0.3);
}

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); margin: 5px 0;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--gradient-hero);
  position: relative;
  padding: var(--section-padding);
  padding-top: 140px;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(0,160,233,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-label {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), #4dd0e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .sub {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--bg-deep);
  padding: 15px 36px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 30px rgba(0,160,233,0.25);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,160,233,0.35);
  background: var(--accent-light);
}
.hero-stats {
  display: flex; gap: 44px; margin-top: 64px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-family: var(--font-en); font-size: 1.8rem; font-weight: 800;
  color: var(--accent); line-height: 1.2;
}
.hero-stat .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   SECTIONS COMMON
   ============================================ */
section { padding: var(--section-padding); }
.section-label {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 12px;
  font-family: var(--font-en);
}
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 900; margin-bottom: 16px; line-height: 1.4;
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--text-secondary); font-size: 0.92rem;
  max-width: 560px; margin-bottom: 48px;
}
.bg-alt { background: var(--bg-card); }

/* ============================================
   PROBLEMS
   ============================================ */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 40px;
}
.problem-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.problem-icon { font-size: 2rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.problem-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   REASONS
   ============================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin-top: 40px;
}
.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.reason-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.reason-card:hover { border-color: var(--border-hover); }
.reason-num {
  font-family: var(--font-en); font-size: 3rem; font-weight: 800;
  color: rgba(0,160,233,0.08);
  position: absolute; top: 16px; right: 24px; line-height: 1;
}
.reason-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.reason-card p { font-size: 0.88rem; color: var(--text-secondary); }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 40px;
}
.service-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.service-price {
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 800;
  color: var(--accent); margin-bottom: 20px;
}
.service-price span { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.service-list li {
  font-size: 0.86rem; color: var(--text-secondary);
  padding: 7px 0 7px 22px; position: relative;
}
.service-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700; font-size: 0.8rem;
}

/* ============================================
   FLOW
   ============================================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 40px;
}
.flow-step {
  text-align: center; padding: 28px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.flow-step:hover { border-color: var(--border-hover); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--bg-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 800; font-size: 0.95rem;
  margin-bottom: 14px;
}
.flow-step h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   WORKS
   ============================================ */
.work-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin-top: 40px;
}
.work-image {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10;
}
.work-image img { width: 100%; height: 100%; object-fit: cover; }
.work-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  color: var(--text-muted); font-size: 0.85rem;
}
.work-tag {
  display: inline-block; background: var(--accent-glow);
  color: var(--accent); padding: 4px 14px;
  border-radius: 4px; font-size: 0.73rem;
  font-weight: 700; margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.work-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.work-info p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  margin-top: 40px; max-width: 700px;
  position: relative;
}
.testimonial-card::before {
  content: '"'; font-size: 4rem; color: rgba(0,160,233,0.15);
  position: absolute; top: 16px; left: 24px; line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 2; padding-left: 8px;
  font-style: italic;
}
.testimonial-author {
  margin-top: 20px; font-size: 0.85rem; color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { margin-top: 40px; max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0; cursor: pointer;
}
.faq-q {
  font-size: 0.95rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+'; font-size: 1.3rem; color: var(--accent);
  flex-shrink: 0; transition: transform var(--transition);
}
.faq-a {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-top: 14px; line-height: 1.8;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-item.open .faq-q::after { content: '−'; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; margin-top: 40px;
}
.about-photo {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-info h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 4px; }
.about-info .title { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.about-info p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.company-table { width: 100%; margin-top: 32px; }
.company-table th {
  text-align: left; font-weight: 700; font-size: 0.85rem;
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border);
  white-space: nowrap; vertical-align: top;
  color: var(--text-muted); width: 120px;
}
.company-table td {
  font-size: 0.88rem; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, #0a1628, #06080f);
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0,160,233,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 16px;
}
.final-cta .section-desc {
  margin-left: auto; margin-right: auto;
  text-align: center; margin-bottom: 36px;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--bg-deep);
  padding: 16px 44px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 1.05rem;
  transition: all var(--transition);
  box-shadow: 0 4px 30px rgba(0,160,233,0.25);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,160,233,0.35);
  background: var(--accent-light);
}
.cta-contact {
  margin-top: 28px; font-size: 0.85rem; color: var(--text-muted);
}
.cta-contact a {
  color: var(--text-secondary); transition: color var(--transition);
}
.cta-contact a:hover { color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 40px clamp(16px, 5vw, 80px);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem; color: var(--text-muted);
}
.site-footer p + p { margin-top: 6px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(6,8,15,0.95);
    backdrop-filter: blur(24px);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .hero { padding-top: 120px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .work-item { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .flow-steps { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* WordPress specific */
.wp-block-image img { border-radius: var(--radius); }
.entry-content p { margin-bottom: 1.5em; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
