/*
Theme Name: 鈴木亭 Twenty Seventeen Child
Description: 鈴木亭ブログ用 Twenty Seventeen 子テーマ
Author: 鈴木亭
Template: twentyseventeen
Version: 1.0
*/

/* =========================================
   ここから鈴木亭ブログ専用CSS
========================================= */

/* =========================================
   Twenty Seventeen・PC版カラム幅調整
========================================= */
@media screen and (min-width: 1024px) {

    /* 記事＋右カラムを囲む全体幅 */
    .site-content .wrap {
        width: 940px;
        max-width: 940px;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    /* 左側：記事本文 */
    .has-sidebar:not(.error404) #primary {
        width: 600px;
        float: left;
    }

    /* 右側：サイドバー */
    .has-sidebar #secondary {
        width: 230px;
        float: right;
        padding-top: 0;
    }
}
/* PC版：ロゴの左位置を記事本文と揃える */
@media screen and (min-width: 1024px) {
    .site-branding .wrap {
        width: 940px !important;
        max-width: 940px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }
}

/* =========================================
   PC版・メインメニュー
========================================= */
@media screen and (min-width: 1024px) {

    /* メニュー帯全体 */
    .navigation-top {
        height: 53px;
        min-height: 53px;
        margin: 0;
        padding: 0;
        background-color: #311c22;
        border: none;
    }

    /* ロゴ・記事本文と同じ横幅に揃える */
    .navigation-top .wrap {
        width: 940px;
        max-width: 940px;
        height: 53px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    /* メニュー部分 */
    .main-navigation {
        height: 53px;
        margin: 0;
        padding: 0;
        background-color: transparent;
    }

    .main-navigation > div,
    .main-navigation > div > ul,
    .main-navigation > div > ul > li {
        height: 53px;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* メニューリンク */
    .main-navigation > div > ul > li > a {
        height: 53px;
        margin: 0;
        padding: 0 15px;
        box-sizing: border-box;
        color: #ffffff;
        font-size: 14px;
        line-height: 53px;
        background-color: transparent;
		font-weight: normal;
    }

    /* ロールオーバー時：文字色だけ変更 */
    .main-navigation > div > ul > li:hover > a,
    .main-navigation > div > ul > li > a:hover,
    .main-navigation > div > ul > li > a:focus {
        color: #b9b2b4;
        background-color: transparent;
    }

    /* 現在表示中のページ */
    .main-navigation .current-menu-item > a,
    .main-navigation .current-menu-ancestor > a {
        color: #ffffff;
        background-color: transparent;
    }
}

/* =========================================
   ヘッダー最上部・ページタイトル帯
========================================= */
.header-page-title {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #eeeeee;
    border-bottom: 1px solid #cccccc;
    box-sizing: border-box;
}

.header-page-title-inner {
    width: 940px;
    max-width: calc(100% - 40px);
    min-height: 36px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-page-title h1 {
    margin: 0;
    padding: 0;
    color: #333333;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    text-align: right;
}

@media screen and (max-width: 767px) {
    .header-page-title-inner {
        width: 100%;
        max-width: none;
        min-height: 30px;
        padding: 0 15px;
    }

    .header-page-title h1 {
        font-size: 11px;
    }
}

/* =========================================
   PC：ロゴ部分の高さ
========================================= */
@media screen and (min-width: 1024px) {

    .site-header .site-branding {
        height: 127px !important;
        min-height: 127px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .site-branding .wrap {
        height: 127px !important;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .custom-logo-link {
        line-height: 0;
    }
}

/* =========================================
   PC・タブレット：
   トップページの記事＋右カラムを
   個別記事と同じ開始位置に揃える
========================================= */
@media screen and (min-width: 768px) {

    body.home #content.site-content > .wrap,
    body.blog #content.site-content > .wrap {
        position: relative !important;
        top: -44px !important;
    }
}

/* =========================================
   右カラムの見出し
========================================= */
#secondary .widget-title {
    margin-bottom: 0.7em;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

/* =========================================
   SNS：Threadsアイコン
========================================= */

/* WordPress標準のリンクアイコンを非表示 */
.social-navigation a[href*="threads.com"] .icon,
.social-navigation a[href*="threads.com"] svg,
.social-navigation a[href*="threads.net"] .icon,
.social-navigation a[href*="threads.net"] svg {
    display: none !important;
}

/* 丸の中央へ配置する基準 */
.social-navigation a[href*="threads.com"],
.social-navigation a[href*="threads.net"] {
    position: relative;
}

/* Threadsアイコンを中央に表示 */
.social-navigation a[href*="threads.com"]::before,
.social-navigation a[href*="threads.net"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    background-image: url("images/threads.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* SNSアイコン4個の上端を揃える */
.social-navigation li {
    vertical-align: top;
}
.social-navigation a {
    vertical-align: top;
}

/* =========================================
   全ページ共通：右カラムを20px下げる
========================================= */

@media screen and (min-width: 768px) {
    #secondary.widget-area {
        position: relative !important;
        top: 20px !important;
    }
}

/* =========================================
   スマホ版メニュー
========================================= */

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

    /* メニュー帯：PC版と同じ色 */
    .navigation-top,
    .main-navigation,
    .main-navigation > div,
    .main-navigation ul {
        background-color: #311c22 !important;
    }

    /* 「メニュー」の文字 */
    button.menu-toggle,
    button.menu-toggle:hover,
    button.menu-toggle:focus,
    button.menu-toggle:active,
    .main-navigation.toggled-on button.menu-toggle,
    .main-navigation.toggled-on button.menu-toggle:hover,
    .main-navigation.toggled-on button.menu-toggle:focus,
    .main-navigation.toggled-on button.menu-toggle:active {
        color: #fff !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        text-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    /* 開いたメニューのリンク */
    .main-navigation a,
    .main-navigation a:visited {
        color: #fff !important;
        background-color: transparent !important;
    }

    /* リンクをタップ・選択したとき */
    .main-navigation a:hover,
    .main-navigation a:focus,
    .main-navigation a:active {
        color: #fff !important;
        background-color: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* メニュー項目間の線 */
    .main-navigation > div > ul {
        border-top-color: rgba(255, 255, 255, 0.25) !important;
    }
}

/* =========================================
   スマホ版：記事部分の調整
========================================= */

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

    /* 個別ページをメインページの余白に近づける */
    #content.site-content {
        padding-top: 40px !important;
    }

    /* メインページは現在の位置を維持 */
    body.home #content.site-content,
    body.blog #content.site-content {
        padding-top: 0 !important;
    }

    /* メイン・個別の記事タイトルを統一 */
    body.home .entry-title,
    body.blog .entry-title,
    body.single .entry-title {
        font-size: 24px !important;
        line-height: 1.4 !important;
    }

    body.home .entry-title a,
    body.blog .entry-title a,
    body.single .entry-title a {
        font-size: inherit !important;
        line-height: inherit !important;
    }
}
/* =========================================
   PC版：個別記事のタイトル位置調整
========================================= */

@media screen and (min-width: 768px) {
    body.single-post .entry-header .entry-title {
        position: relative;
        left: -2px;
    }
}
/* =========================================
   PC版：個別ページ全体を2px上へ調整
========================================= */

@media screen and (min-width: 768px) {
    body.single-post #content.site-content > .wrap {
        position: relative;
        top: -1px;
    }
}
/* =========================================
   スマホ版：個別記事タイトルの左位置調整
========================================= */
@media screen and (max-width: 767px) {
    body.single-post .entry-header .entry-title {
        text-indent: -2px;
    }
}
/* 個別記事のH2タイトルを黒にする */
body.single-post h2.entry-title {
    color: #000 !important;
}