/*
Template:ystandard
Theme Name:yokomasuda
Theme URI: https://wp-ystandard.com
Author: yosiakatsuki
Author URI: https://yosiakatsuki.net
Description:「自分色に染めた、自分だけのサイトを作る楽しさ」を感じてもらうために作った一風変わったWordPressテーマ「ystandard」の子テーマ
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =====================================
CSS変数を定義
===================================== */
:root {
	--main-color:#D086BD;
	--point-color:#6e9a68;
	--link-text-hover:#808080;
	--color-white:#fff;
	--sub-color:#6e9a68;
	--color-pale_gray:#f5f5f5;
	--color-border_main:#cccccc;
}

/* =====================================
Reset
===================================== */
ol,
ul,
li,
dl {
	list-style-position: inside;
	list-style: none;
}
a {
	text-decoration: none;
	color: inherit;
}
a:hover {
	/* color: var(--link-text-hover); */
	color: unset;
	opacity: .8;
}

html {
	font-family: "YuGothic", "游ゴシック", sans-serif;
	font-weight: 500;
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	line-height: 1;
}

@media (max-width: 374px) {
	html {
		font-size: 55%;
	}
}

/* Ystandard独自設定のリセット */
ol,
ul {
	padding: 0;
}

/*********************************
/* サイト基本設定
*********************************/

/* メインコンテンツの幅 */
@media (min-width: 1025px) {
	.content__main {
		max-width: 890px;
	}
}
#main.archive__main.site-main {
	width: 100%;
	max-width: 800px;
}
/* gnavでカレントページでの装飾を下の階層のページでも適用する */
.global-nav__menu>.menu-item.current-menu-parent>a:after {
	width: 100%;
}

/*********************************
/* ヘッダーの設定
*********************************/

/* ヘッダー外側のレイアウト設定 */
.l-header {
	border-radius: 45px;
	margin-top: 15px;
	max-width: calc(100% - 10px* 2);
	z-index: 999;
	margin-left: auto;
	margin-right: auto;
}

@media only screen and (min-width: 600px) {
	.l-header {
		/* height: 70px; */
		width: 1200px;
		margin-top: 45px;
		max-width: calc(100% - 20px* 2);
	}
}

/* ヘッダーコンテンツのレイアウト設定 */
.site-header__content {
	padding: 0 3%;
	align-items: center;
	justify-content: space-between;
}

.site-header .container {
	padding-top: .5rem;
	padding-bottom: .5rem;
}
@media only screen and (min-width: 600px) {
	.site-header .container {
		padding-top: 0;
		padding-bottom: 0;
	}
}

/* グローバルナビの調整 */
.global-nav__menu>.menu-item>a:after {
	background-color: #D086BD;
	height: 2px;
}

/* ハンバーガーメニューの調整 */
.global-nav__toggle {
	position: relative;
}
.global-nav__toggle:after {
	content: "メニュー";
	font-size: 0.5em;
	margin-top: 0.3em;
}

/* ヘッダーを下げたことで空いた
コンテントとトップの隙間を埋める */
.is_front.site-content {
	margin-top: -137px;
}
.site-header-thumbnail {
	margin-top: -86px;
}

.site-header-thumbnail {
	position: relative;
}
/* 通常の固定ページのときだけメインコンテンツとヘッダーの隙間を埋める */
.is_page.site-content {
	margin-top: 0;
}
/* サムネールにページタイトルを乗せる */
.page-title {
	position: absolute;
	width: 100%;
	top: 67%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 24px;
	color: #fff;
	font-weight: bold;
	font-weight: 600;
}
@media (min-width: 600px) {
	.page-title {
		font-size: 35px;
	}
	.site-header-thumbnail {
		margin-top: -137px;
	}
}

@media (max-width: 768px) {
	.global-nav {
		background-color: var(--main-color);
	}
}

/*********************************
/* フッター設定
*********************************/

.footer-main>* {
	margin-top: 2rem;
}
.footer-main {
	padding-top: 1rem;
}
.heading_h2 {
	color: #D086BD;
	font-size: var(--wp--preset--font-size--xx-large);
}
.copyright {
	font-size: .7em;
}

/*********************************
/* ヒーローセクション設定
*********************************/

#main .hero {
	position: relative;
	height: 100vh;
	max-height: 600px;
	min-height: 300px!important;
}
.hero .ystdb-section__container {
	position: absolute;
	right: 15%;
	bottom: 50px;
	margin: 10px;
}

@media (min-width: 767px) {
	#main .hero {
		max-height: 800px;
	}
	.hero .ystdb-section__container {
		bottom: 130px;
	}
}

/*********************************
/* コンテンツのスタイル設定
*********************************/

