/* Version: personal-mango-i18n-v9 / CRLF */
:root {
  color-scheme: light;
  --bg: #fff7df;
  --bg-2: #ffe4a5;
  --paper: rgba(255, 252, 240, 0.88);
  --paper-strong: #fffdf6;
  --text: #3e2b19;
  --muted: #755d45;
  --soft: #9b7650;
  --line: rgba(127, 85, 36, 0.18);
  --mango: #ffb22e;
  --mango-deep: #f07a1f;
  --orange: #ff8a1e;
  --peach: #ff8f70;
  --leaf: #5f9f6b;
  --cream: #fff4c7;
  --notice: #fff1b8;
  --notice-border: #c7371e;
  --shadow: 0 24px 70px rgba(152, 88, 24, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--glow-x, 72%) var(--glow-y, 26%), rgba(255, 178, 46, 0.42), transparent 25rem),
    radial-gradient(circle at 12% 16%, rgba(255, 143, 112, 0.30), transparent 22rem),
    radial-gradient(circle at 82% 92%, rgba(95, 159, 107, 0.20), transparent 21rem),
    linear-gradient(135deg, var(--bg) 0%, #fff2c2 48%, #ffe1a4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(129, 84, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 84, 37, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), rgba(0,0,0,0.08));
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  left: max(-80px, calc(50% - 760px));
  bottom: -95px;
  width: 360px;
  height: 360px;
  z-index: -2;
  border-radius: 52% 48% 46% 54%;
  background: linear-gradient(135deg, rgba(255, 178, 46, 0.34), rgba(255, 143, 112, 0.24));
  filter: blur(4px);
  animation: soft-blob 8s ease-in-out infinite alternate;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow {
  position: fixed;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 178, 46, 0.42), transparent 68%);
  pointer-events: none;
  animation: glow-drift 8s ease-in-out infinite alternate;
}

.floating-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-shapes span {
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 178, 46, 0.52);
  animation: float-shape 9s ease-in-out infinite;
}

.floating-shapes span:nth-child(1) {
  left: 7%;
  top: 62%;
  width: 38px;
  height: 38px;
  background: rgba(255, 143, 112, 0.24);
}

.floating-shapes span:nth-child(2) {
  left: 47%;
  top: 21%;
  animation-delay: -4s;
}

.floating-shapes span:nth-child(3) {
  right: 9%;
  bottom: 20%;
  width: 46px;
  height: 46px;
  background: rgba(95, 159, 107, 0.26);
  animation-delay: -8s;
}

.floating-shapes span:nth-child(4) {
  left: 26%;
  bottom: 8%;
  width: 18px;
  height: 18px;
  background: rgba(240, 122, 31, 0.40);
  animation-delay: -2.5s;
  animation-duration: 7.6s;
}

.floating-shapes span:nth-child(5) {
  right: 31%;
  top: 13%;
  width: 68px;
  height: 68px;
  background: rgba(255, 238, 176, 0.62);
  animation-delay: -5.8s;
  animation-duration: 10.5s;
}

.floating-shapes span:nth-child(6) {
  left: 59%;
  bottom: 34%;
  width: 14px;
  height: 14px;
  background: rgba(255, 143, 112, 0.52);
  animation-delay: -6.9s;
  animation-duration: 6.8s;
}

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(14px, 2vh, 20px) 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  box-shadow: 0 14px 30px rgba(240, 122, 31, 0.26), inset 0 1px 0 rgba(255,255,255,0.48);
  font-size: 1.35rem;
  font-weight: 900;
  animation: mark-pop 2.8s ease-in-out infinite;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 12px 34px rgba(142, 86, 27, 0.10);
  backdrop-filter: blur(16px);
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 820;
  position: relative;
  overflow: hidden;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.56) 48%, transparent 70%);
  transform: translateX(-130%);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  animation: nav-shine 640ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #3f250f;
  background: var(--cream);
  transform: translateY(-1px);
  outline: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.74);
  box-shadow: 0 10px 26px rgba(142, 86, 27, 0.10);
  backdrop-filter: blur(16px);
}

