Astra-child テーマを編集

/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/



/* メニュー関連 */
.content-align-flex-start .main-header-menu {
text-align: right;
}



/* Astra ヘッダー html1 フォント */
.ast-header-html-1 {
font-family: 'Manrope', sans-serif;
font-weight: bold;
letter-spacing: -.5px;
}

/* 単語改行制限、インラインブロック化 */
span.no-wrap {
display: inline-block;
}
.ast-header-break-point .main-header-bar .ast-builder-html-element {
line-height: 1.5;
}

/* ＝＝＝フォント＝＝＝ */

/* 見出し・文字余白ツメる */
h1 {
font-feature-settings: "palt";
letter-spacing: 1px;
}


/* 投稿テキスト幅調整 */
.entry-content p {
width: 75%;
}
.wp-block-quote p {
width: 100%;
font-size: 1.5rem;
	line-height:1.4;
}


/* アーカイブアイコンサイズ */
.ast-blog-layout-4-grid .ast-article-inner .wp-post-image {
padding: 1rem;
margin-bottom: -2rem;
}


/* Google reCAPTCHA　マークを非表示に */
.grecaptcha-badge { visibility: hidden; }


/* ＝＝＝Contact Form 7 ここから＝＝＝ */
/* フォーム全体のスタイル */
.wpcf7 {
background-color: #f5f5f7;
padding: 16px;
border-radius: 10px;
/* max-width: 640px; */
margin: auto;
}
/* ラベルのスタイル */
.wpcf7-form label {
display: block;
margin-bottom: 16px;
font-size: 16px;
color: #333333;
}
/* 必須フィールドのラベルスタイル */
.wpcf7-form .required {
background-color: #ff0000;
color: white;
padding: 2px 4px;
border-radius: 5px;
margin-left: 10px;
font-size: 12px;
}
/* インプットフィールドのスタイル */
.wpcf7-form textarea {
width: 100%;
padding: 10px;
border: 1px solid #bdbdbd;
/* border-radius: 8px; */
margin-bottom: 0px;
font-size: 17px;
background-color: #ffffff;
}
/* テキストエリアのスタイル */
.wpcf7-form textarea {
height: 200px;
resize: vertical;
}
/* 送信ボタンのスタイル */
.wpcf7-form input[type="submit"] {
background-color: #0077BB;
color: white;
font-size: 17px;
padding: 9px 15px;
cursor: pointer;
/* transition: background-color 0.3s ease; */
border: none;
}
.wpcf7-form input[type="submit"]:hover {
background-color: #000000;
}
/* エラーメッセージと成功メッセージのスタイル */
.wpcf7-form .wpcf7-not-valid-tip {
color: red;
font-size: 14px;
}
.wpcf7-form .wpcf7-mail-sent-ok {
color: green;
font-size: 16px;
margin-bottom: 20px;
}
/* ＝＝＝Contact Form 7 ここまで＝＝＝ */
	



/* ＝＝＝ナビゲーション＝＝＝ */

.single .post-navigation {
    margin: 0;
    padding-bottom: 36px;
    border-top: 1px solid #aaaaaa;
}

/* 投稿ナビ左右入替 */

/* ←→を消す */
.single .post-navigation a svg {
display: none;
}


/* 新しい記事 */
.single .post-navigation .nav-previous {
text-align: right; 
}
.single .post-navigation .nav-previous a {
text-align: right;
padding-left: 1rem;
padding-right: 0;
}

/* 古い記事 */
.single .post-navigation .nav-next {
text-align: left; 
}
.single .post-navigation .nav-next a {
text-align: left;
padding-right: 1rem;
padding-left: 0;
}




.midashi {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* 投稿 フォントサイズ */
p.has-large-font-size {
line-height: 1.33;
}


/* 投稿スペーサー */
.wp-block-spacer.flex-space
{
height: 2rem !important;
}


/* 左右ブロック入れ替え（リバース） */

    .single .post-navigation .nav-links {
        -js-display: flex;
        display: flex;
        width: 100%;
		flex-direction: row-reverse;
    }

.comment-navigation .nav-previous:after, .post-navigation .nav-previous:after {
width: 0px;
}

.single .post-navigation a .ast-post-nav {
display: none;
}
.single .post-navigation a p {
display: block;
}

@media (max-width: 600px) {
.single .post-navigation .nav-links {
-js-display: inline-flex;
display: inline-flex;
width: 100%;
padding-left: 0;
padding-right: 0;
flex-direction: row-reverse;
}
/* 投稿テキスト幅調整 */
.entry-content p {
width: 100%;
}
/* 投稿スペーサー */
.wp-block-spacer.flex-space
{
height: 1rem !important;
}
}

/* タグクラウド */
.wp-block-tag-cloud a {
color: #333333;
}
.wp-block-tag-cloud a:focus {
color: #0088cc;
}
.wp-block-tag-cloud a:hover {
color: #0088cc;
}


/* アーカイブナビ */
/* ページネーション */
.ast-pagination .prev.page-numbers {
display: none;
}
.ast-pagination .next.page-numbers {
display: none;
}

.ast-pagination .page-numbers {
width: 3em;
}

@media (max-width:921px) {	
.ast-container {
padding-left: 30px;
padding-right: 30px;
}
	
.ast-blog-layout-4-grid .ast-article-post {
width: 33.33%;
margin-bottom: 20px;
}
.ast-article-inner {
padding: 15px;
}
.ast-grid-common-col {
padding-left: 10px;
padding-right: 10px;
}
}

@media (min-width: 782px) {
 
    }

@media (max-width: 781px) {

.ast-blog-layout-4-grid .ast-article-post {
width: 50%;
}
.ast-article-inner {
padding: 10px;
}
.ast-grid-common-col {
padding-left: 10px;
padding-right: 10px;
}
}

@media (min-width: 544px) {

    }

@media (max-width: 544px) {
.ast-pagination .page-numbers {
width: 2.5em;
}
}