.entry-content h1 {
	font-size: 30px;
	margin-top: 4em!important;
}
#profile h2 {
	font-size: var(--wp--preset--font-size--large);
	background-color: #FFF4E6;
}
#profile .entry-content {
	margin-top: 0;
}
@media (min-width: 600px) {
	.entry-content h1 {
		font-size: 38px;
	}
	#profile h2 {
		font-size: 24px;
	}
}
.heading-is-preset16 {
	position: relative;
	padding: 15px 15px 15px 35px;
	color: #D086BD;
	background-color: #FFF4E6;
	border-radius: 5px;
	overflow: hidden;
}
.heading-is-preset16::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 50%;
	height: 30px;
	width: 5px;
	transform: translateY(-50%);
	border-radius: 5px;
	background-color: #D086BD;
}
.entry-content {
	margin-top: 0;
}

/*********************************
/* サブナビゲーション
*********************************/

.sub-navi {
	border-top: 1px solid #fff;
}
.sub-navi .ystdb-columns {
	--ystdb-column-column-gap: 0rem;
	--ystdb-column-row-gap: 0rem
}
@media (min-width: 600px) and (max-width: 1024px) {
	.sub-navi .ystdb-column:nth-child(odd)::before {
		content: "";
		display: block;
		background: rgba(255, 255, 255, 1);
		height: 20px;
		width: .1rem;
		right: -.1rem;
		position: absolute;
		top: 50%;
		-webkit-transform: translateY(-50%);
		transform: translateY(-50%);
		z-index: 1;
	}
	.sub-navi .ystdb-column:nth-child(even)::before {
		display: none;
	}
}
@media (min-width: 1024px) {
	.sub-navi .ystdb-column::before {
		content: "";
		display: block;
		background: rgba(255, 255, 255, 1);
		height: 20px;
		width: .1rem;
		right: -.1rem;
		position: absolute;
		top: 50%;
		-webkit-transform: translateY(-50%);
		transform: translateY(-50%);
		z-index: 1;
	}
	.sub-navi .ystdb-column:last-child::before {
		display: none;
	}
}
.sub-navi .ystdb-column-block-container {
	padding: 10px 0;
	font-weight: bold;
}

/*********************************
/* ニュース一覧 フロント
*********************************/

.is_front .news__title {
	position: relative;
	font-size: 1.8rem;
	font-weight: bold;
	letter-spacing: 0.1em;
	padding-bottom: 1.2rem;
}

@media (max-width: 768px) {
	.is_front .news__title {
		font-size: 1.6rem;
		letter-spacing: 0.05em;
		padding-bottom: 0.6rem;
	}
}

.is_front .news__list {
	margin: 50px 0 60px;
}

@media (max-width: 768px) {
	.is_front .news__list {
		margin: 30px 0 40px;
	}
}

.is_front .news__item {
	border-bottom: 0.1rem dotted #323C46;
}

.is_front .news__info {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	margin: 1rem;
	align-items: center;
}

@media (max-width: 768px) {
	.is_front .news__info {
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		display: block;
	}
}

.news__category a {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: bold;
	color: var(--main-color);
	border: solid 1px;
	border-radius: 21px;
	padding: 0.3rem;
	width: 8.6rem;
	text-align: center;
	margin-right: 20px;
}

.news__category a:hover {
	opacity: 0.8;
}

@media (max-width: 768px) {
	.news__category a {
		margin-right: 0;
		width: 126px;
		display: inline-block;
		margin-top: 0.8em;
		padding: 0.15rem;
	}
}

.is_front .news__time {
	font-size: 16px;
	letter-spacing: 0.01em;
	margin-right: 15px;
	display: flex;
	align-items: center;
}

@media (max-width: 768px) {
	.is_front .news__time {
		display: inline-block;
		letter-spacing: 0.05em;
		margin-top: 0.8rem;
		margin-right: 15px;
	}
}

.is_front .news__item-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 0;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

@media (max-width: 768px) {
	.is_front .news__item-title {
		width: 100%;
		margin-top: 0.6rem;
	}
}
.is_front .news_wrap {
	display: flex;
}

.is_front .news__link:hover .news__item-title {
	color: var(--main-color);
}

.is_front .news__btn {
	max-width: 25rem;
	margin: 2rem auto 0;
}

@media (max-width: 768px) {
	.is_front .news__btn {
		max-width: 18.8rem;
		margin: 2.8rem auto 0;
	}
}

/*********************************
/* ニュース一覧 固定ページ
*********************************/
.entry-content {
	margin-top: 30px;
}
.news-list {
	margin-bottom: 15px;
}
.entry-content article {
	border-bottom: 0.1rem dotted #323C46;
	padding-bottom: 1em;
}
.entry-content .entry-title {
	margin: 1em 0 .25em;
	/* font-size: var(--wp--preset--font-size--medium); */
}
.entry-header {
	position: relative;
}
.post-category {
	margin: 0.5em 0 0.5em;
	display: inline-block;
}
.post-category a {
	font-size: 14px;
	padding: 0.2rem;
}
.entry-meta {
	display: inline-block;
	margin-left: 10px;
}
.entry-title {
	color: var(--font-color);
}
.posted-on {
	font-size: 0.8em;
}

