@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Noto+Sans+JP:wght@400;500;700;800;900&display=swap');

/* Cocoonデフォルト要素の非表示・全幅リセット */
.home .entry-title,
.home .date-tags,
.home .sns-share,
.home .sns-follow,
.home #footer {
  display: none !important;
}
.home #content,
.home .content-in,
.home #main,
.home .article,
.home .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Cocoonのデフォルト見出し装飾を無効化 */
.ng-lp-wrap h2,
.ng-lp-wrap h3 {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ベース設定（横揺れ防止） */
.ng-lp-wrap {
  font-family: 'Noto Sans JP', sans-serif;
  color: #222222;
  overflow-x: hidden;
  line-height: 1.8;
}
.ng-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.ng-bg-white { background-color: #ffffff; }
.ng-bg-gray { background-color: #f0f2f5; }

/* 富士山背景セクション：下揃え＋上部のみ白フェード＋高さを大きく確保 */
.ng-bg-fuji {
  background-color: #ffffff;
  background-image:
    linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0.92) 20%, rgba(255,255,255,0.45) 45%, rgba(255,255,255,0) 68%),
    url('https://northgate-haken.com/wp-content/uploads/2026/11/img_fujisan.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* ファーストビュー */
.ng-fv {
  background-color: #f0f2f5;
  padding: 80px 0 100px;
}
.ng-fv-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ng-fv-text {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.ng-fv-sub {
  font-size: clamp(1.0rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #00519a;
  line-height: 1.6;
  margin-bottom: 20px;
}
.ng-fv-title {
  font-size: clamp(2.2rem, 4.4vw, 4.3rem);
  font-weight: 900;
  color: #00519a;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
}
.ng-fv-img {
  width: 44%;
  flex-shrink: 0;
}
.ng-flat-img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none !important;
  border: none !important;
  display: block;
}

/* セクション共通＆見出し（縮小＆スライドインエフェクト） */
.ng-sec {
  padding: 110px 0;
}
.ng-sec.ng-bg-fuji {
  padding: 100px 0 clamp(300px, 36vw, 480px);
}
.ng-sec-head {
  margin-bottom: 50px;
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}
.ng-sec-head.is-right { text-align: right; }
.ng-sec-head.is-left { text-align: left; }

.ng-anim-right {
  transform: translateX(80px) scale(1.3);
  transform-origin: right center;
}
.ng-anim-left {
  transform: translateX(-80px) scale(1.3);
  transform-origin: left center;
}
.ng-anim-title {
  transform: translateY(30px) scale(1.15);
  transform-origin: left center;
}

.ng-sec-head.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.ng-en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  color: #00519a;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.ng-ja {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00519a;
  margin-top: 8px !important;
}

/* 事業紹介 */
.ng-business-body {
  max-width: 660px;
}
.ng-lead {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 24px;
}
.ng-desc {
  font-size: 1rem;
  color: #222222;
  font-weight: 500;
  margin-bottom: 0;
}

/* 3つの強み */
.ng-strength-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.ng-strength-logo {
  width: 28%;
  text-align: center;
  flex-shrink: 0;
}
.ng-strength-logo img {
  max-width: 210px;
  width: 100%;
  height: auto;
}
.ng-strength-list {
  width: 68%;
}
.ng-strength-item {
  margin-bottom: 36px;
}
.ng-strength-item:last-child {
  margin-bottom: 0;
}
.ng-strength-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 8px !important;
}
.ng-strength-title .ng-num {
  color: #00519a;
  font-family: 'Montserrat', sans-serif;
  margin-right: 8px;
}
.ng-strength-item p {
  font-size: 0.95rem;
  color: #333333;
  margin: 0;
}

/* 会社概要 */
.ng-company-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.ng-company-dl {
  display: flex;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.ng-company-dl dt {
  width: 90px;
  font-weight: 500;
  padding: 4px 0;
}
.ng-company-dl dd {
  width: calc(100% - 90px);
  margin: 0;
  padding: 4px 0;
}
.ng-license {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 24px;
}
.ng-pdf-btn {
  display: inline-block;
  background-color: #4d4d4d;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  text-decoration: none;
  transition: background-color 0.25s;
}
.ng-pdf-btn:hover {
  background-color: #00519a;
}
.ng-pdf-btn span {
  margin-left: 10px;
  font-size: 0.75rem;
}

/* お問い合わせ（下線スタイル） */
.ng-contact-body {
  max-width: 720px;
  margin: 0 auto;
}
.ng-contact-body input[type="text"],
.ng-contact-body input[type="email"],
.ng-contact-body textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cccccc;
  border-radius: 0;
  background: transparent;
  font-size: 0.95rem;
}
.ng-contact-body input:focus,
.ng-contact-body textarea:focus {
  outline: none;
  border-bottom-color: #00519a;
}
.ng-contact-body input[type="submit"] {
  display: block;
  margin: 32px auto 0;
  background-color: #00519a;
  color: #ffffff;
  border: none;
  padding: 14px 48px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}

/* フッター */
.ng-footer {
  text-align: center;
  padding-top: 60px;
  background-color: #ffffff;
}
.ng-footer-logo img {
  max-width: 130px;
  height: auto;
  margin-bottom: 16px;
}
.ng-copyright {
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 24px;
}
.ng-footer-bar {
  height: 24px;
  background-color: #00519a;
  width: 100%;
}

/* レスポンシブ補助クラス */
.sp-only { display: none; }
.pc-only { display: inline; }

/* スマホ対応（768px以下） */
@media screen and (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .ng-fv { padding: 40px 0 56px; }
  .ng-fv-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ng-fv-title {
    font-size: clamp(2.1rem, 8.8vw, 2.8rem);
    margin-bottom: 12px;
  }
  .ng-fv-img {
    width: 100%;
  }

  .ng-sec { padding: 64px 0; }
  .ng-sec.ng-bg-fuji {
    padding: 64px 0 clamp(240px, 65vw, 340px);
    background-image:
      linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0.95) 28%, rgba(255,255,255,0.7) 52%, rgba(255,255,255,0) 75%),
      url('https://northgate-haken.com/wp-content/uploads/2026/11/img_fujisan.webp');
  }

  .ng-lead {
    font-size: 1.05rem;
  }
  .ng-desc {
    font-size: 0.9rem;
  }

  .ng-sec-head { margin-bottom: 28px; }
  .ng-anim-right { transform: translateX(30px) scale(1.15); }
  .ng-anim-left { transform: translateX(-30px) scale(1.15); }

  .ng-strength-grid {
    flex-direction: column;
    gap: 36px;
  }
  .ng-strength-logo { width: 100%; }
  .ng-strength-logo img { max-width: 150px; }
  .ng-strength-list { width: 100%; }
}

