/* Renewal proposal page — About / Service (scoped) */

/* Spacing scale — renewal page only (renewal.css is page-scoped) */
body.front-page {
  --rn-space-1: 1.6em;
  --rn-space-2: 2.8em;
  --rn-space-3: 4em;
  --rn-space-4: 6em;
  --rn-space-5: 8em;
  --rn-space-6: 10em;
  --rn-sec-pad: 8em;
  --rn-block-gap: calc(var(--rn-space-4) * 2);
}

/* Motion tokens — renewal page */
body.renewal-page {
  --rn-motion-duration: 0.8s;
  --rn-motion-duration-long: 1.2s;
  --rn-motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --rn-motion-offset: 0;
  --rn-hero-motion-offset: 24px;
  --rn-motion-stagger: 0.08s;
  --rn-motion-hero-step: 0.12s;
  --rn-menu-stagger: 0.07s;
  --rn-menu-base-delay: 0.12s;
  --rn-border-color: rgba(0, 0, 0, 0.12);
}

body.renewal-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.renewal-page .js-io._fadein,
body.renewal-page .js-io._fadeup {
  transition:
    opacity var(--rn-motion-duration) var(--rn-motion-ease),
    visibility var(--rn-motion-duration) var(--rn-motion-ease);
  visibility: hidden;
  opacity: 0;
  transform: none;
}

body.renewal-page .content._renewal .js-io._fadein,
body.renewal-page .content._renewal .js-io._fadeup,
body.renewal-page [data-io-stagger] .js-io {
  transform: none;
}

body.renewal-page .hero .js-io._fadeup,
body.renewal-page .header.js-io._fadeup {
  transform: translateY(var(--rn-hero-motion-offset));
  transition:
    opacity var(--rn-motion-duration) var(--rn-motion-ease),
    transform var(--rn-motion-duration) var(--rn-motion-ease),
    visibility var(--rn-motion-duration) var(--rn-motion-ease);
}

body.renewal-page .js-io._fadein._show,
body.renewal-page .js-io._fadeup._show {
  visibility: visible;
  opacity: 1;
}

body.renewal-page .content._renewal .js-io._show,
body.renewal-page [data-io-stagger] .js-io._show {
  transform: none;
}

body.renewal-page .hero .js-io._fadeup._show,
body.renewal-page .header.js-io._fadeup._show {
  transform: translateY(0);
}

.content._renewal section.sec {
  padding-top: 0;
  padding-bottom: var(--rn-block-gap);
}

.content._renewal section.sec:first-of-type {
  padding-top: var(--rn-block-gap);
}

/* Full-bleed bg (photo covers section) — external gap via margin, not padding */
.content._renewal section.sec._7keys {
  padding-bottom: 0;
  margin-bottom: var(--rn-block-gap);
}

.content._renewal section.sec._company {
  padding-bottom: calc(var(--rn-space-6) * 2);
}

.content._renewal .sec-tit {
  margin-bottom: var(--rn-space-3);
}

.content._renewal .heading h2 {
  margin-bottom: var(--rn-space-2);
}

.content._renewal .txt-read {
  margin-top: var(--rn-space-2);
}

.content._renewal .txt-body p + p {
  margin-top: var(--rn-space-1);
}

.content._renewal section.sec._company .list._company dt,
.content._renewal section.sec._company .list._company dd {
  border-bottom-color: var(--rn-border-color);
}

.content._renewal .sec-body._border-top {
  border-top-color: var(--rn-border-color);
}

.content._renewal section.sec._7keys .sec-child-body,
.content._renewal section.sec._message .sec-child-body {
  margin-top: var(--rn-space-4);
}

.content._renewal .slick-num {
  margin-bottom: var(--rn-space-4);
}

body.renewal-page .footer {
  background-color: #5f5f5f;
  margin-top: 0;
}

.hero .renewal-hero-lead {
  margin: 1.2em 0 var(--rn-space-4);
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  max-width: 32em;
  color: rgba(0, 0, 0, 0.5);
}

