/*
Theme Name: Lightning Child geoAlpine
Theme URI: https://geoalpine.net
Template: lightning
Description: geoAlpine合同会社コーポレートサイト用Lightning子テーマ
Author: geoAlpine LLC
Version: 1.0.0
*/

/* ============================================================
   0. CSS Custom Properties
   ============================================================ */
:root {
  --ga-navy: #3461ac;
  --ga-navy-dark: #2a4e8a;
  --ga-navy-light: #4a7dd4;
  --ga-red: #e74c3c;
  --ga-red-dark: #c0392b;
  --ga-gray-50: #f8f9fa;
  --ga-gray-100: #f0f2f5;
  --ga-gray-200: #e2e6ea;
  --ga-gray-600: #6c757d;
  --ga-gray-800: #343a40;
  --ga-white: #ffffff;
  --ga-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ga-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --ga-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --ga-radius: 8px;
  --ga-radius-lg: 12px;
  --ga-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   1. Typography — Noto Sans JP
   ============================================================ */
body,
.entry-body,
.global-nav,
.site-header,
.site-footer,
#footer {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ga-gray-800);
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ============================================================
   2. Header / Navigation
   ============================================================ */
.site-header {
  background: var(--ga-white);
  box-shadow: var(--ga-shadow-sm);
  transition: box-shadow var(--ga-transition);
}

.site-header.header_scrolled {
  box-shadow: 0 2px 20px rgba(52, 97, 172, 0.15);
}

.site-header-logo img {
  max-height: 48px;
  transition: opacity var(--ga-transition);
}

.site-header-logo img:hover {
  opacity: 0.85;
}

/* Desktop nav */
.global-nav {
  background: transparent;
}

.global-nav .nav li a {
  color: var(--ga-gray-800);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  position: relative;
  transition: color var(--ga-transition);
}

.global-nav .nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ga-navy);
  transition: all var(--ga-transition);
  transform: translateX(-50%);
}

.global-nav .nav li a:hover,
.global-nav .nav li.current-menu-item > a {
  color: var(--ga-navy);
}

.global-nav .nav li a:hover::after,
.global-nav .nav li.current-menu-item > a::after {
  width: 70%;
}

/* Mobile nav */
.vk-mobile-nav {
  font-family: "Noto Sans JP", sans-serif;
}

/* ============================================================
   3. Section Base Styles
   ============================================================ */
.ga-section {
  padding: 80px 0;
}

.ga-section--gray {
  background: var(--ga-gray-50);
}

.ga-section--navy {
  background: linear-gradient(135deg, var(--ga-navy) 0%, var(--ga-navy-dark) 100%);
  color: var(--ga-white);
}

.ga-section__title {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  position: relative;
}

.ga-section__subtitle {
  text-align: center;
  color: var(--ga-gray-600);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.ga-section--navy .ga-section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Decorative line under section title */
.ga-section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ga-navy);
  margin: 16px auto 0;
  border-radius: 2px;
}

.ga-section--navy .ga-section__title::after {
  background: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   4. Service Cards
   ============================================================ */
.ga-card {
  background: var(--ga-white);
  border-radius: var(--ga-radius-lg);
  overflow: hidden;
  box-shadow: var(--ga-shadow-sm);
  transition: transform var(--ga-transition), box-shadow var(--ga-transition);
  height: 100%;
}

.ga-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ga-shadow-lg);
}

.ga-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.ga-card:hover .ga-card__image img {
  transform: scale(1.05);
}

.ga-card__body {
  padding: 24px;
  overflow: hidden;
}

.ga-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ga-navy);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ga-card__text {
  font-size: 0.85rem;
  color: var(--ga-gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ga-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ga-navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--ga-transition);
}

.ga-card__link:hover {
  gap: 10px;
  color: var(--ga-navy-dark);
}

.ga-card__link::after {
  content: "\2192";
}

/* ============================================================
   5. Numbers / Stats Section
   ============================================================ */
.ga-stat {
  text-align: center;
  padding: 24px 16px;
}

.ga-stat__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--ga-white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.ga-stat__number span {
  font-size: 0.5em;
  font-weight: 400;
}

.ga-stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* ============================================================
   6. Buttons — WPブロックボタンのリセット＋カスタム
   ============================================================ */
