:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-subtle: #F7F9FC;
  --ink: #141829;
  --navy: #191D31;
  --text: #3A4254;
  --muted: #5C6578;
  --accent: #29B8BD;
  --link: #066D77;
  --line: #E6ECF4;
  --line-strong: #CBD5E3;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px / 1.75 var(--font);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.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;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  border-radius: 7px;
  transition: transform 240ms var(--spring);
}

@media (hover: hover) {
  .brand:hover img {
    transform: rotate(-8deg) scale(1.06);
  }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

@media (hover: hover) {
  .site-header nav a:hover {
    color: var(--ink);
    background: var(--bg-subtle);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 52px;
  overflow: hidden;
  background:
    radial-gradient(640px 280px at 86% 18%, rgba(41, 184, 189, 0.12), transparent 68%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(25, 29, 49, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 74% 30%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 90% at 74% 30%, #000 10%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hero-copy {
  min-width: 0;
}

.accent-bar {
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #5CD7DB 100%);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 52px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
  text-wrap: balance;
}

.lead {
  max-width: 44em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 0;
  text-wrap: pretty;
}

.hero-emblem {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  margin-right: 10px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--navy);
  transform: rotate(-4deg);
  box-shadow:
    0 18px 34px rgba(25, 29, 49, 0.18),
    0 2px 6px rgba(25, 29, 49, 0.1);
  transition: transform 320ms var(--spring), box-shadow 260ms ease;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(135deg, #29B8BD 0%, #7DE1E4 100%);
  transform: rotate(10deg) translate(6px, 4px);
  opacity: 0.9;
  transition: transform 320ms var(--spring);
}

.hero-emblem img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
}

@media (hover: hover) {
  .hero-emblem:hover {
    transform: rotate(0deg) translateY(-3px) scale(1.03);
    box-shadow: 0 24px 44px rgba(25, 29, 49, 0.22);
  }
  .hero-emblem:hover::before {
    transform: rotate(14deg) translate(9px, 6px);
  }
}

/* Open Alternating Editorial Showcase (1 product per row, Left/Right zig-zag — scales to any count) */
.section {
  padding: 12px 0 88px;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-card,
.product-card.is-featured {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 48px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.product-card:first-child {
  padding-top: 16px;
}

.product-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
}

.product-card:nth-child(even) .card-media {
  order: 2;
}

.product-card:nth-child(even) .card-body {
  order: 1;
}

/* Open floating media stages — 100% straight, crisp, large screenshots */
.card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 30px;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 300ms var(--spring), box-shadow 260ms ease;
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(25, 29, 49, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.65;
}

.product-card.is-featured .card-media {
  aspect-ratio: 16 / 10;
  padding: 28px 30px;
  border-radius: 24px;
}

.media-yukkuri {
  background:
    radial-gradient(340px 240px at 14% 16%, rgba(232, 82, 74, 0.13), transparent 68%),
    radial-gradient(380px 260px at 86% 86%, rgba(41, 184, 189, 0.15), transparent 70%),
    linear-gradient(155deg, #FBF4F3 0%, #ECF3F9 100%);
}

.media-nanikiru {
  background:
    radial-gradient(320px 220px at 18% 14%, rgba(41, 184, 189, 0.16), transparent 70%),
    radial-gradient(280px 200px at 86% 88%, rgba(46, 168, 124, 0.13), transparent 72%),
    linear-gradient(155deg, #EFF8F5 0%, #E1F1EC 100%);
}

.media-oshihiki {
  background:
    radial-gradient(320px 220px at 82% 14%, rgba(41, 184, 189, 0.16), transparent 70%),
    radial-gradient(280px 200px at 16% 88%, rgba(68, 124, 212, 0.13), transparent 72%),
    linear-gradient(155deg, #EFF4FB 0%, #E2ECF9 100%);
}

.media-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(20, 24, 41, 0.08),
    0 20px 40px rgba(20, 24, 41, 0.16),
    0 4px 10px rgba(20, 24, 41, 0.08);
  transition: transform 320ms var(--spring), box-shadow 260ms ease;
}

@media (hover: hover) {
  .card-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(20, 24, 41, 0.08);
  }
  .card-media:hover img {
    transform: scale(1.022);
    box-shadow:
      0 0 0 1px rgba(20, 24, 41, 0.09),
      0 26px 50px rgba(20, 24, 41, 0.2),
      0 6px 14px rgba(20, 24, 41, 0.1);
  }
}

/* Open editorial typography floating directly on white canvas */
.card-body,
.product-card.is-featured .card-body {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow:
    0 4px 12px rgba(20, 24, 41, 0.13),
    0 0 0 1px rgba(20, 24, 41, 0.07);
  transition: transform 280ms var(--spring);
}

@media (hover: hover) {
  .product-card:hover .app-icon {
    transform: rotate(-5deg) scale(1.06);
  }
}

.card-heading {
  min-width: 0;
}

.card-title-row h3,
.product-card.is-featured .card-title-row h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 3px;
}

.card-title-row h3 a:hover {
  color: var(--link);
}

.card-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0;
}

.card-lead,
.product-card.is-featured .card-lead {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: pretty;
}

.card-desc,
.product-card.is-featured .card-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 26px;
  text-wrap: pretty;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 160ms var(--spring);
}

.primary-link .arrow {
  display: inline-block;
  transition: transform 200ms var(--spring);
}

.primary-link:active,
.secondary-link:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .primary-link:hover {
    background: var(--link);
  }
  .primary-link:hover .arrow {
    transform: translateX(4px);
  }
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 160ms var(--spring);
}

@media (hover: hover) {
  .secondary-link:hover {
    color: var(--ink);
    border-color: #96A7BF;
    background: var(--bg-subtle);
  }
}

/* Official Links & Contact — Open hairline editorial index (NO boxed tiles!) */
.links-section {
  background: var(--bg-subtle);
  padding: 58px 0 64px;
  border-top: 1px solid var(--line);
}

.links-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.link-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 6px;
  border-top: 2px solid var(--line-strong);
  transition: border-color 180ms ease, transform 200ms var(--spring);
}

