/* Custom CSS for Corporate Website */

/* ===============================
   BASE STYLES
   =============================== */
   :root {
    --primary-color: #3497CC;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  body {
    font-family: 'Noto Sans', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
  }
  
  /* ===============================
     NAVIGATION
     =============================== */
  .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
  }
  
  .navbar .container {
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
  }
  
  .navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
  }
  
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 100%;
  }
  
  .navbar-nav .nav-link:focus,
  .navbar-toggler:focus,
  .navbar-brand:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  
  .logo-img {
    height: 40px;
    width: auto;
  }
  
  .navbar.scrolled .logo-img {
    height: 35px;
    transition: height 0.3s;
  }
  
  /* ===============================
     HERO SECTION
     =============================== */
  .hero-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 79vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 81.3906px;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(45deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.6));*/
    z-index: 1;
  }
  
  .hero-section .container {
    position: relative;
    z-index: 2;
  }
  
  .hero-content {
    color: white;
  }
  
  .hero-title {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.4rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
  }
  
  .hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  
  .hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .floating-element {
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
  }
  
  .scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
    cursor: pointer;
    pointer-events: auto;
  }
  
  @keyframes scroll-bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(10px) rotate(45deg); }
  }

  .hero-image-full {
    position: relative;
  }
  
  .logo-overlay-text {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    z-index: 2;
    pointer-events: none;
  }

  .logo-en {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.09em;
    /* opacity: 0; */
    transform: translateY(20px);
    font-family: 'Montserrat';
  }
  .logo-ja {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 400;
    margin-top: 0.2em;
    /* opacity: 0; */
    transform: translateY(20px);
  }
  
  /* ===============================
     SECTIONS
     =============================== */
  section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-800);
    position: relative;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.5;
    border-radius: 2px;
  }
  
  .text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    margin-top: 1.6rem;
  }
  
  /* ===============================
     PHILOSOPHY SECTION
     =============================== */
  .philosophy-content {
    padding: 0 2rem;
  }
  
  .philosophy-main {
    margin-bottom: 3rem;
  }
  
  .philosophy-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
  }
  
  .philosophy-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
  }
  
  .values-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
  }
  
  .value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  
  .value-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
  }
  
  .value-item div {
    margin-left: 1rem;
  }
  
  .value-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
  }
  
  .value-item p {
    color: var(--gray-600);
    margin-bottom: 0;
  }
  
  .philosophy-stats {
    padding-left: 2rem;
  }
  
  .stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
  }
  
  .stat-card:hover {
    transform: translateY(-5px);
  }
  
  .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .stat-suffix {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 5px;
  }
  
  /* ===============================
     SERVICES SECTION
     =============================== */
  .service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
  }
  
  .service-card:hover .service-icon {
    transform: scale(1.1);
  }
  
  .service-icon i {
    font-size: 2rem;
    color: white;
  }
  
  .service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
  }
  
  .service-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .service-features {
    list-style: none;
    padding: 0;
    text-align: left;
  }
  
  .service-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
  }
  
  .service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .service-item-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
  }
  
  .service-item {
    padding: 2rem 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
  }
  
  .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  
  .service-item-title {
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 1rem 0;
  }
  
  .service-item-description {
    font-size: 0.95rem;
    color: var(--gray-600);
  }
  
  /* ===============================
     COMPANY SECTION
     =============================== */
  .company-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2rem;
    position: relative;
  }
  
  .company-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  .company-details {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .company-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .company-item:last-child {
    border-bottom: none;
  }
  
  .company-label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 120px;
    flex-shrink: 0;
  }
  
  .company-value {
    color: var(--gray-600);
    flex: 1;
  }
  
  .location-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
  }
  
  .location-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  
  .location-item:last-child {
    margin-bottom: 0;
  }
  
  .location-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
  }
  
  .location-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
  }
  
  .location-item p {
    color: var(--gray-600);
    margin-bottom: 0;
  }
  
  .certifications {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .certifications h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
  }
  
  .cert-list {
    display: grid;
    gap: 1rem;
  }
  
  .cert-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .cert-item:hover {
    background: var(--gray-100);
  }
  
  .cert-item span {
    color: var(--gray-700);
    font-weight: 500;
  }
  
  /* ===============================
     CONTACT SECTION
     =============================== */
  .contact-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .contact-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--white));
  }
  
  #contact .section-title::after {
    background: linear-gradient(45deg, var(--primary-color), var(--white));
  }

  .contact-info {
    padding-right: 2rem;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  
  .contact-item i {
    font-size: 1.5rem;
    color: var(--white);
    margin-right: 1rem;
    margin-top: 0.25rem;
    opacity: 0.5;
  }
  
  .contact-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .contact-item p {
    margin-bottom: 0.25rem;
    opacity: 0.9;
  }
  
  .contact-item small {
    opacity: 0.7;
    font-size: 0.875rem;
  }
  
  .contact-form-section {
    padding-left: 2rem;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 12px 15px;
  }
  
  .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .contact-form .form-control:focus,
  .contact-form .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    color: white;
  }
  
  .contact-form .form-select {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .contact-form .form-select option {
    background: var(--primary-color);
    color: white;
  }
  
  .contact-form .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .contact-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
  }
  
  .contact-form .form-check-label {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .contact-form .form-check-label a {
    color: var(--accent-color);
    text-decoration: underline;
  }
  
  .contact-form .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #777;
  }
  
  .contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: var(--primary-color);
  }

  #contact .section-description {
    color:rgba(255, 255, 255, 0.9);
  }
   
  /* ===============================
     FOOTER
     =============================== */
  .footer {
    background: var(--gray-900) !important;
  }
  
  .footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .footer-nav .list-inline-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    opacity: 0.5;
  }

  .footer-nav .list-inline-item a:hover {
    opacity: 1;
  }
  
  
  .footer-nav .list-inline-item a:hover {
    color: #0d6efd;
  }

  footer .mb-0 {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    opacity: 0.5;
  }
  
  /* ===============================
     RESPONSIVE DESIGN
     =============================== */
  @media (max-width: 991px) {
    .hero-title {
      font-size: 2.5rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .philosophy-content {
      padding-right: 0 0.5rem;
      margin-bottom: 3rem;
    }
    
    .philosophy-stats {
      padding-left: 0;
    }
    
    .contact-info {
      padding-right: 0;
      margin-bottom: 3rem;
    }
    
    .contact-form-section {
      padding-left: 0;
    }
    
    .main-visual-img {
      max-width: 90vw;
    }
  }
  
  @media (max-width: 767px) {
    .hero-title {
      font-size: 2rem;
    }
    
    .hero-description {
      font-size: 1rem;
    }
    
    .section-title {
      font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
      display: block;
      width: 100%;
      margin-bottom: 1rem;
    }
    
    .stat-card {
      margin-bottom: 1rem;
    }
    
    section {
      padding: 60px 0;
    }
    
    .company-item {
      flex-direction: column;
    }
    
    .company-label {
      margin-bottom: 0.5rem;
      font-weight: 700;
    }
    
    .footer-nav {
      justify-content: center;
      gap: 0.8rem;
      font-size: 0.95rem;
      margin-top: 0.5rem;
    }
  }
  
  /* ===============================
     ANIMATION CLASSES
     =============================== */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
  }
  
  .fade-in-right {
    opacity: 0;
    transform: translateX(30px);
  }
  
  .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .scale-in {
    opacity: 0;
    transform: scale(0.8);
  }
  
  /* ===============================
     UTILITIES
     =============================== */
  .text-primary {
    color: var(--primary-color) !important;
  }
  
  .bg-primary {
    background-color: var(--primary-color) !important;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
  }
  
  .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }

  .container {
    max-width: 85vw;
    margin-left: auto;
    margin-right: auto;
  }

  @media (max-width: 767px) {
    .container {
      max-width: none;
      width: auto;
      padding-left: 10px;
      padding-right: 10px;
    }
  }

  .main-visual-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 0 auto;
    display: block;
  }

  .hero-image-full {
    width: 100vw;
    min-height: 60vh;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .main-visual-img {
    width: 100vw;
    height: 60vh;
    min-height: 479px;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
  }

  .hero-content {
    z-index: 3;
  }

  .company-info {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .company-details {
    min-width: 90%;
    max-width: 90%;
    margin: 0 auto;
  }

  .footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .footer-nav .list-inline-item a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
  }

  .footer-nav .list-inline-item a:hover {
    color: #0d6efd;
  }

  @media (max-width: 991px) {
    .main-visual-img {
      height: 78vh;
      min-height: 200px;
      max-width: 100vw;
    }
  }

  @media (max-width: 767px) {
    .hero-section {
      min-height: 60vh;
      margin-top:84px;
    }
    .footer-nav {
      justify-content: center;
      gap: 0.8rem;
      font-size: 0.95rem;
      margin-top: 0.5rem;
    }
    .main-visual-img {
      height: 70vh;
      min-height: 120px;
    }
    .company-details {
      min-width: 0;
      max-width: 100vw;
    }
    #services .service-item {
      max-width: 83vw;
      margin: 0 auto;
    }
    #company .company-details {
      min-width: 90vw;
      margin: 0 auto;
    }
  }

.navbar-light .navbar-toggler {
    border-color: rgba(0,0,0,0);
}

.logo-text {
    margin-left: 1rem;
}

.navbar-toggler-icon,
.navbar-toggler .bi-x-lg {
  transition: transform 0.3s ease-in-out;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  transform: rotate(180deg);
}

/* ===============================
   SCROLL TO TOP BUTTON
   =============================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background-color: #1d4ed8;
  color: var(--white);
  transform: translateY(-2px);
}

body, html {
  overflow-x: hidden;
}

.main-visual-img,
.hero-image-full {
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 767px) {
  .main-visual-img,
  .hero-image-full {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }

  .logo-en {
    font-size: 1.5rem;
  }
  .logo-ja {
    font-size: 1rem;
  }
}
