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

/************************************
** よかワーク カスタムデザイン
** カラーパレット:
**   ピンク: #f19ec2
**   グリーン(よもぎ): #a6cdaa
**   ベージュ背景: #f5f2ed
**   イエロー(企業): #f0e800
**   テキスト: #333333 / #2a2626
**   フォント: 'Noto Sans JP', sans-serif
************************************/

/* ==========================================
   カスタムヘッダー
   ========================================== */
#yokawork-header {
    background: #fff;
    padding: 0 1em 0.5em;
    position: relative;
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #ced4da;
}

.yokawork-header-inner {
    max-width: none;
    margin: 0;
    padding: 0 0em;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
}

.yokawork-siteid {
    margin: 0.25em 0 0;
    font-size: inherit;
    line-height: 1;
}

.yokawork-siteid a {
    display: block;
    max-width: 367px;
    transition: all 0.3s;
}

.yokawork-siteid a:hover {
    transform: translateY(-1px);
}

.yokawork-siteid img {
    width: 100%;
    height: auto;
}

/* ナビゲーション */
.yokawork-header-nav {
    display: flex;
    align-items: center;
}

.yokawork-gnav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.yokawork-gnav>li {
    display: inline-block;
    padding: 0 0.75em;
}

.yokawork-gnav>li a {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.yokawork-gnav>li a:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

/* ヘッダーボタン */
.yokawork-pnav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.yokawork-pnav>li {
    display: inline-block;
    padding-left: 0.5em;
}

.yokawork-pnav li a {
    border-radius: 0 0 13px 13px;
    padding: 1em 1em;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.yokawork-pnav li a span {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
}

.yokawork-pnav li a:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Login Button */
.yokawork-btn-login {
    background: #a6cdaa !important;
}

/* Register Button */
.yokawork-btn-register {
    background: #f19ec2 !important;
}

/* Company Button */
.yokawork-btn-company {
    background: #f0e800 !important;
}

.yokawork-btn-company span {
    color: #000 !important;
}

/* SP用メニューボタン */
.yokawork-menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.yokawork-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #f19ec2;
    border-radius: 2px;
    transition: all 0.3s;
}

.yokawork-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.yokawork-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.yokawork-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   カスタムフッター
   ========================================== */
#yokawork-footer {
    background: #fff;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.yokawork-footer-top {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5em 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
}

.yokawork-footer-brand {
    flex-shrink: 0;
}

.yokawork-footer-brand a {
    display: block;
    width: 392px;
}

.yokawork-footer-brand img {
    width: 100%;
    height: auto;
}

.yokawork-footer-content {
    width: calc(100% - 392px);
    padding-left: 3em;
    box-sizing: border-box;
}

.yokawork-footer-links {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 2em;
}

.yokawork-footer-links a {
    color: #333;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s;
}

.yokawork-footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.yokawork-footer-address {
    color: #333;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 2em;
}

.yokawork-address-name {
    font-size: 22px;
    font-weight: bold;
    width: 100%;
    margin: 0 0 10px;
}

.yokawork-address-name span {
    font-size: 18px;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

.yokawork-footer-address a {
    color: #333;
    text-decoration: none;
}

.yokawork-footer-address a:hover {
    text-decoration: underline;
}

.yokawork-address-phone,
.yokawork-address-fax,
.yokawork-address-site {
    font-size: 15px;
    font-weight: 300;
}

.yokawork-footer-bottom {
    background: #f19ec2;
    padding: 10px 0;
    text-align: center;
}

.yokawork-footer-bottom p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
}

/* ==========================================
   グローバルスタイル（よかワーク準拠）
   ========================================== */
body {
    font-family: 'Noto Sans JP', sans-serif !important;
    color: #2a2626;
    -webkit-font-smoothing: antialiased;
}

/* コンテンツ本体のマージン（ヘッダーとの隙間） */
#content-in,
.content-in,
#content {
    padding-top: 40px;
}

/* ==========================================
   見出しスタイル（よかワーク準拠）
   ========================================== */
/* 記事タイトル */
.article h1,
.entry-title,
h1.entry-title {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700;
    color: #2a2626;
    border-bottom: 3px solid #f19ec2;
    padding-bottom: 0.3em;
}

/* 記事内見出し h2 */
.article h2,
.entry-content h2 {
    background: #f19ec2 !important;
    color: #fff !important;
    padding: 0.7em 1em !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
    margin: 2em 0 1em !important;
    font-family: 'Noto Sans JP', sans-serif !important;
}

