/* 原宿Today v2 — base, layout, shell (header/footer/nav), buttons, chips,
   status tags, photo frames. Variables only (see tokens.css).
   Source: docs/claude/design/static/ht.css. Page-specific rules (3a/3c/3d)
   are added in their own phases. */

/* ===== base ===== */
.ht-theme,
.ht-theme *,
.ht-theme *::before,
.ht-theme *::after { box-sizing: border-box; }

.ht-theme {
	margin: 0;
	background: var(--ht-white);
	color: var(--ht-ink);
	font-family: var(--ht-font-body);
	font-size: var(--ht-fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
.ht-theme a { color: var(--ht-green-700); text-decoration: none; }
.ht-theme a:hover { color: var(--ht-green); }
.ht-theme :focus-visible { outline: 2px solid var(--ht-green); outline-offset: 2px; }
.ht-theme img { max-width: 100%; height: auto; }
.ht-num { font-family: var(--ht-font-num); font-weight: 400; }
.ht-jp { font-family: var(--ht-font-jp); }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.ht-skip-link {
	position: absolute;
	top: -999px;
	left: 0;
	z-index: 100;
	padding: .75em 1em;
	background: var(--ht-ink);
	color: var(--ht-white);
}
.ht-theme .ht-skip-link:focus { top: 0; color: var(--ht-white); }

/* ===== layout ===== */
.ht-site { min-height: 100vh; display: flex; flex-direction: column; }
.ht-main { flex: 1 0 auto; padding-bottom: 52px; }
.ht-wrap,
.ht-container {
	width: 100%;
	max-width: calc(var(--ht-max) + var(--ht-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--ht-gutter);
}
.ht-section { padding-top: var(--ht-gap-section); display: flex; flex-direction: column; gap: 20px; }
.ht-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ht-section-head .ht-kicker { font-family: var(--ht-font-num); font-size: 15px; color: var(--ht-accent); }
.ht-section-title { margin: 0; font-family: var(--ht-font-jp); font-weight: 900; font-size: var(--ht-fs-section); line-height: 1.35; }
.ht-grid { display: grid; gap: var(--ht-gap-card); }
.ht-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ht-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ht-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Fallback index.php entries (until each screen phase adds its template). */
.ht-entry { padding-top: 26px; }
.ht-entry__title { margin: 0 0 12px; font-family: var(--ht-font-jp); font-weight: 900; font-size: var(--ht-fs-title); line-height: 1.4; }

/* Plugin virtual routes (/shops/, /shops/{slug}/) call get_header()/get_footer()
   directly; their own root is the integration point (as in the previous theme). */
.ht-theme .harajuku-shops-directory,
.ht-theme .harajuku-shop-detail {
	width: min(100% - (var(--ht-gutter) * 2), var(--ht-max));
	max-width: none;
	margin: 1em auto 2em;
}
.ht-site > .harajuku-shops-directory,
.ht-site > .harajuku-shop-detail { flex: 1 0 auto; }

/* ===== header ===== */
.ht-header-slot { width: 100%; flex: 0 0 auto; }
.ht-header { position: relative; z-index: 20; padding: 12px 20px; }
.ht-header.is-floating {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--ht-header-floating-z);
	animation: ht-header-slide-down var(--ht-header-reveal-duration) var(--ht-header-reveal-easing);
}
@keyframes ht-header-slide-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
@media screen and (min-width: 601px) { .admin-bar .ht-header.is-floating { top: 46px; } }
@media screen and (min-width: 783px) { .admin-bar .ht-header.is-floating { top: 32px; } }
@media (prefers-reduced-motion: reduce) { .ht-header.is-floating { animation: none; } }

.ht-header-bar {
	max-width: calc(var(--ht-max) + 48px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 12px 16px 12px 20px;
	border-radius: var(--ht-r-pill);
	background: var(--ht-glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: var(--ht-shadow-header);
}
.ht-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex: none; }
.ht-theme a.ht-brand,
.ht-theme a.ht-brand:hover { color: var(--ht-ink); }
.ht-brand--logo img { display: block; max-height: 44px; width: auto; }
.ht-brand-mark {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ht-green);
	color: var(--ht-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ht-font-jp);
	font-weight: 900;
	font-size: 22px;
	line-height: 1;
}
.ht-brand-word { display: flex; align-items: baseline; white-space: nowrap; line-height: 1.2; }
.ht-brand-word b { font-family: var(--ht-font-jp); font-weight: 900; font-size: 24px; }
.ht-brand-word span { font-family: var(--ht-font-num); font-size: 26px; color: var(--ht-pink); }

.ht-nav { font-size: 15px; font-weight: 700; white-space: nowrap; min-width: 0; }
.ht-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ht-nav__list li { flex: none; }
.ht-theme .ht-nav a { display: block; padding: 8px 16px; border-radius: var(--ht-r-pill); color: var(--ht-ink); line-height: 1.5; }
.ht-theme .ht-nav a:hover { background: var(--ht-mist); color: var(--ht-ink); }
.ht-theme .ht-nav a[aria-current="page"],
.ht-theme .ht-nav .current-menu-item > a { background: var(--ht-green-100); color: var(--ht-green-700); }
.ht-theme .ht-nav .is-sub > a,
.ht-theme .ht-nav a.is-sub { color: var(--ht-ink-3); }

/* Hamburger (≥768px, only while the items do not fit; site.js toggles the classes) */
.ht-header-bar { position: relative; }
.ht-nav-toggle[hidden] { display: none; }
.ht-nav-toggle {
	flex: none;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--ht-mist);
	color: var(--ht-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.ht-nav-toggle:hover { background: var(--ht-green-100); color: var(--ht-green-700); }
.ht-nav-toggle__bar,
.ht-nav-toggle__bar::before,
.ht-nav-toggle__bar::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, background-color .2s ease; }
.ht-nav-toggle__bar { position: relative; }
.ht-nav-toggle__bar::before,
.ht-nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.ht-nav-toggle__bar::before { top: -6px; }
.ht-nav-toggle__bar::after { top: 6px; }
.ht-nav-toggle[aria-expanded="true"] .ht-nav-toggle__bar { background: transparent; }
.ht-nav-toggle[aria-expanded="true"] .ht-nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.ht-nav-toggle[aria-expanded="true"] .ht-nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
.ht-header.is-nav-collapsed .ht-nav {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 240px;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	padding: 8px;
	border-radius: var(--ht-r-card);
	background: var(--ht-white);
	box-shadow: var(--ht-shadow);
}
.ht-header.is-nav-collapsed.is-nav-open .ht-nav { display: block; }
.ht-header.is-nav-collapsed .ht-nav__list { flex-direction: column; gap: 2px; }
.ht-theme .ht-header.is-nav-collapsed .ht-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; }
@media (prefers-reduced-motion: reduce) {
	.ht-nav-toggle__bar,
	.ht-nav-toggle__bar::before,
	.ht-nav-toggle__bar::after { transition: none; }
}

/* ===== footer ===== */
.ht-footer {
	margin: 0 20px 20px;
	background: var(--ht-mist);
	border-radius: var(--ht-r-panel);
	padding: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	align-items: flex-start;
	font-size: 14px;
}
.ht-footer .ht-brand { margin-right: 0; }
.ht-footer__nav-list { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; list-style: none; margin: 0; padding: 0; }
.ht-theme .ht-footer__nav-list a { color: var(--ht-ink); }
.ht-theme .ht-footer__nav-list a:hover { color: var(--ht-green-700); }
.ht-footer small { flex-basis: 100%; color: var(--ht-ink-3); font-size: 12px; }

/* ===== back to top ===== */
.ht-back-to-top {
	position: fixed;
	right: var(--ht-gutter);
	bottom: var(--ht-gutter);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: var(--ht-r-pill);
	background: var(--ht-green);
	color: var(--ht-white);
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 40;
}
.ht-back-to-top:hover { background: var(--ht-green-700); }
.ht-back-to-top[hidden] { display: none; }
.ht-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .ht-back-to-top { transition: none; } }

