﻿@charset "utf-8";
/*
Theme Name: 業務用エアコンレンタル専門店『エアコンレンタル専科.COM』
*/
/* PC時はスマホメニューを隠す */
.sp-menu-btn,
.sp-nav-wrap {
  display: none;
}
/* =======================================================
   PC表示時（1001px以上）のみスマホ用メニューを隠す
======================================================= */
@media screen and (min-width: 1001px) {
  .sp-menu-btn,
  .sp-nav-wrap {
    display: none !important;
  }
}

@media screen and (max-width: 1000px) {
  /* 1. 画面の土台レベルではみ出しを完全に殺す */
  html,
  body,
  #wrapper,
  main,
  #main,
  #mainArea {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2. サイト内の「すべての要素」に画面幅を超えさせない */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. エディタ直書きの画像（width="1000"など）を強制リセット */
  img,
  iframe,
  video,
  table {
    max-width: 100% !important;
    width: auto !important; /* 横幅の固定を解除 */
    height: auto !important;
  }

  /* 4. unique.cssの悪魔の設定（左右-220pxのはみ出し）を強制解除 */
  #home #mainArea #mainImg {
    width: 100% !important;
    margin: 0 !important;
  }
  #home #mainArea #mainImg img {
    margin: 0 auto !important; /* マイナスマージンをゼロに */
    width: 100% !important;
  }

  /* 5. 他の隠れ固定幅（width: 904px や 784px など）を一網打尽にする */
  .inner,
  .secCmn01,
  .col2,
  .col3,
  .col4,
  .box,
  .txtArea,
  .priceArea,
  .contactArea,
  .btnWrap {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* =======================================================
       ホーム（固定ページ）のレスポンシブ最適化
    ======================================================= */
  /* 共通設定：幅100%、フロート解除、画像最大化 */
  html,
  body {
    min-width: auto !important;
    width: 100% !important;
    overflow-x: hidden !important; /* 横スクロールを完全に禁止 */
  }
  #wrapper,
  .main {
    width: 100% !important;
    overflow-x: hidden !important;
  }
  #home .inner {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box;
  }
  .inner {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
  #home img {
    max-width: 100%;
    height: auto;
  }
  /* 画像が画面外にはみ出すのを防ぐ */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  #home .col2,
  #home .col3,
  #home .col4 {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0;
  }
  #home .col2 .item,
  #home .col3 .item,
  #home .col4 .item,
  #home .col2 .gridItem,
  #home .col3 .gridItem,
  #home .col4 .gridItem {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    box-sizing: border-box;
  }
  #home .tit {
    text-align: center;
    margin-bottom: 20px;
  }
  #home .btnWrap {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #home .btnWrap .btn {
    float: none !important;
    margin-bottom: 15px;
  }

  /* #intro セクション */
  #home #intro .box .txt {
    text-align: center;
  }
  #home #intro .reduction .col4 {
    width: 100% !important;
  }
  #home #intro .reduction .col4 .gridItem {
    min-height: auto !important;
    padding: 20px !important;
    box-sizing: border-box;
    border: 3px solid #2ca6e0 !important;
    background: #fff;
  }
  #home #intro .reduction .col4 .gridItem:last-child {
    background: #d5edf9;
  }

  /* スポットクーラーのバナー */
  .aligncenter {
    display: block;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* #merit セクション */
  #home #merit .gridItem {
    padding: 20px !important;
    background: #fff !important;
    border: 2px solid #2ca6e0;
    margin-bottom: 20px !important;
  }
  #home #merit .gridItem:before,
  #home #merit .gridItem:after {
    display: none !important;
  }
  #home #merit .gridItem .img {
    text-align: center;
  }

  /* #about セクション */
  #home #about .box {
    background: none !important;
    min-height: auto !important;
    margin-bottom: 20px;
  }
  #home #about .box .txt {
    width: 100% !important;
  }
  #home #about #model li {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px !important;
  }

  /* #case セクション */
  #home #case .box {
    padding: 20px 15px !important;
  }
  #home #case .comparison {
    display: flex;
    flex-direction: column;
  }
  #home #case .comparison .comparisonBox {
    width: 100% !important;
    margin-bottom: 15px;
    margin-left: 0 !important;
    float: none !important;
  }
  #home #case .comparison .merit .tit,
  #home #case .comparison .demerit .tit {
    margin-left: 0 !important;
    text-align: center;
  }

  /* #quality セクション */
  #home #quality .col2 .item {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }
  #home #quality .col2 .item .catch {
    padding-bottom: 0 !important;
    background: none !important;
    text-align: center;
    margin-bottom: 15px;
  }

  /* #sns セクション */
  #home #sns .snsList01 {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  #home #sns .snsList01 li {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 20px;
    float: none !important;
    box-sizing: border-box;
  }
  #home #sns .snsList01 .boxFb01 {
    display: flex;
    justify-content: center; /* Facebookプラグインを中央揃えに */
  }

  /* #flow セクション */
  #home #flow .col4 .item {
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
  }
  #home #flow .col4 .item:after {
    display: none !important; /* スマホ時は右矢印を非表示 */
  }
  #home #flow .col4 .item .tit {
    padding-top: 100px !important;
    background-size: auto 80px !important; /* アイコンを少し縮小 */
  }
  /* =======================================================
       ヘッダーのレスポンシブ対応
    ======================================================= */
  #gHeader {
    position: relative;
    z-index: 9999;
    background: #fff;
  }
  #gHeader .cmnHeadContent {
    padding: 15px !important;
    position: relative;
  }
  #gHeader .seoTxt {
    display: none;
  }
  #gHeader .contentLeft {
    width: 100% !important;
    float: none !important;
  }
  #gHeader .logo img {
    max-width: 260px; /* スマホでロゴが大きすぎないように */
    height: auto;
  }
  #gHeader .contentRight {
    display: none !important; /* PC用連絡先はスマホで隠す */
  }
  #gNav {
    display: none !important; /* PCの青い横帯メニューを隠す */
  }

  /* ハンバーガーボタン */
  .sp-menu-btn {
    display: block !important;
    position: absolute;
    top: 25px;
    right: 15px;
    width: 35px;
    height: 25px;
    cursor: pointer;
    z-index: 9999;
  }
  .sp-menu-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: #004787;
    border-radius: 2px;
    transition: 0.3s;
  }
  .sp-menu-btn span:nth-child(1) {
    top: 0;
  }
  .sp-menu-btn span:nth-child(2) {
    top: 11px;
  }
  .sp-menu-btn span:nth-child(3) {
    top: 22px;
  }

  .sp-menu-btn.open span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
  }
  .sp-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  .sp-menu-btn.open span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
  }

  /* メニュー展開エリア */
  .sp-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #004787;
    z-index: 9998;
  }
  .sp-gNav ul {
    display: block !important;
    width: 100% !important;
    padding: 0;
    margin: 0;
  }
  .sp-gNav ul li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #1c6ba5;
  }
  .sp-gNav ul li:before,
  .sp-gNav ul li:after {
    display: none !important;
  }
  .sp-gNav ul li a {
    display: block !important;
    padding: 15px 20px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: left !important;
  }

  /* =======================================================
       フッターのレスポンシブ対応
    ======================================================= */
  #gFooter .footerNav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }
  #gFooter .footerNav li {
    width: 50% !important;
    border-bottom: 1px solid #1a5b96;
  }
  #gFooter .footerNav li a {
    padding: 12px 10px !important;
    font-size: 13px !important;
  }
  #gFooter .footerNav li a:after {
    display: none !important;
  }

  #gFooter .cmnHeadContent {
    padding: 20px 15px !important;
  }
  #gFooter .contentLeft {
    width: 100% !important;
    float: none !important;
    text-align: center;
    padding-top: 10px !important;
  }
  #gFooter .contentLeft p.logo {
    margin-top: 15px;
  }

  #gFooter .contentRight {
    width: 100% !important;
    float: none !important;
    margin-top: 20px;
  }
  #gFooter .subNav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px !important;
  }
  #gFooter .subNav li {
    float: none !important;
    margin: 0 10px !important;
  }

  #gFooter .tel {
    float: none !important;
    text-align: center;
  }
  #gFooter .contact {
    float: none !important;
    text-align: center;
    margin-top: 15px;
  }

  #gFooter .areaLine {
    width: 100% !important;
    padding: 0 15px 30px !important;
    box-sizing: border-box;
  }
  #gFooter .areaLine img {
    width: 100%;
    height: auto;
  }
  /* =======================================================
       CVエリア（お問い合わせ部分）のレスポンシブ化
    ======================================================= */
  .cvArea {
    padding: 20px 0 !important; /* スマホ用の上下余白 */
  }
  .cvArea .inner {
    width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  /* 1. 左の人物画像はスマホでは邪魔になるため非表示にする */
  .cvArea .person {
    display: none !important;
  }

  /* 2. テキストエリアの幅とはみ出し原因の「左マージン」をゼロにする */
  .cvArea .txtArea {
    width: 100% !important;
    float: none !important;
  }
  .cvArea .txtArea .tit {
    margin-left: 0 !important; /* 悪さをしてる左マージンを解除 */
    text-align: center !important;
    padding: 10px 0 !important;
  }
  .cvArea .txtArea .tit img {
    max-width: 90% !important; /* タイトル画像を少し縮小 */
  }

  /* 3. 白背景の中身を整える */
  .cvArea .txtArea .bg {
    padding: 15px !important;
  }
  .cvArea .txtArea .priceArea,
  .cvArea .txtArea .contactArea {
    width: 100% !important;
    margin-left: 0 !important; /* 悪さをしてる左マージンを解除 */
    margin-bottom: 20px !important;
    float: none !important;
  }

  /* 4. 中の要素をすべて縦並び・中央揃えにする */
  .cvArea .txtArea .priceArea .free,
  .cvArea .txtArea .priceArea .tel03,
  .cvArea .txtArea .contactArea .tel,
  .cvArea .txtArea .contactArea .contact {
    float: none !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  /* 最後の要素の下余白を消す */
  .cvArea .txtArea .priceArea .tel03,
  .cvArea .txtArea .contactArea .contact {
    margin-bottom: 0 !important;
  }
}
