/*
	Theme Name: Zinnias Lite child
	Theme URI: http://shapedtheme.com/wordpress/themes/zinnias-lite-free-wordpress-blog-theme
	Author: ShapedTheme
	Author URI: http://shapedtheme.com
	Description: Zinnias Liteの子テーマ
    Template: zinnias-lite
	Version: 1.3.1
	License: GNU General Public License
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Tags: two-columns, right-sidebar, custom-background, custom-menu, featured-images, post-formats, sticky-post, translation-ready
	Text Domain: zinnias-lite
*/


/*----------------------------------------
    elements
------------------------------------------*/
body {
    font-family: Helvetica,Verdana,Arial,"ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN","游ゴシック",YuGothic,"メイリオ",Meiryo,sans-serif;
    font-size: 16px;
}

p{
    line-height: 26px;
}

a{
    text-decoration: none;
}

.wrap{
    margin: 0 auto;
    padding: 0 15px;
    max-width: 840px;
    position: relative;
}

/* Post */
.post {
    padding: 120px 15px 20px ;
}
.post-title-container {
    text-align: left;
    padding: 30px 0 40px 0;
    color: #002b4e;
}
.post-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4em;
    margin: 0 0 0.5em;
    border-bottom: #ddd 3px solid;
    padding-bottom: 16px;
}
.post-info{
    padding-bottom: 12px;
}
.post-date {
    font-size: 16px;
    font-weight: 500;
}
.post-category {
    border: 1px solid #042a4c;
    border-radius: 15px;
    box-sizing: border-box;
    min-width: 80px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: bold;
    color: #042a4c;
    margin-left: 10px;
}
.post-content{
    padding-bottom: 60px;
}
.post-content p {
    margin: 0;
}
.post-content a{
    text-decoration: underline;
    &:hover{
    color: #77c2fd;
    }
}
.post-content table, .comment-content table {
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
}
.post-content table tr, .comment-content table tr {
    border-bottom: 1px solid #ddd;
}
.post-content table tr th, .comment-content table tr th {
    background: none repeat scroll 0 0 #eee;
}
.post-content table tbody tr th {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
}
.post-content table tr th, table tr td, .comment-content table tr td {
    border-left: 1px solid #ddd;
    padding: 10px;
}

.post-content ol, 
.post-content ul {
    margin-bottom: 20px;
}

.post-button-container {
    text-align: center;
    padding: 12px 0;
    margin: 60px 0;

}
.post-button {
    color: #042a4c;
    font-weight: 700;
    transition: 0.2s;
    position: relative;
    padding: 15px 60px;
    font-size: 18px;
    border: 1px solid #042a4c;
    border-radius: 30px;
}
.post-button:hover {
    color: #77c2fd;
    border: 1px solid #77c2fd;
}

/* Pagination */
.navigation.pagination {
    text-align: center;
    padding: 60px 0;
}
.page-numbers {
    border:1px solid #002b4e;
    background-color:#ffffff;
    padding:10px 16px;
    color:#002b4e;
    margin:0 5px;
    &:hover{
        color: #77c2fd;
        border: 1px solid #77c2fd;
    }
}
.page-numbers.current {
    border:1px solid #002b4e;
    background-color:#002b4e;
    padding:10px 16px;
    color:#ffffff;
    margin:0 5px;
    
}
.prev.page-numbers,
.next.page-numbers{
    background: none;
    border: none;
    color: #042a4c;
    font-size: 24px;
    &:hover{
        color: #77c2fd;
    }
}
.prev.page-numbers{
    padding-left: 0;
} 
.next.page-numbers{
    padding-right: 0;

}
.page-numbers.dots{
    background: none;
    color: #042a4c;
    border: none;
    font-size: 24px;
    padding: 0;
}

