/*
Theme Name: Zero Gauge Corporate
Theme URI: https://example.com
Description: Corporate website theme for Zero Gauge
Version: 1.0
Author: Your Name
*/

:root {
  --primary-green: #00894d;
  --dark-green: #006837;
  --text-dark: #333;
  --text-gray: #666;
  --bg-light: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  background: #FCFCFC;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.font-weight-bold {
  font-weight: 700;
}

/* ========================================
   Common Components
======================================== */
.section-title-en {
  font-size: 20px;
  color: var(--text-gray);
  font-weight: 400;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 50px;
}

/* ========================================
   Header
======================================== */
.site-header {
  background: #FCFCFC;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-logo a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--text-dark);
  text-decoration: none;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav .mobile-only {
  display: none;
}

.main-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}

/* モバイルナビゲーション用のお問い合わせボタンをPCでは非表示にする */
@media (min-width: 1001px) {
  .main-nav a.mobile-nav-contact-btn {
    display: none;
  }
}

.header-contact-btn {
  display: inline-block;
  width: 140px;
  height: 50px;
  background: #11312B;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  line-height: 50px;
  border-radius: 25px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.header-contact-btn:hover {
  opacity: 0.8;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
  position: relative;
  height: auto;
  overflow: visible;
  max-width: 100%;
  min-height: auto;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:  100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide.add-animation {
  animation: slideZoom 10s linear forwards;
}

@keyframes slideZoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.2);
  }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  z-index: 10;
  top: 130px;
  left: 185px;
  width: auto;
  max-width: calc(100% - 370px);
  color: #fff;
  padding: 0;
  text-align: left;
}

.hero-content h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  letter-spacing: 8%;
  line-height: 68px;
  margin-bottom: 15px;
  text-shadow: 
    0 0 30px rgba(0,0,0,0.25),
    0 0 50px rgba(0,0,0,0.2),
    2px 2px 15px rgba(0,0,0,0.2),
    -2px -2px 15px rgba(0,0,0,0.2),
    2px -2px 15px rgba(0,0,0,0.2),
    -2px 2px 15px rgba(0,0,0,0.2);
}

.hero-content h1 .h1-line1 {
  display: block;
  font-size: 52px;
}

.hero-content h1 .h1-line2 {
  display: block;
  font-size: 41px;
}

.hero-content p {
  font-size: 20px;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ========================================
   Hero Title Section
======================================== */
.hero-title-section {
  padding: 0;
  display: flex;
  justify-content: flex-start;
  position: relative;
  top: auto;
  left: 0;
  z-index: 10;
  margin-top: -25%;
}

.hero-title-content {
  width: 950px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 240px;
  background: #ffffff;
}

.hero-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #11312B;
  text-align: left;
  margin: 0;
  line-height: 1.6;
}

.hero-subtitle .subtitle-line1::after {
  content: "\00a0";
}

/* ========================================
   Introduction Section
======================================== */
.intro-section {
  width: 1320px;
  min-height: auto;
  padding: 90px 60px 50px 240px;
  margin: 0;
  margin-top: -29px;
  background: linear-gradient(135deg, #0eb054 0%, #13653b 100%);
  border-radius: 0 40px 40px 0;
  color: #fff;
  position: relative;
  top: auto;
  left: 0;
  z-index: 1;
}

.intro-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.intro-section p {
  font-size:  15px;
  line-height: 1.9;
  margin-bottom: 25px;
  opacity: 0.95;
}

/* ========================================
   Front Page Sections (Defined in assets/css/front-page.css)
======================================== */

/* ========================================
   Footer
======================================== */
.site-footer {
  background: #11312B;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 300px 200px 300px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-column h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Prevent common h3 decoration from appearing in footer */
.site-footer h3::before {
  content: none;
}

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

.footer-column ul li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.8);
}

.footer-column a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-column a:hover {
  opacity: 0.7;
}

.footer-links {
  width: 200px;
}

.footer-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ========================================
   Responsive Design
======================================== */

/* ヘッダー専用: 1000px以下でスマホ仕様に切り替え */
@media (max-width: 1000px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #00894d;
    z-index: 9999;
    padding: 60px 40px;
    transition: right 0.4s ease;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav .mobile-only {
    display: block;
  }

  .main-nav a {
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 10px 0;
  }

  .main-nav a.mobile-nav-contact-btn {
    display: block;
    width: 240px;
    height: 60px;
    line-height: 60px;
    background: #11312B;
    color: #ffffff;
    border: none;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 40px auto 0; /* 上に余白、左右中央配置 */
    font-size: 16px;
    font-weight: 500;
    padding: 0; /* 上位のスタイルを上書き */
  }
  .header-contact-btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 10000;
    color: #333;
  }

  .mobile-menu-toggle.active {
    color: #fff;
  }
}

