@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/


/************************************
** ヘッダー・ナビメニュー リデザイン
************************************/

/* ヘッダー背景をダークブルーグラデーションに */
.header-container, .header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header .logo-text, .header .site-name-text {
  color: #fff !important;
}
.header .logo-header img {
  filter: brightness(0) invert(1);
}
#navi .navi-in a {
  color: #e2e8f0 !important;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 10px;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 2px 1px;
  white-space: nowrap;
}
.navi-in > ul {
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
}
.navi-in > ul > li {
  width: auto !important;
  flex-shrink: 1 !important;
}
#navi .navi-in a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
}
.header-container-in, #navi, .navi-in {
  background: transparent !important;
}
#navi .sub-menu {
  background: #1e293b !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
#navi .sub-menu a {
  color: #cbd5e1 !important;
}
#navi .sub-menu a:hover {
  background: rgba(59,130,246,0.2) !important;
  color: #fff !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .mobile-menu-buttons {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
    padding: 6px 0 !important;
  }
  .mobile-menu-buttons .menu-button {
    color: #e2e8f0 !important;
    font-size: 12px !important;
  }
  .mobile-menu-buttons .menu-button:before {
    color: #93c5fd !important;
  }
  .menu-drawer {
    background: #0f172a !important;
  }
  .menu-drawer a {
    color: #e2e8f0 !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  .menu-drawer a:hover {
    background: rgba(59,130,246,0.15) !important;
  }
  .header-container, .header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .mobile-menu-buttons {
    padding: 4px 0 !important;
    gap: 0 !important;
  }
  .mobile-menu-buttons .menu-button {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-height: auto !important;
  }
  .mobile-menu-buttons .menu-button:before {
    font-size: 16px !important;
    margin-bottom: 1px !important;
  }
  #navi {
    display: none !important;
  }
  .header-container-in {
    padding: 8px 12px !important;
  }
  .logo-header img {
    max-height: 36px !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .mobile-menu-buttons .menu-button {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }
  .mobile-menu-buttons .menu-button:before {
    font-size: 14px !important;
  }
  .header-container-in {
    padding: 6px 10px !important;
  }
}


/************************************
** CTA・採用情報セクション 背景修正
************************************/

/* CTAセクション: 確実に濃い背景色を適用 */
.dc-cta-section {
  background-color: #0a3d3f !important;
  background-attachment: scroll !important;
  color: #fff !important;
}
.dc-cta-section h2,
.dc-cta-section p,
.dc-cta-section span,
.dc-cta-section a,
.dc-cta-section div {
  color: #fff !important;
}
.dc-cta-overlay {
  background: linear-gradient(135deg, rgba(13,115,119,0.95) 0%, rgba(10,60,63,0.97) 100%) !important;
}

/* 採用情報セクション: 確実に濃い背景色を適用 */
.dc-recruit-section {
  background-color: #1e3a5f !important;
  background-image: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
  color: #fff !important;
  padding: 60px 20px !important;
}
.dc-recruit-section h2,
.dc-recruit-section p,
.dc-recruit-section span,
.dc-recruit-section div {
  color: #fff !important;
}
.dc-recruit-section a {
  color: #fff !important;
}
.dc-recruit-section a[style*="background:#fff"] {
  color: #1e40af !important;
}

