@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;
}


/* Voice detail pages only */
.shoninsha-voice-detail {color:#333;font-size:15px;line-height:1.8;overflow-wrap:anywhere;}
.shoninsha-voice-detail *, .shoninsha-voice-detail *::before, .shoninsha-voice-detail *::after {box-sizing:border-box;}
.shoninsha-voice-detail .svd-banner {text-align:center;margin:0 0 22px;}
.shoninsha-voice-detail img {max-width:100%;height:auto;vertical-align:middle;}
.shoninsha-voice-detail .svd-heading {margin:0 0 24px;padding:12px 15px;background:#072752;color:#fff;font-size:18px;line-height:1.6;border:0;}
.shoninsha-voice-detail .svd-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.shoninsha-voice-detail .svd-card {display:flow-root;min-width:0;padding:16px;border:1px solid #ccd5e0;background:#fff;border-top:3px solid #072752;}
.shoninsha-voice-detail .svd-wide {grid-column:1/-1;}
.shoninsha-voice-detail .svd-card p {margin:0 0 12px;font-size:15px;line-height:1.8;}
.shoninsha-voice-detail .svd-card p:has(> img:only-child) {text-align:center;}
.shoninsha-voice-detail .svd-card p:last-child {margin-bottom:0;}
.shoninsha-voice-detail .svd-card img {display:inline-block;width:auto;max-height:260px;object-fit:contain;}
.shoninsha-voice-detail .svd-card .svd-photo-right {float:right;width:40%;margin:0 0 12px 16px;}
.shoninsha-voice-detail .svd-card .svd-photo-left {float:left;width:40%;margin:0 16px 12px 0;}
.shoninsha-voice-detail .svd-photo-group {float:right;width:40%;margin:0 0 12px 16px;}
.shoninsha-voice-detail .svd-author {clear:both;text-align:right;color:#072752;font-weight:bold;}
.shoninsha-voice-detail .svd-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:30px 0 0;}
.shoninsha-voice-detail .svd-nav a {display:block;text-align:center;padding:5px;border:1px solid #d6dde6;}
.shoninsha-voice-detail .svd-nav a[aria-current=page] {outline:2px solid #072752;outline-offset:-2px;}
@media(max-width:600px){.shoninsha-voice-detail .svd-grid,.shoninsha-voice-detail .svd-nav {grid-template-columns:minmax(0,1fr);}.shoninsha-voice-detail .svd-card .svd-photo-right,.shoninsha-voice-detail .svd-card .svd-photo-left,.shoninsha-voice-detail .svd-photo-group {float:none;display:block;width:auto;max-width:100%;margin:0 auto 12px;}.shoninsha-voice-detail .svd-heading {font-size:16px;}.shoninsha-voice-detail .svd-card {padding:12px;}}




/* ========================================
   商人舎 お問い合わせフォーム
======================================== */

.shoninsha-contact {
    width: 100%;
    margin: 20px auto 40px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.shoninsha-contact * {
    box-sizing: border-box;
}

.shoninsha-contact .contact-notice {
    margin-bottom: 20px;
    font-size: 14px;
}

.shoninsha-contact .contact_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 30px;
}

.shoninsha-contact .contact_table th,
.shoninsha-contact .contact_table td {
    border: 1px solid #d5d5d5;
    padding: 15px;
    vertical-align: middle;
}

.shoninsha-contact .contact_table th {
    width: 30%;
    background: #f3f5f8;
    color: #072752;
    text-align: left;
    font-weight: bold;
}

.shoninsha-contact .contact_table td {
    background: #fff;
}

.shoninsha-contact .required {
    display: inline-block;
    margin-left: 6px;
    color: #c62828;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.shoninsha-contact .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.shoninsha-contact input[type="text"],
.shoninsha-contact input[type="email"],
.shoninsha-contact input[type="tel"],
.shoninsha-contact textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.shoninsha-contact input:focus,
.shoninsha-contact textarea:focus {
    border-color: #072752;
    outline: 2px solid rgba(7, 39, 82, 0.12);
}

.shoninsha-contact input.postal-code {
    max-width: 180px;
}

.shoninsha-contact textarea {
    min-height: 180px;
    resize: vertical;
}

.shoninsha-contact .contact-submit {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.shoninsha-contact input[type="submit"] {
    display: inline-block;
    width: 280px;
    max-width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 3px;
    background: #072752;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.shoninsha-contact input[type="submit"]:hover {
    opacity: 0.8;
}

.shoninsha-contact .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 13px;
    color: #c62828;
}

.shoninsha-contact .wpcf7-not-valid {
    border-color: #c62828;
}

.shoninsha-contact .wpcf7-spinner {
    position: absolute;
    margin: 12px 8px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {

    .shoninsha-contact {
        margin: 15px auto 30px;
        font-size: 14px;
    }

    .shoninsha-contact .contact_table,
    .shoninsha-contact .contact_table tbody,
    .shoninsha-contact .contact_table tr,
    .shoninsha-contact .contact_table th,
    .shoninsha-contact .contact_table td {
        display: block;
        width: 100%;
    }

    .shoninsha-contact .contact_table {
        border: none;
    }

    .shoninsha-contact .contact_table tr {
        margin-bottom: 15px;
    }

    .shoninsha-contact .contact_table th {
        padding: 10px 12px;
        border-bottom: none;
    }

    .shoninsha-contact .contact_table td {
        padding: 12px;
    }

    .shoninsha-contact input[type="submit"] {
        width: 100%;
    }
}