.hero .renewal-mainvisual {
  width: 96%;
  margin: 0 auto;
  display: block;
  border-radius: 30px;
  aspect-ratio: 2178 / 1224;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.content._renewal .renewal-about-block {
  border-top: 1px solid var(--rn-border-color);
  padding-top: var(--rn-space-2);
  margin-top: var(--rn-space-3);
}

.content._renewal .renewal-about-block h3 {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.9;
  margin: 0;
}

.content._renewal .renewal-about-block p {
  padding-top: 1em;
}

.content._renewal .renewal-ring-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  justify-content: center;
}

.content._renewal .renewal-ring {
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--rn-space-5) 0;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.content._renewal .renewal-ring-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.content._renewal .renewal-ring-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.55) contrast(1.05);
}

.content._renewal .renewal-ring-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.content._renewal .renewal-ring-graphic {
  position: relative;
  z-index: 1;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  flex-shrink: 0;
  margin: 0 auto;
}

.content._renewal .renewal-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.content._renewal .renewal-ring-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
  stroke-linecap: round;
}

.content._renewal .renewal-ring-path:nth-child(2) {
  stroke: rgba(255, 255, 255, 0.55);
}

.content._renewal .renewal-ring-path:nth-child(3),
.content._renewal .renewal-ring-path:nth-child(4) {
  stroke: rgba(255, 255, 255, 0.4);
}

.content._renewal .renewal-ring-center {
  position: absolute;
  left: 24.3%;
  top: 24.3%;
  width: 51.4%;
  height: 51.4%;
  border-radius: 50%;
  padding: 0 10%;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  opacity: 0;
  transition: opacity var(--rn-motion-duration) var(--rn-motion-ease) calc(var(--rn-motion-stagger) * 2);
  color: #fff;
}

.content._renewal .renewal-ring.is-ready .renewal-ring-center {
  opacity: 1;
}

.content._renewal .renewal-ring-en {
  font-size: 2rem;
  line-height: 1.4;
  color: #fff;
}

.content._renewal .renewal-ring-en._sub {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-top: 0;
}