.language-button {
  appearance: none;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  color: #3f250f;
  background: rgba(255, 244, 199, 0.72);
  transform: translateY(-1px);
  outline: none;
}

.language-button.is-active {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  box-shadow: 0 8px 18px rgba(240, 122, 31, 0.18);
}


.copyright-alert {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto clamp(10px, 1.5vh, 16px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 2px solid var(--notice-border);
  border-radius: 14px;
  color: #4b170d;
  background: linear-gradient(180deg, #fff7ce, var(--notice));
  box-shadow: 0 12px 28px rgba(170, 75, 23, 0.12);
  animation: notice-attention 5.2s ease-in-out infinite;
}

.copyright-alert strong {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff9ef;
  background: var(--notice-border);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.copyright-alert p {
  margin: 0;
  font-size: clamp(0.84rem, 1.15vw, 0.98rem);
  font-weight: 800;
  line-height: 1.55;
}

.one-screen {
  width: min(var(--max), calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr;
  gap: clamp(10px, 1.5vh, 16px);
  padding: 0 0 clamp(12px, 2vh, 20px);
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 46px);
}

.hero-copy,
.home-card {
  min-height: clamp(500px, 65vh, 610px);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.6vw, 56px);
  border: 1px solid rgba(127, 85, 36, 0.15);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.92), rgba(255, 247, 218, 0.62)),
    radial-gradient(circle at 12% 0%, rgba(255, 178, 46, 0.20), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-copy::before {
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  background: rgba(255, 178, 46, 0.28);
  animation: corner-sun 5.4s ease-in-out infinite alternate;
}

.hero-copy::after {
  right: 58px;
  bottom: 36px;
  width: 15px;
  height: 15px;
  background: var(--leaf);
  box-shadow: 28px -36px 0 rgba(255, 143, 112, 0.72), -38px 30px 0 rgba(255, 178, 46, 0.90);
  animation: dot-dance 3.8s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  color: var(--mango-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--leaf);
  box-shadow: 0 0 0 6px rgba(95, 159, 107, 0.13);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.primary-name,
.secondary-name {
  display: block;
}

.primary-name {
  position: relative;
  width: fit-content;
  color: var(--text);
  font-size: clamp(3.45rem, 7.4vw, 6.9rem);
  letter-spacing: -0.065em;
}

.primary-name::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.08em;
  bottom: -0.08em;
  height: 0.11em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mango-deep), var(--mango), var(--peach));
  transform-origin: left center;
  animation: name-underline 3.6s ease-in-out infinite;
}

.secondary-name {
  margin-top: clamp(8px, 1.3vh, 14px);
  color: var(--mango-deep);
  font-size: clamp(2.15rem, 4.8vw, 4.25rem);
  letter-spacing: -0.055em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(16px, 2.5vh, 26px) 0 clamp(18px, 2.8vh, 30px);
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(240, 122, 31, 0.20);
  border-radius: 999px;
  color: #6d3f14;
  background: rgba(255, 239, 196, 0.74);
  font-size: 0.88rem;
  font-weight: 820;
  animation: tag-bob 4.2s ease-in-out infinite;
}

.hero-tags span:nth-child(2) {
  animation-delay: -1.2s;
}

.hero-tags span:nth-child(3) {
  animation-delay: -2.4s;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango), #ffd36a);
  background-size: 180% 180%;
  box-shadow: 0 18px 42px rgba(240, 122, 31, 0.24);
  animation: button-pulse 2.8s ease-in-out infinite, gradient-shift 4.6s ease-in-out infinite;
}

.button.secondary {
  border: 1px solid rgba(127, 85, 36, 0.18);
  color: #5f3c1f;
  background: rgba(255, 253, 246, 0.75);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #fff9e8;
}

