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

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

/* 2026-09-04: うずまきぱんブランド統一 */
:root {
  --uzumakipan-ivory: #fff9f3;
  --uzumakipan-cream: #f8eadf;
  --uzumakipan-peach: #e6a18c;
  --uzumakipan-sage: #8fa68c;
  --uzumakipan-brown: #5d4037;
  --uzumakipan-page-bg: #f4f5f7;
}

/* バナー内にサイト説明が含まれるため、スキンが強制表示する重複文を隠す */
.header .tagline {
  display: none;
}

/* YouTubeバナーとつながる淡い背景とアクセント */
.header-container,
.header-container-in,
.header,
.header-in-wrap {
  background: var(--uzumakipan-page-bg) !important;
}

.navi,
.navi-in > ul,
.mobile-menu-buttons,
.footer-bottom-logo {
  background-color: var(--uzumakipan-cream);
}

.navi-in a,
.mobile-menu-buttons .menu-button,
.footer-bottom-logo a {
  color: var(--uzumakipan-brown);
}

.sidebar h3,
.footer h3 {
  background-color: var(--uzumakipan-sage);
  color: #fff;
}

a {
  color: #a95363;
}

/* ロゴ画像を比率のまま中央に配置 */
.site-name-text,
.logo-text {
  display: block;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}

/* 本文＋サイドバーより狭くならないレスポンシブバナー */
.header .header-in {
  width: 100%;
  max-width: 1256px !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Cocoon既定の上下10pxを除き、バナーをヘッダー端に密着させる */
.header .logo-header {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--uzumakipan-ivory) !important;
}

/* Tecuarioスキンの後勝ち指定よりブログ用バナー幅を優先 */
.header .site-name-text {
  display: block !important;
  width: 100% !important;
  max-width: 1256px !important;
}

.header .site-name-text-link {
  display: block !important;
  width: 100%;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.site-name-text img,
.logo-text img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.footer .site-name-text,
.footer .logo-text {
  display: block !important;
  max-width: 240px;
  line-height: 0;
}

/* フッター内のロゴとメニューを上下中央に揃える */
.footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  margin-top: 0 !important;
  padding: 8px !important;
}

.footer-bottom-logo {
  flex: 0 0 240px;
  line-height: 0;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
}

.footer-bottom-content {
  float: none !important;
  margin-top: 0 !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .header-in {
    min-height: 0;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .header-container-in {
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center !important;
    gap: 12px;
  }

  .footer-bottom-logo {
    flex-basis: auto;
    margin-right: auto;
    margin-left: auto;
  }

  .footer-bottom-content {
    width: 100%;
    text-align: center;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .site-name-text,
  .logo-text {
    margin: 0;
  }
}
