@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.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** レスポンシブデザイン用メディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /* 必要ならここに追記 */
}

/*834px以下*/
@media screen and (max-width: 834px){
  /* 必要ならここに追記 */
}

/*480px以下*/
@media screen and4 (max-width: 480px){
  /* 必要ならここに追記 */
}

/************************************
** ロゴとタイトル設定
************************************/
@font-face {
  font-family: 'HKReiKK';
  src: url('/wp/wp-content/themes/cocoon-child-master/fonts/hkreikk.woff') format('woff'),
       url('/wp/wp-content/themes/cocoon-child-master/fonts/hkreikk.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.site-name,
.site-title-text {
  font-family: 'HKReiKK', sans-serif !important;
}

.site-title-text {
  font-size: 32px; /* 現状で効いているサイズ */
  line-height: 1.2;
}

.site-name-text {
  display: none;
}

/* ロゴ画像のサイズ調整 */
.custom-header-title-wrap img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

/* ロゴとタイトル横並びの設定 */
.custom-header-title-wrap {
  display: flex;
  align-items: center;
  margin-left: 40px; /* 左の余白調整 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
@media screen and (max-width: 767px) {
  .custom-header-title-wrap {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* ← 正しい書き方 */
    align-items: center !important;
    margin-left: 80px !important; /* ← px を付ける */
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important; /* ← 必要に応じて調整、100%だと中央に寄る */
  }
}

/************************************
** 全幅設定（左右余白を消す）
************************************/
.wrap,
.content,
.article,
.entry-content,
.container,
#main,
.main,
#content,
.l-entry,
.l-content,
.l-inner,
.l-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

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

/************************************
** ヘッダーとメニュー設定（現状保存用）
************************************/
/* ヘッダーコンテナ（全体） */
.header-container {
  position: relative; /* 現状メニュー重ね合わせに使用 */
  width: 100%;
  z-index: 9999;
}

/* メニュー */
#navi {
  position: absolute; /* ヘッダーの中で配置 */
  top: 0;
  right: 0;
}

/* 管理バー補正（必要な場合） */
.admin-bar .header-container {
  top: 32px;
}

/* body padding-top（必要に応じて調整） */
body {
  padding-top: 40px; /* 現在の仮設定 */
}

/* PC 向け（1024px以上）は現在の absolute 設定を使用 */

@media screen and (max-width: 1023px) {
  /* ロゴとタイトルは横並びのまま */
  .custom-header-title-wrap {
    display: flex;
    flex-direction: row; /* ← 縦並びを防ぐために row に固定 */
    align-items: center;
    justify-content: center; /* スマホでも中央寄せ */
    margin: 0 auto;
  }

  #navi {
    display: flex;
    justify-content: center;
    gap: 20px; /* メニューの間隔、必要なら調整 */
    position: relative;
    top: auto;
    right: auto;
    margin-top: 10px;
  }

  #navi li {
    display: inline-block;
  }
}

/* スマホでヘッダー背景をコンパクトにする */
@media screen and (max-width: 767px) {
  .header-container {
    height: 60px !important; /* 必要に応じて高さを調整 */
  }
  .custom-header-title-wrap {
    height: 60px !important;
  }
  .custom-header-title-wrap img {
    max-height: 40px; /* ロゴサイズに合わせて調整 */
  }
}

/* スマホでヘッダーとメニューの間の白い余白を削除 */
@media screen and (max-width: 767px) {
  .header-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .header-in {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  #navi {
    margin-top: 0 !important;
  }
}

/************************************
** フッター
************************************/
.footer-program {
  font-size: 16px !important;
  text-align: center !important;
}

.footer-program span {
  font-size: 14px !important;
}

@media screen and (max-width: 767px) {
  .footer-program {
    font-size: 14px !important;
  }
  .footer-program span {
    font-size: 12px !important;
  }
}

/************************************
** 固定ページの日付非表示
************************************/
.home .date-tags,
.home .update-date {
  display: none !important;
}

