/*
Theme Name: 伊藤商店
Theme URI: https://www.ito-katsuobushi.com/
Description: 安城市 鰹節 伊藤商店 リニューアル用 フルカスタムテーマ（独立クラシックテーマ）。現行デザインを踏襲しつつ、レスポンシブ対応と商品カスタム投稿タイプを実装。
Author: Ito Shoten
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ito
*/

/* =========================================================
   デザイントークン
   ========================================================= */
:root {
	--ink: #31170B;
	/* 見出し・本文の濃茶 */
	--ink-mid: #3E3A39;
	--ink-soft: #595757;
	/* やや淡い文字 */
	--rule: #C9CACA;
	/* 罫線（カテゴリ区切り等） */
	--brown: #635442;
	/* フッター背景 */
	--cream: #F3EFE0;
	/* 期限ラベル等の淡色 */
	--white: #fff;
	--hover: #b8a98f;

	--font-mincho: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", YuMincho, "ＭＳ Ｐ明朝", "MS PMincho", serif;
	--font-gothic: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;

	--container: 1000px;
	--gap: 24px;
}

/* =========================================================
   リセット（最小限）
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
figure,
table,
blockquote {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

a {
	color: var(--ink);
	text-decoration: none;
	transition: opacity .2s, color .2s;
}

a:hover {
	opacity: .65;
}

table {
	border-collapse: collapse;
}

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-gothic);
	color: var(--ink);
	line-height: 1.8;
	background-image: url("assets/img/back.jpg");
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

/* =========================================================
   アクセシビリティ
   ========================================================= */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
}

.skip-link:focus {
	left: 0;
	opacity: 1;
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* =========================================================
   レイアウト共通
   ========================================================= */
.ito-container,
.inner {
	width: 92%;
	max-width: 1100px;
	margin: 0 auto;
}

.site-main {
	/* padding-bottom: 60px; */
}

.ito-section-heading {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-mincho);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 2px;
	text-align: left;
	margin-bottom: 24px;
	padding-bottom: 10px;
}

.ito-section-heading::before {
	content: "";
	display: block;
	width: 8px;
	height: 38px;
	background: var(--brown);
}

.ito-section-heading::after {
	content: "";
	position: absolute;
	left: 22px;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(99, 84, 66, .45), rgba(201, 202, 202, 0));
}

/* =========================================================
   ヘッダー / グローバルナビ
   ========================================================= */
.site-header {
	position: relative;
	z-index: 100;
	background: #eee8da;
	border-bottom: 1px solid rgba(49, 23, 11, .08);
}

.site-header__inner {
	max-width: 960px;
	min-height: 100px;
	margin-inline: auto;
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 54px;
	width: 100%;
}

.site-logo {
	flex: 0 0 150px;
	margin: 0;
	line-height: 1;
}

.site-logo a,
.site-logo img {
	display: block;
}

.global-nav {
	flex: 0 1 auto;
}

.global-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 44px;
	padding: 0;
	margin: 0;
}

.global-nav__list li a {
	display: block;
	padding: 8px 0;
	font-family: var(--font-mincho);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .16em;
	white-space: nowrap;
	color: var(--ink);
	background: none;
	border: 0;
	text-decoration: none;
}

.global-nav__list li a:hover,
.global-nav__list .current-menu-item>a,
.global-nav__list .current_page_item>a {
	opacity: .65;
}

.nav-toggle {
	display: none;
	appearance: none;
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 26px;
	height: 2px;
	margin: 0 auto 6px;
	background: var(--ink);
	transition: transform .25s, opacity .25s;
}

.nav-toggle__bar:last-child {
	margin-bottom: 0;
}

body.nav-open {
	overflow: hidden;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   ヒーロー（クロスフェード）
   ========================================================= */
.hero {
	width: 100%;
	position: relative;
	height: clamp(350px, 55vw, 620px);
	overflow: hidden;
	/* margin-top: 80px; */
}

.hero__slides {
	position: relative;
	height: 100%;
	padding-left: 0;
	margin: 0;
}

.hero__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 1;
	transition: opacity 1.2s ease;
}

.hero__slide:first-child {
	position: absolute;
	opacity: 1;
}

.hero__slide.is-active {
	opacity: 1;
	z-index: 2;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: top;
}

