@charset "UTF-8";

/*
Theme Name:   THE SONIC Child
Theme URI:    https://the-sonic.jp
Description:  THE SONICカスタマイズ用子テーマ
Author:       SONIC Team
Author URI:   https://the-sonic.jp
Template:     thesonic
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/*
* ここから下に記述
*/

/* 最上部の画像のみスマホ表示の際に全幅表示にする（クラス名: wide-on-mobile） */
	@media screen and (max-width: 767px) {
  .wp-block-image.wide-on-mobile {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .wp-block-image.wide-on-mobile img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

/* デスクトップ表示の際のコンテンツ幅をカスタマイズ */
	@media (min-width: 767px) {
    body.page-template-page-3, body.page-template-page-3-1 {
    margin: 0 auto;
    overflow-x: hidden;
    width: 680px;
  }
}

/* 画像をボーダーで囲う追加CSS: img-border */
.img-border {
  border: 1px solid #e0e0e0;
  display: block;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
}

p {
	margin-top: 0;
    margin-bottom: 1.4em;
}

/* サブタイトル */
.sub-title {
  margin-top: -1.2em;    /* 上の余白を狭く */
  margin-bottom: -1.0em; /* 下の余白も調整 */
}

/* 見出し1 */
h1.wp-block-heading {
  font-size: 24px; /* または 24px とかお好みで */
  line-height: 1.5;   /* 行間も整える */
  font-weight: bold; /* お好みで調整 */
  margin-bottom: 0.8em;
}

/* 見出し2 */
h2.wp-block-heading {
  font-size: 24px; /* または 24px とかお好みで */
  line-height: 1.5;   /* 行間も整える */
  font-weight: bold; /* お好みで調整 */
  margin-top: 1.2em;
  margin-bottom: 0.8em;
}

/* 見出し3 */
h3.wp-block-heading {
  font-size: 19px; /* または 24px とかお好みで */
  line-height: 1.2;   /* 行間も整える */
  font-weight: bold; /* お好みで調整 */
  margin-top: 1.2em;
  margin-bottom: 0.8em;
}

/* 見出し4 */
h4.wp-block-heading {
  font-size: 17px; /* または 24px とかお好みで */
  line-height: 1.2;   /* 行間も整える */
  font-weight: bold; /* お好みで調整 */
}

/* 見出しのテキストを黒に変更 */
.heading-h2-mark1 h2, .heading-h3-mark1 h3, .heading-h4-mark1 h4 {
    color: #222;
    padding: 8px 16px;
}

/* 引用1/2（THE SONICの固定ページの「LP ※全幅ブロック推奨」専用の装飾）*/
body.page-template-page-3 .wp-block-quote, .wp-block-quote.is-style-large {
	position: relative;
	margin: 1.5em 0 !important;
	padding: 0 0 0 1.2em !important;
	border-left: none !important;
	background: transparent !important;
  	font-size: 1em !important; /* 相対的に指定。16pxになる */
	color: inherit !important;
}

/* 引用2/2（THE SONICの固定ページの「LP ※全幅ブロック推奨」専用の装飾）*/
body.page-template-page-3 .wp-block-quote::before {
	content: "" !important;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background-color: #B5B5B5;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	display: block;
}

/* リストのアイコン位置の調整（全体） */
ul.wp-block-list {
    padding-left: 0px; /* もしくは、調整したい値 */
    margin-left: 30px; /* ここも調整できる */
}

/* リストのアイコン位置の調整（アクセントカラー） */
ul[class*=is-style-list-simple] li:before {
    border-radius: 50%;
    height: 7px;
    left: -24px;
    top: 18px;
    width: 7px;
    margin-left: 7px;
}

/* テーブルのライン */
.is-style-table-simple table, .is-style-table-simple th, .is-style-table-simple td {
    border-color: #f4f4f4 !important;
	border-width: 1px !important;
}

/* テーブル（デフォルト選択時）のテキストと背景をリセット */
th {
    background: #f9f9f9;
    color: #222222;
}

/* テーブル（シンプル選択時）のテキストと交互背景をリセット */
.is-style-table-simple th {
    background: transparent !important;
    color: #222222 !important;
}
.is-style-table-simple thead tr th:nth-child(even) {
    background: transparent !important;
}

/* テーブル（ヘッダーセクションあり選択時）のボーダーボトムの太さを変更
→ デフォルトの装飾は捨てたため、シンプルのみを使用すること。デフォルトCSSとの関係で、完璧にすることは複雑化かつ困難なため */
.wp-block-table thead {
    border-bottom: 1.5px solid #eee;
    border-top: 1.5px solid #fff;
}

/* ブロック上の余白（要素の下マージンの倍率を変更） */
.margin-top--05 {
	margin-top:-0.5em !important;
}

/* フッターに関する項目 */


/* THE SONICの固定ページの「LP ※全幅ブロック推奨」でフッターを全幅にする */
body.page-template-page-3 footer {
    position: relative; /* 他の要素の影響を受けないように */
    width: 100vw; /* ビューポートの幅を使う */
    left: 50%; /* 画面の中央からずらす */
    right: 50%;
    margin-left: -50vw; /* 左側をスクリーンいっぱいに広げる */
    margin-right: -50vw; /* 右側も広げる */
}

.footer-title {
    display: none;
}

.footer-container .menu-item a {
    border: 0px solid hsla(0, 0%, 100%, .38);
    border-radius: 4px;
    box-sizing: border-box;
    color: #73777B;
    display: inline-block;
    font-size: .8em;
    margin: .5em;
    padding: .25em .2em;
    text-decoration: none;
    transition: background-color .3s;
	font-size: 12px;
}

.footer-container ul {
    list-style: none;
    padding: 0 3px; 
    line-height: 0.6em;
    margin-top: 20px;
    margin-bottom: 0px;
}

/* コピーライトボックス部分（フッター最下部） */
.footer-in-under {
    background: #fff !important;
    color: #73777B;
}

/* コピーライト表記部分（フッター最下部）下の余白調整 */
.copyright {
    font-size: 12px;
	margin-top: 8px;
    margin-bottom: 20px;
    padding: 4px 0;
}

hr.wp-block-separator {
    border: 0.5px solid #dddddd;
}

/* 「Go to top」ボタンを非表示 */
#gotop {
    display: none !important;
}

/* ブロック上の余白（要素の上マージンの倍率を変更） */
.margin-top--10 {
	margin-top:-1.0em !important;
}
.margin-top--15 {
	margin-top:-1.5em !important;
}
.margin-top--20 {
	margin-top:-2.0em !important;
}

/* 新着記事のNEWバーを消す */
@media (min-width: 1030px){
.home #content {
		margin-top: 0px;
	}
.home #sidebar{
		margin-top: 30px;
	}
}

