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

/************************************
** 月別アーカイブ
************************************/

.sidebar .widget_archive {
    margin-bottom: 15px;
}

.sidebar .widget_archive select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
}
/************************************
** 投稿カレンダー
************************************/

/* カレンダー全体 */
.sidebar #wp-calendar {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 年月表示 */
.sidebar #wp-calendar caption {
    color: #385468;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
}

/* 曜日 */
.sidebar #wp-calendar th {
    background-color: #385468;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border: 1px solid #dce1e5;
}

/* 日付 */
.sidebar #wp-calendar td {
    background-color: #ffffff;
    color: #333333;
    text-align: center;
    padding: 0;
    height: 34px;
    border: 1px solid #e5e5e5;
}

/* 日曜日・土曜日 */
.sidebar #wp-calendar td:first-child {
    color: #c62828;
}

.sidebar #wp-calendar td:last-child {
    color: #1565c0;
}

/* 投稿がある日付 */
.sidebar #wp-calendar td:has(a) {
    background-color: #e5edf2;
}

/* 日付リンク */
.sidebar #wp-calendar td a {
    display: block;
    padding: 7px 0;
    color: #385468;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar #wp-calendar td a:hover {
    background-color: #385468;
    color: #ffffff;
}

/* 本日の日付 */
.sidebar #wp-calendar td#today {
    background-color: #385468;
    color: #ffffff;
    font-weight: bold;
}

.sidebar #wp-calendar td#today a {
    color: #ffffff;
}

/* 前月・翌月へのリンク */
.sidebar .wp-calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
}

.sidebar .wp-calendar-nav a {
    color: #385468;
    text-decoration: none;
}

.sidebar .wp-calendar-nav a:hover {
    text-decoration: underline;
}

/* ウィジェットの余白 */
.sidebar .widget_calendar {
    margin-bottom: 25px;
}

/************************************
** No.9 フッターナビゲーション
************************************/

/* フッター全体 */
.shoninsha-footer {
    width: 100%;
    margin: 30px 0 0;
    padding: 15px 0 0;
    background-color: #385468;
    color: #ffffff;
    box-sizing: border-box;
}

.shoninsha-footer-inner {
    width: calc(100% - 40px);
    max-width: 1256px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 4列のナビゲーション */
.shoninsha-footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    padding: 15px 10px 20px;
    border-top: 1px solid #8295a3;
    border-bottom: 1px solid #8295a3;
}

.shoninsha-footer-column {
    min-width: 0;
}

.shoninsha-footer-section {
    margin: 0 0 12px;
}

.shoninsha-footer-section:last-child {
    margin-bottom: 0;
}

/* メニュー見出し */
.shoninsha-footer-heading {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
}

/* リンク一覧 */
.shoninsha-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shoninsha-footer-links li {
    margin: 0 0 5px;
    padding: 0;
    list-style: none;
}

.shoninsha-footer-links a {
    display: block;
    color: #e0e7ec;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.7;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.shoninsha-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* フッター下部の操作ボタン */
.shoninsha-footer-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

.shoninsha-footer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 180px;
    min-height: 48px;
    padding: 7px 15px;
    border: 1px solid #a5b4bf;
    border-radius: 4px;
    background-color: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.shoninsha-footer-actions a i {
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

.shoninsha-footer-actions a:hover {
    background-color: #263c4c;
    color: #ffffff;
}

/* Cocoon既存フッター */
#footer {
    margin-top: 0;
    background-color: #385468;
    color: #ffffff;
}

#footer a {
    color: #ffffff;
}

/************************************
** タブレット・スマートフォン
************************************/

@media screen and (max-width: 834px) {

    .shoninsha-footer-inner {
        width: calc(100% - 30px);
    }

    .shoninsha-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 15px 0;
    }

    .shoninsha-footer-heading {
        font-size: 14px;
    }

    .shoninsha-footer-links a {
        font-size: 12px;
    }

    .shoninsha-footer-actions a {
        min-width: 160px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {

    .shoninsha-footer-nav {
        gap: 20px 12px;
    }

    .shoninsha-footer-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .shoninsha-footer-actions a {
        width: 100%;
        max-width: 280px;
    }
}
/************************************
** フッター背景色を本番環境に統一
************************************/

.shoninsha-footer,
#footer {
    background-color: #072752;
    color: #ffffff;
}

/* ボタンのホバー色 */
.shoninsha-footer-actions a:hover {
    background-color: #123b6b;
}

/************************************
** No.10 記事コピーライト
************************************/

.article-copyright {
    margin: 30px 0 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #666666;
    font-size: 12px;
    text-align: right;
    line-height: 1.6;
}
/************************************
** 前後の記事ナビゲーション
************************************/

#pager-post-navi .prev-post-title::before,
#pager-post-navi .next-post-title::before {
    display: block;
    color: #072752;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.5;
}

#pager-post-navi .prev-post-title::before {
    content: "前の記事";
    text-align: left;
}

#pager-post-navi .next-post-title::before {
    content: "次の記事";
    text-align: right;
}

#pager-post-navi .prev-post-title,
#pager-post-navi .next-post-title {
    font-size: 13px;
    line-height: 1.6;
}

#pager-post-navi .iconfont {
    color: #072752;
}

#pager-post-navi a:hover {
    background-color: #f0f4f7;
}


/************************************
** コメント欄の余白調整
************************************/

#comment-area {
    margin-top: 30px;
    margin-bottom: 30px;
}
/* 投稿カレンダーの配色を本番環境に統一 */
.sidebar #wp-calendar caption,
.sidebar #wp-calendar td a,
.sidebar .wp-calendar-nav a {
    color: #072752;
}

.sidebar #wp-calendar th,
.sidebar #wp-calendar td#today,
.sidebar #wp-calendar td a:hover {
    background-color: #072752;
    color: #ffffff;
}

.sidebar #wp-calendar td#today a {
    color: #ffffff;
}