/* Issue: monozku/projects#267 ・ トップE案（中野さん 2026-11-05「職人への入口を追加」）とE案の共通ヘッダー・フッター（Q166）
   数値の正本は Drive 10_受け取り箱 の Main-v2.dc.html（PC 1440）・SP-v2.dc.html（スマホ 390）。768px 未満はスマホ版（指示書 1章）
   te- で始まる class だけに効かせる（ほかのページの本文の見た目は変えない） */
:root {
	--te-bg: #FBF8F4; --te-band: #F4EDE4; --te-card: #FFFFFF; --te-ink: #3A2E26;
	--te-sub: #6D5F55; --te-desc: #5A4C42; --te-orange: #C8601F; --te-kicker: #B25418; --te-tag: #8A3E12;
	--te-rule: #EEE6DC; --te-rule2: #E6DCD0; --te-pill: #D8CCBF; --te-noimg: #EDE6DE;
	--te-ff: 'Zen Kaku Gothic New', sans-serif;
}
.te-header, .te-footer, .te-top { font-family: var(--te-ff); color: var(--te-ink); line-height: 1.8; letter-spacing: 0.05em; }
.te-header a, .te-footer a, .te-top a { color: var(--te-ink); }
.te-header a:hover, .te-footer a:hover, .te-top a:hover { color: var(--te-kicker); }
.te-header *, .te-footer *, .te-top * { box-sizing: border-box; }
.te-header p, .te-footer p, .te-top p, .te-top h2, .te-top h3 { margin: 0; }
.te-top img { max-width: none; }
body.te-home { background: var(--te-bg); }

/* ===== ヘッダー（全ページ共通） ===== */
.wp-site-blocks > header.te-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 244, 0.96); border-bottom: 1px solid var(--te-rule); }
.te-header-inner { max-width: 1360px; margin: 0 auto; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; position: relative; }
.te-logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.te-logo img { display: block; height: 44px; width: auto; }
.te-nav-check { position: absolute; opacity: 0; pointer-events: none; }
.te-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 13px; }
.te-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 0; }
.te-nav a[aria-current="page"] { color: var(--te-kicker); font-weight: 700; }
.te-icons { display: flex; align-items: center; }
.te-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; position: relative; }
.te-icon svg { display: block; }
.te-cart-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--te-orange); color: #FFFFFF; font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: 0; text-align: center; }
.te-cart-count[data-zero] { display: none; }
.te-sp-only { display: none !important; }
.te-menu-open { width: 44px; height: 44px; border: 0; background: transparent; display: none; align-items: center; justify-content: center; cursor: pointer; }
html { scroll-padding-top: 80px; }