@media (min-width: 767px) {
	.entry-content {
		margin-top: 50px;
	}
	.news-list {
		margin-bottom: 30px;
	}
	/* .news-list .entry-title {
		font-size: var(--wp--preset--font-size--large);
	} */
	.entry-title {
		display: inline-block;
	}
	.post-category {
		right: 0;
		margin: 26px 0 0 0;
		display: inline-block;
		position: absolute;
	}
	.entry-meta {
		display: block;
	    margin-left: 0;
	}
}


/*********************************
/* お問い合わせフォーム cf7
*********************************/

.entry-content .wpcf7 {
	margin-top: 30px;
}
@media (min-width: 600px) {
	.entry-content .wpcf7 {
		margin-top: 60px;
	}
}

/* Contact Form 7 基本スタイル */
.wpcf7-form {
	/* max-width: 600px; */
	margin: 0 auto;
	padding: 20px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wpcf7-form p {
	margin-bottom: 15px;
}

.wpcf7-form label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 16px;
	margin-bottom: 10px;
}

.wpcf7-form input[type="submit"] {
	display: inline-block;
	background-color: var(--point-color);
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
	background-color: var(--point-color);
}

/* 必須フィールドのスタイル */
.wpcf7-form .required {
	color: var(--main-color);
	font-size: 0.9em;
	margin-left: 10px;
	vertical-align: middle;
}

/* エラーメッセージのスタイル */
.wpcf7-form .wpcf7-not-valid-tip {
	color: red;
	font-size: 0.9em;
	margin-top: 5px;
}

/*********************************
/* サイドバー
*********************************/
.sidebar-widget h3 {
	margin-top: 0;
	border: 3px solid #ececec;
	text-align: center;
	padding: 10px;
	font-size: 1.1em;
}
.sidebar {
	margin-top: 1em;
}

/*********************************
/* ページネーション
*********************************/
.page-numbers {
	display: block;
	position: relative;
	margin-right: .5em;
	margin-left: .5em;
	padding: .5rem;
}
.page-numbers.current:after, .page-numbers:not(.is-dot):hover:after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: currentColor;
	content: "";
}
.page-numbers:after {
	width: 0;
	content: "";
	transition: width .3s;
}

/*********************************
/* アーカイブページ
*********************************/
.c-post-info__archive-title {
	display: inline-block;
	padding: 5px 10px;
	background-color: var(--main-color);
	color: #fff;
}
.c-post-info {
	margin-bottom: 1.4em;
}

.entry-title {
	margin-top: 1em;
}

@media (min-width: 767px) {
	.c-post-info__archive-title {
		padding: 5px 10px;
	}
	.c-post-info {
		margin-bottom: 1.6em;
	}
}

/*********************************
/* 一般質問の詳細ページ
*********************************/

.assembly_name {
	background-color: var(--main-color);
	color: var(--color-white);
	font-size: 1em;
	padding: 1em;
	text-align: center;
	position: relative;
}
.assembly_name::after {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%);
	content: "";
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top: 10px solid var(--main-color);
}
.q-and-a .question {
	position: relative;
	display: flex;
	align-items: flex-start;
	padding: 1em;
	font-weight: bold;
	z-index: 1;
	color: var(--text-color);
	background-color: var(--color-pale_gray);
	line-height: 1.7;
	font-size: 1em;
	border: 1px solid var(--color-border_main);
	margin-bottom: -1px;
}
.q-and-a .question::before {
	content: "Q";
	background-color: var(--main-color);
	color: var(--color-white);
	min-width: 2em;
	width: 2em;
	height: 2em;
	line-height: 2em;
	margin-right: 10px;
	font-weight: bold;
	text-align: center;
}
.q-and-a .answer {
	display: flex;
	align-items: flex-start;
	padding: 1em;
	color: var(--text-color);
	background-color: var(--color-white);
	border: 1px solid var(--color-border_main);
	line-height: 1.7;
}
.q-and-a .answer::before {
	content: "A";
	background-color: var(--sub-color);
	color: var(--color-white);
	min-width: 2em;
	width: 2em;
	height: 2em;
	line-height: 2em;
	margin-right: 10px;
	font-weight: bold;
	text-align: center;
}
.q-and-a .answer p {
	margin: 0;
}

/*********************************
/* 投稿詳細ページ single.php
*********************************/

.singular-header__title {
	font-size: 2em;
}
/* .singular-article .entry-content h2 {
	margin-top: 2em;
} */

/*********************************
/* ユーティリティ
*********************************/

.u-bigsize {
	font-size: 1.5em;
}
.u-center {
	text-align: center;
}
.u-padding-top-1p5em {
	padding-top: 1.5em;
}

.p-paragrah-padding {
	padding: 0 1em;
}