/*
Theme Name: uenotenmangu
Theme URI: https://www.tenman.or.jp/
Author: uenotenmangu
Author URI: https://www.tenman.or.jp/
Description: 名古屋天神 上野天満宮 オリジナルテーマ
Version: 1.0
*/

/* ============================================================
   Base（サイト全体に必ず効く初期設定）
============================================================ */

body {
	background: #fff;   /* サイト全体の背景色 */
	color: #333;        /* 全ページ共通の基本文字色 */
	max-width: 100%;    /* 意図しない横スクロール防止 */
}


/* ============================================================
   Layout（WordPressが自動生成する外枠構造）
   ・site / content-area / site-main
   ・ページ全体の幅や余白を制御
============================================================ */

.site {
	max-width: 90%;     /* サイト全体の最大横幅 */
	margin: 0 auto;     /* 画面中央寄せ */
}

.content-area {
	width: 100%;        /* メイン領域を全幅に */
}

.site-main {
	padding: 2rem 1.5rem;  /* 記事エリア内側の余白 */
}

@media (max-width: 765px){
	.site-content{
		padding-top: 65px;
	}
}

/* ============================================================
   Post / Page 共通
   ・投稿ページ
   ・固定ページ
============================================================ */

.post,
.page {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* 記事本文の読みやすい横幅を制御 */
.site-content article{ 
	max-width: 800px; /* 長文でも読みやすい幅 */ 
	width: 90%; 
	padding-top: 30px; 
	padding-bottom: 30px; }
}
/* 例外：指定した写真だけフル幅にする 
fullwide-photo
を指定*/
.entry-content img.fullwide-photo {
	width: 100%;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.entry-header {
	margin-bottom: 2.5rem;  /* タイトル下の余白 */
}

.entry-title {
	font-family: 'yumincho', serif; /* 見出し用書体 */
	border-left: 5px solid #b4484c;
	border-bottom: .5px solid #b4484c;
	padding: 0.5rem 0.75rem;
	border-radius: 5px 0 0 10px;
	line-height: 1.4;
	font-size: 1.5rem;
}

.entry-content {
	line-height: 1.9;   /* 本文の行間 */
}

/* 記事内の各要素（段落・画像など）の間隔 */
.entry-content > * {
	margin-bottom: 2rem;
}

.entry-content p {
	margin-bottom: 1.6rem; /* 段落ごとの余白 */
}
.entry-content img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.entry-footer {
	font-size: 0.9rem;  /* 投稿日・カテゴリなど */
	color: #666;
}

/* トップページへボタン */
	.g-button{
		margin: 0 auto;
	}

/* ============================================================
   Archive / List（記事一覧ページ）
============================================================ */

.archive .entry {
	padding-bottom: 3rem;   /* 記事同士の間隔 */
	margin-bottom: 3rem;
	border-bottom: 1px solid #eee; /* 区切り線 */
}

.archive-title {
	font-size: 1.6rem;
	margin-bottom: 2rem;
}


/* ============================================================
   Pagination（ページ送り）
============================================================ */

.pagination {
	display: flex;
	justify-content: center; /* 中央寄せ */
	margin-top: 4rem;
}

.page-numbers {
	padding: 0.5rem 0.8rem;
	margin: 0 0.2rem;
}

.page-numbers.current {
	font-weight: bold;  /* 現在ページ */
}


/* ============================================================
   Comments（コメント欄）
============================================================ */

.comments-area {
	margin-top: 5rem;  /* 本文との距離 */
}

.comment-body {
	padding: 1.5rem 0;
	border-bottom: 1px solid #eee;
}

.comment-author {
	font-weight: bold;
}

.comment-form input,
.comment-form textarea {
	width: 100%;       /* 入力欄を横幅いっぱいに */
}


/* ============================================================
   Widgets（サイドバー等）
============================================================ */

.widget {
	margin-bottom: 3rem;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}


/* ============================================================
   WP Utility（WordPress必須クラス）
   ※ 消すとWPの基本機能が壊れる可能性あり
============================================================ */

.alignleft {
	float: left;
	margin-right: 1em;
}

.alignright {
	float: right;
	margin-left: 1em;
}

.aligncenter {
	display: block;
	margin: 0 auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ============================================================
   Gutenberg Blocks（ブロック共通スタイル）
   ・エディタ由来の要素
   ・デザイン調整が入りやすい
============================================================ */

.wp-block {
	margin-bottom: 2.5rem; /* ブロック間の余白 */
}

.wp-block-image img {
	max-width: 100%;
	height: auto;         /* 画像はみ出し防止 */
}

.wp-block-heading {
	font-family: 'yumincho', serif;
	margin: 3rem 0 1.5rem;
}

.has-medium-font-size {
	font-family: 'yumincho', serif;
}


/* ============================================================
   Gutenberg Button（ブロックエディタのボタン）
============================================================ */
.wp-block-button {
	text-align: center;
	margin: 30px auto;
		width: 100%;
	min-width: 250px;
	max-width: 500px;
}

.wp-block-button .wp-block-button__link {
	display: block;
	position: relative;
	background-color: #ffffff;
	border: 1px solid #ddd;
	padding: .7em 1.5em;
	font-size: .9rem;
	font-weight: bold;
	color: #666;
	text-decoration: none;
	text-align: center;
	box-shadow: none;
	transition: background-color .1s, color .1s, transform .1s;
}

/* 矢印 */
.wp-block-button .wp-block-button__link::before {
	content: '';
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	position: absolute;
	top: 53%;
	right: 20px;
	margin-top: -6px;
}

/* hover */
.wp-block-button__link:hover {
	background-color: #b4484c !important;
	color: #ffffff !important;
	transform: scale(1.04);
}
.wp-button-line {
	display: block;
	width: 80%;
	max-width:700px;
	margin: 0 auto;
	padding-top: 60px;
	border-top: 1px solid #ddd;
}
/* ============================================================
   Gutenberg Utility（エディタ操作で付くクラス）
============================================================ */

.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}

.has-small-font-size {
	font-size: 0.85rem;
}

.has-large-font-size {
	font-size: 1.3rem;
}

.wp-block-group {
	padding: 2rem;     /* グループ内余白 */
}

.wp-block-columns {
	gap: 2rem;         /* カラム間隔 */
}
 /* ページ送りボタン */
/* pagination layout */
.pagination {
	margin: 3rem auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	max-width: 400px;
}

/* position */
.pagination .prev { justify-self: end; }
.pagination .next { justify-self: start; }

.pagination > div:only-child {
	grid-column: 1 / -1;
	justify-self: center;
}

/* button */
.pagination a {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .2em;
	width: 200px;
	padding: .8em 1.6em;
	border-radius: 999px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: .25s;
}

.pagination a:hover {
	background: #f5f5f5;
	transform: translateY(-1px);
}

/* right side */
.pagination .prev a {
	align-items: flex-end;
	text-align: right;
}

/* label + arrow */
.nav-label {
	display: flex;
	align-items: center;
	font-size: 11px;
	color: #888;
}

/* title */
.nav-title {
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* mobile */
@media (max-width: 600px) {
	.pagination { 
		gap: .5rem; 
		padding-inline: 1rem;
	}
	.pagination a {
		width: 150px;
		font-size: 11px;
		padding: .7em 1.2em;
	}
}


/* ============================================================
   Contact Form 7（フォーム用・プラグイン依存）
============================================================ */

@media screen and (max-width: 500px) {
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
	font-size: 16px;
}

