/* UMETAKE PRODUCTION — renewal styles
   Brand base: cream #F8F2E5 + accent #EB5024
   System pages intentionally shift darker. */

:root {
  --bg: #f7f1e6;
  --bg-deep: #efe6d4;
  --bg-soft: #fffdf8;
  --bg-white: #ffffff;
  --ink: #2a2420;
  --ink-soft: #5f564f;
  --line: rgba(42, 36, 32, 0.11);
  --accent: #eb5024;
  --accent-dark: #c9421b;
  --brown: #8b5e4b;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --shadow-soft: 0 20px 50px rgba(42, 36, 32, 0.08);
  --shadow-nav: 0 10px 30px rgba(42, 36, 32, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --header-h: 86px;
  --font-sans: "BIZ UDPGothic", "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", serif;

  --sys-bg: #161b22;
  --sys-bg-2: #222933;
  --sys-ink: #f5f1ea;
  --sys-muted: #a8b0bd;
  --sys-line: rgba(245, 241, 234, 0.14);
  --sys-accent: #ff7a4d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.renewal {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.renewal a {
  color: inherit;
  text-decoration: none;
}

body.renewal img {
  max-width: 100%;
  display: block;
}

.rn-skip {
  position: absolute;
  left: -9999px;
}

/* ========== Header: white rounded pill (brand continuity) ========== */
.rn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 16px 0;
  background: transparent;
}

.rn-header__inner {
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  min-height: 64px;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow-nav);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.rn-header.is-scrolled .rn-header__inner {
  box-shadow: 0 14px 36px rgba(42, 36, 32, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.rn-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.rn-logo img {
  height: 34px;
  width: auto;
}

.rn-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.rn-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.rn-nav a:hover,
.rn-nav a.is-active {
  background: rgba(235, 80, 36, 0.08);
  color: var(--accent-dark);
}

.rn-nav a:last-child {
  color: var(--accent-dark);
}

.rn-hamburger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.rn-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.rn-hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.rn-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.rn-hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.rn-drawer {
  display: none;
  margin: 10px 0 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
  padding: 8px 18px 20px;
  box-shadow: var(--shadow-soft);
}

.rn-drawer.is-open {
  display: block;
}

.rn-drawer a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.rn-drawer a:last-child {
  border-bottom: 0;
  margin-top: 12px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 14px;
}

@media (min-width: 1020px) {
  .rn-nav {
    display: flex;
  }

  .rn-hamburger,
  .rn-drawer {
    display: none !important;
  }
}

/* ========== Layout ========== */
.rn-main {
  /* overflow-x: clip は overflow-y も clip 扱いになり、3D折りたたみが上下で切れるため使わない */
  overflow: visible;
}

.rn-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.rn-section {
  padding: 108px 0;
  position: relative;
}

.rn-section--tight {
  padding: 80px 0;
}

.rn-section--tint {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.55), rgba(248, 242, 229, 0));
}

.rn-eyebrow,
.rn-vlabel {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}

.rn-vlabel--light {
  color: rgba(245, 241, 234, 0.7);
}

.rn-split-head {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
  align-items: end;
}

@media (min-width: 860px) {
  .rn-split-head {
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: 56px;
  }

  .rn-split-head .rn-lead {
    justify-self: end;
    text-align: right;
  }
}

.rn-h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.rn-lead {
  margin: 0;
  max-width: 38em;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.rn-section-head {
  margin-bottom: 44px;
  max-width: 720px;
}

.rn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rn-btn:hover {
  transform: translateY(-1px);
}

.rn-btn--primary,
body.renewal a.rn-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(235, 80, 36, 0.22);
}

.rn-btn--primary:hover,
body.renewal a.rn-btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.rn-btn--ghost {
  background: transparent;
  border-color: rgba(42, 36, 32, 0.22);
  color: var(--ink);
}

.rn-btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.rn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ========== Hero: overlapping editorial ========== */
.rn-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-h) + 8px) 0 0;
  overflow: clip;
}

.rn-hero__ghost {
  position: absolute;
  right: -0.15em;
  top: 8%;
  margin: 0;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: 0.08em;
  color: rgba(42, 36, 32, 0.055);
  writing-mode: vertical-rl;
  pointer-events: none;
  user-select: none;
}

.rn-hero__stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  padding-top: 12px;
  min-height: calc(100svh - 160px);
  align-items: end;
}

.rn-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-bottom: 28px;
  animation: rn-fade-up 0.9s ease both;
}

