@font-face {
  font-family: "Dot";
  src: url("fonts/dot-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+20-7E, U+A0-FF, U+2010-2026;
}
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #16171b;
  --muted: #5d6068;
  --line: #e4e1d7;
  --grid: rgba(22, 23, 27, 0.10);
  --amber: #ffb52e;
  --pink: #f2577b;
  --sky: #4fb0e3;
  --leaf: #5fb350;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --surface: #17181c;
    --ink: #eeece6;
    --muted: #9c9ea6;
    --line: #27292e;
    --grid: rgba(238, 236, 230, 0.08);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) { word-break: auto-phrase; }
.bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media print { .bgfx { display: none; } }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: "Dot", ui-monospace, Menlo, monospace;
  font-size: 13px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; flex: none; width: 3px; height: 3px; margin: 0 5px 0 3px; background: var(--amber);
  box-shadow: 3px 0 var(--amber), -3px 0 var(--amber), 0 3px var(--amber), 0 -3px var(--amber);
}

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { display: block; flex: none; }
.brand .wd { margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .lang { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero h1 { margin-top: 24px; font-size: clamp(42px, 7vw, 82px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
.hero h1:lang(ja) { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.16; letter-spacing: -0.01em; }
.hero .nw { white-space: nowrap; }
.hero .lead { margin-top: 26px; max-width: 30em; font-size: 18px; color: var(--muted); }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform .15s, background-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stage { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; background: #80c5ef; overflow: hidden; touch-action: pan-y; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(22, 23, 27, 0.06), 0 30px 60px -30px rgba(22, 23, 27, 0.35); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.sky-label {
  position: absolute; left: 18px; top: 16px; margin: 0;
  font-family: "Dot", ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1; letter-spacing: 0.14em;
  color: rgba(22, 23, 27, 0.6);
}
.stage.is-night .sky-label { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; padding-bottom: 72px; }
  .stage { aspect-ratio: 16 / 10; }
}

/* sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section.last { border-top: 0; padding-top: 24px; }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; }
@media (max-width: 560px) { section { padding: 72px 0; } }

/* products */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.feature .art { background: #c9e8f8; }
.feature .art img { width: 100%; }
.feature .body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 56px; padding: 36px 40px 40px; }
.feature .facts { margin-top: 6px; }
.app { display: flex; align-items: center; gap: 16px; }
.app img { width: 64px; height: 64px; border-radius: 15px; image-rendering: pixelated; flex: none; }
.app h3 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.app p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.feature .desc { margin-top: 22px; }
.facts { list-style: none; margin-top: 20px; display: grid; gap: 6px; font-size: 15px; }
.facts li { display: flex; align-items: baseline; gap: 12px; }
.facts li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--leaf); transform: translateY(-2px); }
.stores { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.stores img { height: 44px; width: auto; }
.stores .more { font-size: 15px; font-weight: 600; text-decoration: none; }
.stores .more:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .feature .body { grid-template-columns: 1fr; padding: 28px 24px 32px; }
}

.moments-h { margin: 56px 0 18px; font-size: 15px; font-weight: 700; color: var(--muted); }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.moment { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 14px; }
.moment img { width: 100%; aspect-ratio: 120 / 56; border-radius: 12px; image-rendering: pixelated; }
.moment figcaption { margin-top: 10px; padding: 0 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) { .moments { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* what we do */
.services { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.services li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; }
.services svg { width: 44px; height: 44px; }
.services h3 { margin-top: 20px; font-size: 17px; font-weight: 700; }
.services p { margin-top: 6px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* company */
.company { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.company dt, .company dd { padding: 20px 0; border-bottom: 1px solid var(--line); }
.company dt { font-size: 14px; color: var(--muted); padding-top: 22px; }
.company dd ul { list-style: none; }
.company .sub { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .company { grid-template-columns: 1fr; }
  .company dt { padding-bottom: 0; border-bottom: 0; }
  .company dd { padding-top: 4px; }
}

/* contact */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); border-radius: 32px; padding: 64px 56px 72px; }
.contact .eyebrow { color: inherit; opacity: .7; }
.contact h2 { margin-top: 20px; }
.contact p { margin-top: 14px; max-width: 32em; opacity: .78; }
.mail {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 36px;
  font-size: clamp(18px, 5vw, 42px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2;
  text-decoration: none; border-bottom: 3px solid var(--amber); padding-bottom: 6px;
  overflow-wrap: anywhere;
}
.mail span { transition: transform .2s; }
.mail:hover span { transform: translateX(6px); }
.contact .deco { position: absolute; right: 48px; top: 48px; width: 112px; height: 112px; color: var(--bg); cursor: pointer; transition: transform .2s; }
.contact .deco:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .contact { padding: 44px 24px 52px; border-radius: 24px; }
  .contact .deco { width: 56px; height: 56px; right: 24px; top: 32px; }
  .mail span { display: none; }
}

/* footer */
footer { padding: 40px 0 64px; font-size: 13px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
footer .brand { color: var(--ink); }
footer .tm { margin-top: 20px; max-width: 62em; font-size: 11.5px; line-height: 1.7; }

/* 背景クリックのアイデアふきだし（assets/ideas.js） */
.idea {
  position: absolute; z-index: 20; pointer-events: none; max-width: min(300px, calc(100vw - 32px));
  padding: 9px 14px 11px; background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 700; line-height: 1.5;
  box-shadow: 0 -3px var(--ink), 0 3px var(--ink), -3px 0 var(--ink), 3px 0 var(--ink), 6px 6px rgba(22, 23, 27, 0.12);
  animation: idea-pop .24s steps(3, end) both, idea-out 3.4s linear both;
}
.idea .no {
  display: block; margin-bottom: 2px;
  font-family: "Dot", ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 400; letter-spacing: 0.14em; color: var(--muted);
}
.idea .no::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--amber); vertical-align: 1px; }
.idea-dot { position: absolute; z-index: 20; pointer-events: none; background: var(--ink); animation: idea-pop .2s steps(2, end) both, idea-out 3.4s linear both; }
@keyframes idea-pop { 0% { scale: 0.3; } 70% { scale: 1.08; } 100% { scale: 1; } }
@keyframes idea-out { 0%, 70% { translate: 0 0; opacity: 1; } 100% { translate: 0 -22px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .idea, .idea-dot { animation: idea-fade 3.4s linear both; }
  @keyframes idea-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}
