/* Zephyra Wellness Center - Ergonomic & Digital Conditioning Studio Stylesheet */
:root {
  --bg-main: #F6F7F4;
  --bg-surface: #FFFFFF;
  --bg-soft: #EBF0EC;
  --bg-dark: #10241E;
  --bg-dark-2: #18352C;
  --text-primary: #14221D;
  --text-secondary: #435750;
  --text-muted: #6C8078;
  --accent-primary: #1B6B53;
  --accent-secondary: #2B8A6E;
  --accent-warm: #C87D4B;
  --accent-light: #DDF0E9;
  --border-subtle: rgba(20, 34, 29, 0.09);
  --shadow-sm: 0 4px 14px rgba(16, 36, 30, 0.05);
  --shadow-md: 0 14px 34px rgba(16, 36, 30, 0.08);
  --shadow-lg: 0 24px 56px rgba(16, 36, 30, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container-w: 1180px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.22s ease;
}

a:hover {
  color: var(--accent-warm);
}

.zw-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Utility Bar */
.zw-topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.zw-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.zw-topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zw-topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
}

.zw-topbar__meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Glassmorphism Sticky Header */
.zw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.zw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.zw-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

.zw-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(27, 107, 83, 0.25);
}

.zw-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.zw-brand__title {
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.zw-brand__sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 500;
}

.zw-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.zw-nav__link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
}

.zw-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.22s ease;
}

.zw-nav__link:hover::after,
.zw-nav__link.is-active::after {
  width: 100%;
}

.zw-nav__cta {
  background: var(--accent-primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(27, 107, 83, 0.22);
}

.zw-nav__cta:hover {
  background: var(--bg-dark);
  transform: translateY(-1px);
}

/* Split Hero Section */
.zw-hero {
  padding: 44px 0 56px;
}

.zw-hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: stretch;
}

.zw-hero__main {
  background: linear-gradient(140deg, var(--bg-dark) 0%, var(--bg-dark-2) 60%, #1F4A3D 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 52px 46px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.zw-hero__main::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.zw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #A7F3D0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 22px;
}

.zw-hero__title {
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  line-height: 1.32;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.zw-hero__lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 32px;
}

.zw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.zw-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.zw-btn--primary {
  background: #34D399;
  color: #06281E;
}

.zw-btn--primary:hover {
  background: #6EE7B7;
  color: #06281E;
  transform: translateY(-2px);
}

.zw-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.zw-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.zw-hero__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.zw-kpi-item__num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #6EE7B7;
  display: block;
}

.zw-kpi-item__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.74);
}

/* Visual Right Column of Hero */
.zw-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zw-hero__photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 310px;
  box-shadow: var(--shadow-md);
}

.zw-hero__photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zw-hero__floating-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(16, 36, 30, 0.82);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.zw-hero__ergo-widget {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zw-ergo-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.zw-ergo-bar__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.zw-ergo-bar__track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}

.zw-ergo-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #34D399);
  border-radius: 999px;
}

/* Section Headers */
.zw-section {
  padding: 64px 0;
}

.zw-section--alt {
  background: var(--bg-soft);
}

.zw-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.zw-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.zw-section__title {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.zw-section__desc {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 0.96rem;
}

/* Bento Grid */
.zw-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.zw-bento__card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
}

.zw-bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.zw-bento__card--span7 {
  grid-column: span 7;
}

.zw-bento__card--span5 {
  grid-column: span 5;
}

.zw-bento__card--span4 {
  grid-column: span 4;
}

.zw-bento__img {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.zw-bento__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zw-bento__card:hover .zw-bento__img img {
  transform: scale(1.04);
}

.zw-bento__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 36, 30, 0.85);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.zw-bento__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.zw-bento__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.zw-bento__title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.45;
  color: var(--text-primary);
}

.zw-bento__excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.zw-bento__link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Ergonomic Desk Calculator */
.zw-calc {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 38px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.zw-calc__controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zw-calc__field label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.zw-calc__range {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.zw-calc__results {
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark-2));
  color: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.zw-calc__metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px;
  border-radius: 14px;
}

.zw-calc__metric-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 4px;
}

.zw-calc__metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #6EE7B7;
}

/* Article / Guide Layout */
.zw-article-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: #fff;
  padding: 54px 0;
}

.zw-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zw-breadcrumb a {
  color: #6EE7B7;
}

.zw-article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 48px 0 72px;
  align-items: start;
}

.zw-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.zw-toc__title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.zw-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
}

.zw-toc__list a {
  color: var(--text-secondary);
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
}

.zw-toc__list a:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
}

.zw-prose {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 42px;
  box-shadow: var(--shadow-sm);
}

.zw-prose h2 {
  font-size: 1.48rem;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  color: var(--text-primary);
}

.zw-prose h2:first-of-type {
  margin-top: 0;
}

.zw-prose h3 {
  font-size: 1.16rem;
  margin: 24px 0 10px;
  color: var(--accent-primary);
}

.zw-prose p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.zw-prose ul, .zw-prose ol {
  margin: 0 0 22px 22px;
  color: var(--text-secondary);
}

.zw-prose li {
  margin-bottom: 8px;
}

.zw-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 30px;
  font-size: 0.92rem;
}

.zw-table th, .zw-table td {
  border: 1px solid var(--border-subtle);
  padding: 13px 16px;
  text-align: left;
}

.zw-table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text-primary);
}

.zw-callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent-primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

/* Footer */
.zw-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 36px;
  margin-top: 40px;
}

.zw-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.zw-footer__title {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.zw-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.zw-footer__links a {
  color: rgba(255, 255, 255, 0.74);
}

.zw-footer__links a:hover {
  color: #6EE7B7;
}

.zw-footer__bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
  .zw-hero__grid,
  .zw-calc,
  .zw-article-layout,
  .zw-footer__grid {
    grid-template-columns: 1fr;
  }
  .zw-bento__card--span7,
  .zw-bento__card--span5,
  .zw-bento__card--span4 {
    grid-column: span 12;
  }
  .zw-toc {
    position: static;
  }
  .zw-nav {
    display: none;
  }
}