/* ===== フッター（全ページ共通） ===== */
.te-footer { background: var(--te-band); border-top: 1px solid var(--te-rule2); }
.te-footer-inner { max-width: 1240px; margin: 0 auto; padding: 56px 32px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.te-footer-left { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.te-footer-logo { display: block; height: 52px; width: auto; align-self: flex-start; }
.te-footer-lead { font-size: 13px; color: var(--te-desc); }
.te-footer-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.te-footer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 190px; height: 48px; border-radius: 10px; background: var(--te-orange); color: #FFFFFF !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.te-footer-btn:hover { opacity: 0.9; }
.te-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 2px 40px; font-size: 13px; align-content: start; }
.te-footer-nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
.te-footer-sub { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: 11px; }
.te-footer-sub a { color: var(--te-sub) !important; display: inline-flex; align-items: center; min-height: 44px; }
.te-footer-copy { text-align: center; font-size: 11px; color: var(--te-sub); padding: 8px 32px 28px; }

/* ===== トップ ===== */
.te-top { background: var(--te-bg); overflow-x: hidden; }
.te-h2 { margin: 0 0 28px !important; text-align: center; font-size: 15px; font-weight: 500; letter-spacing: 0.3em; }

/* ヒーロー */
.te-hero { position: relative; height: 640px; background: var(--te-noimg); overflow: hidden; }
.te-hero-photo { position: absolute; inset: 0; }
.te-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.te-pos { object-position: var(--pos); }
.te-hero-box { position: absolute; left: 48px; bottom: 56px; display: flex; flex-direction: column; gap: 8px; background: rgba(251, 248, 244, 0.92); padding: 24px 28px; max-width: 420px; }
.te-hero-kicker { font-size: 12px; letter-spacing: 0.2em; color: var(--te-kicker); }
.te-hero-title { font-size: 26px; font-weight: 700; line-height: 1.6; letter-spacing: 0.08em; }
.te-hero-note { font-size: 13px; color: var(--te-sub); }
.te-hero-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0 20px; background: var(--te-ink); color: #FFFFFF !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.te-hero-btn:hover { opacity: 0.9; }
.te-badge { position: absolute; right: 48px; top: 40px; width: 168px; height: 168px; border-radius: 50%; background: var(--te-orange); color: #FFFFFF !important; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; gap: 2px; box-shadow: 0 10px 24px rgba(90, 40, 10, 0.25); }
.te-badge-a { font-size: 12px; letter-spacing: 0.1em; }
.te-badge-n { font-size: 30px; font-weight: 700; line-height: 1.2; }
.te-badge-n small { font-size: 14px; }
.te-badge-b { font-size: 12px; }
.te-badge-b-sp { display: none; }
/* スライドショー（#267・11/12 指示書 2-1）: フェード 0.7秒・矢印 PC 48px 丸・点の押せる範囲 44px。1件のときは矢印と点を出さない（index.astro） */
.te-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.te-slide.is-active { opacity: 1; visibility: visible; }
.te-slide picture { display: block; position: absolute; inset: 0; }
.te-hero-box { z-index: 2; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.te-hero-box.is-active { opacity: 1; visibility: visible; }
.te-slider .te-hero-box { bottom: 72px; }
.te-arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(251, 248, 244, 0.85); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.te-arrow > span { display: flex; align-items: center; justify-content: center; }
.te-arrow svg { fill: none; stroke: var(--te-ink); stroke-width: 2; }
.te-arrow.is-prev { left: 16px; }
.te-arrow.is-next { right: 16px; }
.te-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.te-dots button { pointer-events: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.te-dots button span { display: block; width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 1.5px solid #FFFFFF; box-shadow: 0 0 0 1px rgba(58, 46, 38, 0.35); }
.te-dots button.is-active span { background: #FFFFFF; }
/* 職人むすびについて（要件定義 6番・#267 11/14） */
.te-about { max-width: 760px; margin: 0 auto; padding: 72px 32px 88px; text-align: center; }
.te-about-text { margin: 0 0 12px; font-size: 15px; color: var(--te-desc); }
.te-about-links { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 767.98px) { .te-about { padding: 56px 16px 64px; text-align: left; } .te-about-text { font-size: 14px; } .te-about-links { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .te-slide, .te-hero-box { transition: none; } }

/* お知らせ */
.te-news { max-width: 1240px; margin: 0 auto; padding: 72px 32px 24px; }
.te-news-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.te-news-card { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--te-card); border-radius: 5px; text-decoration: none; font-size: 14px; }
.te-news-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--te-sub); }
.te-news-tag { padding: 1px 8px; }
.te-news-tag.is-project { background: var(--te-orange); color: #FFFFFF; }
.te-news-tag.is-info { background: var(--te-rule); color: var(--te-ink); }
.te-news-more { flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px; font-size: 13px; min-height: 44px; }

/* ピックアップ */
.te-pick { padding: 72px 0 40px; }
.te-pick-row { display: flex; gap: 20px; overflow-x: auto; padding: 0 32px 16px; }
.te-pick-card { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.te-pick-photo { position: relative; display: block; width: 300px; height: 300px; background: var(--te-noimg); }
.te-pick-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.te-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 3px 10px; line-height: 1.6; }
.te-tag.is-live { background: var(--te-orange); color: #FFFFFF; }
.te-tag.is-soon { background: #FFFFFF; color: var(--te-tag); }
.te-tag.is-read { background: var(--te-ink); color: #FFFFFF; }
.te-tag.is-ended { background: var(--te-rule); color: var(--te-ink); }
.te-tag.is-buy { background: #FFFFFF; color: var(--te-tag); box-shadow: inset 0 0 0 1px var(--te-orange); }
.te-pick-title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.te-pick-stat { display: flex; flex-direction: column; gap: 4px; }
.te-pick-stat-text { font-size: 12px; color: var(--te-sub); }
.te-bar { display: block; height: 4px; background: var(--te-rule); }
.te-bar span { display: block; height: 100%; background: var(--te-orange); }
.te-bar.is-stopped span { background: var(--te-sub); }
.te-pick-meta { font-size: 12px; color: var(--te-sub); }
.te-pick-meta .te-sp { display: none; }

/* 商品 */
.te-prod { max-width: 1240px; margin: 0 auto; padding: 72px 32px; }
.te-prod .te-h2 { margin-bottom: 32px !important; }
.te-prod-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.te-prod-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.te-prod-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #FFFFFF; }
.te-prod-maker { font-size: 11px; color: var(--te-sub); min-height: 1.8em; }
.te-prod-name { font-size: 14px; font-weight: 700; }
.te-cf { align-self: flex-start; font-size: 11px; border: 1px solid var(--te-orange); color: var(--te-tag); padding: 0 8px; }
.te-prod-price { font-size: 15px; }
.te-prod-price small { font-size: 11px; color: var(--te-sub); }

/* 職人から探す */
.te-find { background: var(--te-band); padding: 80px 32px; }
.te-find-in { max-width: 1240px; margin: 0 auto; }
.te-find .te-h2 { margin-bottom: 32px !important; }
.te-maker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.te-maker-grid.is-few { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.te-maker { display: flex; flex-direction: column; gap: 10px; background: var(--te-card); padding: 0 0 22px; border-radius: 5px; overflow: hidden; text-decoration: none; }
.te-maker img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.te-maker-text { display: flex; flex-direction: column; gap: 10px; }
.te-maker-name { padding: 0 22px; font-size: 17px; font-weight: 700; }
.te-maker-body { padding: 0 22px; font-size: 13px; color: var(--te-desc); }
.te-find-more-wrap { margin-top: 32px; display: flex; justify-content: center; }
.te-find-more { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 40px; background: #FFFFFF; border: 1.5px solid var(--te-ink); border-radius: 5px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; }

/* ジャーナル */
.te-jnl { max-width: 1240px; margin: 0 auto; padding: 88px 32px; }
.te-jnl .te-h2 { margin-bottom: 32px !important; }
.te-jnl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px 28px; }
.te-jnl-grid.is-few { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.te-jnl-card { display: flex; gap: 18px; text-decoration: none; }
.te-jnl-card img, .te-jnl-noimg { display: block; flex: 0 0 auto; width: 150px; height: 112px; object-fit: cover; background: var(--te-noimg); }
.te-jnl-text { display: flex; flex-direction: column; gap: 6px; }
.te-jnl-cat { font-size: 11px; color: var(--te-kicker); letter-spacing: 0.1em; }
.te-jnl-title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.te-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.te-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--te-pill); border-radius: 999px; font-size: 13px; text-decoration: none; background: #FFFFFF; }

/* ===== スマホ（768px 未満） ===== */
@media (max-width: 767.98px) {
	html { scroll-padding-top: 60px; }
	.te-header-inner { padding: 6px 6px 6px 16px; flex-wrap: nowrap; gap: 0; }
	.te-logo img { height: 32px; }
	.te-sp-only { display: inline-flex !important; }
	.te-pc-only { display: none !important; }
	.te-sp-shokunin { min-width: 44px; height: 44px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; text-decoration: none; }
	.te-icon { width: 38px; }
	.te-menu-open { display: inline-flex; }
	.te-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--te-bg); border-bottom: 1px solid var(--te-rule); padding: 4px 16px 12px; font-size: 14px; }
	.te-nav-check:checked ~ .te-nav { display: flex; }
	.te-nav a { display: flex; align-items: center; min-height: 44px; padding: 0; border-bottom: 1px dashed var(--te-rule); }
	.te-nav a:last-child { border-bottom: 0; }

	.te-footer { padding: 36px 20px 24px; }
	.te-footer-inner { padding: 0; display: block; }
	.te-footer-left { max-width: none; gap: 0; }
	.te-footer-logo { height: 40px; }
	.te-footer-lead { margin: 8px 0 12px !important; font-size: 12px; }
	.te-footer-btns { flex-wrap: nowrap; margin-bottom: 20px; }
	.te-footer-btn { flex: 1 1 0; width: auto; gap: 6px; }
	.te-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; font-size: 12px; }
	.te-footer-nav a { min-height: 44px; }
	.te-footer-sub { padding: 8px 0 0; }
	.te-footer-copy { margin-top: 16px !important; font-size: 10px; padding: 0; }

	.te-h2 { margin-bottom: 18px !important; font-size: 13px; }
	.te-hero { height: auto; background: var(--te-bg); overflow: visible; }
	.te-pos { object-position: var(--pos-sp); }
	.te-hero-photo { position: relative; height: 280px; background: var(--te-noimg); overflow: hidden; }
	.te-hero-box { position: static; max-width: none; background: transparent; padding: 20px 20px 8px; gap: 4px; }
	.te-hero-kicker { font-size: 11px; letter-spacing: 0.12em; }
	.te-hero-title { font-size: 22px; letter-spacing: 0.05em; }
	.te-hero-title br { display: none; }
	.te-hero-note { font-size: 12px; }
	.te-hero-btn { align-self: stretch; justify-content: center; min-height: 48px; margin-top: 10px; }
	.te-badge { right: 12px; top: 12px; width: 88px; height: 88px; gap: 0; box-shadow: 0 6px 14px rgba(90, 40, 10, 0.25); }
	.te-badge-a { font-size: 9px; letter-spacing: 0.05em; }
	.te-badge-n { font-size: 20px; }
	.te-badge-n small { font-size: 10px; }
	.te-badge-b { display: none; }
	.te-badge-b-sp { display: block; font-size: 9px; }
	.te-slider .te-hero-box { bottom: auto; }
	.te-hero-box:not(.is-active) { display: none; }
	.te-arrow { top: 50%; width: 44px; height: 44px; border-radius: 0; background: none; }
	.te-arrow > span { width: 32px; height: 32px; border-radius: 50%; background: rgba(251, 248, 244, 0.85); }
	.te-arrow svg { width: 16px; height: 16px; stroke-width: 2.2; }
	.te-arrow.is-prev { left: 4px; }
	.te-arrow.is-next { right: 4px; }
	.te-dots { position: static; margin-top: 2px; gap: 0; }
	.te-dots button { width: 44px; height: 32px; }
	.te-dots button span { width: 8px; height: 8px; border: 1.5px solid var(--te-ink); box-shadow: none; }
	.te-dots button.is-active span { background: var(--te-ink); }

	.te-news { padding: 48px 16px 16px; }
	.te-news-row { flex-direction: column; gap: 8px; }
	.te-news-card { flex: none; gap: 4px; padding: 14px 16px; font-size: 13px; }
	.te-news-meta { gap: 8px; font-size: 10px; }
	.te-news-tag { padding: 0 6px; }
	.te-news-more { justify-content: flex-end; padding: 0; font-size: 12px; }

	.te-pick { padding: 40px 0 24px; }
	.te-pick-row { gap: 14px; padding: 0 16px 12px; }
	.te-pick-card { flex: 0 0 240px; gap: 8px; }
	.te-pick-photo { width: 240px; height: 240px; }
	.te-tag { top: 10px; left: 10px; font-size: 10px; padding: 2px 8px; }
	.te-pick-title { font-size: 13px; }
	.te-pick-stat { gap: 3px; }
	.te-pick-stat-text { font-size: 11px; }
	.te-bar { height: 3px; }
	.te-pick-meta { font-size: 11px; }
	.te-pick-meta .te-pc { display: none; }
	.te-pick-meta .te-sp { display: inline; }

	.te-prod { padding: 40px 16px 56px; }
	.te-prod .te-h2 { margin-bottom: 20px !important; }
	.te-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
	.te-prod-card { gap: 4px; }
	.te-prod-maker { font-size: 10px; margin-top: 4px; }
	.te-prod-name { font-size: 13px; line-height: 1.5; }
	.te-cf { font-size: 10px; padding: 0 6px; }
	.te-prod-price { font-size: 14px; }
	.te-prod-price small { display: none; }

	.te-find { padding: 48px 16px; }
	.te-find .te-h2 { margin-bottom: 20px !important; }
	.te-maker-grid, .te-maker-grid.is-few { display: flex; flex-direction: column; gap: 14px; }
	.te-maker { flex-direction: row; gap: 14px; align-items: center; padding: 10px; }
	.te-maker img { flex: 0 0 auto; width: 96px; height: 96px; aspect-ratio: auto; }
	.te-maker-text { gap: 2px; }
	.te-maker-name { padding: 0; font-size: 15px; }
	.te-maker-body { padding: 0; font-size: 11px; }
	.te-find-more-wrap { margin-top: 18px; display: block; }
	.te-find-more { display: flex; justify-content: center; gap: 8px; min-height: 48px; padding: 0; font-size: 14px; letter-spacing: 0.08em; }

	.te-jnl { padding: 56px 16px; }
	.te-jnl .te-h2 { margin-bottom: 20px !important; }
	.te-jnl-grid, .te-jnl-grid.is-few { display: flex; flex-direction: column; gap: 18px; }
	.te-jnl-card { gap: 14px; }
	.te-jnl-card img, .te-jnl-noimg { width: 112px; height: 84px; }
	.te-jnl-text { gap: 4px; }
	.te-jnl-cat { font-size: 10px; letter-spacing: 0.05em; }
	.te-jnl-title { font-size: 13px; }
	.te-pills { gap: 8px; margin-top: 28px; }
	.te-pill { min-height: 44px; padding: 0 14px; font-size: 12px; }
}