/* ===== buttons ===== */
.ht-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: var(--ht-r-pill);
	border: 0;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
}
.ht-theme .ht-btn-primary { background: var(--ht-green); color: var(--ht-white); }
.ht-theme .ht-btn-primary:hover { background: var(--ht-green-700); color: var(--ht-white); }
.ht-theme .ht-btn-outline { box-shadow: inset 0 0 0 1.5px var(--ht-green); color: var(--ht-green-700); background: transparent; }
.ht-theme .ht-btn-outline:hover { background: var(--ht-green-100); color: var(--ht-green-700); }
.ht-theme .ht-btn-white { background: var(--ht-white); color: var(--ht-green-700); }
.ht-theme .ht-btn-white:hover { background: var(--ht-green-100); color: var(--ht-green-700); }
.ht-theme .ht-btn-ghost-white { box-shadow: inset 0 0 0 1.5px var(--ht-white-a70); color: var(--ht-white); background: transparent; }
.ht-theme .ht-btn-ghost-white:hover { background: var(--ht-white-a12); color: var(--ht-white); }
.ht-btn-block { display: flex; width: 100%; padding: 14px; font-size: 15px; }
.ht-theme .ht-link-more { font-size: 14px; font-weight: 700; color: var(--ht-green); }
.ht-section-foot { display: none; }
.ht-section-foot .ht-btn { flex: 1; }

/* ===== chips (filters) ===== */
.ht-chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.ht-theme .ht-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--ht-r-pill); background: var(--ht-white); color: var(--ht-ink); white-space: nowrap; }
.ht-theme .ht-chip:hover { background: var(--ht-green-100); color: var(--ht-green-700); }
.ht-theme .ht-chip[aria-current="true"] { background: var(--ht-green); color: var(--ht-white); }
.ht-chip .ht-num { margin-left: 6px; }

