/* ============================================================
   responsive.css — メディアクエリ
   ブレークポイント:
     - 〜 1024px : Tablet（サイドバー幅縮小、グリッド再配置）
     - 〜  768px : 小タブレット（多くのグリッドを 1〜2 列）
     - 〜  375px : スマホ
     - 1920px〜 : ワイドモニター（コンテナ最大幅維持）
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   ≤ 1024px — Tablet
   サイドバーを 120px に縮小、ヒーロー縮小、グリッド再配置
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	:root {
		--sidebar-width: 120px;
		--sidebar-panel-width: 220px;
	}

	.hero {
		height: 420px;
	}
	.hero--top {
		height: 720px;
	}

	.section-news__grid,
	.section-news-list__grid {
		grid-template-columns: repeat(2, minmax(0, 302px));
	}

	.section-menu__grid,
	.section-menu-concept__grid,
	.section-recommend__grid,
	.section-related__grid {
		grid-template-columns: repeat(3, minmax(0, 220px));
	}

	.section-supervision__content,
	.section-philosophy__content,
	.section-concept__content,
	.section-history__content,
	.section-tsuboichi-philosophy__content,
	.section-message__content,
	.menu-header__content {
		gap: var(--space-10);
	}

	/* Tablet ではフルブリードの overflow を調整 */
	.hero,
	.bottom-bar,
	.section-visual {
		width: calc(100% + var(--sidebar-width));
	}

	/* section-split: タブレットではグリッドを縮小 */
	.section-split {
		max-width: 100%;
	}

	.section-split__inner {
		grid-template-columns: 1fr 1fr;
		min-height: 360px;
	}

	.section-split__image {
		width: 100%;
		height: 360px;
	}

	.section-split__text {
		padding: var(--space-8);
		padding-left: var(--space-8);
	}

	.section-split--reverse .section-split__text {
		padding-right: var(--space-8);
		padding-left: var(--space-8);
	}

	.section-split__divider {
		width: 100%;
	}

	/* Footer: 店舗情報を縦並び */
	.footer__store-info-inner {
		grid-template-columns: 1fr;
	}

	.footer__store-gallery {
		max-height: 400px;
	}

	.section-tea-types__item {
		grid-template-columns: 1fr;
	}
}

