@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){
  /*必要ならばここにコードを書く*/
}




.mirix-header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1001;
}
.mirix-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
.mirix-logo img {
  height: 48px;
  display: block;
}
.mirix-inquiry-btn {
  background: #1ab267;
  color: #fff !important;
  padding: 0.7em 2.2em;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.mirix-inquiry-btn:hover {
  background: #169a5a;
}

/* PC:ボタン・スマホ:ハンバーガー切り替え */
.pc-only { display: inline-block; }
.sp-only { display: none; }

@media (max-width: 767px) {
  .mirix-header-inner {
    padding: 0.5rem 0.7rem;
  }
  .mirix-logo img {
    height: 38px;
  }
  .pc-only { display: none !important; }
  .sp-only { display: block !important; margin-left: auto; background: none; border: none; }
}

/* ハンバーガー */
#mirix-hamburger {
  width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  cursor: pointer; border: none; background: none; position: relative;
}
.mirix-hamburger-bar {
  display: block; width: 27px; height: 4px; background: #1ab267; border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s;
}

/* スライドインメニュー */
.mirix-slide-menu-bg {
  position: fixed; right: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(100,100,100,0.5);
  opacity: 0; visibility: hidden; transition: 0.25s;
  z-index: 1200;
}
.mirix-slide-menu {
  position: fixed; top: 0; right: -80vw; width: 80vw; height: 100vh;
  background: #fff; box-shadow: -2px 0 8px rgba(0,0,0,0.10);
  z-index: 1300;
  transition: right 0.25s;
  padding: 1.5em 0.8em;
  overflow-y: auto;
}
.mirix-slide-menu.open {
  right: 0;
}
.mirix-slide-menu-bg.open {
  opacity: 1; visibility: visible;
}
#mirix-menu-close {
  background: none; border: none; color: #1ab267; font-size: 2.1em; position: absolute; top: 1rem; right: 1.1rem; z-index: 1400;
  cursor: pointer;
}
.mirix-menu-list {
  list-style: none; padding: 2em 0 0 0; margin: 0;
}
.mirix-menu-list li {
  margin: 0 0 1.2em 0;
}
.mirix-menu-list a {
  display: block; font-size: 1.12em; color: #1ab267; font-weight: 600; text-decoration: none;
}

/* スライドエリア以外の薄グレー(20%) */
.mirix-slide-menu-bg.open:after {
  content: '';
  display: block;
  position: fixed;
  right: 80vw; top: 0; width: 20vw; height: 100vh;
  background: rgba(180,180,180,0.50);
}
@media (min-width: 768px) {
  .sp-only { display: none !important; }
  .mirix-slide-menu,
  .mirix-slide-menu-bg { display: none !important; }
}

/* 横並び・崩れ防止の最重要指定 */
#header-in {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.5em;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0.7em 2vw 0.7em 2vw !important;
}
/* ロゴ */
.logo, .logo-header, .logo-image, .header-logo-image {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  text-align: left !important;
}
.logo img, .logo-header img, .logo-image img, .header-logo-image img {
  height: 48px;
  width: auto;
  display: block;
}

/* カスタムエリアも必ずflex */
.mirix-header-custom {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

/* PC/スマホ判定 */
.pc-only { display: inline-block; }
.sp-only { display: none !important; }

@media (max-width: 767px) {
  #header-in {
    min-height: 42px;
    padding: 0.6em 3vw 0.6em 3vw !important;
  }
  .logo img, .logo-header img, .logo-image img, .header-logo-image img {
    height: 32px;
  }
  .pc-only { display: none !important; }
  .sp-only { display: inline-flex !important; }
}

/* ハンバーガーの微調整（右端に寄るように） */
#mirix-hamburger {
  margin-left: auto;
  width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  border: none; background: none; cursor: pointer;
}

/* 必要に応じて: #header-in .mirix-header-custom { margin-left: auto; } でも右詰に */

@media (min-width: 768px) {
  .sp-only { display: none !important; }
}

.mirix-header-flex {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
  padding: 1em 2vw 0.7em 2vw;
  box-sizing: border-box;
}
.mirix-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mirix-header-logo img {
  height: 48px;
  display: block;
  margin: 0 !important;
}
.mirix-header-custom {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-left: auto;
}

.pc-only { display: inline-block; }
.sp-only { display: none !important; }

@media (max-width: 767px) {
  .mirix-header-flex {
    min-height: 82px;
    padding: 1em 3vw　0;
  }
  .mirix-header-logo img { height: 82px; }
  .pc-only { display: none !important; }
  .sp-only { display: inline-flex !important; }
}