.rn-hero__chip {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 14px;
  border: 1px solid rgba(42, 36, 32, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.rn-hero__title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.rn-hero__line {
  display: block;
}

.rn-hero__line--shift {
  padding-left: 0.55em;
}

.rn-hero__sub {
  margin: 0;
  max-width: 22em;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.9;
}

.rn-hero__frame {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  border-radius: 42% 28% 36% 48% / 32% 44% 28% 52%;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(42, 36, 32, 0.16);
  transform: rotate(4deg);
  animation: rn-frame-in 1.1s ease both;
}

.rn-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08) rotate(-4deg);
}

.rn-hero__caption {
  position: absolute;
  left: 18px;
  bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  font-size: 11px;
  letter-spacing: 0.14em;
}

@keyframes rn-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes rn-frame-in {
  from { opacity: 0; transform: rotate(4deg) translate(24px, 18px); }
  to { opacity: 1; transform: rotate(4deg); }
}

.rn-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.45);
  margin-top: 8px;
}

.rn-marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 14px 0;
  animation: rn-marquee 28s linear infinite;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--brown);
}

.rn-marquee__track span::before {
  content: "・";
  margin-right: 48px;
  color: var(--accent);
}

@keyframes rn-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 960px) {
  .rn-hero__stage {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .rn-hero__frame {
    width: 118%;
    margin-left: -8%;
    margin-bottom: -4vh;
  }
}

@media (max-width: 759px) {
  .rn-hero__stage {
    min-height: auto;
    padding-top: 24px;
  }

  .rn-hero__frame {
    width: 78%;
    aspect-ratio: 5 / 4;
    justify-self: center;
    transform: rotate(2deg);
  }

  .rn-hero__line--shift {
    padding-left: 0;
  }
}

/* ========== Intro mosaic ========== */
.rn-intro {
  padding-top: 88px;
}

.rn-intro__grid {
  display: grid;
  gap: 40px;
}

.rn-intro__head .rn-h2 {
  max-width: 8em;
}

.rn-intro-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink-soft);
  font-size: 14px;
}

.rn-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rn-mosaic__item {
  padding: 22px 20px 24px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}

.rn-mosaic__item span {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.rn-mosaic__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.rn-mosaic__item--a { border-radius: 28px 12px 22px 8px; }
.rn-mosaic__item--b { border-radius: 12px 32px 10px 24px; margin-top: 22px; }
.rn-mosaic__item--c { border-radius: 8px 20px 32px 14px; }
.rn-mosaic__item--d { border-radius: 24px 8px 16px 28px; margin-top: 22px; background: #fff7f2; border-color: rgba(235, 80, 36, 0.22); }

@media (min-width: 900px) {
  .rn-intro__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
  }

  .rn-mosaic {
    gap: 18px;
  }

  .rn-mosaic__item--b { margin-top: 36px; }
  .rn-mosaic__item--d { margin-top: 36px; }
}

/* ========== Bento services ========== */
.rn-bento {
  display: grid;
  gap: 14px;
}

.rn-bento__item {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-bento__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.rn-bento__num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brown);
}

.rn-bento__item h2,
.rn-bento__item h3 {
  margin: 18px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
}

.rn-bento__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.rn-bento__go {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: var(--accent-dark);
}

.rn-bento__go::after {
  content: " →";
}

.rn-bento__sys {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 122, 77, 0.22), transparent 50%),
    linear-gradient(165deg, #2a323d, #161b22);
  border-color: transparent;
  color: var(--sys-ink);
  min-height: 280px;
}

.rn-bento__sys .rn-bento__num,
.rn-bento__sys p {
  color: var(--sys-muted);
}

.rn-bento__sys .rn-bento__go {
  color: var(--sys-accent);
}

.rn-bento__ai {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), #f4ebdc);
}