/* Archive */
.archive-header{
    padding-top: 100px;
    padding-bottom: 60px;
    border: 0px solid #e2e2e2;
    margin-top: 0;
    text-align: center;
    background-color: #002b4e;
}
.archive-header span { 
    font-size: 36px;
    color: #fff;
    font-weight: bold;
}
.archive-tabs-container {
    background: #fff;
    border-radius: 20px;
    margin: 40px 0;
    padding: 35px 40px 20px;
    border: #f3f4f5 6px solid;
    border-radius: 10px;
    box-shadow: 0 0 4px #cacacacc;
}
.archive-tabs-container dl {
    margin: 0;
    padding: 0 0 0 87px;
    position: relative;
}
.archive-tabs-container dl dt {
    color: #042a4c;
    font-size: 16px;
    font-weight: 700;
    left: 0;
    position: absolute;
    width: 60px;
}
.archive-tabs-container dl dt::before {
    background: #042a4c;
    bottom: 3px;
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 1px;
}
.archive-tabs-container dl dd {
    margin: 0;
}
.archive-tabs-container dl dd ul {
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
}
.archive-tabs-container dl dd ul li {
    float: left;
    font-size: 14px;
    margin: 0 16px 15px 0;
}
.archive-tabs-container dl dd ul li a {
    border: 1px solid #042a4c;
    border-radius: 15px;
    box-sizing: border-box;
    color: #042a4c;
    display: block;
    line-height: 28px;
    min-width: 94px;
    padding: 0 15px;
    text-align: center;
    text-decoration: none;
}
.archive-tabs-container dl dd ul li a:hover {
    color: #77c2fd;
    border: 1px solid #77c2fd;
}
.archive-tabs-container dl dd ul li.current a {
    background-color: #002b4e;
    border: 1px solid #002b4e;
    color: #fff;
}
.archive-list-container {
    padding: 10px;
}
.archive-list-item {
    border-bottom: 1px solid #042a4c;
    margin-bottom: 22px;
}
.archive-list-item .archive-date{
    font-size: 14px;
    font-weight: bold;
    color: #bbb;
}
.archive-list-item .archive-category {
    border: 1px solid #b4b5b7;
    border-radius: 15px;
    box-sizing: border-box;
    min-width: 80px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #b4b5b7;
}
.archive-list-item .archive-title {
    font-weight: bold;
    font-size: 20px;
    padding: 15px 0 25px 0;
    position: relative;
}
.archive-list-item .archive-title a {
    color: #042a4c;
    display: block;
    transition: all .2s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}
.archive-list-item .archive-title a:hover {
    color: #77c2fd;
}
.title-link {
    padding-right: 80px;
}
.button-link {
    position: relative;
}
.button-link::after {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 7px 11px;
    margin-top: -35px;
    font-weight: 700;
    background-color: #f3f4f5;
    border-radius: 30px;    
}
.archive-list.empty {
    text-align: center;
    padding: 20px 0 50px 0;
    font-size: 24px;
    font-weight: 400;
}

@media only screen and (max-width: 1024px) {
    .archive-header{
        margin-top: 60px
    }
}

@media only screen and (max-width : 520px) {
    .navigation.pagination{
        padding: 40px 0;
    }
    .page-numbers{
        padding: 5px 10px;
        margin: 4px;
    }
    .page-numbers.current{
        padding: 5px 10px;
        margin: 0;
    }
    .page-numbers.dots{
        font-size: 16px;
    }
}