.content._renewal .renewal-ring-node {
  position: absolute;
  width: 170px;
  margin: 0;
  padding: 0;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--rn-motion-duration) var(--rn-motion-ease);
  color: #fff;
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node[data-ring-index="0"] {
  transition-delay: calc(var(--rn-motion-stagger) * 3);
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node[data-ring-index="1"] {
  transition-delay: calc(var(--rn-motion-stagger) * 4);
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node[data-ring-index="2"] {
  transition-delay: calc(var(--rn-motion-stagger) * 5);
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node[data-ring-index="3"] {
  transition-delay: calc(var(--rn-motion-stagger) * 6);
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node[data-ring-index="4"] {
  transition-delay: calc(var(--rn-motion-stagger) * 7);
}

.content._renewal .renewal-ring.is-ready .renewal-ring-node[data-ring-index="5"] {
  transition-delay: calc(var(--rn-motion-stagger) * 8);
}

.content._renewal .renewal-ring-node-en {
  display: block;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #fff;
}

.content._renewal .renewal-ring-node-n {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35em;
  line-height: 1;
  opacity: 0.7;
  color: #fff;
}

/* Clock positions around the ring */
.content._renewal .renewal-ring-node[data-ring-index="0"] { left: 50%; top: 11.4%; }
.content._renewal .renewal-ring-node[data-ring-index="1"] { left: 83.3%; top: 30.7%; }
.content._renewal .renewal-ring-node[data-ring-index="2"] { left: 83.3%; top: 69.3%; }
.content._renewal .renewal-ring-node[data-ring-index="3"] { left: 50%; top: 88.6%; }
.content._renewal .renewal-ring-node[data-ring-index="4"] { left: 16.7%; top: 69.3%; }
.content._renewal .renewal-ring-node[data-ring-index="5"] { left: 16.7%; top: 30.7%; }

.content._renewal .renewal-visual {
  margin-top: 4em;
}

.content._renewal .renewal-visual .img-service {
  margin-top: 0;
}

.content._renewal .renewal-visual-note {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.45;
  padding-top: 1em;
}

/* About / Ring / Service — unified vertical rhythm */
.content._renewal section.sec._renewal-service .renewal-service-intro {
  margin-top: 0;
  align-items: flex-start;
  margin-bottom: 0;
}

.content._renewal section.sec._renewal-service .renewal-service-intro .sec-tit {
  position: static;
  margin-bottom: 0;
  top: auto;
}

.content._renewal section.sec._renewal-service .heading h2 {
  font-size: 2.3rem;
  margin-bottom: var(--rn-space-2);
}

.content._renewal section.sec._message .img-curtain {
  display: none;
}

.content._renewal section.sec._message .sec-child-img .img-container {
  margin-left: 0;
  margin-right: auto;
}

.content._renewal section.sec._service .sec-child-body {
  margin-top: 0;
}

.content._renewal .renewal-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--rn-space-4);
  row-gap: var(--rn-block-gap);
  margin-top: var(--rn-block-gap);
}

.content._renewal .renewal-service-card {
  border-top: 1px solid var(--rn-border-color);
  padding-top: calc(var(--rn-space-2) / 3);
  display: flex;
  flex-direction: column;
}

.content._renewal .renewal-service-card-head {
  order: 1;
}

.content._renewal .renewal-service-visual {
  order: 2;
}

.content._renewal .renewal-service-card-text {
  display: contents;
}

.content._renewal .renewal-service-card-body {
  order: 3;
}

.content._renewal .renewal-service-visual {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  margin: 0 0 var(--rn-space-2);
  color: rgba(0, 0, 0, 0.55);
}

.content._renewal .renewal-service-visual svg,
.content._renewal .renewal-service-visual-svg {
  display: block;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.content._renewal .renewal-service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  width: 100%;
  margin-bottom: var(--rn-space-1);
}

.content._renewal .renewal-service-n {
  flex-shrink: 0;
  font-size: calc(1.25rem + 2px);
  line-height: 1.2;
  color: #000;
}

.content._renewal .renewal-service-en {
  flex: 1;
  font-size: calc(1.25rem + 2px);
  line-height: 1.2;
  text-align: right;
  color: #000;
}

.content._renewal .renewal-service-ja {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8;
  margin: 0 0 var(--rn-space-1);
}

.content._renewal .renewal-service-desc {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.9;
  opacity: 0.7;
  padding-top: 0;
  margin: 0;
}

@media screen and (max-width: 896px) {
  body.front-page {
    --rn-space-1: 1.4em;
    --rn-space-2: 2.2em;
    --rn-space-3: 3em;
    --rn-space-4: 4em;
    --rn-space-5: 5em;
    --rn-space-6: 7em;
    --rn-sec-pad: 5em;
    --rn-block-gap: calc(var(--rn-space-3) * 2);
    --rn-page-width: 90%;
  }

  .content._renewal .sec-body,
  .hero .hero-body .txt-body,
  body.front-page .header .header-body,
  body.front-page .footer .footer-body {
    width: var(--rn-page-width);
    margin-left: auto;
    margin-right: auto;
  }

  body.front-page .footer .footer-bottom {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.front-page .header .header-body {
    padding-left: 0;
    padding-right: 0;
  }

  .hero .renewal-hero-lead {
    font-size: 10px;
    margin-bottom: var(--rn-space-3);
  }

  .hero .hero-body h1 {
    font-size: 1.8rem;
  }

  .hero .renewal-mainvisual {
    width: 100% !important;
    margin: 1em auto 0;
    border-radius: 0;
    aspect-ratio: 3 / 4;
  }

  .content._renewal .renewal-ring-bleed {
    min-height: 80vh;
  }

  .content._renewal .renewal-ring {
    min-height: 80vh;
    padding: var(--rn-space-4) 0;
  }

  .content._renewal .renewal-ring-graphic {
    width: min(360px, 85vw, 64vh);
    height: min(360px, 85vw, 64vh);
  }

  .content._renewal .renewal-ring-node {
    width: 100px;
  }

  .content._renewal .renewal-ring-node-en {
    font-size: 1rem;
  }

  .content._renewal .renewal-ring-node-n {
    font-size: 0.95rem;
  }

  .content._renewal .renewal-ring-en {
    font-size: 1.4rem;
  }

  .content._renewal .renewal-ring-en._sub {
    font-size: 1rem;
  }

  .content._renewal .renewal-service-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
    margin-top: var(--rn-block-gap);
  }

  .content._renewal .renewal-service-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--rn-space-1);
    padding-top: var(--rn-space-2);
    padding-bottom: var(--rn-space-2);
  }

  .content._renewal .renewal-service-card-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }

  .content._renewal .renewal-service-card-head {
    order: unset;
    justify-content: flex-start;
    margin-bottom: 0.75em;
  }

  .content._renewal .renewal-service-en {
    flex: none;
    text-align: left;
  }

  .content._renewal .renewal-service-visual {
    order: unset;
    flex-shrink: 0;
    align-self: center;
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    margin: 0;
  }

  .content._renewal .renewal-service-card-body {
    order: unset;
    min-width: 0;
  }

  .content._renewal .renewal-service-n,
  .content._renewal .renewal-service-en {
    font-size: calc(1.15rem + 2px);
  }

  .content._renewal .renewal-service-ja,
  .content._renewal .renewal-service-desc {
    font-size: 1.4rem;
  }

  .content._renewal section.sec._renewal-service .heading h2 {
    font-size: 1.7rem;
  }

  .content._renewal .renewal-service-intro .sec-child._left {
    margin-bottom: var(--rn-space-2);
  }

  .content._renewal section.sec._7keys .sec-child-body,
  .content._renewal section.sec._message .sec-child-body {
    margin-top: var(--rn-space-3);
  }

  .content._renewal section.sec._message .sec-child-img .img-container {
    width: 50%;
  }

  .content._renewal .slick-num {
    margin-bottom: var(--rn-space-3);
  }

  /* Mobile menu — compact panel (renewal demo) */
  body.front-page .header .btn._modal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  body.front-page .header .btn-modal-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 14px;
  }

  body.front-page .header .btn-modal-icon span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transition:
      transform calc(var(--rn-motion-duration) / 2) var(--rn-motion-ease),
      opacity calc(var(--rn-motion-duration) / 2) var(--rn-motion-ease),
      top calc(var(--rn-motion-duration) / 2) var(--rn-motion-ease);
  }

  body.front-page .header .btn-modal-icon span:nth-child(1) {
    top: 0;
  }

  body.front-page .header .btn-modal-icon span:nth-child(2) {
    top: 6.5px;
  }

  body.front-page .header .btn-modal-icon span:nth-child(3) {
    top: 13px;
  }

  body.front-page.js-modal-show .header .btn._modal .btn-modal-icon span:nth-child(1),
  body.front-page .header .btn._modal._show .btn-modal-icon span:nth-child(1) {
    top: 6.5px;
    transform: rotate(45deg);
  }

  body.front-page.js-modal-show .header .btn._modal .btn-modal-icon span:nth-child(2),
  body.front-page .header .btn._modal._show .btn-modal-icon span:nth-child(2) {
    opacity: 0;
  }

  body.front-page.js-modal-show .header .btn._modal .btn-modal-icon span:nth-child(3),
  body.front-page .header .btn._modal._show .btn-modal-icon span:nth-child(3) {
    top: 6.5px;
    transform: rotate(-45deg);
  }

  body.front-page .header .gnav li._sp {
    margin: 0;
  }

  body.front-page .header .gnav-sitename ul li a img {
    width: 100px;
  }

  body.front-page .modal-body {
    z-index: 150;
  }

  @keyframes renewal-menu-panel-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes renewal-menu-item-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  body.front-page .modal-body {
    background-color: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  body.front-page .modal-content {
    position: absolute;
    top: calc(80px + 0.6em - 20px);
    right: 5%;
    left: auto;
    z-index: 151;
    width: min(210px, calc(100% - 10%));
    height: auto;
    max-height: calc(100vh - 96px);
    margin: 0;
    padding: 0.25em 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    color: #111;
    overflow: auto;
    pointer-events: auto;
  }

  body.front-page.js-modal-show .modal-content {
    animation: renewal-menu-panel-in var(--rn-motion-duration) var(--rn-motion-ease) forwards;
  }

  body.front-page .modal-content .nav._modal {
    width: 100%;
  }

  body.front-page .modal-content .grid-col ul {
    width: 100%;
    padding: 0 1em;
    margin: 0;
    text-align: right;
  }

  body.front-page .modal-content .grid-col ul li {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--rn-border-color);
    opacity: 0;
  }

  body.front-page.js-modal-show .modal-content .grid-col ul li {
    animation: renewal-menu-item-in var(--rn-motion-duration) var(--rn-motion-ease) forwards;
  }

  body.front-page.js-modal-show .modal-content .grid-col ul li:nth-child(1) {
    animation-delay: calc(var(--rn-menu-base-delay) + var(--rn-menu-stagger) * 0);
  }

  body.front-page.js-modal-show .modal-content .grid-col ul li:nth-child(2) {
    animation-delay: calc(var(--rn-menu-base-delay) + var(--rn-menu-stagger) * 1);
  }

  body.front-page.js-modal-show .modal-content .grid-col ul li:nth-child(3) {
    animation-delay: calc(var(--rn-menu-base-delay) + var(--rn-menu-stagger) * 2);
  }

  body.front-page.js-modal-show .modal-content .grid-col ul li:nth-child(4) {
    animation-delay: calc(var(--rn-menu-base-delay) + var(--rn-menu-stagger) * 3);
  }

  body.front-page.js-modal-show .modal-content .grid-col ul li:nth-child(5) {
    animation-delay: calc(var(--rn-menu-base-delay) + var(--rn-menu-stagger) * 4);
  }

  body.front-page .modal-content .grid-col ul li:last-child {
    border-bottom: none;
  }

  body.front-page .modal-content .grid-col ul li a {
    display: block;
    padding: 1em 0;
    color: #111;
  }

  body.front-page .modal-content .grid-col ul li a div span {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: #111;
  }

  body.front-page .modal-content .grid-col ul li._slot {
    display: block;
    overflow: visible;
  }

  body.front-page .modal-content .grid-col ul li._slot a {
    color: #111;
  }

  @media (prefers-reduced-motion: reduce) {
    body.front-page.js-modal-show .modal-content {
      animation: none;
    }

    body.front-page.js-modal-show .modal-content .grid-col ul li {
      opacity: 1;
      animation: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.renewal-page .js-io._fadein,
  body.renewal-page .js-io._fadeup {
    transition: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  body.renewal-page .hero .js-io._fadeup,
  body.renewal-page .header.js-io._fadeup {
    transform: none;
  }

  body.renewal-page [data-io-stagger] .js-io._show {
    transition-delay: 0s !important;
  }

  body.renewal-page .content._renewal .renewal-ring-center,
  body.renewal-page .content._renewal .renewal-ring-node,
  body.renewal-page .content._renewal .renewal-ring-path {
    transition: none !important;
  }

  body.renewal-page .content._renewal .renewal-ring.is-ready .renewal-ring-center {
    opacity: 1;
  }

  body.renewal-page .content._renewal .renewal-ring.is-ready .renewal-ring-node {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  body.renewal-page.js-modal-show .modal-content,
  body.renewal-page.js-modal-show .modal-content .grid-col ul li {
    animation: none;
  }

  body.renewal-page.js-modal-show .modal-content .grid-col ul li {
    opacity: 1;
  }
}