@media (min-width: 860px) {
  .rn-bento {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
  }

  .rn-bento__web { grid-column: 1; grid-row: 1; }
  .rn-bento__sys { grid-column: 2; grid-row: 1 / 3; min-height: 100%; }
  .rn-bento__ai { grid-column: 1; grid-row: 2; }
  .rn-bento__ops { grid-column: 1 / -1; grid-row: 3; min-height: 140px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

  .rn-bento__ops h2,
  .rn-bento__ops h3 {
    margin: 0 24px 0 0;
  }

  .rn-bento__ops p {
    flex: 1 1 280px;
    margin: 0;
  }

  .rn-bento__ops .rn-bento__go {
    padding-top: 0;
  }
}

/* ========== Works: off-canvas track ========== */
.rn-works-sec {
  padding-bottom: 48px;
}

.rn-works-bleed {
  overflow: hidden;
}

.rn-works-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 22px 36px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

@media (min-width: 1144px) {
  .rn-works-track {
    padding-left: max(22px, calc((100vw - var(--max)) / 2));
  }
}

.rn-work {
  flex: 0 0 min(78vw, 360px);
  display: grid;
  gap: 14px;
  scroll-snap-align: start;
}

.rn-work:nth-child(2) {
  margin-top: 40px;
}

.rn-work:nth-child(3) {
  margin-top: 16px;
}

.rn-work__media {
  border-radius: 22px 8px 22px 8px;
  overflow: hidden;
  background: #e6dccb;
  aspect-ratio: 16 / 11;
  box-shadow: 0 16px 40px rgba(42, 36, 32, 0.08);
}

.rn-work:nth-child(2) .rn-work__media {
  border-radius: 8px 28px 8px 28px;
}

.rn-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.rn-work:hover .rn-work__media img {
  transform: scale(1.05);
}

.rn-work__cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brown);
}

.rn-work__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
}

.rn-work__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.rn-works {
  display: grid;
  gap: 36px 28px;
}

@media (min-width: 800px) {
  .rn-works {
    grid-template-columns: repeat(3, 1fr);
  }

  .rn-works .rn-work {
    flex: none;
    margin-top: 0;
  }

  .rn-works .rn-work:nth-child(2) {
    margin-top: 36px;
  }

  .rn-works .rn-work:nth-child(3) {
    margin-top: 12px;
  }
}

/* ========== SOLOPRA band ========== */
.rn-solopra {
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(255, 122, 77, 0.2), transparent 55%),
    #171c23;
  color: var(--sys-ink);
  padding: 88px 0;
  margin-top: 24px;
}

.rn-solopra__inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.rn-solopra .rn-h2 {
  color: #fff;
}

.rn-solopra .rn-lead {
  color: var(--sys-muted);
  margin-bottom: 24px;
}

.rn-solopra__kicker {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--sys-muted);
}

.rn-solopra__panel {
  min-height: 260px;
  border-radius: 32px 12px 40px 16px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.08), transparent 50%),
    #222933;
  border: 1px solid var(--sys-line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transform: rotate(-2deg);
}

.rn-solopra__panel strong {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 0.12em;
}

.rn-solopra__panel span {
  color: var(--sys-muted);
  font-size: 13px;
}

.rn-product {
  display: grid;
  gap: 28px;
  align-items: center;
}

.rn-product__title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
}