/* スムーススクロール */
html { scroll-behavior: smooth; }

/* コンタクトフォームのラベルサイズ・余白調整 */
.ng-contact-body p {
  margin-bottom: 24px;
}
.ng-contact-body label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444444;
  line-height: 1.4;
}
.ng-contact-body input[type="text"],
.ng-contact-body input[type="email"],
.ng-contact-body textarea {
  padding: 6px 4px 10px;
  margin-top: 2px;
}


/* ============================================
   下層固定ページ（情報提供ページ等）専用スタイル
   ============================================ */

/* 固定ページのCocoonデフォルト要素・自動目次を非表示＆全幅リセット */
.page .entry-title,
.page .date-tags,
.page .sns-share,
.page .sns-follow,
.page .toc,
.page #footer,
.page .breadcrumb {
  display: none !important;
}
.page #content,
.page .content-in,
.page #main,
.page .article,
.page .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* ページヘッダー */
.ng-sub-hero {
  background-color: #f0f2f5;
  padding: 64px 0 56px;
  text-align: center;
}
.ng-sub-en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #00519a;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.ng-sub-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #111111;
  margin: 0 0 12px !important;
  line-height: 1.4;
}
.ng-sub-lead {
  font-size: 0.9rem;
  color: #555555;
  margin: 0;
}