@media (hover: hover) {
  .link-tile:hover {
    border-top-color: var(--accent);
    transform: translateY(-2px);
  }
  .link-tile:hover .tile-arrow {
    color: var(--link);
    transform: translate(3px, -3px);
  }
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tile-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.tile-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.dot-note { background: #26B99A; }
.dot-booth { background: #FC4D50; }
.dot-x { background: #191D31; }
.dot-mail { background: #29B8BD; }

.tile-arrow {
  font-size: 13px;
  color: var(--muted);
  transition: color 150ms ease, transform 200ms var(--spring);
}

.tile-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--link);
  word-break: break-all;
}

/* 404 */
.not-found {
  padding: 88px 0;
}

.not-found h1 {
  color: var(--ink);
  font-size: clamp(24px, 3.6vw, 34px);
  margin-bottom: 12px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 24px;
}

.not-found .button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer nav a {
  color: var(--muted);
  transition: color 150ms ease;
}

@media (hover: hover) {
  .site-footer nav a:hover {
    color: var(--ink);
  }
}

@media (max-width: 900px) {
  .product-card,
  .product-card.is-featured,
  .product-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 0;
  }
  .product-card:nth-child(even) .card-media,
  .product-card:nth-child(even) .card-body {
    order: 0;
  }
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero {
    padding: 38px 0 30px;
  }
  .hero-emblem {
    display: none;
  }
  .section {
    padding: 4px 0 64px;
  }
  .card-media,
  .product-card.is-featured .card-media {
    padding: 18px 18px;
    border-radius: 18px;
  }
  .card-body {
    padding: 20px 2px 0;
  }
  .links-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .site-header nav a {
    padding: 0 7px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
  .hero-emblem,
  .hero-emblem::before {
    transform: none !important;
  }
}
