@charset "UTF-8";

/*
	Theme Name:fa
	Theme URI:https://www.kyokujitsu.co.jp/
	Description: 旭日電気工業株式会社のテーマ
	Version:1
	Author: KYOKUJITSU CORPORATION
	Author URI:https://www.kyokujitsu.co.jp/
*/

/**************************************************************************************

--------------------------------------------------------------------------------------
再リセット
***************************************************************************************/

.news_article ul,
.news_article ol,
.news_article li,
.news_article h1,
.news_article h2,
.news_article h3,
.news_article h4,
.news_article h5,
.news_article h6,
.news_article p,
.news_article strong,
.news_article b,
.news_article table,
.news_article tbody,
.news_article tfoot,
.news_article thead,
.news_article tr,
.news_article th,
.news_article td,
.news_article audio, 
.news_article video {
	all: revert;
}
.news_article a.wp-element-button,
.news_article a.wp-block-button__link {
	text-decoration: none;
	color: #fff;
}

/**************************************************************************************

--------------------------------------------------------------------------------------
セット
***************************************************************************************/

/* 旭日電気オリジナル
========================================== */

.news_article p {
	line-height: 1.8;
}

/* H2 */
.news_article h2 {
	font-size: 20px;
	font-weight: 700;
	color: #dc5f3d;
	text-indent: -1em;
	padding-left: 1em;
	margin-top: 90px;
}
.news_article h2:first-child {
	margin-top: 20px;
}
@media only screen and (max-width: 767px) {
	.news_article h2 {
		font-size: 18px;
		margin-top: 50px;
	}
}

/* H3 */
.news_article h3 {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	margin-top: 70px;
}
.news_article h3::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background-color: #dc5f3d;
	margin: 15px auto 0;
}
@media only screen and (max-width: 767px) {
	.news_article h3 {
		font-size: 18px;
		margin-top: 40px;
	}
	.news_article h3::after {
		margin-top: 10px;
	}
}

/* テーブル
========================================== */
   
.news_article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}
.news_article table th,
.news_article table td {
    border: 1px solid #ddd;
    padding: 0.6em 0.8em;
}
.news_article table th {
    background: #f5f5f5;
    font-weight: 600;
}
/* スマホで横スクロール可能にする場合（任意） */
.wp-block-table {
    overflow-x: auto;
}

/* 引用ブロック
========================================== */

.news_article blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #ddd;
    background: #fafafa;
}
.news_article blockquote p {
    margin: 0;
}

/* 記事本文内の動画をコンテナ幅100%に収める
========================================== */

.news_article .wp-block-video,
.news_article .wp-block-video video,
.news_article video {
    max-width: 100%;
    width: 100%;   /* コンテナ幅にフィットさせたい場合 */
    height: auto;  /* アスペクト比を維持 */
    display: block;
}
/* 動画ブロックを中央寄せにしたい場合（任意） */
.news_article .wp-block-video {
    margin: 1.5em auto;
}

/***********************************************************************

------------------------------------------------------------------------
ページネーション
***********************************************************************/

/* ページネーション全体の余白・中央寄せ */
.navigation.posts-navigation {
    margin: 40px 0;
}
.navigation.posts-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央寄せのポイント */
    gap: 8px;
}

/* ボタン共通（数字・前へ・次へ） */
.navigation.posts-navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
}

/* 現在のページ */
.navigation.posts-navigation .page-numbers.current {
    background-color: #333;
/*  background-color: #5591c8;*/
    color: #fff;
    border-color: #333;
/*	border-color: #5591c8;*/
    font-weight: bold;
}

/* ホバー時 */
.navigation.posts-navigation .page-numbers:not(.current):hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #000;
}

/* 「…」などのドット部分 */
.navigation.posts-navigation .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

/* 前へ・次へを少し強調したい場合（任意） */
.navigation.posts-navigation .page-numbers.prev,
.navigation.posts-navigation .page-numbers.next {
    font-weight: 500;
}

/* スマホで少し詰めたい場合（お好みで） */
@media (max-width: 600px) {
    .navigation.posts-navigation .nav-links {
        gap: 4px;
    }

    .navigation.posts-navigation .page-numbers {
        min-width: 32px;
        padding: 6px 8px;
        font-size: 13px;
    }
}



