/* ============================================
   myCelf Corporate Site - Main Stylesheet
   Lightning Theme / Additional CSS
   ============================================ */

/* ------------------------------------------
   :root カラー変数定義
------------------------------------------ */
:root {
  --color-navy:       #0D2F54;
  --color-navy-light: #1a4a7a;
  --color-navy-dark:  #081e38;
  --color-red:        #E30500;
  --color-red-dark:   #b80400;
  --color-blue:       #40BDFF;
  --color-yellow:     #EDF724;
  --color-white:      #FFFFFF;
  --color-gray-100:   #F8F9FA;
  --color-gray-200:   #F0F2F5;
  --color-gray-300:   #E2E6EA;
  --color-gray-500:   #9AA3AE;
  --color-gray-700:   #4A5568;
  --color-text:       #1A2533;

  --font-base:     'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-en:       'Inter', 'Helvetica Neue', Arial, sans-serif;

  --transition:    0.25s ease;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  --shadow-sm:     0 1px 4px rgba(13,47,84,0.08);
  --shadow-md:     0 4px 20px rgba(13,47,84,0.12);
  --shadow-lg:     0 8px 40px rgba(13,47,84,0.16);
}

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

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

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

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

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

a:hover {
  color: var(--color-navy-light);
}

/* ------------------------------------------
   見出しスタイル
------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--color-gray-300); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 1rem; margin-top: 2.5rem; }

.section-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ------------------------------------------
   Layout
------------------------------------------ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--color-gray-100);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3,
.section--navy .section-eyebrow {
  color: var(--color-white);
}

.section--navy h2 {
  border-bottom-color: rgba(255,255,255,0.2);
}

/* ------------------------------------------
   Header / Navigation
------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-300);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-navy);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a:hover {
  color: var(--color-navy-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

/* ------------------------------------------
   ボタン（CTA）
------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Primary CTA — 赤 */
.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227,5,0,0.3);
}

/* Secondary — ネイビーアウトライン */
.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* White outline (on dark bg) */
.btn--white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ------------------------------------------
   Hero Section
------------------------------------------ */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, var(--color-navy-light) 100%);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 1rem;
  border-radius: 2px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: normal;
  display: block;
  opacity: 0.75;
  font-size: 0.65em;
  font-weight: 400;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 2;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ------------------------------------------
   Philosophy Section
------------------------------------------ */
.philosophy-block {
  border-left: 3px solid var(--color-navy);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--color-gray-100);
}

.philosophy-block p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-navy);
  font-weight: 500;
}

/* ------------------------------------------
   Card Grid
------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  line-height: 1.8;
}

/* ------------------------------------------
   Process Steps
------------------------------------------ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-gray-300);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--color-gray-700);
  line-height: 1.7;
}

/* ------------------------------------------
   Case Study
------------------------------------------ */
.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.case-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1.5rem 2rem;
}

.case-header h3 {
  color: var(--color-white);
  margin: 0;
  font-size: 1.1rem;
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.case-body {
  padding: 2rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-item-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.case-item-arrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.case-item-arrow .before {
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.case-item-arrow .arrow {
  color: var(--color-navy);
  font-size: 1rem;
}

.case-item-arrow .after {
  color: var(--color-navy);
  font-weight: 600;
}

.case-essence {
  background: var(--color-gray-100);
  border-left: 3px solid var(--color-navy);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ------------------------------------------
   Price Table
------------------------------------------ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-300);
}

.price-table th {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.85rem;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:nth-child(even) td {
  background: var(--color-gray-100);
}

.price-highlight {
  font-weight: 700;
  color: var(--color-red);
}

/* ------------------------------------------
   Contact Form
------------------------------------------ */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--color-red);
  margin-left: 0.25rem;
  font-size: 0.8rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(13,47,84,0.1);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  margin-top: 0.375rem;
}

/* ------------------------------------------
   Banner CTA Section
------------------------------------------ */
.cta-banner {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  border-bottom: none;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ------------------------------------------
   Partnership Policy
------------------------------------------ */
.policy-block {
  max-width: 680px;
  margin: 3rem auto 0;
  padding: 2.5rem 3rem;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  text-align: center;
}

.policy-block h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.policy-block p {
  font-size: 0.925rem;
  line-height: 2;
  color: var(--color-gray-700);
}

/* ------------------------------------------
   Footer
------------------------------------------ */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-nav h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ------------------------------------------
   Divider
------------------------------------------ */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-navy);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.divider--left {
  margin-left: 0;
}

/* ------------------------------------------
   Page Hero (inner pages)
------------------------------------------ */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 80px 0 64px;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 540px;
}

/* ------------------------------------------
   Breadcrumb
------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  list-style: none;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: rgba(255,255,255,0.85);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
}

/* ------------------------------------------
   Stats
------------------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.stat-item {}

.stat-num {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.section--navy .stat-num {
  color: var(--color-white);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-gray-700);
}

.section--navy .stat-label {
  color: rgba(255,255,255,0.65);
}

/* ------------------------------------------
   Text helpers
------------------------------------------ */
.text-center { text-align: center; }
.text-navy   { color: var(--color-navy); }
.text-gray   { color: var(--color-gray-700); }
.text-sm     { font-size: 0.875rem; }
.text-lg     { font-size: 1.1rem; }

.lead {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-gray-700);
  max-width: 720px;
}

.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 2rem; }
.mt-lg  { margin-top: 3rem; }
.mb-sm  { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 2rem; }
.mb-lg  { margin-bottom: 3rem; }

/* ------------------------------------------
   Mobile Menu Overlay
------------------------------------------ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,30,56,0.95);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-overlay.is-open {
  display: flex;
}

.nav-overlay a {
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
}

.nav-overlay a:hover {
  opacity: 0.7;
}

.nav-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ------------------------------------------
   Responsive
------------------------------------------ */
@media (max-width: 900px) {
  .site-nav,
  .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .container,
  .container--narrow {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .process-steps::before {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .policy-block {
    padding: 2rem 1.5rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .price-table {
    font-size: 0.8rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.75rem 0.875rem;
  }
}

/* ------------------------------------------
   Animation (subtle fade-in)
------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ------------------------------------------
   Lightning Theme Override Hints
   (追加CSSとして貼り付ける際の上書き)
------------------------------------------ */
/* .site-header-container → .header-inner */
/* .vk-page-content → .container */
/* wp-block-heading (h2) に適用 */

.wp-block-heading.is-style-section-heading {
  border-left: none;
  border-bottom: 2px solid var(--color-gray-300);
  padding-bottom: 0.75rem;
}

.wp-block-button__link {
  border-radius: var(--radius-sm) !important;
  letter-spacing: 0.04em;
}

/* Lightning固有CTA block */
.vk-blocks-button--style--fill.is-style-btn-red {
  background-color: var(--color-red) !important;
  border-color: var(--color-red) !important;
}
