/*
Theme Name: Nagara Table
Theme URI: https://example.com/nagara-table
Author: Claude (練習用サンプル)
Description: 複数店舗を持つオールデイカフェ・レストラン向けのブロックテーマ。中央ロゴのヘッダー、全画面スライダー、About／Menu／Shop の1ページ構成。架空店舗「NAGARA TABLE」の練習用サンプル。
Version: 1.5.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nagara-table
*/

/* ============ 共通 ============ */
html { scroll-behavior: smooth; }
/* 固定ヘッダーに見出しが隠れないよう、ジャンプ先を少し下にずらす */
#about, #menu, #shop { scroll-margin-top: 110px; }
.nt-en {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.25em;
	text-transform: uppercase;
}
.nt-section-title {
	font-family: var(--wp--preset--font-family--display) !important;
	letter-spacing: 0.2em;
	font-weight: 400 !important;
}

/* ============ ヘッダー（ロゴ中央・ナビ下） ============ */
.nt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(247, 244, 239, 0.92) !important;
	backdrop-filter: blur(8px);
}
.nt-header .wp-block-site-title a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.35em;
}
.nt-header .wp-block-navigation a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.25em;
	text-transform: uppercase;
}
.nt-header .wp-block-navigation a:hover { opacity: 0.6; }

/* ============ スライダー（横に流れ続ける・JSが動いた時だけ有効） ============ */
.nt-slider.is-ready {
	height: min(70vh, 680px);
	overflow: hidden;
	margin: 0 !important;
}
.nt-track {
	display: flex;
	gap: 12px;
	height: 100%;
	width: max-content;
	animation: nt-flow var(--nt-duration, 40s) linear infinite;
}
.nt-slider:hover .nt-track { animation-play-state: paused; }
.nt-track > figure {
	flex: 0 0 auto;
	height: 100%;
	margin: 0 !important;
}
.nt-track > figure img {
	height: 100%;
	width: auto;
	max-width: none;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
/* 帯を半分（＝1セット分）左へ動かして、最初に戻る → 継ぎ目なくループ */
@keyframes nt-flow {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-50% - 6px)); }
}
/* 「動きを減らす」設定の人には止めて表示 */
@media (prefers-reduced-motion: reduce) {
	.nt-track { animation: none; }
}

/* ============ About の写真（左右にずらして配置） ============ */
.nt-about-photos img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.nt-about-photos .wp-block-column:last-child { margin-top: 6rem; }

/* ============ Menu リスト ============ */
.nt-menu-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.1em 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0 !important;
}
.nt-menu-row a {
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* ============ Shop カード ============ */
.nt-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.nt-card .wp-block-image { overflow: hidden; }
.nt-card .wp-block-image img { transition: transform 0.6s ease; }
.nt-card:hover .wp-block-image img { transform: scale(1.04); }
.nt-info {
	font-size: 0.875rem;
	line-height: 2;
	color: var(--wp--preset--color--muted);
}

/* ============ メニューページ ============ */
.nt-menu-hero img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ============ 予約フォーム ============ */
.nt-form { margin-top: 3rem; }
.nt-form p { margin: 0 0 1.4rem; }
.nt-form label {
	display: block;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}
.nt-form input,
.nt-form select,
.nt-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.75em 0.9em;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	font: inherit;
	font-size: 1rem; /* 16px以上にするとiPhoneで勝手に拡大されない */
	color: inherit;
	box-sizing: border-box;
}
.nt-form input:focus,
.nt-form select:focus,
.nt-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
}
.nt-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.nt-form-row--2 { grid-template-columns: 1fr 1fr; }
.nt-req {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0 0.5em;
	font-size: 0.65rem;
	color: #fff;
	background: var(--wp--preset--color--accent);
}
.nt-form-note { font-size: 0.75rem; color: var(--wp--preset--color--muted); }
.nt-form-submit { text-align: center; margin-top: 2.5rem !important; }
.nt-form-submit button { cursor: pointer; padding: 1em 3em; }
.nt-hp { position: absolute !important; left: -9999px; }
.nt-form-error {
	padding: 1em;
	border: 1px solid #c0513d;
	color: #a2412f;
	font-size: 0.875rem;
}
.nt-form-done { text-align: center; margin-top: 3rem; }

/* ============ スマホ ============ */
@media (max-width: 781px) {
	.nt-about-photos .wp-block-column:last-child { margin-top: 0; }
	.nt-slider.is-ready { height: 42vh; }
	.nt-form-row, .nt-form-row--2 { grid-template-columns: 1fr; gap: 0; }
}