@media only screen and (max-width : 480px) {
	.main-logo-section {
		height: 65px;
	}
	.main-logo {
		width: 50%;
		float: left;
	}
    .archive-header{
        margin-top: 0;
        padding-bottom: 30px;
    }
    .archive-header span{
        font-size: 24px;
    }
    /* SP: 固定ヘッダー(約65px)に合わせてパンくずの上余白を縮小 */
    .main > .breadcrumb{
        margin-top: 66px;
    }
	.zinnias-main-wrap {
		padding: 0 5px;
	}
    .post {
        padding: 110px 0 20px;
    }
    .archive-list-container {
        padding: 10px 0;
    }
    .archive-tabs-container {
        padding: 16px;
    }
    .archive-tabs-container dl {
        padding: 0;
    }
    .archive-tabs-container dl dt {
        border-bottom: 1.5px solid #042a4c;
        margin: 0 0 14px;
        position: static;
        width: auto;
    }
    .archive-tabs-container dl dt::before {
        width: 0px;
    }
    .archive-tabs-container dl dd ul li {
        float: left;
        font-size: 15px;
        margin: 0 5px 10px 0;
    }
    .title-link{
        padding-right: 48px;
    }
    .post-content{
        padding-bottom: 30px;
    }
    .post-title-container{
        padding-bottom: 20px;
    }
    .post-title{
        font-size: 22px;
    }
    .post-date{
        display: block;
        margin-bottom: 6px;
    }
    .post-button-container{
        margin: 40px 0;
    }
    .post-category{
        margin-left: 0;
    }

}

/* パンくずリスト: 固定ヘッダー(約80px)の裏に隠れないよう上に余白を確保し、
   記事(.post)/一覧バナー(.archive-header)の「上」に表示する。
   blog はパンくずが .main 直下に出力されるため、他ページに影響しない子テーマCSSで対応。 */
.main > .breadcrumb {
    margin-top: 80px;
    position: relative;
    z-index: 1;
}
/* 直後の要素が持つ上方向オフセットを打ち消し、二重の余白を防ぐ */
.main > .breadcrumb + .archive-header {
    margin-top: 0;
}
.main > .breadcrumb + .wrap > .post {
    padding-top: 24px;
}

/* SP: 記事下のCV導線ボタン（無料トライアル／資料ダウンロード）の崩れを修正。
   共有の conversion_btns.php はデバイス別にボタンHTMLを出し分けるが、/blog/ は
   LiteSpeed の全ページキャッシュが User-Agent で振り分かない（vary: Accept-Encoding のみ）ため、
   デスクトップ用ボタン（.w380 = 固定幅380px、資料ボタンは2行ラベル）がSPにも配信される。
   その結果、380px幅がコンテナ幅(≒345px)を超えて右にはみ出し、資料ボタンの2行目
   「資料ダウンロード」が固定高さ(60px)からあふれて下の要素と重なる。
   サーバー側の分岐に依存せず、配信されるHTMLをそのままSP幅に収める（子テーマCSSのため
   /blog/ 以外には影響しない）。 */
@media only screen and (max-width: 480px) {
    /* 共通: 幅をSPに収め中央寄せ。ラベルは flex で上下・左右中央に置く。
       flex 中央寄せにすることで、共通CSSから継承する非対称な padding
       （registLnk の padding-top:8px 等）や 3D 下枠(border-bottom)の影響を受けず、
       1行ボタンでも文字が上に寄らない。キャレット(::after)の絶対配置基準も兼ねる。 */
    .post .regist_area .conversions_btns_box .button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.3;
        padding-top: 0;
        padding-bottom: 0;
        /* registLnk 側はボタンに position 指定が無く、キャレットが .wrap に
           吸着してしまうため明示する。 */
        position: relative;
    }
    /* 資料ボタン（2行ラベル）だけ高さを内容に合わせ、上下の余白を確保する */
    .post .regist_area .conversions_btns_box .shiryou_lnk.button.row2 {
        height: auto;
        min-height: 60px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* キャレット（右端の▶）はボタンの上下中央に配置。
       サイト共通の 480px 用は bottom:7px（右下寄り）なので、bottom:50% +
       translateY(50%) で中央寄せに上書きする（▲を90°回転して右向き▶に）。 */
    .registLnk_content.withCaret::after,
    .shiryouLnk_content::after {
        content: "\025b2";
        right: 13px;
        bottom: 50%;
        font-size: 18px;
        transform: translateY(50%) rotate(90deg);
        /* 共通CSSの padding-left:15px を打ち消し、キャレット位置を安定させる */
        padding-left: 0px;
    }
}