.rn-product__text {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.rn-product__panel {
  min-height: 240px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 70% at 80% 20%, rgba(255, 122, 77, 0.22), transparent 55%),
    linear-gradient(160deg, #2f3844, #171c23);
  color: var(--sys-ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.rn-product__panel strong {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.1em;
}

.rn-product__panel span {
  color: var(--sys-muted);
  font-size: 13px;
}

@media (min-width: 860px) {
  .rn-solopra__inner,
  .rn-product {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

/* ========== Contact ========== */
.rn-contact {
  position: relative;
  background:
    linear-gradient(180deg, #f3ead8 0%, #fffdf8 42%, #fff 100%);
  padding: 96px 0 110px;
}

.rn-contact-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.rn-contact__aside .rn-h2 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 6.2em;
}

.rn-form {
  display: grid;
  gap: 18px;
  max-width: 680px;
  padding: 32px 24px;
  background: #fff;
  border-radius: 28px 12px 32px 18px;
  box-shadow: 0 24px 60px rgba(42, 36, 32, 0.08);
}

@media (min-width: 900px) {
  .rn-contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
  }

  .rn-form {
    margin-top: 72px;
    margin-left: -32px;
    padding: 40px 36px;
  }
}

.rn-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.rn-field .req {
  color: var(--accent);
  margin-left: 4px;
}

.rn-field input,
.rn-field select,
.rn-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rn-field select {
  min-height: 52px;
  padding: 14px 40px 14px 15px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.rn-field select option {
  line-height: 1.5;
}

.rn-field textarea {
  min-height: 150px;
  resize: vertical;
}

.rn-field input:focus,
.rn-field select:focus,
.rn-field textarea:focus {
  outline: none;
  border-color: rgba(235, 80, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(235, 80, 36, 0.12);
}

.rn-field input.error_text_form,
.rn-field textarea.error_text_form {
  border-color: var(--accent);
  background: #fff7f4;
}

.rn-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.rn-policy-link {
  font-size: 12px;
  color: var(--brown);
  text-decoration: underline;
}

.rn-contact .personal_information {
  font-size: 13px;
  margin-top: 8px;
}

.rn-contact #contact_check_button {
  margin-top: 8px;
  width: fit-content;
  min-width: 200px;
}

/* Contact popups (self-contained; do not rely on pc.css rem) */
body.renewal .gray {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 16, 14, 0.55);
  display: none;
}

body.renewal .contact_confirm_container,
body.renewal .contact_complete_container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  z-index: 130;
  color: var(--ink);
  padding: 28px 24px 32px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  display: none;
}

body.renewal .popup_title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

body.renewal .popup_message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin: 16px 0 8px;
}

body.renewal .popup_img {
  width: 36px;
  height: auto;
}

body.renewal .popup_message p {
  margin: 0;
}

body.renewal .confirm_content {
  margin: 18px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

body.renewal .confirm_input_title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

body.renewal .confirm_input_value {
  margin-top: 8px;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

body.renewal .square {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

body.renewal .white_button,
body.renewal .orange_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid transparent;
}

body.renewal .white_button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

body.renewal .orange_button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(235, 80, 36, 0.2);
}

body.renewal .back_button {
  position: static;
  margin-right: 10px;
}

body.renewal .submit_button {
  margin: 0;
}

body.renewal .contact_confirm_container .white_button,
body.renewal .contact_confirm_container .orange_button,
body.renewal .contact_complete_container .white_button {
  margin-top: 8px;
}

body.renewal .complete_message_second {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 0 20px;
}

body.renewal .complete_message_second p {
  margin: 4px 0;
}

body.renewal .complete_flow_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ========== Footer ========== */
.rn-footer {
  position: relative;
  background: #241f1c;
  color: #f7f1e8;
  padding: 64px 0 28px;
  overflow: hidden;
}

.rn-footer::before {
  content: "UMETAKE";
  position: absolute;
  left: -0.06em;
  bottom: -0.28em;
  font-family: var(--font-serif);
  font-size: clamp(72px, 16vw, 180px);
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 232, 0.05);
  pointer-events: none;
}

.rn-footer__grid {
  position: relative;
  display: grid;
  gap: 28px;
}

.rn-footer__logo img {
  width: auto;
  height: clamp(36px, 4.2vw, 48px);
}

.rn-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  font-size: 13px;
  color: rgba(247, 241, 232, 0.78);
}

.rn-footer__links a:hover {
  color: #fff;
}

.rn-footer__copy {
  position: relative;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 241, 232, 0.14);
  font-size: 12px;
  color: rgba(247, 241, 232, 0.5);
}

@media (min-width: 800px) {
  .rn-footer__grid {
    grid-template-columns: 0.8fr 1.4fr;
    align-items: start;
  }

  .rn-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== Subpages ========== */
.rn-page-hero {
  position: relative;
  padding: 64px 0 12px;
  overflow: hidden;
}

.rn-page-hero__inner {
  position: relative;
  z-index: 1;
}

.rn-page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  border-radius: 46% 32% 40% 28%;
  background: rgba(235, 80, 36, 0.08);
  pointer-events: none;
}

.rn-page-hero--compact {
  padding: 28px 0 0;
}

.rn-page-hero--compact::after {
  display: none;
}

.rn-page-hero--system {
  padding: 64px 0 48px;
  margin-bottom: 8px;
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(255, 122, 77, 0.18), transparent 55%),
    linear-gradient(180deg, #1c222b 0%, var(--sys-bg) 100%);
}

body.renewal-blog {
  background: #f7f1e6;
}

body.renewal-blog .bloglist_container,
body.renewal-blog .blog_detail_container {
  display: block;
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding: 20px 22px 88px;
  height: auto;
}

body.renewal-blog .blogcontent {
  width: 100%;
  margin-top: 0;
  background: #fff;
  border: 1px solid rgba(42, 36, 32, 0.08);
  border-radius: 20px;
  padding: clamp(18px, 2.8vw, 34px);
  box-shadow: 0 18px 46px rgba(42, 36, 32, 0.06);
}

body.renewal-blog a {
  color: inherit;
}

body.renewal-blog .article_view_container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 18px;
  width: 100%;
  padding-top: 0;
  margin: 0;
}

body.renewal-blog .article_view_container .article_row {
  display: contents;
}