/* ============ 練習用サンプルの表示 ============ */
.nt-demo-bar {
	background: var(--wp--preset--color--contrast);
	color: #fff;
	font-size: 0.75rem;
	text-align: center;
	padding: 0.5rem 1rem;
	line-height: 1.6;
}
.nt-demo-bar a { color: #f3d9c8; margin-left: 0.6em; }
.nt-credit {
	text-align: center;
	font-size: 0.7rem;
	color: var(--wp--preset--color--muted);
	padding: 0 1.5rem 2rem;
	margin: 0;
}
.nt-credit a { color: inherit; }
.nt-form-note--demo { color: var(--wp--preset--color--accent); font-weight: 600; }

/* ============ LP（期間限定・貸切・スタッフ募集） ============ */
.nt-lp { overflow: hidden; }
.nt-lp-hero {
	position: relative;
	min-height: clamp(480px, 78vh, 760px);
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	text-align: center;
	color: #fff;
	padding: 6rem 1.5rem;
}
.nt-lp-hero::before { content: ""; position: absolute; inset: 0; background: rgba(30, 26, 22, 0.48); }
.nt-lp-hero__in { position: relative; max-width: 760px; }
.nt-lp-hero__en { font-size: 0.85rem; margin: 0 0 1rem; }
.nt-lp-hero__title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2rem, 6vw, 3.4rem);
	font-weight: 500;
	letter-spacing: 0.08em;
	margin: 0 0 1.4rem;
}
.nt-lp-hero__lead { line-height: 2; margin: 0 0 2.2rem; }
.nt-lp-hero__note { font-size: 0.8rem; margin: 1.2rem 0 0; opacity: 0.9; }
.nt-lp-btn {
	display: inline-block;
	background: var(--wp--preset--color--accent) !important;
	color: #fff !important;
	padding: 1rem 2.6rem !important;
	border-radius: 999px !important;
	text-decoration: none;
	letter-spacing: 0.1em;
	font-size: 0.95rem;
}
.nt-lp-sec { padding: 5.5rem 1.5rem; text-align: center; }
.nt-lp-sec.is-surface { background: var(--wp--preset--color--surface); }
.nt-lp-sec__en { color: var(--wp--preset--color--accent); font-size: 0.8rem; margin: 0 0 0.6rem; }
.nt-lp-sec__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 2.6rem; }
.nt-lp-text { max-width: 640px; margin: 0 auto; line-height: 2.1; }
.nt-lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; max-width: 1080px; margin: 0 auto; text-align: left; }
.nt-lp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 1rem; }
.nt-lp-card h3 { font-family: var(--wp--preset--font-family--serif); font-weight: 500; font-size: 1.1rem; margin: 0 0 0.5rem; }
.nt-lp-card p { font-size: 0.9rem; line-height: 1.9; margin: 0; color: var(--wp--preset--color--muted); }
.nt-lp-course { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; text-align: left; }
.nt-lp-course li { display: flex; gap: 1.2rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.nt-lp-course .nt-en { flex: none; width: 7.5em; color: var(--wp--preset--color--accent); font-size: 0.85rem; }
.nt-lp-price { margin: 2rem 0 0; }
.nt-lp-price strong { font-family: var(--wp--preset--font-family--display); font-size: 2rem; font-weight: 500; margin: 0 0.2em; }
.nt-lp-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: left; }
.nt-lp-steps li { background: var(--wp--preset--color--base); padding: 1.6rem; }
.nt-lp-sec:not(.is-surface) .nt-lp-steps li { background: var(--wp--preset--color--surface); }
.nt-lp-steps span { font-family: var(--wp--preset--font-family--display); font-size: 2rem; color: var(--wp--preset--color--accent); }
.nt-lp-steps h3 { font-size: 1rem; margin: 0.3rem 0 0.5rem; }
.nt-lp-steps p { font-size: 0.85rem; line-height: 1.8; margin: 0; color: var(--wp--preset--color--muted); }
.nt-lp-faq { max-width: 720px; margin: 0 auto; text-align: left; }
.nt-lp-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.nt-lp-faq summary { cursor: pointer; font-weight: 600; }
.nt-lp-faq p { margin: 0.8rem 0 0; line-height: 1.9; color: var(--wp--preset--color--muted); }
.nt-lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.nt-lp-plan { border: 1px solid var(--wp--preset--color--line); padding: 2rem 1.6rem; background: var(--wp--preset--color--base); }
.nt-lp-plan .nt-en { color: var(--wp--preset--color--accent); font-size: 0.8rem; margin: 0; }
.nt-lp-plan h3 { font-family: var(--wp--preset--font-family--serif); font-weight: 500; margin: 0.4rem 0 0.8rem; }
.nt-lp-plan__price { font-family: var(--wp--preset--font-family--display); font-size: 2rem; margin: 0 0 0.6rem; }
.nt-lp-plan__price small { font-family: var(--wp--preset--font-family--sans); font-size: 0.75rem; margin-left: 0.3em; color: var(--wp--preset--color--muted); }
.nt-lp-plan p { font-size: 0.9rem; line-height: 1.8; }
.nt-lp-shops { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; }
.nt-lp-shops li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.nt-lp-terms { max-width: 720px; margin: 0 auto; text-align: left; display: grid; grid-template-columns: 8em 1fr; }
.nt-lp-terms dt, .nt-lp-terms dd { padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.nt-lp-terms dt { font-weight: 600; }
.nt-lp-small { font-size: 0.75rem; color: var(--wp--preset--color--muted); margin: 1.6rem 0 0; }
.nt-lp-form { max-width: 640px; margin: 0 auto; text-align: left; }
.nt-lp-cta { padding: 5.5rem 1.5rem; text-align: center; background: var(--wp--preset--color--contrast); color: #fff; }
.nt-lp-cta .nt-section-title { margin: 0 0 1rem; }
.nt-lp-cta p { margin: 0 0 2rem; }
@media (max-width: 600px) {
	.nt-lp-hero { min-height: clamp(420px, 70vh, 640px); }
	.nt-lp-sec { padding: 4rem 1.25rem; }
	.nt-lp-terms { grid-template-columns: 1fr; }
	.nt-lp-terms dt { border-bottom: 0; padding-bottom: 0; }
	.nt-lp-course li { flex-direction: column; gap: 0.2rem; }
}