.hero__caption {
	position: absolute;
	z-index: 3;
	margin: 0;
	color: #fff;
	font-family: var(--font-mincho);
	font-size: clamp(18px, 2.4vw, 34px);
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.12em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__caption--top-right {
	top: clamp(28px, 5vw, 72px);
	right: clamp(24px, 6vw, 96px);
}

.hero__caption--bottom-right {
	right: clamp(24px, 6vw, 96px);
	bottom: clamp(28px, 5vw, 72px);
}

.hero__caption--vertical {
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.hero__caption--horizontal {
	max-width: min(760px, 72vw);
	text-align: right;
}

/* =========================================================
   のれん見出し（縦書き）
   ========================================================= */
.noren {
	background-repeat: repeat-x;
	background-position: top center;
	height: 176px;
	position: relative;
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.noren--about {
	background-image: url(assets/img/noren/noren01.png);
	background-size: cover;
}

.noren--kodawari {
	background-image: url(assets/img/noren/noren02.png);
	margin-top: 40px;
	background-size: cover;
}

.noren--product {
	background-image: url(assets/img/noren/noren03.png);
	background-size: cover;
}

.noren--access {
	background-image: url(assets/img/noren/noren04.png);
	background-size: cover;
}

.noren--contact {
	background-image: url(assets/img/noren/noren05.png);
	background-size: cover;
}

.noren__title {
	writing-mode: vertical-rl;
	font-family: var(--font-mincho);
	font-weight: 500;
	font-size: 18px;
	letter-spacing: 2px;
	line-height: 1;
	white-space: nowrap;
	color: var(--ink);
	padding-top: 24px;
	text-align: center;
}

/* =========================================================
   お知らせ / 投稿 / 固定ページ本文
   ========================================================= */
.news-list__item {
	border-bottom: 1px dotted var(--rule);
}

.news-list__item a {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	flex-wrap: wrap;
}

.news-list time {
	color: var(--ink-soft);
	font-size: 13px;
	min-width: 7em;
}

ul.front-news__list {
    padding-left: 0;
}

.entry {
	background: #fff;
	padding: 28px;
	margin-bottom: 24px;
}

.entry__date {
	color: var(--ink-soft);
	font-size: 13px;
}

.entry__title {
	font-family: var(--font-mincho);
	font-size: 22px;
	margin: 8px 0 20px;
}

.entry__content {
	font-size: 15px;
	line-height: 2;
}

.entry__content p {
	margin-bottom: 1em;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	font-size: 13px;
}

.pagination {
	text-align: center;
	margin: 32px 0;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	border: 1px solid var(--rule);
	background: #fff;
}

.pagination .current {
	background: var(--ink);
	color: #fff;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
	background: var(--brown);
	color: #fff;
	padding: 48px 20px 28px;
}

.site-footer__inner {
	width: min(1100px, 100%);
	margin: 0 auto 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.site-footer__logo {
	flex: 0 0 auto;
}

.site-footer__logo img {
	display: block;
	width: 150px;
	height: auto;
}

.footer-nav {
	flex: 1;
}

.footer-nav__list,
.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: #fff !important;
	font-family: var(--font-mincho);
	font-size: 12px;
	letter-spacing: 2px;
	text-decoration: none;
}

.copyright,
.copyright_top {
	color: #fff;
	text-align: center;
	font-size: 11px;
	letter-spacing: 1px;
	margin: 0;
}

/* =========================================================
   ページトップボタン
   ========================================================= */
.page-top {
	position: fixed;
	right: 10px;
	bottom: 138px;
	z-index: 90;
	width: 64px;
	height: 64px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
	background-color: var(--color-border);
    padding: 5px;
    border-radius: 50%;
    border: 5px solid var(--color-main-dark);
	color: var(--ink);
    text-decoration: none;
    font-size: 10px;
    text-align: center;
    font-family: "Roboto", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.page-top__icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact-lead {
	margin: 0 0 32px;
	text-align: center;
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.9;
}

.contact-direct {
	display: grid;
	gap: 18px;
	max-width: 760px;
	margin: 0 auto 48px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--rule);
	text-align: center;
}

.contact-direct__item {
	display: grid;
	align-content: center;
	gap: 8px;
}

.contact-direct p {
	margin: 0;
}

.contact-direct__label {
	color: var(--ink-soft);
	font-size: 13px;
	letter-spacing: .08em;
}

.contact-direct__number {
	color: var(--ink);
	font-family: var(--font-mincho);
	font-size: 24px;
	line-height: 1.4;
}

.contact-direct__number a {
	color: inherit;
	text-decoration: none;
}

.contact-direct__sub {
	color: var(--ink-soft);
	font-size: 13px;
}

.contact-direct__pdf a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	transition: opacity .2s ease;
}

.contact-direct__pdf a:hover {
	opacity: .78;
}

.contact-form {
	max-width: 760px;
	margin: 0 auto;
}

/* =========================================================
   モバイルナビ
   ========================================================= */
@media (max-width: 900px) {
	.ito-section-heading {
		font-size: 21px;
		gap: 12px;
	}

	.ito-section-heading::before {
		height: 32px;
	}

	.site-header {
		position: sticky;
		top: 0;
	}

	.site-header__inner {
		max-width: none;
		min-height: 76px;
		justify-content: space-between;
		gap: 16px;
		padding: 14px 20px;
	}

	.site-logo {
		flex-basis: 150px;
	}

	.nav-toggle {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		position: relative;
		z-index: 120;
	}

	.global-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 110;
		background: #eee8da;
		border-top: 0;
		box-shadow: 0 8px 18px rgba(49, 23, 11, .08);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		overflow-y: auto;
		transition: opacity .2s ease, visibility .2s ease;
	}

	.global-nav.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.global-nav__list {
		display: block;
		max-width: 100%;
		min-height: 100%;
		padding: 96px 24px 40px;
	}

	.global-nav__list li a {
		padding: 16px 0;
		text-align: center;
		border-top: 1px solid rgba(49, 23, 11, .08);
	}

	.global-nav__list li:first-child a {
		border-top: 0;
	}

	.hero {
		height: clamp(260px, 80vw, 520px);
	}

	.hero__caption {
		font-size: clamp(16px, 3vw, 22px);
		line-height: 1.7;
	}

	.hero__caption--top-right {
		top: 24px;
		right: 20px;
	}

	.hero__caption--bottom-right {
		right: 20px;
		bottom: 24px;
	}

	.hero__caption--horizontal {
		max-width: calc(100% - 40px);
	}

	.page-top {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 28px;
		text-align: center;
	}

	.footer-nav__list,
	.site-footer ul {
		justify-content: center;
		flex-direction: column;
	}

	footer .site-footer ul {
		gap: 5px !important;
	}
}

/* =========================================================
   デスクトップ（768px以上）
   ========================================================= */
@media (min-width: 768px) {

	.noren {
		height: 220px;
		margin-bottom: 50px;
	}

	.noren__title {
		font-size: 22px;
		/* padding-top: 35px; */
		text-align: center;
	}

	.front-guide__list {
		grid-template-columns: repeat(4, 1fr);
	}

	.front-catch__lead {
		font-size: 19px;
	}

	/* こだわり：横並び */
	.kodawari__row {
		display: flex;
		gap: 50px;
		align-items: flex-start;
	}

	.kodawari__txt {
		flex: 1;
	}

	.kodawari__img {
		flex: 0 0 300px;
		margin-top: 0;
	}

	/* 商品グリッド：3列 */
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* 商品詳細：画像左・本文右 */
	.product-detail {
		display: flex;
		align-items: center;
		gap: 24px;
		padding: 40px;
	}

	.product-detail__img {
		flex: 0 0 44%;
		margin-bottom: 0;
	}

	.product-detail__body {
		flex: 1;
	}

	/* アクセス：写真＋情報の横並び */
	.tenpo {
		display: grid;
		gap: 50px;
		align-items: flex-start;
		grid-template-columns: 1fr 1fr;
	}

	.tenpo__photo {
		flex: 0 0 430px;
		margin-bottom: 0;
	}

	.tenpo__info {
		flex: 1;
	}

	.contact-direct {
		grid-template-columns: 1fr 1fr;
		text-align: left;
	}
}

/* =========================================================
   大画面（1000px以上）微調整
   ========================================================= */
@media (min-width: 1000px) {
	.front-catch__lead {
		font-size: 20px;
	}
}

/* =========================================================
   モーション抑制
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}

	.hero__slide {
		transition: none;
	}
}