.home-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(16px, 2vh, 22px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(127, 85, 36, 0.15);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 246, 0.78);
  box-shadow: 0 22px 62px rgba(152, 88, 24, 0.14);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.legacy-frame {
  position: relative;
  align-self: start;
  display: block;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid rgba(127, 85, 36, 0.18);
  border-radius: 22px;
  background: #fffdf6;
  box-shadow: 0 18px 38px rgba(142, 86, 27, 0.16);
  overflow: hidden;
  animation: artwork-float 4.2s ease-in-out infinite;
}

.legacy-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.legacy-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  border-radius: 16px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.0) 36%, rgba(255,255,255,0.46) 50%, rgba(255,255,255,0.0) 64%, transparent 100%);
  transform: translateX(-130%);
  pointer-events: none;
  animation: artwork-shine 5.6s ease-in-out infinite;
}

.legacy-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 383;
  object-fit: contain;
  border-radius: 16px;
  filter: saturate(1.04) contrast(0.98);
}


.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card a {
  position: relative;
  display: grid;
  min-height: clamp(96px, 12vh, 122px);
  align-content: space-between;
  padding: 16px;
  border: 1px solid rgba(127, 85, 36, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  transition: transform 190ms ease, background 190ms ease, box-shadow 190ms ease;
  animation: card-breathe 5.2s ease-in-out infinite;
  overflow: hidden;
}

.link-card a::after {
  content: "→";
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: var(--mango-deep);
  font-weight: 950;
  transition: transform 180ms ease;
}

.link-card a:hover,
.link-card a:focus-visible {
  transform: translateY(-4px);
  background: #fffdf7;
  box-shadow: 0 16px 32px rgba(142, 86, 27, 0.12);
  outline: none;
}

.link-card a:hover::after,
.link-card a:focus-visible::after {
  transform: translateX(4px);
}

.link-card:nth-child(2) a { animation-delay: -1.1s; }
.link-card:nth-child(3) a { animation-delay: -2.2s; }
.link-card:nth-child(4) a { animation-delay: -3.3s; }

.link-card.featured a {
  background: linear-gradient(135deg, rgba(255, 178, 46, 0.28), rgba(255, 253, 246, 0.72));
}

.card-number {
  color: var(--mango-deep);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.link-card h3 {
  margin: 12px 0 5px;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  letter-spacing: -0.02em;
}

.link-card p {
  max-width: 12rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.42;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  color: var(--soft);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.legal-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-art {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-art img {
  border-radius: 8px;
  opacity: 0.78;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
}

body.is-loaded .reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

body.is-loaded .copyright-alert { transition-delay: 90ms; }
body.is-loaded .hero-copy { transition-delay: 170ms; }
body.is-loaded .home-card { transition-delay: 260ms; }
body.is-loaded .site-footer { transition-delay: 340ms; }

@keyframes soft-blob {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 52% 48% 46% 54%;
  }
  50% {
    transform: translate3d(82px, -52px, 0) rotate(28deg) scale(1.14);
    border-radius: 42% 58% 56% 44%;
  }
  100% {
    transform: translate3d(32px, -86px, 0) rotate(48deg) scale(1.04);
    border-radius: 58% 42% 44% 56%;
  }
}

@keyframes glow-breathe {
  from { transform: scale(0.96); opacity: 0.72; }
  to { transform: scale(1.12); opacity: 1; }
}

@keyframes float-shape {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  35% { transform: translate3d(36px, -54px, 0) rotate(32deg) scale(1.18); }
  68% { transform: translate3d(-28px, -86px, 0) rotate(-18deg) scale(0.92); }
}

@keyframes mark-pop {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  42% { transform: translateY(-7px) rotate(-4deg) scale(1.06); }
  60% { transform: translateY(-2px) rotate(3deg) scale(1.02); }
}

@keyframes corner-sun {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(-34px, 24px, 0) rotate(28deg) scale(1.18); }
}

@keyframes dot-dance {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  30% { transform: translate3d(-18px, -16px, 0) scale(1.18); }
  64% { transform: translate3d(12px, -28px, 0) scale(0.92); }
}

@keyframes button-pulse {
  0%, 100% { box-shadow: 0 18px 42px rgba(240, 122, 31, 0.24); transform: translateY(0); }
  50% { box-shadow: 0 24px 56px rgba(240, 122, 31, 0.42); transform: translateY(-2px); }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(0.6deg); }
}

@keyframes glow-drift {
  0% { transform: translate3d(0, 0, 0) scale(0.98); opacity: 0.68; }
  45% { transform: translate3d(-54px, -42px, 0) scale(1.18); opacity: 0.95; }
  100% { transform: translate3d(-16px, -86px, 0) scale(1.08); opacity: 0.82; }
}

@keyframes nav-shine {
  to { transform: translateX(130%); }
}

@keyframes notice-attention {
  0%, 100% { transform: translateY(0); border-color: var(--notice-border); box-shadow: 0 12px 28px rgba(170, 75, 23, 0.12); }
  50% { transform: translateY(-2px); border-color: #f07a1f; box-shadow: 0 18px 34px rgba(240, 122, 31, 0.20); }
}

@keyframes name-underline {
  0%, 100% { transform: scaleX(0.34); opacity: 0.72; }
  48% { transform: scaleX(1); opacity: 1; }
}

@keyframes tag-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-1.2deg); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes artwork-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.5deg); box-shadow: 0 18px 38px rgba(142, 86, 27, 0.16); }
  45% { transform: translate3d(0, -13px, 0) rotate(1deg); box-shadow: 0 26px 48px rgba(142, 86, 27, 0.22); }
  70% { transform: translate3d(0, -5px, 0) rotate(-0.2deg); }
}

