/*!
Theme Name: Papermag Child
Template:   papermag
Theme URI: https://itcroctheme.com/papermag/#demo
Author: itcroc
Author URI: https://themeforest.net/user/itcroc
Description: newspaper & magazine WordPress Theme
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: papermag-child
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== はじめどき：日本語表示の調整 ===== */
body,
p, li, input, textarea, button, select,
.primary-menu a, .papermag-head-top, .elementor-widget-container {
	font-family: "Roboto", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.elementor-heading-title {
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
	letter-spacing: .02em;
	line-break: strict;
	overflow-wrap: anywhere;
}
body { line-height: 1.9; }
p { line-height: 1.9; }

/* ロゴの大きさ */
.site-logo img,
.papermag-dark-mode-logo img { height: 52px; width: auto; max-width: 100%; }

/* メニューを日本語向けに */
.primary-menu ul li a { font-weight: 500; letter-spacing: .04em; }

/* ロゴの大きさ（強め指定） */
header.header-area .site-logo img,
header.header-area .papermag-dark-mode-logo img { height: 56px !important; width: auto !important; }
@media (max-width: 767px) {
	header.header-area .site-logo img,
	header.header-area .papermag-dark-mode-logo img { height: 42px !important; }
}

/* トップの紹介文ボックス：人物写真の枠を使わない */
.papermag-authore-quote .quote-auth-img { display: none; }
.papermag-authore-quote .quote-info { max-width: 100%; }
.papermag-authore-quote .quote-info h4 { line-height: 1.8; }

/* スマホ・タブレット：ヘッダーを小さくまとめる */
@media (max-width: 991px) {
	header.header-area { position: relative !important; top: auto !important; }
	header.header-area .header-two-top-left,
	header.header-area .mailus { display: none !important; }
	header.header-area .papermag-head-top { padding: 14px 0 14px; }
	header.header-area .papermag-head-top .row > div { margin: 0; }
	header.header-area .papermag-darkmode { position: absolute; right: 15px; top: -52px; }
	header.header-area .papermag-head-top .row > div:last-child { position: relative; height: 0; min-height: 0; }
	header.header-area .header-main-two { position: absolute; top: 40px; left: 0; right: 0; padding: 0; border: 0; pointer-events: none; z-index: 20; }
	header.header-area .header-main-two .slicknav_menu { pointer-events: auto; }
	header.header-area .header-main-two .slicknav_nav { background: #fff; margin-top: 18px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
	header.header-area .header-main-two .col-lg-4 { display: none; }
}

/* スマホ：パンくず（現在地の表示）を小さくまとめる */
@media (max-width: 767px) {
	.papermag-breadcrumb-area { padding: 14px 0 !important; }
	.papermag-breadcrumb-area .row > div:first-child { display: none; }
	.papermag-breadcrumb-area .row > div:last-child { flex: 0 0 100%; max-width: 100%; text-align: left !important; font-size: 12px; line-height: 1.7; }
	.papermag-breadcrumb-area .row > div:last-child * { font-size: 12px; }
}

/* ===== 記事本文の読みやすさ ===== */
.papermag-single-content .entry-content { color: #333; font-size: 16px; line-height: 1.95; }
.papermag-single-content .entry-content p { color: #333; margin-bottom: 1.6em; }
.papermag-single-content .entry-content h2 { font-size: 24px; line-height: 1.5; margin: 2.6em 0 1em; padding: 0 0 .5em; border-bottom: 2px solid #111; }
.papermag-single-content .entry-content h3 { font-size: 19px; line-height: 1.6; margin: 2em 0 .8em; padding-left: .7em; border-left: 4px solid #1f9d6b; }
.papermag-single-content .entry-content ul,
.papermag-single-content .entry-content ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.papermag-single-content .entry-content li { color: #333; margin-bottom: .6em; list-style: disc; }
.papermag-single-content .entry-content ol li { list-style: decimal; }
.papermag-single-content .entry-content .wp-block-table { margin: 0 0 1.8em; overflow-x: auto; }
.papermag-single-content .entry-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.papermag-single-content .entry-content th,
.papermag-single-content .entry-content td { border: 1px solid #ddd; padding: 10px 12px; vertical-align: top; color: #333; }
.papermag-single-content .entry-content thead th { background: #111; color: #fff; font-weight: 700; }
.papermag-single-content .entry-content tbody td:first-child { background: #f6f6f6; font-weight: 700; }
.papermag-single-content .entry-content a { color: #0b6bcb; text-decoration: underline; }
@media (max-width: 767px) {
	.papermag-single-content .entry-content h2 { font-size: 21px; }
	.papermag-single-content .entry-content h3 { font-size: 18px; }
}

/* トップページ：記事が少ないあいだ、同じ記事がくり返し出るブロックを隠す（記事が12本ほどになったら、この4行を消して戻す） */
.elementor-697 .elementor-element-9de6b2e,
.elementor-697 .elementor-element-53eb5fc,
.elementor-697 .elementor-element-893a2ff,
.elementor-697 .elementor-element-f7f41d1 { display: none !important; }

/* 記事本文：指示文の例（引用ブロック）と公式サイトへの案内 */
.papermag-single-content .entry-content blockquote { margin: 0 0 1.6em; padding: 16px 18px; background: #f6f6f6; border-left: 4px solid #111; font-size: 15px; }
.papermag-single-content .entry-content blockquote p { margin: 0; color: #333; }
.papermag-single-content .entry-content .hjm-cta { margin: 0 0 1.8em; padding: 14px 18px; border: 1px solid #1f9d6b; border-radius: 4px; background: #f3fbf7; font-weight: 700; }

/* 記事の図 */
.papermag-single-content .entry-content .hjm-fig { margin: 0 0 1.8em; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; background: #fafafa; }
.papermag-single-content .entry-content .hjm-fig svg { display: block; }
.papermag-single-content .entry-content .hjm-fig figcaption { padding: 8px 14px 10px; font-size: 13px; color: #666; background: #fff; border-top: 1px solid #e5e5e5; }
