/*
Theme Name: Solaris Child
Description: Solarisテーマの子テーマ
Template: solaris_tcd088
Version: 1.0
*/

/* ここにカスタムCSSを追加 */

/* 引越しサービスの流れセクションのモバイル最適化 */
@media (max-width: 767px) {
  .vk_gridcolcard-3ddbbd7c-05b1-4137-8192-90f8b143fbe3 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .vk_gridcolcard-3ddbbd7c-05b1-4137-8192-90f8b143fbe3 .vk_gridcolcard_item {
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .vk_gridcolcard-3ddbbd7c-05b1-4137-8192-90f8b143fbe3 .vk_gridcolcard_item_container {
    padding: 1.5rem 1.25rem !important;
  }

  .vk_gridcolcard-3ddbbd7c-05b1-4137-8192-90f8b143fbe3 .vk_gridcolcard_item_body .wp-block-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }

  .vk_gridcolcard-3ddbbd7c-05b1-4137-8192-90f8b143fbe3 .vk_gridcolcard_item_body .wp-block-heading {
    font-size: 1.15rem;
    margin: 0;
  }

  .vk_gridcolcard-3ddbbd7c-05b1-4137-8192-90f8b143fbe3 .vk_gridcolcard_item_body p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
  }
}

/* 引越しサービスの流れ（フローブロック）のモバイル調整 */
@media (max-width: 767px) {
  /* 横スクロール（右側の余白）を防止 */
  body.page-id-93 {
    overflow-x: hidden;
  }

  .page-id-93 .vk_flow .vk_flow_frame {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }

  .page-id-93 .vk_flow .vk_flow_frame_text {
    margin-bottom: 0;
  }

  .page-id-93 .vk_flow .vk_flow_frame_text_title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .page-id-93 .vk_flow .vk_flow_frame_text_content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .page-id-93 .vk_flow .vk_flow_frame_image {
    width: min(420px, 100%);
    max-width: min(420px, 100%);
    margin: 0 auto;
    align-self: center;
  }

  .page-id-93 .vk_flow .vk_flow_frame_image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }
}

/* ここから20251106 */
/* PCレイアウトのブレークポイントを1025pxから1261pxに変更（1260pxまではモバイル表示） */
@media (min-width: 1201px) {
  #header {
    position: relative;
  }

  #header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 80px;
    padding: 0 20px 0 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }

  #header .header-left,
  #header .header-center,
  #header .header-right {
    display: flex;
    align-items: center;
  }

  #header .header-center {
    flex: 1 1 auto;
    justify-content: center;
    gap: 24px;
    min-width: 0;
  }

  #header .header-right {
    flex: 0 0 auto;
    gap: 20px;
  }

  #header .header-inner #header_logo {
    position: static;
    flex: 0 0 auto;
    max-width: 220px;
  }

  #header .header-inner #header_logo a {
    position: relative;
    left: auto;
    height: 80px;
    line-height: 80px;
    padding: 0;
    display: flex;
    align-items: center;
  }

  #header .header-inner #header_logo img {
    max-height: 56px;
    height: auto;
    width: auto;
  }

  #header .header-center #global_menu {
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  #header .header-center #global_menu > ul {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    width: auto;
    text-align: left;
    padding: 0;
  }

  #header .header-center #global_menu > ul > li {
    position: relative;
    display: flex;
    align-items: stretch;
  }

  #header .header-center #global_menu > ul > li > a {
    display: flex;
    align-items: center;
    height: 80px;
    line-height: 1.5;
    padding: 0 18px;
    white-space: nowrap;
    font-size: 14px;
  }

  #header .header-right #header_search {
    position: relative;
    width: auto;
    height: auto;
  }

  #header .header-right #header_search_button {
    width: 48px;
    height: 48px;
  }

  #header .header-right #header_search_button:before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #header .header-right #header_search form {
    top: calc(100% + 12px);
    right: 0;
  }

  #header .header-right #header_search .input_area input {
    right: 0;
  }

  .header-call-banner {
    position: relative;
    right: auto;
    top: auto;
    display: inline-flex;
    align-items: center;
    height: auto;
    z-index: 3;
    text-decoration: none;
  }

  .header-call-banner img {
    max-height: 56px;
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
  }
}