/* ──────────────────────────────────────────────────────────
   ≤ 768px — Tablet 縦 / 大型スマホ
   サイドバーを下部固定の細バーに切替、フッター縦並び化
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	:root {
		--sidebar-width: 0px;
		--bottombar-height: 56px;
	}

	body {
		padding-bottom: 64px;
	}

	.site-main {
		padding-right: 0;
	}

	/* モバイルでは sidebar-width=0 なので full-bleed の calc() をリセット */
	.hero,
	.bottom-bar,
	.section-visual {
		width: 100%;
	}

	.section-split--reverse {
		margin-right: 0;
	}

	/* サイドバーは下部固定のミニバーに切替 */
	.sidebar {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: 64px;
		pointer-events: none;
	}

	.sidebar__bar {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: 64px;
		flex-direction: row;
		justify-content: space-between;
		padding: 0 var(--space-4);
		gap: var(--space-3);
		border-left: 0;
		border-top: 1px solid var(--color-divider);
		background: var(--color-bg);
	}

	.sidebar__vertical,
	.sidebar__stamp {
		display: none;
	}

	.sidebar__sns {
		gap: var(--space-3);
	}

	/* Open 時のパネルはフルスクリーン */
	.sidebar__panel {
		top: 0;
		right: 0;
		width: 100%;
		height: 100vh;
	}

	.bottom-bar {
		display: none;
	}

	/* Hero 縮小 */
	.hero {
		height: 320px;
	}
	.hero--top {
		height: 80vh;
		min-height: 540px;
	}

	.hero__title {
		font-size: var(--fs-h1);
	}
	.hero__title-main {
		font-size: 3rem;
	}

	/* セクション padding 縮小（section-split / visual / banner は除外） */
	.section-news,
	.section-intro,
	.section-menu,
	.section-shop-info,
	.section-philosophy,
	.section-concept,
	.section-drink-concept,
	.section-interior,
	.section-history,
	.section-tsuboichi-philosophy,
	.section-message,
	.section-recommend,
	.section-store-info,
	.section-menu-intro,
	.section-menu-concept,
	.section-tea-types,
	.section-characteristics,
	.section-tea-info,
	.section-related,
	.section-news-list,
	.section-recruit-intro,
	.section-recruit-gallery,
	.section-job-detail,
	.section-contact-banner,
	.section-contact-form,
	.section-thanks,
	.section-privacy,
	.section-supervision {
		padding: var(--space-12) var(--space-4);
	}

	/* section-split: モバイルでは縦並び */
	.section-split__inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.section-split__image {
		width: 100%;
		height: 280px;
	}

	.section-split--reverse .section-split__image {
		order: 0;
	}

	.section-split--reverse .section-split__text {
		order: 0;
		padding-right: var(--space-6);
	}

	.section-split__text {
		padding: var(--space-6);
	}

	.section-split__title {
		font-size: 1.5rem;
	}

	.section-split__divider {
		width: 100%;
	}

	/* 見出し縮小 */
	.section-header__title-jp,
	.section-intro__heading,
	.section-menu-intro__heading,
	.section-recruit-intro__heading,
	.section-contact-form__heading,
	.section-privacy__heading,
	.section-philosophy__heading,
	.section-concept__heading,
	.section-history__heading,
	.section-tsuboichi-philosophy__heading,
	.section-message__heading,
	.section-supervision__heading,
	.menu-header__name,
	.section-banner__heading {
		font-size: 2rem;
	}

	/* 横並び 2 列 → 縦並び */
	.section-supervision__content,
	.section-philosophy__content,
	.section-concept__content,
	.section-history__content,
	.section-tsuboichi-philosophy__content,
	.section-message__content,
	.menu-header__content {
		grid-template-columns: 1fr;
		gap: var(--space-8);
		direction: ltr;
	}

	.section-supervision__content,
	.section-concept__content,
	.section-tsuboichi-philosophy__content {
		direction: ltr;
	}

	/* Footer バナー縮小 */
	.footer__contact-banner,
	.footer__recruit-banner {
		height: 160px;
	}

	.footer__contact-heading,
	.footer__recruit-heading {
		font-size: 1.75rem;
	}

	/* Footer ナビ */
	.footer__nav-area {
		padding: var(--space-10) var(--space-4);
	}

	.footer__nav-area-inner {
		flex-direction: column;
		gap: var(--space-8);
	}

	.footer__nav-columns {
		flex-direction: column;
		gap: var(--space-6);
	}

	.footer__store-heading {
		font-size: 2rem;
	}

	/* Card grid: 1〜2 列 */
	.section-news__grid,
	.section-news-list__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4);
	}

	.section-menu__grid,
	.section-menu-concept__grid,
	.section-recommend__grid,
	.section-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-6);
	}

	.section-shop-info__grid,
	.section-store-info__grid,
	.footer__shops {
		grid-template-columns: 1fr;
	}

	.section-drink-concept__grid {
		grid-template-columns: 1fr;
	}

	.section-interior__gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Card/Shop: 縦並び */
	.card-shop {
		grid-template-columns: 1fr;
		gap: var(--space-4);
	}

	/* Job Detail: dl を縦並びに */
	.job-detail {
		padding: var(--space-6) var(--space-4);
	}
	.job-detail__item {
		grid-template-columns: 1fr;
		gap: var(--space-1);
	}

	/* Nav/Article: 縦並び */
	.nav-article {
		grid-template-columns: 1fr;
		gap: var(--space-3);
		text-align: center;
	}
	.nav-article__prev,
	.nav-article__next {
		justify-content: center;
	}

	/* Footer 店舗情報: 縦並び */
	.footer__store-info-inner {
		grid-template-columns: 1fr;
	}

	.footer__store-detail {
		padding: var(--space-8) var(--space-4);
	}

	.footer__store-gallery {
		max-height: 300px;
	}

	/* Card/News サイズ調整 */
	.card-news {
		max-width: 100%;
	}

	/* Card/Menu サムネイル縮小 */
	.card-menu {
		max-width: 100%;
	}
	.card-menu__thumbnail {
		width: 160px;
		height: 160px;
	}

	/* Top/Popup */
	.top-popup {
		width: 160px;
		left: var(--space-3);
		bottom: 76px;
	}

	/* Button/CTA: 幅を満たす */
	.button-cta {
		min-width: 240px;
		font-size: var(--fs-body-lg);
		height: 60px;
	}

	/* Cat-filter */
	.cat-filter {
		gap: var(--space-2);
	}
	.cat-filter-btn {
		font-size: 0.8125rem;
		padding: var(--space-2) var(--space-4);
	}
}

/* ──────────────────────────────────────────────────────────
   ≤ 375px — モバイル
   ────────────────────────────────────────────────────────── */
@media (max-width: 375px) {
	.section-news__grid,
	.section-news-list__grid,
	.section-menu__grid,
	.section-menu-concept__grid,
	.section-recommend__grid,
	.section-related__grid {
		grid-template-columns: 1fr;
	}

	.section-interior__gallery {
		grid-template-columns: 1fr;
	}

	.section-recruit-gallery__grid {
		grid-template-columns: 1fr;
	}

	.button-cta {
		width: 100%;
		min-width: 0;
	}
}

/* ──────────────────────────────────────────────────────────
   ≥ 1920px — ワイドモニター（コンテナ最大幅維持）
   ────────────────────────────────────────────────────────── */
@media (min-width: 1920px) {
	:root {
		--container-max: 1440px;
	}

	.hero--top {
		height: 1080px;
	}
}

/* ──────────────────────────────────────────────────────────
   タッチデバイス: カスタムカーソル非表示
   ────────────────────────────────────────────────────────── */
@media (hover: none), (pointer: coarse) {
	.cursor-dot,
	.cursor-circle {
		display: none !important;
	}
}

/* ──────────────────────────────────────────────────────────
   prefers-reduced-motion: アニメーション抑制
   ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.opening {
		display: none !important;
	}
}
