/* tomo loop 首頁（只在首頁載入）：主視覺＋故事、生活分享橫向捲動 */

/* 去掉首頁上方多餘留白與內層 padding */
body.home .content-area { margin-top: 0; margin-bottom: 0; }
body.home .entry-content-wrap { padding: 0; }
body.home .entry.single-entry { box-shadow: none; background: transparent; }
body.home .entry-content { margin: 0; }
body.home .content-container.site-container { padding-top: 1.25rem; }

.tomo-home { color: var(--tomo-text); max-width: 1200px; margin: 0 auto; padding: 0.5rem 1.5rem 0; box-sizing: border-box; }
.tomo-home h2, .tomo-home p, .tomo-home figure { margin-top: 0; }
.tomo-home .tomo-home-kicker { margin: 0 0 0.35rem; }
.tomo-home .tomo-home-title { margin: 0 0 1rem; text-wrap: balance; }
.tomo-home .tomo-life-title { margin: 0; }
.tomo-home .tomo-home-text { margin: 0 0 0.8rem; text-wrap: pretty; }

/* 主視覺＋故事 */
.tomo-home-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; margin: 0 0 3.5rem; }
.tomo-home-hero-media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tomo-cream-deep); box-shadow: 0 18px 40px -22px rgba(59, 50, 44, 0.45); }
.tomo-home-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tomo-home-kicker { margin: 0 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tomo-teal-light); font-weight: 600; }
.tomo-home-title { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.45; }
.tomo-home-text { margin: 0 0 0.8rem; line-height: 1.95; font-size: 1rem; }
.tomo-home .tomo-home-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; padding: 0.75rem 1.8rem; border-radius: 999px; background: var(--tomo-teal); color: #fff; text-decoration: none; font-weight: 600; letter-spacing: 0.1em; transition: background 0.2s, transform 0.2s; }
.tomo-home .tomo-home-btn:hover { background: #245A5E; color: #fff; transform: translateY(-1px); }
.tomo-home .tomo-home-btn-ghost { background: transparent; color: var(--tomo-teal); border: 1.5px solid var(--tomo-teal-light); letter-spacing: 0.06em; }
.tomo-home .tomo-home-btn-ghost:hover { background: var(--tomo-teal); color: #fff; }

/* 生活分享 */
.tomo-life { margin: 0 0 1rem; }
.tomo-life-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tomo-life-title { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.tomo-life-nav { display: flex; gap: 0.5rem; }
.tomo-life-arrow { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #fff; color: var(--tomo-teal); border: 1.5px solid var(--tomo-line); box-shadow: none; cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.tomo-life-arrow:hover:not(:disabled) { background: var(--tomo-teal); color: #fff; }
.tomo-life-arrow:disabled { opacity: 0.35; cursor: default; }

.tomo-life-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 0.25rem 0 1rem; scrollbar-width: thin; scrollbar-color: var(--tomo-teal-light) transparent; }
.tomo-life-strip::-webkit-scrollbar { height: 4px; }
.tomo-life-strip::-webkit-scrollbar-track { background: transparent; }
.tomo-life-strip::-webkit-scrollbar-thumb { background: var(--tomo-teal-light); border: 0; border-radius: 99px; }
.tomo-life-strip:focus-visible { outline: 2px solid var(--tomo-teal-light); outline-offset: 2px; }
.tomo-life-item { flex: 0 0 clamp(220px, 23%, 300px); margin: 0; scroll-snap-align: start; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--tomo-cream-deep); box-shadow: 0 10px 24px -16px rgba(59, 50, 44, 0.4); }
.tomo-life-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tomo-life-item:hover img { transform: scale(1.04); }
.tomo-life-ig { margin: 0.5rem 0 0; text-align: center; }
.tomo-life-ig .tomo-icon { width: 20px; height: 20px; }

@media (max-width: 600px) {
	.tomo-home { padding: 0.25rem 1rem 0; }
}
@media (max-width: 900px) {
	.tomo-home-hero { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 2.5rem; }
	.tomo-home-hero-media { border-radius: 10px; }
	.tomo-life-item { flex-basis: 72%; }
	.tomo-life-arrow { width: 38px; height: 38px; }
}
