/* ロックス君のページ（rox.html）だけの部品。tsugu.css の後に読み込む。
   背景・ヘッダー・フッターはサイト共通のまま、写真と見出しを少しポップにする */
.nx.rox {
  --pop1: #ff8a3d; --pop2: #ff5d8f; --pop3: #ffc93c; --pop4: #2fbfb8; --pop5: #8c6cff;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}
.nx.rox .rounded { font-family: var(--round); }

/* ---------- 冒頭 ---------- */
.nx .rox-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  max-width: 1100px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(24px, 4vw, 40px); }
.nx .rox-hero .eyebrow { color: var(--pop2); }
.nx .rox-title { margin: 6px 0 0; font-family: var(--round); font-size: clamp(3.2rem, 2rem + 6vw, 6.4rem); font-weight: 800; line-height: 1.05; letter-spacing: .02em;
  background: linear-gradient(95deg, var(--pop1) 10%, var(--pop2) 60%, var(--pop5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx .rox-title small { display: block; margin-top: 10px; color: var(--ink); -webkit-text-fill-color: var(--ink); font-size: .3em; font-weight: 800; letter-spacing: .04em; }
.nx .rox-hero .sec-lede { margin: 18px 0 0; text-align: left; }
.nx .rox-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nx .rox-jump a { padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--ink) !important; font-family: var(--round); font-weight: 800; font-size: .95rem; text-decoration: none;
  box-shadow: 0 6px 0 -2px var(--c, var(--pop3)), 0 10px 20px -12px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.nx .rox-jump a:hover { transform: translateY(-3px) rotate(-2deg); }
.nx .rox-portrait { position: relative; justify-self: center; width: min(320px, 72vw); }
.nx .rox-portrait-btn { border-radius: 50%; cursor: zoom-in; }
.nx .rox-portrait img { display: block; width: 100% !important; aspect-ratio: 1; object-fit: cover; border: 10px solid #fff; border-radius: 50%;
  box-shadow: 0 24px 50px -22px rgba(120, 50, 10, .55); animation: rox-float 6s ease-in-out infinite; }
.nx .rox-badge { position: absolute; right: -4px; top: 6%; display: grid; place-content: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--pop3); color: #7a3a12; font-family: var(--round); font-weight: 800; font-size: 1.9rem; line-height: 1; text-align: center;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .45); transform: rotate(12deg); animation: rox-wiggle 4s ease-in-out infinite; }
.nx .rox-badge small { display: block; margin-top: 4px; font-size: .42em; letter-spacing: .06em; }
.nx .rox-paws { position: absolute; left: -10px; bottom: 4%; font-size: 2rem; transform: rotate(-18deg); opacity: .85; }

/* ---------- 見出し ---------- */
.nx .rox-sec { max-width: 1100px; margin: clamp(40px, 7vw, 80px) auto 0; padding: 0 var(--gutter); scroll-margin-top: calc(var(--header-h, 60px) + 16px); }
.nx .rox-h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--round); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
.nx .rox-h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--pop2); box-shadow: 20px 0 0 var(--pop3), 40px 0 0 var(--pop4); margin-right: 40px; }
.nx .rox-lede { margin: -6px 0 18px; color: var(--ink-2); }

