@charset "UTF-8";

/* ==========================================================================
   デザインシステム & 共通スタイル
   ========================================================================== */
:root {
  --primary-color: #0266b3;
  /* 宮﨑重機のブランドブルー */
  --primary-light: #e8f3fc;
  /* 背景セクション用の薄い青 */
  --text-dark: #333333;
  /* 視認性のための濃いグレー */
  --text-muted: #666666;
  /* サブタイトル用のくすんだグレー */
  --white: #ffffff;
  --transition-smooth: all 0.3s ease;
}

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* セクションタイトルのスタイリング */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  margin-bottom: 3.5rem;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.section-title .en-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--primary-color);
  margin-top: 0.8rem;
  border-radius: 2px;
}

/* ==========================================================================
   ヘッダーのスタイリング
   ========================================================================== */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: last baseline;
  height: 100px;
  padding: 10px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-area img {
  height: 70px;
  width: auto;
}



.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 1.0rem;
  position: relative;
  padding: 0 0 10px 15px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー（モバイル専用） */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   ヒーロービジュアルのスタイリング
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: var(--white);
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

/* ==========================================================================
   吹き出しセクション（アピールポイント）
   ========================================================================== */
.bubbles-section {
  padding: 4rem 1rem;
}

.bubbles-container {
  max-width: 1000px;
  margin: 0 auto;
}

.bubble-item {
  text-align: center;
  transition: var(--transition-smooth);
}

.bubble-item img {
  width: 100%;
  max-width: 280px;
  height: auto;
  transition: var(--transition-smooth);
}

.bubble-item:hover img {
  transform: translateY(-5px) scale(1.02);
}

.message-box {
  text-align: center;
  margin-top: 3rem;
  padding: 0 1rem;
}

.message-blue-bold {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.message-description {
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--text-dark);
  text-align: justify;
  text-justify: inter-character;
}

/* ==========================================================================
   運営会社セクション
   ========================================================================== */
.company-section {
  background-color: var(--primary-light);
  padding: 5rem 1rem;
}

.company-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 2.5rem;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid #e2edf7;
}

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

.company-table th {
  width: 25%;
  font-weight: 700;
  color: var(--primary-color);
  padding: 1.25rem 1rem;
  vertical-align: top;
  font-size: 0.95rem;
}

.company-table td {
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
  vertical-align: top;
}

.company-table td ol {
  margin: 0;
  padding-left: 1.2rem;
}

/* ==========================================================================
   アクセスセクション
   ========================================================================== */
.access-section {
  padding: 5rem 1rem;
}

.map-container {
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
}

/* ==========================================================================
   お問い合わせフォームセクション
   ========================================================================== */
.contact-section {
  background-color: #f8fafc;
  padding: 5rem 1rem;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 3rem 2.5rem;
}

.contact-description {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-table {
  width: 100%;
  margin-bottom: 2rem;
}

.form-table tr {
  border-bottom: 1px solid #f1f5f9;
}

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

.form-table th {
  width: 30%;
  padding: 1.5rem 1rem 1.5rem 0;
  font-weight: 700;
  vertical-align: middle;
  font-size: 0.95rem;
}

.form-table td {
  padding: 1.25rem 0 1.25rem 1rem;
  vertical-align: middle;
}

.badge-required {
  background-color: #e05e5e;
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* フォームコントロール */
.form-input {
  width: 100% !important;
  max-width: none !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  font-size: 0.95rem !important;
  transition: var(--transition-smooth) !important;
}

.form-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(2, 102, 179, 0.15) !important;
  outline: none !important;
}

.form-textarea {
  min-height: 150px !important;
  width: 100% !important;
  resize: vertical !important;
}

.submit-container {
  text-align: center;
  margin-top: 2rem;
}

/* Mailform Proによる上書きを完全に防ぐための詳細度強化 */
button.submit-btn,
button.submit-btn.mfp_element_submit,
.submit-btn {
  background: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  background-image: none !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 1rem 3.5rem !important;
  border-radius: 4px !important;
  font-size: 1.05rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(2, 102, 179, 0.25) !important;
  text-shadow: none !important;
  transition: var(--transition-smooth) !important;
}

button.submit-btn:hover,
button.submit-btn.mfp_element_submit:hover,
.submit-btn:hover {
  background: #025391 !important;
  background-color: #025391 !important;
  background-image: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(2, 102, 179, 0.35) !important;
}

button.submit-btn:active,
button.submit-btn.mfp_element_submit:active,
.submit-btn:active {
  transform: translateY(0) !important;
}

/* ==========================================================================
   フッターのスタイリング
   ========================================================================== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 1rem;
}

.footer-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  /* ロゴ画像を完全に白にする */
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1.5rem;
}

/* ==========================================================================
   サンクスページのスタイリング
   ========================================================================== */
.thanks-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px - 80px);
  /* ヘッダー/フッターの高さに基づいて調整 */
  background: radial-gradient(circle, var(--primary-light) 0%, #ffffff 100%);
  padding: 4rem 1rem;
}

.thanks-card {
  max-width: 600px;
  width: 100%;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  padding: 4rem 2rem;
  text-align: center;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.thanks-icon i {
  font-size: 2.5rem;
}

.thanks-title-en {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.thanks-title-ja {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.thanks-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.back-home-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  padding: 0.8rem 2.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(2, 102, 179, 0.2);
  transition: var(--transition-smooth);
}

.back-home-btn:hover {
  background-color: #025391;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 102, 179, 0.3);
  color: var(--white);
}

/* スマートフォン表示時のみ改行するためのクラス */
.sp-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-br {
    display: inline;
  }
}

/* ==========================================================================
   レスポンシブ・メディアクエリ
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {

  /* ヘッダーのモバイル用調整 */
  .header-container {
    height: 70px;
  }

  .logo-area img {
    height: 38px;
  }

  .nav-links {
    display: none;
    /* ドロワーを使用しない場合のシンプルなレスポンシブメニューまたは垂直レイアウト用 */
  }

  /* モバイルヘッダーのトグル、またはシンプルなモバイルデザインの表示 */
  .mobile-menu-active .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    gap: 1.25rem;
    z-index: 999;
  }

  .mobile-menu-active .nav-links a {
    padding: 0.5rem 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* ヒーローセクション */
  .hero-section {
    height: 300px;
  }

  .hero-content {
    left: 5%;
    right: 5%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* メッセージセクション */
  .message-blue-bold {
    font-size: 1.25rem;
  }

  .message-description {
    font-size: 0.95rem;
  }

  /* 運営会社カード */
  .company-card {
    padding: 1.5rem;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
  }

  .company-table th {
    padding-bottom: 0.25rem;
  }

  .company-table tr {
    padding: 0.5rem 0;
  }

  /* 地図コンテナ */
  .map-container iframe {
    height: 300px;
  }

  /* フォーム */
  .contact-card {
    padding: 2rem 1.5rem;
  }

  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .form-table td {
    padding-left: 0;
  }

  .form-table tr {
    border-bottom: none;
    margin-bottom: 1.5rem;
    display: block;
  }
}

/* ==========================================================================
   スクロールアニメーション (控えめな浮き上がり演出)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* 順次表示（ディレイ）用 */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}