/* タブレット縦向き: 481px～768px */
@media (max-width: 768px) and (min-width: 481px) {
  .header-inner {
    padding: 0 20px;
  }

  .site-logo a {
    font-size: 16px;
  }

  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-content {
    top: 15%;
    left: 30px;
    max-width: calc(100% - 60px);
  }

  .hero-content h1 {
    line-height: 46px;
  }

  .hero-content h1 .h1-line1 {
    font-size: 28px;
  }

  .hero-content h1 .h1-line2 {
    font-size: 22px;
  }

  .hero-title-section {
    position: relative;
    top: auto;
    margin-top: -20%;
  }

  .hero-title-content {
    width: 450px;
    height: auto;
    padding: 18px 30px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .intro-section {
    position: relative;
    top: auto;
    width: 98%;
    min-height: auto;
    padding: 65px 30px 35px;
    border-radius: 0 25px 25px 0;
    margin-top: -29px;
  }

  .intro-section h2 {
    font-size: 20px;
    margin-bottom: 22px;
  }

  .intro-section p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* タブレット横向き・ノートPC: 769px～1439px */
@media (max-width: 1439px) and (min-width: 769px) {
  .header-inner {
    padding: 0 20px;
  }

  .site-logo a {
    font-size: 18px;
  }

  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-content {
    top: 14%;
    left: 80px;
    max-width: calc(100% - 160px);
  }

  .hero-content h1 .h1-line1 {
    font-size: 42px;
  }

  .hero-content h1 .h1-line2 {
    font-size: 34px;
  }

  .hero-title-section {
    top: auto;
  }

  .hero-title-content {
    width: 650px;
    padding-left: 80px;
    padding-right: 40px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .intro-section {
    width: 95%;
    top: auto;
    padding: 70px 40px 40px 80px;
    border-radius: 0 30px 30px 0;
  }

  .intro-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .intro-section p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ: 480px以下 */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 20px;
  }

  .site-logo a {
    font-size: 16px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #00894d;
    z-index: 9999;
    padding: 60px 40px;
    transition: right 0.4s ease;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav .mobile-only {
    display: block;
  }

  .main-nav a {
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 10px 0;
  }

  .main-nav a.mobile-nav-contact-btn {
    display: block;
    width: 240px;
    height: 60px;
    line-height: 60px;
    background: #11312B;
    color: #ffffff;
    border: none;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 40px auto 0; /* 上に余白、左右中央配置 */
    font-size: 16px;
    font-weight: 500;
  }

  .header-contact-btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 10000;
    color: #333;
  }

  .mobile-menu-toggle.active {
    color: #fff;
  }

  .hero-section {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .hero-content {
    position: absolute;
    top: 26px;
    left: 24px;
    z-index: 10;
    text-align: left;
    max-width: calc(100% - 50px);
    width: auto;
  }

  .hero-content h1 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 40px;
  }

  .hero-content h1 .h1-line1 {
    font-size: 23px;
  }

  .hero-content h1 .h1-line2 {
    font-size: 19px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-title-section {
    top: auto;
    margin-top: -20%;
  }

  .hero-title-content {
    width: 270px;
    height: auto;
    padding: 15px 30px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-subtitle .subtitle-line1,
  .hero-subtitle .subtitle-line2 {
    display: block;
  }

  .intro-section {
    top: auto;
    width: 100%;
    min-height: auto;
    padding: 65px 20px 30px 20px;
    border-radius: 0 20px 20px 0;
  }
  
  .intro-section h2 {
    font-size: 20px;
  }

  .intro-section p {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

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

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

/* ========================================
   Contact Section (Common)
======================================== */
.contact-section {
  padding: 0 20px 120px 20px;
}

.contact-section .container {
  max-width: 1160px;
  background: #ffffff;
  border-radius: 54px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 80px 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-section .section-title {
  text-align: left;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.contact-section .section-title-en {
  display: block;
  margin-left: 0;
  margin-top: 0;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 0;
}

.contact-btn {
  width: 240px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #11312B;
  color: #11312B;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-btn.primary {
  background: #11312B;
  color: #fff;
  border-color: #11312B;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Contact: stack vertically at <=1024px */
@media (max-width: 1024px) {
  .contact-section .container { flex-direction: column; align-items: center; gap: 20px; }
  .contact-buttons { flex-direction: column; gap: 16px; align-items: center; justify-content: center; }
}

/* Contact: 769-1024px buttons horizontal under heading */
@media (max-width: 1024px) and (min-width: 769px) {
  .contact-buttons { flex-direction: row; gap: 20px; justify-content: center; align-items: center; }
}

/* Contact: 481-1024px heading left aligned (original position) */
@media (max-width: 1024px) and (min-width: 481px) {
  .contact-section .container { align-items: stretch; }
  .contact-section .section-title { text-align: left; }
}

/* Mobile: adjust container padding for contact */
@media (max-width: 480px) {
  .contact-section .container {
    padding: 80px 40px;
  }
}

.slick-slide {
    /* This rule was causing layout issues with !important */
    display: block;
    float: none;
    margin: 0 12px; /* Slide margin */
}