@keyframes artwork-shine {
  0%, 48% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(130%); }
}

@keyframes card-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .language-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .copyright-alert {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .copyright-alert strong {
    justify-self: start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy,
  .home-card {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  .primary-name {
    font-size: clamp(3.1rem, 14vw, 5.4rem);
  }

  .secondary-name {
    font-size: clamp(2rem, 8.5vw, 3.3rem);
  }

  .legacy-frame {
    max-width: 500px;
  }

  .site-footer {
    align-items: flex-start;
    padding-bottom: 4px;
  }
}

@media (max-width: 620px) {
  :root {
    --radius-xl: 26px;
    --radius-lg: 20px;
  }

  .site-header,
  .copyright-alert,
  .one-screen {
    width: min(100% - 26px, var(--max));
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .site-nav {
    gap: 5px;
    padding: 5px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .language-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .hero-copy,
  .home-card {
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card a {
    min-height: 92px;
  }

  .legacy-frame {
    max-width: 500px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-art {
    display: none;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .site-nav a {
    min-height: 36px;
  }

  .copyright-alert {
    padding: 8px 14px;
  }

  .hero-copy,
  .home-card {
    min-height: 500px;
    padding: 24px;
  }

  .hero-tags {
    margin-bottom: 18px;
  }

  .button {
    min-height: 44px;
  }

  .home-card {
    grid-template-rows: auto auto;
  }

  .link-card a {
    min-height: 96px;
  }

  .site-footer {
    min-height: 32px;
  }
}

@media (max-height: 700px) and (min-width: 981px) {
  body {
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


/* リンクカードの自動上下運動を停止 */
.link-card a {
  animation: none;
}

/* 注意書き赤枠のアニメーションを停止 */
.copyright-alert {
  animation: none;
}

/* 「個人事業主 / Software / Books & Essays」の上下アニメーションを停止 */
.hero-tags span {
  animation: none;
}

/* 「自作ソフトウェアを見る」ボタンの自動アニメーションを停止 */
.hero-actions .button.primary,
.hero-actions .button.primary::before,
.hero-actions .button.primary::after {
  animation: none !important;
}

/* 左上の YH マークの弾むアニメーションを停止 */
.brand-mark {
  animation: none;
}

/* メイン見出しの下線アニメーションを停止 */
.primary-name::after {
  animation: none;
  transform: scaleX(1);
  opacity: 1;
}


/* title_2nd.gif のふわっと浮く動きだけ停止。光が横切る演出は残す */
.legacy-frame {
  animation: none;
}
