:root {
  color-scheme: light;
  --ink: #132d3e;
  --focus: #ffe194;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  color: #fff;
  background: #235fa8 url("assets/mobile-background.jpg") center top/cover no-repeat;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
/* One continuous canvas, including the standalone iOS safe area. */
.room {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #071c4100 50%, #03152520 100%),
    url("assets/mobile-background.jpg") center center/cover no-repeat;
  pointer-events: none;
}
.hero {
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(48px, 10svh, 90px));
}
.hero-message {
  width: 245px;
  max-width: 85%;
  margin: 0 0 20px auto;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 6.8vw, 34px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(-7deg);
  text-shadow: 0 2px 12px #17376666;
}
.hero-message span:first-child {
  padding-left: 20px;
}
.hero-message span:last-child {
  padding-left: 78px;
}
.profile {
  position: relative;
}
.avatar {
  width: 76px;
  height: 76px;
  border: 2px solid white;
  border-radius: 50%;
  background: url("assets/site-icon.png") center/cover no-repeat;
  box-shadow: 0 2px 12px #001e3d40;
}
.profile h1 {
  font-size: clamp(32px, 8.8vw, 43px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin: 7px 0;
}
.introduction {
  margin: 0;
  font-size: clamp(11px, 3.05vw, 15px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px #352f4d99;
}
.good-life {
  position: absolute;
  right: 0;
  top: 22px;
  margin: 0;
  font:
    italic 18px/1.4 "Segoe Print",
    "Bradley Hand",
    cursive;
  text-align: center;
  transform: rotate(-10deg);
  text-shadow: 0 1px 8px #17376680;
}
.good-life span {
  display: block;
  width: 65px;
  height: 1px;
  background: white;
  margin: 7px auto 0;
}
.activities {
  margin-top: 25px;
  scroll-margin-top: 24px;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 94px;
  aspect-ratio: 1.12;
  text-decoration: none;
  border: 1px solid #ffffff88;
  border-radius: 17px;
  background: linear-gradient(135deg, #ffffff30, #ffffff12);
  box-shadow:
    inset 0 1px 10px #ffffff16,
    0 2px 8px #19365410;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition:
    transform 0.18s,
    background 0.18s;
}
.activity svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 1px 3px #42344333);
}
.activity-label {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 5px #432e4570;
}
.activity:active {
  transform: scale(0.96);
}
.footer {
  margin-top: auto;
  padding: 64px 0 max(21px, env(safe-area-inset-bottom));
  text-align: center;
  color: white;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.social {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 58px;
  text-decoration: none;
  font-size: 11px;
  text-shadow: 0 1px 5px #000b;
}
.social svg {
  width: 54px;
  height: 54px;
  padding: 11px;
  border: 1px solid white;
  border-radius: 50%;
  box-sizing: border-box;
}
.instagram svg {
  background: radial-gradient(
    circle at 25% 110%,
    #ffd565 3%,
    #ff8b2c 24%,
    #f52585 50%,
    #a70ee1 78%
  );
  stroke: white;
  stroke-width: 2.4;
  box-shadow:
    0 0 8px #ff71e6,
    0 0 22px #d419d580;
}
.instagram .ig-dot {
  fill: white;
  stroke: none;
}
.youtube svg {
  background: #ff0919;
  stroke: none;
  fill: white;
  box-shadow:
    0 0 8px #ff4141,
    0 0 22px #ff092d80;
}
.youtube path {
  fill: #ff0919;
}
.x svg {
  background: #060d18;
  stroke: white;
  stroke-width: 1.8;
  box-shadow: 0 0 12px #74b8df55;
}
.status-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 190px;
  min-height: 43px;
  margin: 18px auto 0;
  border: 1px solid #ffffff99;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff40, #ffffff22);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset 0 0 8px #ffffff20;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
.status-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.4;
}
.status-button:after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid white;
  border-right: 1.5px solid white;
  transform: rotate(45deg);
  margin-left: 8px;
}
.copyright {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  text-shadow: 0 1px 5px #001629;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px;
  background: white;
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
dialog {
  width: min(88vw, 380px);
  color: var(--ink);
  padding: 32px 24px 24px;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  box-shadow: 0 20px 70px #001e3d33;
  background: #faf8f5;
}
dialog::backdrop {
  background: #03192588;
  backdrop-filter: blur(5px);
}
dialog h2 {
  margin: 0 35px 14px 0;
  font-size: 24px;
}
dialog p {
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 28px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.dialog-ok {
  background: #193f50;
  color: white;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 9px 24px;
  cursor: pointer;
}
.noscript {
  padding: 12px;
  text-align: center;
}
@media (hover: hover) {
  .activity:hover {
    background-color: #ffffff28;
    transform: translateY(-3px);
  }
  .social:hover {
    transform: translateY(-2px);
  }
  .status-button:hover {
    background-color: #ffffff30;
  }
}
@media (min-width: 540px) {
  .room {
    padding-left: max(32px, calc((100% - 470px) / 2));
    padding-right: max(32px, calc((100% - 470px) / 2));
  }
  .hero-message {
    font-size: 36px;
    width: 290px;
  }
  .avatar {
    width: 92px;
    height: 92px;
  }
  .profile h1 {
    font-size: 44px;
  }
  .introduction {
    font-size: 15px;
  }
  .good-life {
    font-size: 23px;
  }
  .activity {
    min-height: 115px;
  }
  .activity svg {
    width: 43px;
    height: 43px;
  }
  .activity-label {
    font-size: 14px;
  }
}
@media (max-height: 700px) {
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 26px);
  }
  .hero-message {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  .avatar {
    width: 64px;
    height: 64px;
  }
  .profile h1 {
    font-size: 31px;
  }
  .activities {
    margin-top: 20px;
  }
  .footer {
    padding-top: 36px;
  }
  .social svg {
    width: 48px;
    height: 48px;
  }
  .copyright {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