/* 記事内見出し h3 */
.article h3,
.entry-content h3 {
    border-left: 5px solid #a6cdaa !important;
    border-bottom: 1px solid #ddd !important;
    background: transparent !important;
    color: #2a2626 !important;
    padding: 0.5em 0.75em !important;
    font-size: 1.15em !important;
    font-weight: 700 !important;
    margin: 1.5em 0 0.8em !important;
}

/* 記事内見出し h4 */
.article h4,
.entry-content h4 {
    border-bottom: 2px dotted #f19ec2 !important;
    color: #2a2626 !important;
    padding-bottom: 0.3em !important;
    font-weight: 700 !important;
    margin: 1.2em 0 0.6em !important;
}

/* ==========================================
   サイドバー見出し
   ========================================== */
.widget_title,
.widget-title,
aside h3,
#sidebar h3,
.sidebar h3,
.sidebar .widget_title,
.widget_categories .widget_title,
.widget_recent_entries .widget_title,
.widget_search .widget_title,
.widget_archive .widget_title,
.widget_recent_comments .widget_title,
aside .widget-title,
.sidebar-scroll .widget_title,
aside h2,
#sidebar h2 {
    background: #a6cdaa !important;
    color: #fff !important;
    padding: 0.6em 1em !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1em !important;
    font-weight: 700 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    border-left: none !important;
    border-bottom: none !important;
}

/* ==========================================
   ボタンスタイル（よかワーク準拠）
   ========================================== */
/* 検索ボタン */
.search-submit,
input[type="submit"],
button[type="submit"] {
    background: #f19ec2 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-weight: 700 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    cursor: pointer;
    transition: all 0.3s !important;
}

