/* =========================================================
   Dictionary
========================================================= */

:root {
	--main: #595959;
	--text: #333;
	--blue: #3D9BE9;
}

.wapper.only-top {
	max-width: 1200px;
	margin: 0 auto;
}

.l-section {
	padding: 100px 0;
	width: 95%;
	margin: 0 auto;
	max-width: 1200px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, Work Sans, Hiragino Sans, ヒラギノ角ゴシック, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Verdana, Roboto, Droid Sans, メイリオ, Meiryo, ＭＳ Ｐゴシック, sans-serif;
color: rgb(49, 50, 50);
}
/* =========================================================
   辞書一覧
========================================================= */
/* 五十音ナビ */
.yougo-index {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 40px 0 60px;
}

.yougo-index a,
.yougo-index .is-disabled {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.yougo-index .is-disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* グループ */
.yougo-group {
	margin-bottom: 60px;
	scroll-margin-top: 100px;
}

.yougo-group__title {
	color: #239eaa;
	font-size: 20px;
	margin-bottom: 20px;
}

.yougo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    list-style: none;
    margin: 15px 0 50px;
    padding: 0;
}

.yougo-list li {
	border-top: 1px solid #eee;
}

.yougo-list a {
    display: block;
    position: relative;
    padding: 20px 30px 20px 15px;
    color: #333;
    text-decoration: none;
}
.yougo-list a::after {
    content: "›";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.yougo-list a:hover {
	color: #239eaa;
}

@media (max-width: 767px) {
    .yougo-list {
		grid-template-columns: 1fr;
	}
}

/* ページネーション：PCでは非表示 */
.yougo-pagination {
	display: none;
}

/* 五十音ナビの選択状態 */
.yougo-index a.is-active {
    background: #239eaa;
    color: #fff;
    border-color: #239eaa;
}

@media (max-width: 767px) {
    .yougo-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 40px 0 60px;
    }

    .yougo-pagination button {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        border: 1px solid #ddd;
        background: #fff;
        color: #333;
        cursor: pointer;
    }

    .yougo-pagination button.is-active {
        background: #239eaa;
        border-color: #239eaa;
        color: #fff;
    }

    .yougo-pagination button:disabled {
        opacity: .35;
        cursor: default;
    }
}

/* JSで非表示にした要素を確実に隠す */
.yougo-group[hidden],
.yougo-item[hidden] {
	display: none !important;
}

.yougo-single {
	margin: 0 auto;
	letter-spacing: 0.02em;
}

h1.yougo-ttl.c-caption {
	line-height: 1;
	color: var(--text);
	font-size: 25px;
	text-align: center;
	font-weight: 600;
}

.c-caption .en {
	display: block;
	font-size: 0.57em;
	color: var(--blue);
	margin: 14px auto 0;
	text-shadow: 1px 1px 1px #ddd;
	text-transform: capitalize;
	line-height: 2;
}

ul.yougo-list li a {
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.01em;
}

/* =========================================================
   辞書詳細
========================================================= */
/* 戻るリンクの矢印色 */
.yougo-nav .arw svg path {
    stroke: rgb(32, 163, 217);
}

.yougo-nav {
    margin-bottom: 2rem;
}

.yougo-nav a {
    color: rgb(32, 163, 217);
}

.yougo-sgcontent hr {
    margin-bottom: 3rem;
}

.yougo-title {
	font-size: 42px;
	font-weight: 600;
	line-height: 1.5;
	margin-top: 0;
}

h1.yougo-title span {
    font-size: 22px;
    line-height: 1;
    display: block;
	font-weight: 500;
	margin: 2rem 0 1rem 0;
}

/* 「を」を非表示 */
.yougo-title .small-ttl .hide-wo {
    display: none !important;
}

.yougo-sgcontent {
	margin: 1% auto 5% auto;
	width: 100%;
}

.yougo-sgcontent h2 {
	font-weight: bold;
	font-size: 22px;
	padding-bottom: 10px;
	position: relative;
	margin: 1.5rem 0 1rem 0;
}

.yougo-sgcontent h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1em;
    background: rgb(32, 163, 217);
    margin-right: 5px;
    vertical-align: -0.1em;
	border-radius: 4px;
}

h2.yougo-sgttl {
	margin-right: auto;
	font-weight: 600;
	padding: 5% 0;
	font-size: 24px;
}

.yougo-single p {
	font-weight: 500;
	margin-bottom: 30px;
	font-size: 15px;
	line-height: 1.5;
}


.related-dictionary {
    margin: 2rem auto;
}

.related-dictionary__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-dictionary__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-dictionary__link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.related-dictionary__link:hover {
    background: #f5f5f5;
}



@media (min-width: 768px) {
	.page-title {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: row-reverse;
		flex-wrap: wrap;
}
	span.yougo-reading {
    margin-top: 50px;
}
}

/* =========================================================
   戻るボタン
========================================================= */

.c-btn {
	padding-top: 2em;
	text-align: center;
}

.c-btn a {
    width: 300px;
    margin: 3rem auto 5rem auto;
    height: 50px;
    font-size: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px #00000029;
    font-weight: 700;
    letter-spacing: 0.14rem;
    border-radius: 5rem;
    background: linear-gradient(225deg, #F2BA4C 0%, #6ABD85 0.01%, #F2BA4C 0.02%, #FF9900 100%);
}

.c-btn a:hover {
	opacity: .7;
}

span.arw {
    padding: 0 0 5px 5px;
}

.arw svg path {
	stroke: #fff;
}

/* =========================================================
   関連記事
========================================================= */

.related-posts {
	margin-top: 100px;
}

.related-posts .c-border-caption {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	padding: 0 0 12px;
	border-bottom: 1px solid #434343;
	text-align: center;
	width: fit-content;
	margin: 0 auto 5%;
}

.c-border-caption .en {
	display: block;
	font-size: .57em;
	color: var(--blue);
	margin: 14px auto 0;
}

a.related-item {
	box-shadow: 0 1.4rem 1.4rem rgba(0, 0, 0, .15);
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	display: block;
	margin: 0 auto 5%;
	width: 100%;
	max-width: 345px;
}

a.related-item img {
	width: 100%;
	border-radius: 20px 20px 0 0;
	height: 150px;
	object-fit: cover;
}


/* =========================================================
   サイドバー
========================================================= */

li.latest-post-item {
	margin-bottom: 5%;
}

.latest-post-item a {
	display: flex;
	gap: 3%;
}

.latest-post-item a img {
	border-radius: 10px;
	width: 50%;
}

.latest-post-item a .content {
	width: 50%;
	max-width: 350px;
}

a.sidebar-post-link {
	text-align: right;
	display: block;
}

.c-aside-keyword-wrap,
.sidebar-post {
	margin: 100px auto;
}


/* =========================================================
   オートリンク
========================================================= */

a.dictionary-link {
	text-decoration: underline;
	font-size: calc(100% + 1px);
	padding: 0 1px;
}


/* =========================================================
   PC
========================================================= */

@media screen and (min-width: 768px) {

	.yougo-title {
		font-size: 54px;
	}

	h2.yougo-sgttl {
		padding: 3% 0;
	}

	.related-posts-inner {
		display: flex;
		justify-content: center;
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 1%;
	}

	a.related-item {
		width: 320px;
	}
}

@media screen and (min-width: 1024px) {

	.yougo-main {
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: 1rem;
		padding: 0 1%;
	}

	aside.c-aside {
		width: 30%;
		max-width: 300px;
		margin-top: 100px;
	}
}

.yougo-main span.page-numbers.current {
    color: #FF9900;
}