/* ===== status tag — state key → look, converted only by ht_status_tag() ===== */
.ht-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 3px 12px; border-radius: var(--ht-r-pill); white-space: nowrap; }
.ht-tag-live { background: var(--ht-green); color: var(--ht-white); }                                         /* 開催中・本日開始 */
.ht-tag-open { background: var(--ht-green-100); color: var(--ht-green-700); }                                 /* 営業中（通常営業） */
.ht-tag-tomorrow { background: var(--ht-sky); color: var(--ht-white); }                                       /* 明日スタート */
.ht-tag-permanent { background: var(--ht-sky-100); color: var(--ht-sky-900); }                               /* 常設 */
.ht-tag-planned { background: var(--ht-gray-100); color: var(--ht-ink-2); }                                   /* 開店予定・今週末（灰色） */
.ht-tag-upcoming { background: var(--ht-sky-300); color: var(--ht-sky-900); }                              /* 開催予定（明るい水色） */
.ht-tag-undated { background: var(--ht-white); color: var(--ht-ink-2); box-shadow: inset 0 0 0 1.5px var(--ht-line); } /* 日程未定・一部未定 */
.ht-tag-final { background: var(--ht-pink); color: var(--ht-white); }                                         /* 本日最終日（赤ピンク） */
.ht-tag-oneday { background: var(--ht-pink-100); color: var(--ht-pink-700); }                                 /* 本日限定（赤ピンク） */
.ht-tag-ended,
.ht-tag-closed { background: var(--ht-gray-100); color: var(--ht-ink-3); }                                    /* 終了・閉店・移転・休業 */
.ht-tag-cancel { background: var(--ht-ink); color: var(--ht-white); }                                         /* 中止・延期 */
.ht-tag-lg { font-size: 13px; padding: 5px 14px; }
/* おすすめ（4〜5）。モックに無いが意味を残すための小さな印 */
.ht-badge-reco { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 3px 10px; border-radius: var(--ht-r-pill); background: var(--ht-green-100); color: var(--ht-green-700); white-space: nowrap; }

/* ===== photo frames ===== */
.ht-ph { background: var(--ht-stripe-ph); border-radius: var(--ht-r-img); display: flex; align-items: center; justify-content: center; color: var(--ht-ink-3); font-size: 12px; overflow: hidden; }
.ht-photo { border-radius: var(--ht-r-img); overflow: hidden; filter: saturate(.9) contrast(.95) brightness(1.04); }
.ht-ph img,
.ht-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== panels ===== */
.ht-panel-sky { background: var(--ht-stripe-sky); border-radius: var(--ht-r-panel); }
.ht-panel-green { background: var(--ht-stripe-green); border-radius: var(--ht-r-panel); color: var(--ht-white); }
.ht-panel-mist { background: var(--ht-mist); border-radius: var(--ht-r-panel); }

/* ===== notice ===== */
.ht-notice { border-radius: var(--ht-r-card); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.65; }
.ht-notice b { font-size: 15px; }
.ht-notice-info { background: var(--ht-sky-100); color: var(--ht-sky-900); }
.ht-notice-alert { background: var(--ht-ink); color: var(--ht-white); }

/* ===== breadcrumb ===== */
.ht-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ht-ink-3); list-style: none; margin: 0; padding: 0; }
.ht-crumb li + li::before { content: "／"; margin-right: 6px; }
.ht-theme .ht-crumb a { color: var(--ht-ink-3); }
.ht-theme .ht-crumb a:hover { color: var(--ht-green-700); }

/* ===== ≤767px ===== */
@media (max-width: 767px) {
	.ht-header { padding: 8px 8px 0; }
	.ht-header-bar { flex-wrap: wrap; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 20px; }
	.ht-brand-mark { width: 36px; height: 36px; font-size: 18px; }
	.ht-brand-word b { font-size: 20px; }
	.ht-brand-word span { font-size: 22px; }
	.ht-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; font-size: 14px; margin: 0 -8px 0 -12px; padding: 0 8px 2px 8px; }
	.ht-nav::-webkit-scrollbar { display: none; }
	.ht-theme .ht-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; }
	.ht-footer { margin: 0 8px 8px; padding: 22px 16px; }

	.ht-grid-3,
	.ht-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ht-scroll-sp { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ht-gutter); margin: 0 calc(var(--ht-gutter) * -1); padding: 0 var(--ht-gutter) 4px; scrollbar-width: none; }
	.ht-scroll-sp::-webkit-scrollbar { display: none; }
	.ht-scroll-sp > * { flex: 0 0 78%; scroll-snap-align: start; }
	.ht-section-head .ht-btn { display: none; }
	.ht-section-foot { display: flex; }
	.ht-section-foot .ht-btn { min-height: 44px; }
	.ht-chip { padding: 9px 16px; }
	.ht-notice { padding: 12px 16px; font-size: 14px; }
}