body.renewal-blog .article_view_container .article_row .article_view_box {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

body.renewal-blog .article_view_image {
  overflow: hidden;
  border: 1px solid rgba(42, 36, 32, 0.08);
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #efe7db;
}

body.renewal-blog .article_view_image .titleimage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.renewal-blog .article_view_box:hover .titleimage {
  transform: scale(1.035);
}

body.renewal-blog .article_view_title {
  display: block;
  min-height: 0;
  margin: 0;
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  transition: color 0.2s ease;
}

body.renewal-blog .article_view_box:hover .article_view_title {
  color: var(--accent-dark);
}

body.renewal-blog .article_view_category_date_container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.renewal-blog .article_view_category_date_container .article_view_category {
  min-width: 0;
  height: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 0;
}

body.renewal-blog .article_view_category_date_container .article_view_date {
  height: auto;
  color: var(--ink-soft);
  font-size: 13px;
}

body.renewal-blog .pagecontainer {
  display: flex;
  margin-top: 36px;
}

body.renewal-blog .pagebutton_container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto;
}

body.renewal-blog .pagebutton,
body.renewal-blog .nowpagebutton {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 10px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.renewal-blog .nowpagebutton {
  opacity: 0.55;
  cursor: default;
}

body.renewal-blog .category_time_container,
body.renewal-blog .tag_container {
  margin-bottom: 16px;
}

@media (min-width: 760px) {
  body.renewal-blog .article_view_container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  body.renewal-blog .article_view_container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 34px;
  }
}

@media (max-width: 559px) {
  body.renewal-blog .bloglist_container,
  body.renewal-blog .blog_detail_container {
    padding: 12px 14px 64px;
  }

  body.renewal-blog .blogcontent {
    border-radius: 16px;
  }
}

.rn-page-hero--system::after {
  display: none;
}

.rn-page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.03em;
  max-width: 12em;
}

.rn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.rn-breadcrumb a:hover {
  color: var(--accent-dark);
}

.rn-feature-list {
  display: grid;
  gap: 22px;
  margin: 28px 0 8px;
}

.rn-feature-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rn-feature-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--font-serif);
}

.rn-feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 800px) {
  .rn-feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 48px;
  }
}

/* ========== System tone ========== */
body.renewal-system {
  background: var(--sys-bg);
  color: var(--sys-ink);
}

body.renewal-system .rn-header__inner {
  background: rgba(34, 41, 51, 0.92);
  border-color: var(--sys-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.renewal-system .rn-nav a {
  color: var(--sys-muted);
}

body.renewal-system .rn-nav a:hover,
body.renewal-system .rn-nav a.is-active {
  background: rgba(255, 122, 77, 0.14);
  color: #fff;
}

body.renewal-system .rn-hamburger span {
  background: #fff;
}

body.renewal-system .rn-drawer {
  background: var(--sys-bg-2);
  border-color: var(--sys-line);
}

body.renewal-system .rn-drawer a {
  border-bottom-color: var(--sys-line);
}

body.renewal-system .rn-eyebrow {
  color: var(--sys-accent);
}

body.renewal-system .rn-lead,
body.renewal-system .rn-feature-item p,
body.renewal-system .rn-breadcrumb,
body.renewal-system .rn-sys-compare__item p {
  color: var(--sys-muted);
}

body.renewal-system .rn-feature-item {
  border-top-color: var(--sys-line);
}

body.renewal-system .rn-btn--ghost {
  border-color: rgba(244, 241, 234, 0.28);
  color: #fff;
}

body.renewal-system .rn-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.renewal-system .rn-footer {
  background: #0f1318;
}

.rn-sys-panel {
  margin: 28px 0 40px;
  padding: 8px;
  border-radius: 18px;
  background: transparent;
  border: 0;
}

.rn-sys-compare {
  display: grid;
  gap: 14px;
}

.rn-sys-compare__item {
  padding: 22px;
  border-radius: 16px;
  background: var(--sys-bg-2);
  border: 1px solid var(--sys-line);
}

.rn-sys-compare__item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--sys-accent);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.rn-sys-compare__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 800px) {
  .rn-sys-compare {
    grid-template-columns: 1fr 1fr;
  }

  .rn-sys-compare__item:last-child {
    margin-top: 36px;
  }
}

/* ========== AI flows ========== */
.rn-flow {
  display: grid;
  gap: 14px;
  margin: 24px 0 40px;
}

.rn-flow__step {
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--line);
}

.rn-flow__step strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 17px;
}

.rn-flow__step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.rn-flow__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(235, 80, 36, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  margin-bottom: 10px;
}

.rn-flow-visual {
  margin: 20px 0 10px;
  padding: 24px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #f4ebdc);
  border: 1px solid var(--line);
  overflow-x: auto;
}

.rn-flow-visual svg {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
}

@media (min-width: 860px) {
  .rn-flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== Motion ========== */
.rn-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.rn-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rn-reveal,
  .rn-hero__copy,
  .rn-hero__frame {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .rn-marquee__track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
