:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: #362a1e;
  background: #ecd0a1;
  --orange: #ff9123;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #572b15; outline-offset: 5px; }
.skip { position: fixed; inset: 1rem auto auto 1rem; z-index: 5; padding: .65rem 1rem; background: #fff3dc; }
.skip:not(:focus) { clip-path: inset(50%); }
.top { position: absolute; top: 0; left: 0; z-index: 3; padding: 1.35rem clamp(1.1rem, 5vw, 5rem); }
.brand { font-weight: 850; text-decoration: none; }
.brand span { margin-left: .22em; color: #803811; }
.journey { height: 175svh; }
.stage { position: sticky; top: 0; min-height: 38rem; height: 100svh; isolation: isolate; overflow: clip; background: #e0ab71; }
.camera { position: absolute; inset: 0; overflow: hidden; }
.world {
  position: absolute;
  width: max(100%, 150svh, 57rem);
  aspect-ratio: 3/2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
  transform-origin: 64% 60%;
}
.landscape { display: block; width: 100%; height: auto; }
.light { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #fff0d2 0%, #ffedd0ef 23%, #ffe7bd80 39%, transparent 58%); }
.opening { position: absolute; z-index: 1; top: 50%; left: clamp(1.1rem, 5vw, 5rem); transform: translateY(-48%); }
h1 { font-size: clamp(3.9rem, 10.4vw, 10.5rem); line-height: 1.02; letter-spacing: -.13em; margin: 0 0 1.15rem -.075em; font-weight: 950; }
h1 span { color: #a84c1e; }
.tagline { font-size: clamp(1.22rem, 2.25vw, 2rem); line-height: 1.5; font-weight: 820; margin: 0; }
.summary { margin: .8rem 0 1.45rem; line-height: 1.6; max-width: 23em; }
.sign {
  display: inline-flex; align-items: center; gap: 1.25rem;
  min-height: 48px; padding: .55rem 1.15rem; color: #fff3dc;
  background: #5a3622; text-decoration: none; font-weight: 760;
  border-radius: .22rem .38rem .19rem .32rem; box-shadow: inset 0 0 0 1px #fff3dc40, 2px 5px 0 #43271940;
  transform: rotate(-2deg); transition: transform 130ms ease;
}
.sign:active { transform: rotate(2deg) translateY(2px); }
.guide {
  position: absolute; z-index: 2; left: var(--guide-x, 54%); top: var(--guide-y, 76%);
  width: clamp(3.9rem, 6.5vw, 7rem); aspect-ratio: 1;
  transform: translate(-50%, -84%) translateY(var(--hop, 0px));
}
.character { width: 100%; height: 100%; display: block; cursor: pointer; position: relative; padding: 0; border: 0; background: transparent; filter: drop-shadow(0 8px 5px #39220d85); }
.character-body {
  display: block; width: 100%; height: 100%; position: relative;
  transform: rotate(var(--tilt, 0deg)); transform-origin: 51% 79%;
}
.character-body::before {
  content: ""; position: absolute; inset: 0;
  mask: url("media/are-shape.png") center / contain no-repeat;
  background: radial-gradient(ellipse at 63% 31%, #ffac57 0%, var(--orange) 42%, #e56a0d 73%, #a83d10 100%);
}
.eyes { position: absolute; display: flex; gap: .12em; left: 51%; top: 43%; transform: rotate(4deg); font-size: clamp(.7rem, 1.55vw, 1.55rem); }
.eyes::before, .eyes::after { content: ""; width: .24em; height: .28em; border-radius: 50%; background: #291b12; display: block; box-shadow: inset .04em .06em #fff7; }
.character.pressed .character-body { animation: squash 440ms ease-out; }
@keyframes squash {
  32% { transform: scale(1.19, .71); }
  67% { transform: scale(.94, 1.13); }
}
.end { background: #ecc58d; padding: 1.35rem clamp(1.1rem, 5vw, 5rem) 2.1rem; }
.end p { font-weight: 800; margin: 0; }
@media (max-width: 680px) {
  .top { padding-top: .8rem; }
  .stage { min-height: 39rem; }
  .camera { top: 33%; }
  .world { width: max(100%, 113svh, 40rem); left: 39%; }
  .light { background: linear-gradient(180deg, #fff1d7 0%, #ffebcb 30%, #ffebcb 33%, #ffebcb00 60%); }
  .opening { top: 3.75rem; transform: none; }
  h1 { margin-bottom: .55rem; }
  .summary { margin: .45rem 0 .85rem; font-size: .9rem; }
  .guide { width: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .stage { position: relative; }
  .world, .guide, .character-body { transition: none; }
  .character.pressed .character-body { animation: none; }
  .character.pressed .character-body::before { filter: brightness(1.22); }
  .sign { transition: none; }
}
.foreground {
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(transparent 76%, #000 98%);
  transform: translateY(calc(-1 * var(--foreground, 0px)));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 680px) {
  .eyes { font-size: 1.05rem; }
}

.story {
  background: #f0deba;
  background-image: radial-gradient(ellipse at 90% 12%, #b7a36a80, transparent 34%), radial-gradient(ellipse at 0% 85%, #cc904e68, transparent 55%);
}
.section { width: min(88%, 70rem); margin-inline: auto; padding-block: clamp(3.5rem, 9vw, 8rem); }
.section h2 { font-size: clamp(1.6rem, 4.8vw, 3.25rem); line-height: 1.28; margin: 0; }
.lead { max-width: 42em; line-height: 1.8; margin: .7rem 0 2rem; }
.everyday { position: relative; }
.gallery { display: grid; grid-template-columns: 1.06fr .79fr 1.15fr; align-items: start; gap: clamp(.75rem, 3.6vw, 3rem); padding: 1.5rem .35rem .75rem; }
.gallery figure { margin: 0; padding: .55rem .55rem .8rem; background: #fff3d8; border-radius: .16rem; box-shadow: 0 12px 24px #522c2044; transform: rotate(-3deg); }
.gallery figure:nth-child(2) { margin-top: 17%; transform: rotate(5deg); }
.gallery figure:nth-child(3) { margin-top: 5%; transform: rotate(-2deg); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { margin: .55rem .2rem 0; font-weight: 730; }
.delivery-band { background: linear-gradient(165deg, #d6c08c33, #b4a36b68 52%, #ecdaad00); }
.diagram-note { font-size: .9rem; font-weight: 750; margin: 0 0 .6rem; }
.delivery { display: grid; grid-template-columns: 1fr .75fr 1.3fr; list-style: none; margin: 0 0 1.5rem; padding: clamp(.55rem, 3vw, 2rem); gap: .45rem; background: #fff1d2; border: 1px solid #9a773f70; box-shadow: 0 5px 0 #a47c4650; }
.delivery li { min-width: 0; display: grid; grid-template-rows: clamp(3.5rem, 16vw, 9rem) auto; gap: .6rem; justify-items: center; align-items: center; text-align: center; font-size: clamp(.8rem, 2vw, 1rem); }
.device { display: grid; height: 100%; max-width: 100%; border: clamp(3px, .55vw, 7px) solid #4a3a29; border-radius: .45rem; overflow: hidden; }
.device img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.phone { aspect-ratio: 10/17; }
.tablet { height: auto; width: min(100%, 11rem); aspect-ratio: 4/3; }
.route { position: relative; width: 100%; min-height: 2rem; display: grid; place-items: center; }
.route::before { position: absolute; content: ""; inset: 50% 0 auto; border-top: 2px dashed #947346; }
.packet { position: absolute; width: 1.75rem; line-height: 1.75rem; background: #a24420; border-radius: .35rem; color: #fff4dc; }
.playing .packet { animation: carry 6s ease-in-out both; }
.playing .tablet { animation: receive 6s ease-in-out both; }
@keyframes carry { 0%,12% { left: 0; } 75%,100% { left: calc(100% - 1.75rem); } }
@keyframes receive { 0%,65%,100% { box-shadow: 0 0 0 0 #ab542a00; } 80% { box-shadow: 0 0 0 .4rem #ab542a60; } }
.outline { font: inherit; font-weight: 760; background: #fff2d8; color: #4c2d1f; border: 1px solid #785236; border-radius: .25rem; padding: .65rem 1rem; min-height: 44px; cursor: pointer; }
.outline:active { background: #eed2a4; }
.demo-section { padding-top: clamp(1rem, 5vw, 3.5rem); }
.demo { margin: 0 auto; max-width: 52rem; background: #302720; color: #fff2d8; border-radius: .85rem; padding: clamp(.45rem, 2vw, .9rem); }
.demo-video, .demo-poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: .45rem; }
.demo-poster { display: none; }
.demo figcaption { font-size: .875rem; padding: .6rem; }
.facility { background: #fff0d270; }
.steps { padding-left: 1.55rem; max-width: 54rem; }
.steps li { padding: .75rem .4rem; border-bottom: 1px solid #91704860; }
.steps strong { display: inline-block; min-width: 10em; }
.contact { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 5vw, 4rem); align-items: center; }
.post { position: relative; width: clamp(2.6rem, 9vw, 6rem); aspect-ratio: 1/1.06; background: #a44726; border-radius: 47% 47% 10% 10%; box-shadow: inset -8px -6px #71321d55, inset 5px 4px #e09150a0, 4px 9px 8px #74412645; }
.post span { position: absolute; inset: 35% 21% auto; height: 8%; background: #43291e; box-shadow: 0 2px #e09150; }
.mail-note { font-size: .875rem; }
.guide-dock { position: absolute; bottom: 1.15rem; right: 0; width: 4.1rem; height: 4.1rem; }
.guide-dock:empty { visibility: hidden; }
.guide-dock .guide { position: static; width: 100%; transform: none; }
.end { display: flex; justify-content: space-between; gap: .75rem; }
@media (max-width: 680px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:nth-child(3) { grid-column: 1 / -1; width: 70%; justify-self: end; }
  .contact { padding-bottom: 5rem; }
  .steps strong { display: block; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #delivery-play, .demo-video { display: none; }
  .demo-poster { display: block; }
}
.story { position: relative; isolation: isolate; }
.story-hills {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(42rem, 70vw);
  background: url("media/hills-small.webp") center 85% / cover;
  mask-image: linear-gradient(#000a, transparent 95%);
  pointer-events: none;
}
.everyday { padding-top: clamp(4rem, 11vw, 10rem); }
.everyday h2, .everyday .lead {
  width: fit-content;
  background: #fff0d5;
  border-radius: .25rem;
  padding: .25rem .6rem;
}
.everyday, .delivery-band .section, .consult { position: relative; padding-bottom: max(5.2rem, 9vw); }
.tablet { height: 100%; width: auto; }
@media (max-width: 680px) {
  .everyday, .delivery-band .section, .consult { padding-bottom: 5.2rem; }
}

@media (max-width: 680px) {
  .opening { right: clamp(1.1rem, 5vw, 5rem); overflow-wrap: anywhere; }
}
