@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){
}

/* ==================================================
   ▼ ★★ ロゴ微調整パラメータ（ここだけ触ればOK） ★★
================================================== */
:root {
  /* ======== PC ======== */
  --logo-pc-height: 70px;
  --logo-pc-top: -30px;
  --logo-pc-left: 0px;

  /* ======== スマホ ======== */
  --logo-sp-height: 50px;
  --logo-sp-top: -55px;
  --logo-sp-left: 7px;
}

/* ==================================================
   ▼ ハンバーガーボタン
================================================== */

html body #menu-toggle,
html body .hamburger#menu-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  width: 48px !important;
  height: 48px !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html body #menu-toggle span,
html body .hamburger#menu-toggle span {
  position: absolute !important;
  width: 24px !important;
  height: 2px !important;
  background-color: #ff7825 !important;
  transition: all 0.3s ease !important;
}

#menu-toggle span:nth-child(1){
  transform: translateY(-8px) !important;
}
#menu-toggle span:nth-child(2){
  transform: translateY(0) !important;
}
#menu-toggle span:nth-child(3){
  transform: translateY(8px) !important;
}

#menu-toggle.open span:nth-child(1){
  transform: rotate(45deg) !important;
}
#menu-toggle.open span:nth-child(2){
  opacity: 0 !important;
}
#menu-toggle.open span:nth-child(3){
  transform: rotate(-45deg) !important;
}

/* ==================================================
   ▼ ドロワーメニュー
================================================== */

.drawer-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  z-index: 99998 !important;
  transform: translateY(-100%) !important;
  transition: transform 0.4s ease-in-out !important;
  overflow-y: auto !important;
  padding: 30px 20px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.drawer-menu.open{
  transform: translateY(0) !important;
}

/* ==================================================
   ▼ ヘッダー
================================================== */

.okimitsu-header {
  width: 100% !important;
  background: #ffffff !important;
  padding: 6px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.logo-group{
  display: flex !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* PC ロゴ */
.okimitsu-logo{
  display: block !important;
  height: var(--logo-pc-height) !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  position: relative !important;
  top: var(--logo-pc-top) !important;
  left: var(--logo-pc-left) !important;
}

/* タブレット以下 */
@media screen and (max-width:1024px){
  .okimitsu-logo{
    height: calc(var(--logo-pc-height) - 2px) !important;
  }
}

/* スマホ */
@media screen and (max-width:768px){

  .okimitsu-header{
    padding: 2px 12px !important;
    min-height: 44px !important;
  }

  .logo-group{
    align-items: flex-start !important;
  }

  .okimitsu-logo{
    height: var(--logo-sp-height) !important;
    top: var(--logo-sp-top) !important;
    left: var(--logo-sp-left) !important;
  }

}

/* 小型スマホ */
@media screen and (max-width:480px){
  .okimitsu-logo{
    height: calc(var(--logo-sp-height) - 2px) !important;
  }
}

/* ==================================================
   ▼ iOS / Cocoon リセット
================================================== */

html,body{
  margin:0 !important;
  padding:0 !important;
}

body::before,
body::after{
  display:none !important;
  content:none !important;
}

/* Cocoonヘッダーリセット */
#header-container,
#header,
.site-header,
header,
header#header{
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}

/* ==================================================
   ▼ ロゴテキスト非表示
================================================== */

.logo-group a.site-name,
.logo-group a.site-name-text-link{
  display:none !important;
}

.logo-group a:has(img.okimitsu-logo){
  display:inline-flex !important;
  align-items:center !important;
}

img.okimitsu-logo{
  height:48px !important;
  width:auto !important;
  display:block !important;
}

/* ==================================================
   ▼ メイン余白除去
================================================== */

.main,
#main,
.content,
.content-in,
.main-inner,
.entry-content,
.page .entry-content{
  margin-top:0 !important;
  padding-top:0 !important;
}

.entry-content > *:first-child{
  margin-top:0 !important;
  padding-top:0 !important;
}

.entry-content > *:last-child{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

.footer,
.site-footer{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* ==================================================
   ▼ PCではハンバーガー非表示
================================================== */

@media screen and (min-width:1024px){
  html body #menu-toggle,
  html body .hamburger#menu-toggle{
    display:none !important;
  }
}

/* =========================
 全ページ：本文とタイトルのみ左右余白
 カード・枠・背景画像には影響させない
========================= */

/* PC */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6{
  max-width: 900px;        /* ← ここで横幅調整 */
  margin-left: auto;
  margin-right: auto;
}

/* SP */
@media(max-width:767px){

  .entry-content > p,
  .entry-content > ul,
  .entry-content > ol,
  .entry-content > h1,
  .entry-content > h2,
  .entry-content > h3,
  .entry-content > h4,
  .entry-content > h5,
  .entry-content > h6{
    padding-left:16px;
    padding-right:16px;
    max-width:100%;
  }

}