/* ---------- 長寿のお祝い ---------- */
.nx .rox-choju { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, .5fr); gap: 24px; align-items: start; }
.nx .rox-maincol { display: grid; gap: 22px; }
.nx .rox-msg--up { margin-top: 6px; text-align: center; font-size: clamp(1rem, .9rem + .5vw, 1.2rem); }
.nx .rox-msg.rox-msg--up::after { top: -12px; bottom: auto; left: 50%; margin-left: -12px; border: 12px solid transparent; border-bottom-color: #fff7d6; border-top: 0; }
.nx .rox-main figcaption { font-size: 1rem; }
.nx .rox-tv { margin: 0; padding: 10px; border-radius: 26px; background: linear-gradient(140deg, var(--pop2), var(--pop1)); box-shadow: 0 24px 50px -24px rgba(160, 40, 60, .6); }
.nx .rox-tv video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #111; }
.nx .rox-tv figcaption { padding: 10px 8px 2px; color: #fff; font-family: var(--round); font-weight: 800; font-size: .95rem; }
.nx .rox-side { display: grid; gap: 18px; }
.nx .rox-msg { position: relative; margin: 0; padding: 18px 20px; border-radius: 22px; background: #fff7d6; color: #6b4a00; font-family: var(--round); font-weight: 800; line-height: 1.7;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .4); }
.nx .rox-msg::after { content: ""; position: absolute; left: 28px; bottom: -12px; border: 12px solid transparent; border-top-color: #fff7d6; border-bottom: 0; }
.nx .rox-msg small { display: block; margin-top: 6px; color: #a07b1f; font-size: .78rem; font-weight: 700; }
.nx .rox-choju-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }

/* ---------- 写真（ポラロイド風） ---------- */
.nx .rox-card { position: relative; margin: 0 0 20px; padding: 10px 10px 12px; border-radius: 14px; background: #fff; break-inside: avoid;
  box-shadow: 0 16px 30px -18px rgba(90, 40, 10, .45); transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.nx .rox-card::before { content: ""; position: absolute; left: 50%; top: -10px; width: 78px; height: 22px; margin-left: -39px; border-radius: 3px;
  background: var(--tape, rgba(255, 201, 60, .75)); transform: rotate(-4deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }
.nx .rox-card:hover { transform: rotate(0) translateY(-4px) scale(1.02); box-shadow: 0 24px 40px -18px rgba(90, 40, 10, .55); z-index: 2; }
.nx .rox-shot { display: block; width: 100%; padding: 0; border: 0; border-radius: 9px; background: none; overflow: hidden; cursor: zoom-in; }
.nx .rox-shot img { display: block; width: 100% !important; height: auto; border-radius: 9px; }
.nx .rox-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 10px; color: #6b3a14; font-family: var(--round); font-weight: 700; font-size: .92rem; line-height: 1.5; }
.nx .rox-card time { padding: 1px 9px; border-radius: 999px; background: var(--c, var(--pop1)); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }

/* ---------- 年ごとのアルバム ---------- */
.nx .rox-year { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding-top: 18px; border-top: 3px dotted rgba(122, 58, 18, .18); }
.nx .rox-year + .rox-year { margin-top: 18px; }
.nx .rox-yl { position: sticky; top: calc(var(--header-h, 60px) + 16px); align-self: start; margin: 0; font-family: var(--round); font-weight: 800; color: var(--c, var(--pop1)); line-height: 1; }
.nx .rox-yl b { display: block; font-size: 2.8rem; letter-spacing: -.01em; }
.nx .rox-yl span { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .82rem; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .3); }
/* 段組み（columns）は Safari で2段目以降の写真が出ないことがあるのでグリッドで並べる */
.nx .rox-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 20px; align-items: start; padding-top: 12px; }
.nx .rox-cards .rox-card { margin: 0; }

@keyframes rox-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rox-wiggle { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(-4deg) scale(1.06); } }

@media (max-width: 860px) {
  .nx .rox-hero { grid-template-columns: 1fr; text-align: center; }
  .nx .rox-hero .sec-lede { text-align: left; }
  .nx .rox-jump { justify-content: center; }
  .nx .rox-portrait { order: -1; width: min(250px, 64vw); }
  .nx .rox-choju { grid-template-columns: 1fr; }
  .nx .rox-year { grid-template-columns: 1fr; gap: 4px; }
  .nx .rox-yl { position: static; display: flex; align-items: baseline; gap: 10px; }
  .nx .rox-yl b { font-size: 2.2rem; }
}
@media (max-width: 599px) {
  .nx .rox-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .nx .rox-card { padding: 7px 7px 9px; margin-bottom: 14px; }
  .nx .rox-card figcaption { font-size: .8rem; }
  .nx .rox-choju-row { gap: 12px; }
  .nx .rox-badge { width: 78px; height: 78px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nx .rox-portrait img, .nx .rox-badge { animation: none; }
  .nx .rox-card, .nx .rox-jump a { transition: none; }
}
.nx .rox-card--video video { display: block; width: 100%; height: auto; border-radius: 9px; background: #111; }
/* パスワード付きページへの入口 */
.nx .rox-lock { display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 18px 22px; border-radius: 22px; background: #fff; color: var(--ink) !important; text-decoration: none;
  box-shadow: 0 8px 0 -2px var(--pop4), 0 16px 30px -18px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.nx .rox-lock:hover { transform: translateY(-3px) rotate(-1deg); }
.nx .rox-lock-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #e6f8f6; font-size: 1.5rem; }
.nx .rox-lock b { display: block; font-family: var(--round); font-size: 1.05rem; }
.nx .rox-lock small { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; }
