/*
Theme Name: FREEFLY
Theme URI: https://freefly.co.jp
Author: FREEFLY Inc.
Author URI: https://freefly.co.jp
Description: 観光業界特化ITコンサルティング会社フリーフライのコーポレートサイトテーマ
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: freefly
Tags: corporate, tourism, consulting, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --primary-blue: #1fa2dc;
  --deep-blue: #00578d;
  --green: #58b773;
  --pink: #d94d72;
  --yellow: #f4cf1f;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-border: #e2e8f0;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --gradient-1: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
  --gradient-2: linear-gradient(135deg, var(--green), var(--primary-blue));
  --gradient-3: linear-gradient(135deg, var(--pink), var(--yellow));
  --gradient-4: linear-gradient(135deg, var(--yellow), var(--green));
  --gradient-5: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
  --gradient-6: linear-gradient(135deg, var(--pink), var(--deep-blue));
  --gradient-accent: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--primary-blue));
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

.en {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.site-header.has-bg {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.site-logo img,
.site-logo svg {
  height: 100%;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

.site-header:not(.scrolled):not(.has-bg) .nav-menu a {
  color: rgba(255,255,255,0.85);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

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

.site-header:not(.scrolled):not(.has-bg) .nav-menu a:hover {
  color: #fff;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-1);
  color: white !important;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 162, 220, 0.35);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.mobile-menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.site-header:not(.scrolled):not(.has-bg) .mobile-menu-btn span {
  background: #fff;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*
.hero-video-container iframe.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; 
  min-height: 100vh;
  min-width: 177.77vh; 
  transform: translate(-50%, -50%);
  pointer-events: none;
}*/

.hero-video-container iframe.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 87, 141, 0.7) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gradient-accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--primary-blue), var(--green), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.stat-value span {
  color: var(--primary-blue);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background: var(--gradient-1);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 162, 220, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(31, 162, 220, 0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline {
  background: white;
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--light-border);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--light-bg);
  border-color: var(--text-muted);
}

.btn-white {
  background: #fff;
  color: var(--deep-blue);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 8rem 2rem;
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

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

.section-header.center .section-description {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--primary-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 1rem;
}

/* Page Hero */
.page-hero {
  padding: 10rem 2rem 5rem;
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(31, 162, 220, 0.08) 0%, transparent 60%);
}

.page-hero.has-gradient {
  color: #fff;
}

.page-hero.has-gradient::before {
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.page-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
 /* max-width: 600px;*/
}

.page-hero.has-gradient .page-description {
  color: rgba(255,255,255,0.9);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary-blue);
}

.page-hero.has-gradient .breadcrumb,
.page-hero.has-gradient .breadcrumb a {
  color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(31, 162, 220, 0.15), rgba(0, 87, 141, 0.1));
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-title-en {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Works Section
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: block;
}

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

.work-image {
  height: 240px;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.05;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-placeholder {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
}

.work-content {
  padding: 2rem;
}

.work-category {
  font-size: 0.75rem;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.work-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: var(--gradient-1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section .section-title {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section .section-description {
  color: rgba(255,255,255,0.85);
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--text-primary);
  padding: 4rem 2rem 2rem;
  color: white;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand .site-logo {
  height: 32px;
  margin-bottom: 1.5rem;
}

.footer-brand .site-logo svg {
  height: 32px;
  width: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: white;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

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

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

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* WPForms スタイル調整 */
.contact-form-wrapper .wpforms-container {
  max-width: 100%;
}

.contact-form-wrapper .wpforms-form .wpforms-field {
  margin-bottom: 1.5rem;
}

.contact-form-wrapper .wpforms-form .wpforms-field-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
/*
.contact-form-wrapper .wpforms-form .wpforms-field-required {
  color: var(--pink);
}*/

.contact-form-wrapper .wpforms-form input[type="text"],
.contact-form-wrapper .wpforms-form input[type="email"],
.contact-form-wrapper .wpforms-form select,
.contact-form-wrapper .wpforms-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--light-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--white);
}

.contact-form-wrapper .wpforms-form input:focus,
.contact-form-wrapper .wpforms-form select:focus,
.contact-form-wrapper .wpforms-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(31, 162, 220, 0.1);
}

.contact-form-wrapper .wpforms-form .wpforms-submit-container {
  margin-top: 2rem;
}

.contact-form-wrapper .wpforms-form button[type="submit"] {
  background: var(--gradient-1);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 162, 220, 0.3);
    display: flex;
    align-items: center;
    margin: auto;
}

.contact-form-wrapper .wpforms-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(31, 162, 220, 0.4);
}

.contact-form-wrapper .wpforms-form select {
  height: auto;
  min-height: 52px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form-wrapper .wpforms-form select option {
  padding: 0.5rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .hero-video-container iframe.hero-video {
    top: 0;
    transform: translateX(-50%);
  }
	.hero-description {
    font-size: 3.8vw;
}
	.hero-buttons {
    gap: 0.5rem;
}
.btn-primary,.btn-secondary {
    padding: 1rem;
}
	.hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
	.stat-value span.lil{
		font-size: 1.4rem;
	}
}