/************************************
** ① モバイル：ヘッダーにハンバーガーメニュー表示
************************************/
@media screen and (max-width: 1023px) {
  /* ヘッダー右側にメニューボタンを配置 */
  .mobile-menu-buttons {
    position: fixed !important;
    top: 10px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 99999 !important;
    display: flex !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  /* 各ボタンを丸いアイコンボタンに */
  .mobile-menu-buttons .menu-button {
    background: rgba(15,23,42,0.85) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    min-height: auto !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
  }
  .mobile-menu-buttons .menu-button:before {
    font-size: 20px !important;
    margin: 0 !important;
    color: #fff !important;
  }
  /* テキストラベルを非表示 */
  .mobile-menu-buttons .menu-button .menu-caption,
  .mobile-menu-buttons .menu-button span:not(:first-child) {
    display: none !important;
  }
  /* ドロワーメニューの改善 */
  .menu-drawer {
    top: 0 !important;
    padding-top: 0 !important;
  }
}

/************************************
** ⑤ 支援実績セクション 背景・文字色強化
************************************/
.dc-results-bg {
  background-color: #0a5053 !important;
}
.dc-results-bg .dc-section-title,
.dc-results-bg .dc-section-label,
.dc-results-bg h2,
.dc-results-bg p,
.dc-results-bg a,
.dc-results-bg span {
  color: #fff !important;
}


/************************************
** ⑥ セクション見出しサイズ強化
************************************/
.dc-section-label {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
}
.dc-section-title {
  font-size: 34px !important;
  font-weight: 700 !important;
}
@media (min-width: 768px) {
  .dc-section-title {
    font-size: 46px !important;
  }
}


/* Remove Cocoon default h2 background from custom sections */
.article h2.dc-section-title,
.article h2.dc-cta-title,
.article .dc-recruit h2,
.article h2 {
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
}


/************************************
** 全ページ左右余白なし（フルワイド）
************************************/
#container,
#content,
#content-in,
.main,
#main {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.article,
.entry-content {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Cocoon wrap - full width */
.wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove body/html side margins */
body,
html {
  overflow-x: hidden !important;
}


/************************************
** スクロールアニメーション
************************************/
/* 初期状態: 通常表示（JSが読み込まれるまでは普通に見える） */


/* カウントアップ用（JSで制御） */
.dc-countup {
  display: inline-block;
}

/* フェイルセーフ：キャッシュされた古いアニメーションルールを上書き */

/* ===== セクション表示・アニメーション対応 ===== */
/* セクション背景白 */
section.dc-section {
  background-color: #fff;
  position: relative;
  z-index: 1;
}
.dc-section.dc-bg-light {
  background-color: #f7fbfb;
}
/* セクション内コンテンツを最前面に */
.dc-section-inner {
  position: relative;
  z-index: 2;
}
/* セクションh2は背景なし */
.dc-section h2 {
  color: #242504;
}


/* ===== スクロールアニメーション ===== */
@keyframes dcFadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dcSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.dc-anim-wait {
  opacity: 0 !important;
  transform: translateY(25px);
}
.dc-anim-wait-slide {
  opacity: 0 !important;
  transform: translateX(-20px);
}
.dc-anim-go {
  animation: dcFadeIn 0.7s ease forwards !important;
}
.dc-anim-go-slide {
  animation: dcSlideIn 0.5s ease forwards !important;
}

/* ===== 固定ページ タイトル非表示 ===== */
.page-id-267 .entry-title,
.page-id-247 .entry-title,
.page-id-259 .entry-title,
.page-id-238 .entry-title,
.page-id-423 .entry-title,
.page-id-484 .entry-title {
  display: none !important;
}


/* ===== 固定ページ レイアウト調整 ===== */

/* ヒーロー・CTA：全幅背景・角丸なし */
.sc-hero,
.sc-cta {
  border-radius: 0 !important;
  padding-left: 10% !important;
  padding-right: 10% !important;
}

/* イントロ文：読みやすい幅 */
.sc-page .sc-intro {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* セクション・コンテンツ：最大幅 + センタリング */
.sc-page .sc-section,
.sc-page .sc-summary-grid,
.sc-page .sc-common-grid,
.sc-page .sc-grid,
.sc-page .sc-merit-grid,
.sc-page .sc-job-grid,
.sc-page .sc-features,
.sc-page .sc-mission-card,
.sc-page .sc-info-table,
.sc-page .sc-divider {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* モバイル調整 */
@media (max-width: 768px) {
  .sc-hero,
  .sc-cta {
    padding-left: 6% !important;
    padding-right: 6% !important;
  }
  .sc-page .sc-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* ===== 角丸デザイン統一 ===== */

/* カード・ブロック系 → 12px */
.sc-section-lead,
.sc-detail-block,
.sc-cat,
.sc-common-card,
.sc-summary-card,
.sc-merit-card,
.sc-card,
.sc-info-table,
.sc-access-section,
.sc-news-item,
.sc-job-card,
.sc-feature-card,
.sc-mission-card {
  border-radius: 12px !important;
}

/* ボタン・バッジ・タグ系 → 8px */
.sc-btn,
.sc-news-date,
.sc-news-category,
.sc-detail-tags span,
.sc-cat-subtitle {
  border-radius: 8px !important;
}


/* ===== カラー調整 ===== */

/* 「企業活動」テキスト → 白色 */
.dc-hero-title .dc-accent,
.dc-accent {
  color: #fff !important;
}

/* 赤ボタン → ネイビー */
.dc-btn-primary {
  background: #1e3a5f !important;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.35) !important;
}
.dc-btn-primary:hover {
  background: #152d4a !important;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4) !important;
}


/* ===== TOPヒーロー レイアウト修正 ===== */
.dc-hero-video-wrap {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.dc-hero-video-wrap video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
}
.dc-hero-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

/* ===== ヘッダー すりガラスデザイン ===== */
#header-container {
  background: rgba(15, 23, 42, 0.55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  transition: background 0.3s ease !important;
}
#header {
  background: transparent !important;
}
/* 固定ヘッダー分の余白 */
body {
  padding-top: 60px !important;
}
/* スクロール時に背景を濃く */
#header-container.scrolled {
  background: rgba(15, 23, 42, 0.75) !important;
}
/* WP管理バー表示時の調整 */
body.admin-bar #header-container {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #header-container {
    top: 46px !important;
  }
}