/* 本文エリア */
.ng-sub-body {
  background-color: #ffffff;
  padding: 72px 0 40px;
}
.ng-sub-container {
  max-width: 860px;
}
.ng-info-block {
  margin-bottom: 52px;
}
.ng-info-heading {
  font-size: 1.15rem !important;
  font-weight: 700;
  color: #00519a;
  border-bottom: 2px solid #00519a !important;
  padding-bottom: 8px !important;
  margin: 0 0 20px !important;
}

/* 情報提供テーブル */
.ng-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px !important;
  font-size: 0.95rem;
}
.ng-info-table th,
.ng-info-table td {
  border: 1px solid #dce2e8;
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.ng-info-table th {
  width: 38%;
  background-color: #f4f7fa;
  color: #222222;
  font-weight: 700;
}
.ng-info-table td {
  background-color: #ffffff;
  color: #222222;
}

/* 本文・注記 */
.ng-info-text p {
  font-size: 0.95rem;
  margin: 0 0 14px;
  color: #333333;
}
.ng-info-note {
  font-size: 0.82rem !important;
  color: #666666 !important;
  line-height: 1.65;
  margin-top: 8px !important;
}

/* トップページへ戻るボタン */
.ng-back-wrap {
  text-align: center;
  margin-top: 56px;
}
.ng-back-btn {
  display: inline-block;
  border: 1px solid #00519a;
  color: #00519a !important;
  background-color: #ffffff;
  padding: 12px 36px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
}
.ng-back-btn:hover {
  background-color: #00519a;
  color: #ffffff !important;
}

/* スマホ対応（768px以下） */
@media screen and (max-width: 768px) {
  .ng-sub-hero { padding: 48px 0 40px; }
  .ng-sub-body { padding: 48px 0 24px; }
  .ng-info-table th,
  .ng-info-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }
  .ng-info-table th {
    border-bottom: none;
    padding-bottom: 6px;
    font-size: 0.85rem;
  }
  .ng-info-table td {
    padding-top: 8px;
    border-top: none;
  }
}


/* ============================================
   モバイルヘッダー調整（1023px以下）
   ============================================ */
@media screen and (max-width: 1023px) {
  /* 下に重複して出る通常ヘッダーを非表示 */
  #header-container {
    display: none !important;
  }

  /* 検索ボタンを非表示 */
  .mobile-header-menu-buttons .search-menu-button {
    display: none !important;
  }

  /* モバイルヘッダーを「左：ロゴ / 右：メニュー」に配置 */
  .mobile-header-menu-buttons {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 6px 16px !important;
    height: 60px;
  }

  /* ロゴを左寄せ */
  .mobile-header-menu-buttons .logo-menu-button {
    order: 1;
    width: auto !important;
    flex: 0 1 auto !important;
    text-align: left !important;
  }
  .mobile-header-menu-buttons .logo-menu-button img {
    max-height: 40px !important;
    width: auto !important;
  }

  /* ハンバーガーボタンを右寄せ＆紺色に */
  .mobile-header-menu-buttons .navi-menu-button {
    order: 2;
    width: auto !important;
    flex: 0 0 auto !important;
    color: #00519a;
  }
  .mobile-header-menu-buttons .menu-icon {
    color: #00519a;
    font-size: 24px;
  }
  .mobile-header-menu-buttons .menu-caption {
    color: #00519a;
    font-size: 10px;
    font-weight: 700;
  }

  /* メニュー展開時のリンク文字色 */
  .navi-menu-content a {
    color: #00519a !important;
    font-weight: 700;
  }
}