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

/* 筆者紹介ボックス */
/* 筆者紹介ボックス */
.author-box {
    margin-top: 48px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

/* ラベル帯 */
.author-box__label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    background: #2d6a4f;
    color: #fff !important;
    font-size: 0.78em;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.5 !important;
}

/* アバター＋テキストの横並びエリア */
.author-box__inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
}

.author-box__avatar {
    flex-shrink: 0;
}

.author-box__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-box__body {
    display: flex;
    flex-direction: column;
}

.author-box__name,
.author-box__bio {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.author-box__name {
    font-weight: bold;
    font-size: 1.05em;
    margin: 0 0 8px !important;
}

.author-box__bio {
    margin: 0 !important;
    font-size: 0.9em;
    line-height: 1.7 !important;
    color: #555;
}

/* ── レスポンシブ対応 ── */
@media (max-width: 600px) {
    .author-box__inner {
        flex-direction: column !important;
        /* 縦並びに切り替え */
        align-items: center !important;
        /* 中央揃え */
        padding: 16px;
        gap: 12px;
    }

    .author-box__avatar img {
        width: 80px;
        /* スマホでは少し大きめに */
        height: 80px;
    }

    .author-box__body {
        width: 100%;
        align-items: center;
        /* 名前・本文も中央揃え */
        text-align: center;
    }

    .author-box__name {
        font-size: 1em;
        margin: 0 0 6px !important;
    }

    .author-box__bio {
        font-size: 0.85em;
        text-align: left;
        /* 本文は左揃えの方が読みやすい */
    }
}

/* ヘッダー背景制御 */
#header-container,
.header-container {
    min-height: 200px !important;
    height: 200px !important;
    overflow: hidden !important;
    background-color: transparent !important;
}

#header,
.header {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

#header-container-in,
.header-container-in {
    background: transparent !important;
}

/* モバイル */
@media screen and (max-width: 834px) {

    #header-container,
    .header-container,
    #header,
    .header {
        min-height: 140px !important;
        height: 140px !important;
    }
}

/* ロゴ画像サイズ制御・ヘッダー内レイアウト調整 */
.header-in {
    height: 200px !important;
    max-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.logo-header {
    height: auto !important;
    max-height: 160px !important;
    width: auto !important;
}

.header-site-logo-image {
    width: auto !important;
    max-width: 90% !important;
    height: 160px !important;
    max-height: 160px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.site-name-text {
    display: block !important;
    height: auto !important;
    line-height: 0 !important;
}

.tagline {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    margin: 4px 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
}

.author-info,
.post-author,
.article-author-name {
    display: none !important;
}