.search-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* 「もっと見る」ボタン・続きを読むボタン */
.btn,
.btn-wrap a,
.more-link,
.pagination-next-link {
    background: #f19ec2 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.btn:hover,
.btn-wrap a:hover,
.more-link:hover,
.pagination-next-link:hover {
    background: #e88ab3 !important;
    transform: translateY(-1px);
}

/* ==========================================
   リンクカラー
   ========================================== */
a {
    color: #007bff;
    transition: all 0.3s;
}

a:hover {
    color: #0056b3;
    opacity: 0.8;
}

/* 記事タイトルリンク */
.entry-card-title a,
.related-entry-card-title a,
.new-entry-card-title a {
    color: #2a2626 !important;
    transition: all 0.3s;
}

.entry-card-title a:hover,
.related-entry-card-title a:hover,
.new-entry-card-title a:hover {
    color: #f19ec2 !important;
}

/* ==========================================
   記事カードのスタイル
   ========================================== */
.entry-card-wrap,
.related-entry-card-wrap {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden;
    transition: all 0.3s !important;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* カテゴリラベル */
.cat-label,
.entry-card-info .cat-label {
    background: #a6cdaa !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    padding: 2px 8px !important;
}

/* ==========================================
   ページネーション
   ========================================== */
.page-numbers {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #333 !important;
    transition: all 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
    background: #f19ec2 !important;
    border-color: #f19ec2 !important;
    color: #fff !important;
}

/* ==========================================
   タグ・メタ情報
   ========================================== */
.tag-link,
.entry-category-link {
    background: #f5f2ed !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 30px !important;
    padding: 3px 12px !important;
    font-size: 13px !important;
    transition: all 0.3s;
}

.tag-link:hover,
.entry-category-link:hover {
    background: #f19ec2 !important;
    color: #fff !important;
    border-color: #f19ec2 !important;
}

/* ==========================================
   サイト全体背景（kiyaku.html下層ページ準拠）
   ========================================== */
body {
    background: #f8f9fa !important;
}

/* Cocoonの全体ラッパー */
.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Cocoonのメインコンテンツ（白背景カード風） */
#main,
.main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Cocoonのサイドバー（白背景カード風） */
aside.sidebar,
#sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Cocoonの2カラムレイアウトを確保 */
#content-in,
.content-in {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#main,
.main {
    flex: 1;
    min-width: 0;
}

aside.sidebar,
#sidebar {
    width: 336px;
    flex-shrink: 0;
}

/* ==========================================
   目次 (TOC)
   ========================================== */
.toc {
    border: 2px solid #a6cdaa !important;
    border-radius: 8px !important;
    background: #fafff9 !important;
}

.toc-title {
    color: #333 !important;
    font-weight: 700 !important;
}

/* ==========================================
   引用 (blockquote)
   ========================================== */
blockquote {
    border-left: 5px solid #f19ec2 !important;
    background: #fdf5f8 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* ==========================================
   コラムページ専用タイトル
   ========================================== */
.site-name-text,
.logo-header {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700;
    color: #2a2626;
}

/* ==========================================
   パンくずリスト
   ========================================== */
.breadcrumb {
    font-size: 13px;
    color: #666;
    background: #f5f2ed !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
}

.breadcrumb a {
    color: #007bff;
}

/* ==========================================
   Cocoon固有の上書き
   ========================================== */
/* Cocoonのサイトタイトル非表示（カスタムヘッダー使用のため） */
.site-name-text-link,
.tagline,
.header-container-in .logo-header,
.navi-in {
    display: none !important;
}

/* Cocoonのモバイルメニューボタン非表示 */
.menu-button,
.navi-menu-content,
.mobile-menu-buttons {
    display: none !important;
}

/* フッターリンク色調整 */
#yokawork-footer a {
    color: #333;
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f2ed;
}

::-webkit-scrollbar-thumb {
    background: #f19ec2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e88ab3;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1350px以下*/
@media screen and (max-width: 1350px) {
    .yokawork-siteid a {
        width: 25vw;
    }

    .yokawork-gnav>li {
        padding: 0 0.5em;
    }

    .yokawork-gnav>li a {
        font-size: clamp(13px, 3.25vw, 15px);
    }

    .yokawork-pnav li a {
        padding: 1em 0.75em;
    }

    .yokawork-pnav li a span {
        font-size: clamp(11px, 3.0vw, 13px);
    }
}

/*991px以下（タブレット）*/
@media screen and (max-width: 991px) {
    .yokawork-menu-toggle {
        display: flex;
    }

    .yokawork-header-nav {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 998;
        flex-direction: column;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .yokawork-header-nav.show {
        display: flex !important;
    }

    .yokawork-gnav {
        flex-direction: column;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .yokawork-gnav>li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .yokawork-gnav>li a {
        padding: 1em 1.5em;
        text-align: left;
    }

    .yokawork-pnav {
        width: 100%;
        flex-direction: row;
    }

    .yokawork-pnav>li {
        width: calc(100% / 3);
        padding: 0;
    }

    .yokawork-pnav li a {
        border-radius: 0;
        height: auto;
        padding: 1em 0.5em;
    }

    .yokawork-pnav li a span {
        font-size: clamp(12px, 3.25vw, 14px);
    }

    .yokawork-siteid a {
        width: 45vw;
    }

    /* フッター */
    .yokawork-footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .yokawork-footer-brand a {
        width: 250px;
        margin: 0 auto 20px;
    }

    .yokawork-footer-content {
        width: 100%;
        padding-left: 0;
    }

    .yokawork-footer-links {
        justify-content: center;
    }

    .yokawork-footer-address {
        justify-content: center;
        text-align: center;
    }

    .yokawork-address-name {
        font-size: 18px;
    }

    /* サイドバーを1カラムに */
    #content-in,
    .content-in {
        flex-direction: column;
    }

    aside.sidebar,
    #sidebar {
        width: 100%;
    }
}

/*767px以下（スマートフォン）*/
@media screen and (max-width: 767px) {
    #yokawork-header {
        padding: 0.75em;
    }

    .yokawork-header-nav {
        top: 55px;
    }

    .yokawork-siteid a {
        width: 50vw;
    }

    .yokawork-pnav li a {
        flex-direction: column;
        padding: 0.75em 0.5em;
    }

    .yokawork-footer-top {
        padding: 1.5em 15px;
    }

    .yokawork-address-name {
        font-size: 16px;
    }

    .yokawork-address-phone,
    .yokawork-address-fax,
    .yokawork-address-site {
        font-size: 13px;
    }

    /* 記事見出し調整 */
    .article h2,
    .entry-content h2 {
        font-size: 1.15em !important;
        padding: 0.6em 0.8em !important;
    }

    .article h3,
    .entry-content h3 {
        font-size: 1.05em !important;
    }
}

/*480px以下*/
@media screen and (max-width: 480px) {
    .yokawork-pnav li a span {
        font-size: 11px;
    }

    .yokawork-footer-links {
        gap: 0.5em 1em;
    }

    .yokawork-footer-links a {
        font-size: 14px;
    }
}