/*
Theme Name: にじいろペイント
Theme URI: https://nijiiro-paint.co.jp/
Author: にじいろペイント
Author URI: https://nijiiro-paint.co.jp/
Description: 湘南エリアの外壁塗装専門店「にじいろペイント」公式WordPressテーマ。トップページ／工事メニュー／選ばれる理由／店舗案内／お客様の声／イベント情報／施工事例／ブログ／問い合わせ／雨漏り調査に対応。
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nijiiropaint
*/

/*
 * ページ共通の追従バナーとテーマ情報を管理しています。
 * 各ページ固有のスタイルは下記のファイルで管理しています。
 *   - トップページ: assets/css/front.css
 *   - 下層ページ : assets/css/sub.css
 */

/* =========================================================
   LINE・お問い合わせ 追従バナー
   ========================================================= */
.floating-contact {
  position: fixed;
  top: 54%;
  right: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 14px rgba(20, 48, 77, .24));
}

.floating-contact__item {
  box-sizing: border-box;
  width: 148px;
  min-height: 88px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.floating-contact__item:first-child { border-radius: 12px 0 0 0; }
.floating-contact__item:last-child { border-radius: 0 0 0 12px; }
.floating-contact__item--contact { background: #f7941d; }
.floating-contact__item--line { background: #20b94b; }

.floating-contact__item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.floating-contact__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

.floating-contact__copy small {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
}

.floating-contact__copy strong {
  color: inherit;
  font-size: 16px;
  font-weight: 900;
}

.floating-contact__item:hover {
  color: #fff;
  opacity: .94;
  transform: translateX(-4px);
}

.floating-contact__item:focus-visible {
  outline: 3px solid #14304d;
  outline-offset: -3px;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .floating-contact {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: none;
    background: #fff;
    filter: drop-shadow(0 -4px 12px rgba(20, 48, 77, .2));
  }

  .floating-contact__item {
    width: auto;
    min-height: 64px;
    padding: 8px 10px;
    flex-direction: row;
    gap: 9px;
    border-radius: 0 !important;
  }

  .floating-contact__item img {
    width: 25px;
    height: 25px;
  }

  .floating-contact__copy { text-align: left; }
  .floating-contact__copy small { font-size: 9px; }
  .floating-contact__copy strong { font-size: 14px; }

  .floating-contact__item:hover {
    transform: none;
  }
}