@media (max-width: 1200px) {
  #header {
    height: 60px !important;
  }

  .header-call-banner {
    display: none;
  }

  /* 1260px以下はモバイルレイアウト（ハンバーガーメニュー）として扱うため、ヘッダーを調整 */
  #header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px !important;
    padding: 0 10px;
  }

  #header_logo {
    max-width: 220px;
    position: static !important; /* 親テーマの絶対配置を解除してヘッダー内に収める */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    z-index: 1001; /* スクロール時の背景より前面に出す */
    position: relative !important; /* z-indexを効かせるためrelativeに変更 */
  }
  
  #header_logo a {
    position: relative !important; /* z-indexを効かせるためrelativeに変更 */
    height: 60px !important;
    line-height: 60px !important;
    display: flex !important;
    align-items: center;
    padding: 0 !important; /* 親テーマのパディングを解除 */
    z-index: 1001;
  }

  /* ロゴ画像のサイズ制限 */
  #header #header_logo img {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* PC用メニューを非表示 */
  #header #global_menu {
    display: none !important;
  }

  /* ハンバーガーメニューを表示 */
  #global_menu_button {
    display: inline-block !important;
    opacity: 1 !important;
    z-index: 1002; /* ロゴより前面に出す */
    right: 0 !important;
    bottom: 0 !important;
    position: absolute !important;
  }
  
  /* ハンバーガーメニューのアイコン線を表示 */
  #global_menu_button span {
    background: #000 !important; /* 強制的に黒色にする */
    display: block !important;
  }
}

/* 1025px~1200pxのPCレイアウト調整は不要になったため削除 */
/*
@media (min-width: 1025px) and (max-width: 1200px) {
  ...
}
*/

/* ヘッダーメニューの文字色を常時ブラックに統一 */
#header #global_menu > ul > li > a {
  color: #000 !important;
}

#header #global_menu > ul > li.current-menu-item > a,
#header #global_menu > ul > li.current-menu-ancestor > a,
#header #global_menu > ul > li:hover > a {
  color: #000 !important;
}

#header #global_menu ul ul li > a,
#header #global_menu ul ul li:hover > a {
  color: #fff !important;
}

#header #header_search_button:before {
  color: #000 !important;
}

/* タブボックス下部の背景を淡い水色に変更 */
.cb_tab_content .tab_content_bottom {
  position: relative;
  z-index: 1;
  background: #e0f2fe;
  border-left: none;
  border-right: none;
}

.cb_tab_content .tab_content_bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #e0f2fe;
  z-index: -1;
}

/* 20251121 1600px以上の画面幅でヘッダーバナーを拡大 */
@media (min-width: 1600px) {
  .header-call-banner img {
    max-height: 72px;
    max-width: 360px;
  }
}

/* 20251124 1000px~1200pxもハンバーガーメニューにするため、バナー画像縮小設定は削除（モバイル表示ならバナー自体非表示） */

/* 1201px〜1260pxの調整：ヘッダーの中身を縮小して収める */
@media (min-width: 1201px) and (max-width: 1260px) {
  /* コンテナのパディングを詰める */
  #header .header-inner {
    padding: 0 10px !important;
    gap: 5px !important;
  }

  /* ロゴの調整：下に飛び出さないように高さを制限し、絶対配置を解除 */
  #header .header-inner #header_logo {
    flex: 0 0 auto;
    max-width: 160px; /* 幅を少し狭める */
  }
  
  #header .header-inner #header_logo a {
    height: 80px !important; /* ヘッダー高さに合わせる */
    line-height: 80px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important; /* 絶対配置解除を確実に */
    left: auto !important;
    top: auto !important;
  }

  #header .header-inner #header_logo img {
    max-height: 40px !important; /* 画像サイズを縮小 */
    width: auto !important;
    height: auto !important;
  }

  /* グローバルメニューの文字サイズと余白を縮小 */
  #header .header-center #global_menu > ul > li > a {
    font-size: 11px !important; /* 通常14pxから縮小 */
    padding: 0 10px !important; /* 少し広げる */
  }
  
  /* メニュー項目間の余白調整 */
  #header .header-center {
    gap: 0 !important; /* Flex gapをなくす */
  }
  #header .header-center #global_menu > ul {
    gap: 0 !important;
  }

  /* 右側の検索ボタンやバナーの調整 */
  #header .header-right {
    gap: 5px !important;
  }
  
  /* 検索ボタン */
  #header .header-right #header_search_button {
    width: 40px !important;
    height: 40px !important;
  }
  #header .header-right #header_search_button:before {
    font-size: 16px !important;
  }

  /* 電話バナー */
  .header-call-banner img {
    width: 230px !important;
    max-width: 230px !important;
    height: auto !important;
    max-height: 80px !important;
  }
}
