/* Eingang olaf.akakiya.co.jp: Auswahl zwischen OLAF Fudosan und OLAF Finance (Jun, 2026-12-03).
   Die Seite ist ohne Anmeldung erreichbar und zeigt deshalb nichts außer Marke und den zwei Zielen.
   Aussehen: Richtung „Sticker“ von OLAF Finance (grauer Grund, weiße Kacheln, Pillen, leicht schräge Aufkleber);
   Fudosan bringt seinen Raben und sein Blau mit. Kein Skript, nichts wird von außen geladen. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/fonts/bricolage.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --page: #ededf0;
  --sheet: #ffffff;
  --ink: #111113;
  --muted: #5b5b66;
  --night: #111113;
  --night-hover: #2c2c31;
  --blue: oklch(0.55 0.16 256);
  --blue-hover: oklch(0.49 0.17 256);
  --blue-soft: oklch(0.95 0.03 256);
  --blue-ink: oklch(0.45 0.16 256);
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Noto Sans JP", "Meiryo", sans-serif;
  --display: "Bricolage Grotesque", var(--ja);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ja);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
h1, h2, p { margin: 0; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }

.wrap {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1176px;
  margin: 0 auto;
  padding: 20px max(28px, env(safe-area-inset-right)) 28px max(28px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

/* Kapsel mit der Marke */
.capsule {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 26px 0 12px;
  border-radius: 999px;
  background: var(--sheet);
}
.capsule img { width: 40px; height: 40px; }
.capsule h1 { font: 800 1.375rem/1 var(--display); letter-spacing: -0.03em; }

/* Zwei Kacheln nebeneinander. Oben bleibt Luft, weil die Raben über den Rand schauen. */
.tiles {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
  padding-top: clamp(92px, 14vh, 132px);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: clamp(380px, 58vh, 560px);
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 48px;
  background: var(--sheet);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.name { font: 800 clamp(3rem, 6.2vw, 5rem)/1 var(--display); white-space: nowrap; }
.tag {
  margin: 0 0 12px 2px;
  padding: 6px 14px;
  border-radius: 999px;
  font: 800 1rem/1.2 var(--display);
  letter-spacing: -0.03em;
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}
.fudosan .tag { background: var(--blue-soft); color: var(--blue-ink); }
.finance .tag { background: var(--night); color: #fff; }
.sub { margin-top: 12px; font-size: 15px; color: var(--muted); }

.bird {
  position: absolute;
  top: -18%;
  left: 56%;
  translate: -50% 0;
  height: 72%;
  width: auto;
  /* Schmale Kachel (Tablet hoch): der Rabe wird nicht breiter als die Kachel, die Füße bleiben, wo sie sind. */
  max-width: 84%;
  object-fit: contain;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease);
  filter: drop-shadow(0 14px 10px rgb(17 17 19 / 0.14));
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.finance .bird { top: -20%; height: 74%; }

.go {
  position: absolute;
  right: clamp(24px, 3vw, 40px);
  bottom: clamp(24px, 3vw, 40px);
  display: grid;
  place-items: center;
  width: clamp(60px, 6.4vw, 84px);
  aspect-ratio: 1;
  border-radius: 999px;
  color: #fff;
  transition: background 0.2s;
}
.fudosan .go { background: var(--blue); }
.finance .go { background: var(--night); }
.go svg { width: 34%; height: 34%; transition: transform 0.45s var(--ease); }

.foot { margin-top: 28px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Maus und Tastatur: die Kachel hebt sich wie ein Aufkleber, der Rabe hüpft. */
@media (hover: hover) {
  .tile:hover { transform: rotate(-1.2deg) translateY(-6px); box-shadow: 0 30px 46px -32px rgb(17 17 19 / 0.5); }
  .tile.finance:hover { transform: rotate(1.2deg) translateY(-6px); }
  .tile:hover .bird { transform: translateY(-10px) rotate(-3deg); }
  .tile:hover .tag { transform: rotate(3deg); }
  .tile:hover .go svg { transform: translateX(4px); }
  .fudosan:hover .go { background: var(--blue-hover); }
  .finance:hover .go { background: var(--night-hover); }
}
.tile:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 46px -32px rgb(17 17 19 / 0.5); }
.tile:focus-visible .bird { transform: translateY(-10px) rotate(-3deg); }
.tile:focus-visible .go svg { transform: translateX(4px); }
/* Finger: kurzes Nachgeben beim Antippen. */
.tile:active { transform: scale(0.985); transition-duration: 0.12s; }

/* Ein Moment beim Laden: die Raben kommen hoch. Ohne Bewegung stehen sie einfach da. */
@media (prefers-reduced-motion: no-preference) {
  .bird { animation: rise 0.9s var(--ease) both; }
  .finance .bird { animation-delay: 0.12s; }
  @keyframes rise { from { translate: -50% 30px; } to { translate: -50% 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .bird, .tag, .go, .go svg { transition: none; }
  .tile:hover, .tile.finance:hover, .tile:focus-visible, .tile:active { transform: none; }
  .tile:hover .bird, .tile:focus-visible .bird { transform: none; }
}

/* Handy hoch: beide Kacheln bleiben nebeneinander auf einem Bildschirm, ohne Unterzeile und Knopf. */
@media (max-width: 720px) {
  .wrap { padding: 14px max(12px, env(safe-area-inset-right)) 22px max(12px, env(safe-area-inset-left)); }
  .tiles { gap: 10px; padding-top: 84px; }
  .tile { height: min(330px, 46vh); height: min(330px, 46svh); padding: 22px 20px 26px; border-radius: 36px; }
  .name { font-size: clamp(2rem, 10.4vw, 2.75rem); }
  .tag { margin-bottom: 9px; padding: 5px 12px; font-size: 0.875rem; }
  .sub, .go { display: none; }
  .bird, .finance .bird { top: -13%; left: 52%; height: 56%; }
}

/* Handy quer (flach): Rabe steht rechts in der Kachel statt darüber, sonst bliebe für die Kachel keine Höhe. */
@media (max-height: 520px) and (min-width: 480px) {
  .wrap { padding-top: 12px; padding-bottom: 12px; }
  .capsule { height: 48px; padding: 0 20px 0 8px; }
  .capsule img { width: 34px; height: 34px; }
  .capsule h1 { font-size: 1.1875rem; }
  .tiles { gap: 10px; padding-top: 34px; }
  .tile { height: max(176px, calc(100vh - 146px)); height: max(176px, calc(100svh - 146px)); padding: 20px 24px 22px; border-radius: 36px; }
  .name { font-size: clamp(2rem, 5.2vw, 2.75rem); }
  .tag { margin-bottom: 8px; padding: 5px 12px; font-size: 0.875rem; }
  .sub, .go { display: none; }
  .bird, .finance .bird { top: auto; bottom: 0; left: auto; right: 3%; height: 112%; max-width: 62%; object-position: 100% 100%; translate: none; }
  .fudosan .bird { right: 0; height: 100%; }
  .foot { margin-top: 12px; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { translate: 0 24px; } to { translate: 0 0; } }
  }
}
