:root {
  --ink: #14212b;
  --muted: #64707d;
  --line: rgba(20, 33, 43, 0.1);
  --paper: #f4f1eb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --brand: #17725f;
  --brand-deep: #0d4b3d;
  --brand-soft: #e2f1ec;
  --accent: #ea6d3b;
  --shadow: 0 18px 42px rgba(17, 30, 38, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(23, 114, 95, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(234, 109, 59, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #f1eee7 100%);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.2;
}

.lead {
  color: #32404c;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.button,
.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.install-button:hover {
  transform: translateY(-1px);
}

.button.primary,
.install-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 26px rgba(23, 114, 95, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.store-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  border-right: 1px solid rgba(20, 33, 43, 0.08);
  background: rgba(248, 245, 239, 0.86);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.sidebar-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
}

.sidebar-brand strong {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}

.sidebar-brand small {
  color: var(--muted);
}

.sidebar-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #33414d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(23, 114, 95, 0.1);
  color: var(--brand-deep);
}

.static-link::after {
  content: "↗";
  margin-left: auto;
  opacity: 0.45;
}

.sidebar-note {
  margin-top: 28px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.94rem;
}

.store-main,
.catalog-main,
.care-main,
.detail-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar,
.catalog-header,
.care-hero,
.detail-main {
  margin-bottom: 28px;
}

.topbar h1,
.catalog-header h1,
.care-copy h1,
.detail-main h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 14px;
}

.hero-banner,
.care-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 244, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy,
.care-copy {
  align-self: center;
}

.hero-actions,
.catalog-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual img,
.care-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 24px;
  object-fit: cover;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 10px;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
}

.chip.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 18px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.section-meta {
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.app-card,
.info-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 18px;
}

.app-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: #162631;
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.tone-care {
  background: linear-gradient(135deg, #15725f, #70bfa4);
}

.tone-health {
  background: linear-gradient(135deg, #178f73, #50c0ab);
}

.tone-tool {
  background: linear-gradient(135deg, #365d8d, #68a6e3);
}

.tone-warm {
  background: linear-gradient(135deg, #b85f31, #efb067);
}

.tone-game {
  background: linear-gradient(135deg, #433d9e, #8b7bff);
}

.tone-night {
  background: linear-gradient(135deg, #57357b, #cf79c6);
}

.tone-drama {
  background: linear-gradient(135deg, #6e3429, #d88763);
}

.app-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.app-copy h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.app-subtitle {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.info-panel {
  padding: 24px;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.catalog-page,
.care-page,
.detail-page {
  min-height: 100vh;
}

.contact-strip {
  margin-top: 30px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(23, 114, 95, 0.14), rgba(234, 109, 59, 0.14));
  text-align: center;
}

.contact-strip p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .store-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 33, 43, 0.08);
  }

  .hero-banner,
  .care-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .store-main,
  .catalog-main,
  .care-main,
  .detail-main {
    width: min(100% - 28px, 1180px);
  }

  .hero-banner,
  .care-hero {
    padding: 18px;
    border-radius: 26px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