/* 外側divの装飾を全てリセット */
.wp-block-button.ga-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 内側aリンクにスタイルを集約 */
.ga-btn .wp-block-button__link {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--ga-transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ga-btn--primary .wp-block-button__link {
  background: var(--ga-white) !important;
  color: var(--ga-navy) !important;
}

.ga-btn--primary .wp-block-button__link:hover {
  background: var(--ga-gray-100) !important;
  transform: translateY(-2px);
  box-shadow: var(--ga-shadow-md);
}

.ga-btn--outline .wp-block-button__link {
  background: transparent !important;
  color: var(--ga-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

.ga-btn--outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--ga-white) !important;
  transform: translateY(-2px);
}

.ga-btn--navy .wp-block-button__link {
  background: var(--ga-navy) !important;
  color: var(--ga-white) !important;
}

.ga-btn--navy .wp-block-button__link:hover {
  background: var(--ga-navy-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--ga-shadow-md);
}

.ga-btn--red .wp-block-button__link {
  background: var(--ga-red) !important;
  color: var(--ga-white) !important;
}

.ga-btn--red .wp-block-button__link:hover {
  background: var(--ga-red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

/* ============================================================
   7. Hero Section (Covers)
   ============================================================ */
.ga-hero .wp-block-cover__inner-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ga-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.04em;
}

.ga-hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.8;
}

.ga-hero .wp-block-buttons {
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   8. About / Media-Text
   ============================================================ */
.ga-about .wp-block-media-text__media img {
  border-radius: var(--ga-radius-lg);
}

.ga-about .wp-block-media-text__content {
  padding: 32px 40px;
}

.ga-about h2 {
  color: var(--ga-navy);
  margin-bottom: 20px;
}

.ga-about p {
  line-height: 2;
}

/* ============================================================
   9. News / Latest Posts
   ============================================================ */
.ga-news .wp-block-latest-posts {
  padding: 0;
  list-style: none;
}

.ga-news .wp-block-latest-posts li {
  border-bottom: 1px solid var(--ga-gray-200);
  padding: 16px 0;
  transition: background var(--ga-transition);
}

.ga-news .wp-block-latest-posts li:last-child {
  border-bottom: none;
}

.ga-news .wp-block-latest-posts__post-date {
  color: var(--ga-gray-600);
  font-size: 0.85rem;
}

.ga-news .wp-block-latest-posts a {
  color: var(--ga-gray-800);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ga-transition);
}

.ga-news .wp-block-latest-posts a:hover {
  color: var(--ga-navy);
}

/* ============================================================
   10. CTA Section
   ============================================================ */
.ga-cta .wp-block-cover__inner-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ga-cta h2 {
  color: var(--ga-white);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 16px;
}

.ga-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

/* ============================================================
   11. Footer Refinement
   ============================================================ */
.site-footer {
  background: var(--ga-gray-800);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--ga-transition);
}

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

.site-footer-copyright {
  background: #2a2d32;
  font-size: 0.8rem;
  padding: 16px 0;
}

#footer {
  padding: 48px 0 24px;
}

#footer .widget-title {
  color: var(--ga-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   12. Utility / Misc
   ============================================================ */
/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  padding: 12px 0;
}

/* Page titles */
.entry-header {
  margin-bottom: 32px;
}

.entry-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ga-gray-800);
  border-bottom: 3px solid var(--ga-navy);
  padding-bottom: 12px;
}

/* Inner page content improvements */
.entry-body p {
  line-height: 2;
  margin-bottom: 1.5em;
}

.entry-body img {
  border-radius: var(--ga-radius);
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ga-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--ga-navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ga-navy);
}

/* ============================================================
   13. Responsive Adjustments
   ============================================================ */
@media (max-width: 991.98px) {
  .ga-section {
    padding: 60px 0;
  }

  .ga-about .wp-block-media-text__content {
    padding: 24px 20px;
  }
}

@media (max-width: 767.98px) {
  .ga-section {
    padding: 48px 0;
  }

  .ga-section__subtitle {
    margin-bottom: 32px;
  }

  .ga-hero h1 {
    font-size: 1.6rem;
  }

  .ga-hero .wp-block-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ga-card__body {
    padding: 20px;
  }

  .ga-stat__number {
    font-size: 2.5rem;
  }

  .entry-title {
    font-size: 1.4rem;
  }
}
