:root {
  color-scheme: light;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #38372f;
  background: #f5f2ec;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #938367; outline-offset: 6px; }
.home {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  background: radial-gradient(ellipse at 50% 15%, #fffdfa 0, #f5f2ec 65%);
}
.profile { width: min(100%, 440px); }
.identity { text-align: center; margin-bottom: 46px; }
.profile-image { display: block; width: 112px; height: 112px; margin: 0 auto 23px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 16px #51452e0d; }
h1 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: .16em; line-height: 1.6; padding-left: .16em; }
.links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 26px;
  border: 1px solid #e4dfd6;
  border-radius: 13px;
  background: #fffdfa;
  box-shadow: 0 3px 8px #51452e03;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .045em;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.external-arrow { width: 19px; height: 19px; color: #a99a80; }
.link-name { display: flex; align-items: center; gap: 18px; }
.service-icon { display: block; width: 36px; height: 36px; object-fit: contain; border-radius: 7px; }
@media (hover: hover) {
  .link:hover { border-color: #c4b496; box-shadow: 0 5px 16px #51452e09; transform: translateY(-2px); }
}
.viewer { background: #0c0c0d; color: #fff; color-scheme: dark; overflow: hidden; }
.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
}
.media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media iframe {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.navigate {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 48px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  background: #0c0c0d80;
  color: #eee;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.navigate.previous { left: max(16px, env(safe-area-inset-left)); }
.navigate.next { right: max(16px, env(safe-area-inset-right)); }
.navigate svg { width: 24px; height: 24px; }
.navigate[aria-disabled="true"] { opacity: .22; cursor: default; }
@media (hover: hover) {
  .navigate[href]:hover { background: #0c0c0dcc; border-color: #ffffff38; }
}
.media-error { padding: 24px; color: #f4cece; text-align: center; font-size: 14px; line-height: 1.8; }
.missing { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; }
.missing p { margin: 0; }
.missing a { text-underline-offset: 5px; }
@media (max-width: 600px) {
  .home { padding: 48px 24px; }
  .identity { margin-bottom: 35px; }
  .profile-image { width: 96px; height: 96px; }
  h1 { font-size: 24px; }
  .link { min-height: 65px; padding: 0 23px; }
  .navigate { width: 40px; height: 56px; border-radius: 9px; }
  .navigate.previous { left: max(8px, env(safe-area-inset-left)); }
  .navigate.next { right: max(8px, env(safe-area-inset-right)); }
  .navigate svg { width: 20px; height: 20px; }
}
@media (max-height: 760px) {
  .home { padding-top: 32px; padding-bottom: 32px; }
  .identity { margin-bottom: 32px; }
  .profile-image { width: 76px; height: 76px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .link, .navigate { transition: none; } }
