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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}



/* ==========================================
   ページ全体の左右余白を打ち消し幅100%にする設定
========================================== */
/* サイト全体のコンテナ幅制限を解除 */
#container,
#content,
#content-in,
.main,
.article,
.entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Cocoon独自のコンテンツ幅制限（.wrap）をリセット */
.wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 不要なサイドバーの余白干渉を排除 */
#sidebar {
  display: none !important;
}



/* ==========================================
   各セクション間の縦の隙間（上下マージン）をリセット
========================================== */
.entry-content > *,
.entry-content > section,
.fv-container,
.sec-service,
.sec-solution {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}






/* ==========================================
   完全独立カスタムヘッダー（1100px・デザイン微調整統合版）
========================================== */
#custom-header-outer {
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 100;
}

/* 1100px幅でFlexbox横並び配置 */
.custom-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 20px 0 !important;
  box-sizing: border-box !important;
}

/* 自作ヘッダーのロゴサイズ指定 */
.custom-header-logo img {
  width: 180px !important; /* お好みの幅に調整してください */
  height: auto !important;
  display: block !important;
}




/* ナビゲーションリスト横並び */
.custom-header-navi ul {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.custom-header-navi li {
  margin: 0 !important;
  padding: 0 !important;
}

/* メニューリンク基本スタイル */
.custom-header-navi a {
  position: relative;
  color: #333333;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em; /* 文字間隔を広げて洗練感をプラス */
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.3s ease;
}

/* ホバー時の下線アニメーション（お問い合わせ以外） */
.custom-header-navi li:not(.btn-contact) a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #12a072; /* テーマカラーの緑 */
  transition: width 0.3s ease;
}

.custom-header-navi li:not(.btn-contact) a:hover {
  color: #12a072;
}

.custom-header-navi li:not(.btn-contact) a:hover::after {
  width: 100%; /* 下線がすっと伸びる */
}

/* お問い合わせカプセルボタン（影と浮遊感を追加） */
.custom-header-navi .btn-contact a {
  background-color: #444444;
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.custom-header-navi .btn-contact a:hover {
  background-color: #222222;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}


/* ==========================================
   カスタムヘッダー：スマホ・タブレット対応（レスポンシブ）
========================================== */
@media screen and (max-width: 768px) {
  /* スマホ時はCocoon標準のヘッダーブロックを復活（モバイルボタン用） */
  #header-container {
    display: block !important;
  }
  
  /* 自作ヘッダーのPC用ナビゲーション文字を非表示に */
  .custom-header-navi {
    display: none !important;
  }
  
  /* 自作ヘッダーのロゴ位置をスマホ用に最適化 */
  .custom-header-inner {
    padding: 12px 20px !important;
    justify-content: center !important; /* スマホではロゴを中央寄せ（お好みでflex-startで左寄せも可） */
  }
  
  .custom-header-logo img {
    width: 140px !important;
  }
}










/* ==========================================
   カスタムフッター（Cocoon枠上書き完全版）
========================================== */

/* Cocoon標準フッターの枠・背景・余白のリセット */
#footer,
.footer,
.footer-in,
.footer-widgets,
.footer-center {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  box-shadow: none !important;
}

/* 不要なCocoonデフォルト要素（黒いバー・元々のロゴ等）を非表示 */
.footer-bottom,
#footer .site-name,
#footer .copyright {
  display: none !important;
}

/* --- カスタムフッター本体 --- */
.custom-footer {
  position: relative;
  width: 100vw !important; /* 画面幅いっぱいに広げる */
  margin-left: calc(50% - 50vw) !important; /* 中央から画面端まで拡張 */
  background-color: #fabb00 !important; /* 画像通りの鮮やかなイエロー */
  color: #333333;
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

.custom-footer-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 100px;
  z-index: 2;
}

.custom-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* --- 左側：会社情報 --- */
.custom-footer-company {
  flex: 1;
  max-width: 450px;
}

.custom-footer-logo img {
  height: 45px;
  width: auto;
  margin-bottom: 12px;
  display: block;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.company-name {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 35px;
  color: #333333;
}

.company-info p {
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 4px;
  color: #333333;
}

/* --- 右側：サイトマップ --- */
.custom-footer-sitemap {
  flex: 1;
  max-width: 500px;
}

.sitemap-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333333;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.sitemap-links {
  display: flex;
  gap: 60px;
}

.sitemap-links ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sitemap-links li {
  margin-bottom: 14px;
}

.sitemap-links a {
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.sitemap-links a:hover {
  opacity: 0.7;
  text-decoration: underline !important;
}

/* --- 左下：手書き風白ライン装飾 --- */
.custom-footer-line {
  position: absolute;
  bottom: 20px;
  left: -20px;
  width: 50%;
  max-width: 550px;
  height: 60px;
  pointer-events: none;
  /* SVG波線グラフィック自動描画 */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 60'%3E%3Cpath d='M10,50 Q150,10 300,25 T480,10' fill='none' stroke='%23ffffff' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / contain;
}

/* --- 最下部：暗い黄土色コピーライトバー --- */
.custom-footer-copyright {
  background-color: #7d5e00 !important; /* 下部のダーク黄土色 */
  color: #ffffff !important;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 768px) {
  .custom-footer-content {
    flex-direction: column;
    gap: 40px;
  }
  .sitemap-links {
    gap: 30px;
  }
  .custom-footer-line {
    width: 80%;
  }
}


/* --- サイドバー完全非表示 ＆ コンテンツ全幅化 --- */
#sidebar,
.sidebar {
  display: none !important;
}

/* Cocoon標準のメインエリア幅制限を解除 */
.main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.content-in {
  padding: 0 !important;
}

/* ==========================================
   トップへ戻るボタン（サイトデザイン統一版）
========================================== */
#go-to-top {
  right: 25px !important;
  bottom: 25px !important;
  z-index: 9999 !important;
}

#go-to-top .go-to-top-button {
  background-color: #fabb00 !important; /* フッターと同じイエロー */
  color: #333333 !important;           /* ダークグレー文字 */
  border-radius: 50% !important;         /* まんまる形状 */
  width: 50px !important;
  height: 50px !important;
  font-size: 20px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; /* ふんわり影 */
  border: 2px solid #ffffff !important;  /* 白い細枠 */
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* マウスオン（ホバー）時のアニメーション */
#go-to-top .go-to-top-button:hover {
  background-color: #333333 !important; /* ダークグレーへ変化 */
  color: #ffffff !important;           /* 文字を白へ */
  transform: translateY(-4px) scale(1.05) !important; /* 上にぽこっと浮く */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25) !important;
}