/* トップページのサイドバーのランキングマークのずれを調整する */
.tsncorg.thumbnail .centered img {
    left: 50%;
    position: absolute;
    top: 33%
}

/* トップページのサイドバーのウィジェットの余白調整 */
.widget-content {
    box-sizing: border-box;
    margin-bottom: 32px;
    padding: 24px 12px 24px 0px;
    position: relative;
	border-radius: 0 0 0px 0px;
	background-color: #fff;

}

/* トップページのタグ内テキストのテキストカラーを黒に */
.def-mode .kiji-cat {
    border-radius: 0 0 4px 4px;
    color: #222;
    left: 10px;
    top: 0;
}

/* トップページのサイドバーの見出しのテキストカラーを白に */
.side-title-mark1 .widget-title, .side-title-mark2 .widget-title, .side-title-mark3 .widget-title, .side-title-mark4 .widget-title {
    color: #222222;
}

/* ヘッダーロゴの上側余白の調整 */
.footer-in-under .footer-title, .footer-in-under .footer-title a, .header-title a {
    color: #fff;
    font-size: 30px;
	padding-top: 14px;
}

/* PR表記ウィジェットのデザイン調整 */
.tsnc-accordion-title {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 8px 44px 8px 16px;
    position: relative;
    width: 100%;
    color: #222;
    font-size: 14px;
}

.is-style-accordion-mark2 .tsnc-accordion-title:after {
    background-color: transparent;
    content: "\f107";
    font-family: font awesome\ 5 free;
    font-weight: 600;
    height: 12px;
    line-height: 12px;
    right: 16px;
    text-align: center;
    top: calc(50% - 5px);
    transform: rotate(0deg);
    width: 12px;
    color: #bbb;
}

/* 「関連記事」見出しテキストの色を黒に変更 */
.main-c, .list-main-c li:before {
    color: #222 !important;
}

/* 目次のテキストサイズ */
.mkj {
    border-color: #72e1ff;
    font-size: 14px;
}

/* ヘッダーを中央揃え */
.header-nav-in {
    height: 100%;
    text-align: center;
}

/* トップページの日付 */
.kiji-date {
    color: rgba(51, 51, 51, .38);
    font-size: 12px;
    line-height: 30px;
}

/* 投稿ページの日付 */
@media (min-width: 768px) {
    .entry-header-item {
        font-size: .8em;
    }
}

/* お問い合わせフォームページ */
.wpcf7-text, .wpcf7-textarea {
    -webkit-appearance: none;
    background-color: #fff;
    border: 0px solid #F6F6F6;
    border-radius: 2px;
    line-height: 2;
    padding: 8px 12px;
    width: 100%;
}

/* タグクラウド */
.tagcloud .tag-cloud-link {
    border-radius: 4px;
    color: #222;
    display: inline-block;
    font-size: 14px;
    line-height: 24px;
    margin: 6px 4px 6px 0;
    padding: 2px 8px;
    text-decoration: none;
    transition: opacity .3s;
}

/* トップページの記事カードのline-height調整 */
.main-kiji .linkarea {
    line-height: 1.6em;
}

/* サイドバーの人気記事カードのline-height調整 */
.rank-kiji-content {
    color: #333;
    flex: 1;
    font-size: .8em;
    margin-left: 12px;
    overflow: hidden;
    line-height: 1.7em;
}