/*
 * Front page renewal (2026-10).
 * Kept separate from legacy main.css to reduce the blast radius.
 */

.home-renewal {
  --home-ink: #10263a;
  --home-deep: #061723;
  --home-deep-2: #0b2e40;
  --home-cyan: #19b7cf;
  --home-cyan-soft: #dff7fb;
  --home-blue: #1878b9;
  --home-orange: #f28b45;
  --home-paper: #f4f7f9;
  --home-line: #d8e2e8;
  --home-muted: #526676;
  color: var(--home-ink);
  background: #fff;
  font-family: "Lato", "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.75;
  overflow: hidden;
}

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

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

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

.home-renewal h1,
.home-renewal h2,
.home-renewal h3,
.home-renewal p {
  margin-top: 0;
}

.home-kicker {
  margin-bottom: 0.8rem;
  color: var(--home-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.home-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.home-button:hover,
.home-button:focus-visible {
  transform: translateY(-2px);
}

.home-button--primary {
  color: #071923 !important;
  background: var(--home-cyan);
}

.home-button--primary:hover,
.home-button--primary:focus-visible {
  background: #5fd3e5;
}

.home-button--ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.home-button--ghost:hover,
.home-button--ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.home-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(25, 183, 207, 0.24), transparent 36%),
    linear-gradient(120deg, #061723 0%, #0b2e40 60%, #123f50 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.home-hero__copy {
  min-width: 0;
}

.home-hero__copy h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: clamp(2.45rem, 5.1vw, 5rem);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.home-hero__copy h1 span {
  color: #fff;
}

.home-hero__nowrap {
  white-space: nowrap;
}

.home-hero__lead {
  max-width: 690px;
  margin-bottom: 0.85rem;
  color: #eefbfe;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.65;
}

.home-hero__visual {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  transform: rotate(1.2deg);
}

.home-hero-tile {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #163848;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.home-hero-tile:nth-child(2),
.home-hero-tile:nth-child(4) {
  transform: translateY(1.4rem);
}

.home-hero-tile img {
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.home-hero-tile::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(3, 18, 28, 0.92));
  content: "";
}

.home-hero-tile span {
  position: absolute;
  z-index: 1;
  right: 0.9rem;
  bottom: 0.75rem;
  left: 0.9rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.home-hero-tile:hover img,
.home-hero-tile:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.05);
}

.home-hero__local {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfe2ea;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.9rem;
  text-align: center;
}

.home-service-nav {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  border-bottom: 1px solid var(--home-line);
  background: #fff;
}

.home-service-nav__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-right: 0;
  padding-left: 0;
}

.home-service-nav__item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  padding: 1.45rem 2.4rem 1.25rem 1.25rem;
  border-right: 1px solid var(--home-line);
  align-content: center;
  transition: background-color 0.2s ease;
}

.home-service-nav__item:first-child {
  border-left: 1px solid var(--home-line);
}

.home-service-nav__item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--home-cyan);
  content: "";
}

.home-service-nav__item--web::before {
  background: #4db693;
}

.home-service-nav__item--system::before {
  background: #7a79d8;
}

.home-service-nav__item--print::before {
  background: var(--home-orange);
}

.home-service-nav__item small {
  color: #7b8a95;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-service-nav__item strong {
  margin-top: 0.3rem;
  font-size: 1.02rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-service-nav__item > span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--home-blue);
  font-size: 1.25rem;
}

.home-service-nav__item:hover,
.home-service-nav__item:focus-visible {
  background: #f1f8fa;
}

.home-section {
  padding: clamp(4.5rem, 8vw, 7.2rem) 0;
}

.home-section-heading {
  max-width: 820px;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.home-section-heading h2,
.home-contact__copy h2 {
  margin-bottom: 1rem;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.home-section-heading > p:last-child,
.home-contact__copy > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
}

.home-challenges {
  background: #fff;
}

.home-challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-challenge-grid a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  padding: 1.65rem;
  border: 1px solid var(--home-line);
  background: #fff;
  box-shadow: 0 16px 38px rgba(25, 52, 70, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-challenge-grid a::after {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  color: var(--home-blue);
  content: "→";
  font-size: 1.35rem;
}

.home-challenge-grid a:hover,
.home-challenge-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: #93cad6;
  box-shadow: 0 20px 44px rgba(25, 52, 70, 0.12);
}

.home-challenge-grid span {
  margin-bottom: 1.3rem;
  color: var(--home-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-challenge-grid strong {
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home-challenge-grid small {
  max-width: 88%;
  color: var(--home-muted);
  font-size: 0.88rem;
}

.home-offers {
  color: #fff;
  background: var(--home-deep);
}

.home-section-heading--light h2,
.home-section-heading--light > p:last-child {
  color: #fff;
}

.home-section-heading--light > p:last-child {
  color: #b9ced8;
}

.home-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.home-offer-card {
  position: relative;
  min-width: 0;
  min-height: 350px;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  background: #0b2636;
}

.home-offer-card:nth-child(2),
.home-offer-card:nth-child(3) {
  background: #0d2b3c;
}

.home-offer-card__number {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.14);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
}

.home-offer-card__name {
  position: relative;
  margin-bottom: 2rem;
  color: var(--home-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-offer-card h3 {
  position: relative;
  max-width: 520px;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
}

.home-offer-card > p:not([class]) {
  position: relative;
  max-width: 590px;
  color: #c2d2da;
}

.home-offer-card > a {
  position: absolute;
  right: clamp(1.7rem, 3vw, 2.6rem);
  bottom: 1.8rem;
  left: clamp(1.7rem, 3vw, 2.6rem);
  display: flex;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  justify-content: space-between;
  color: #fff;
  font-weight: 800;
}

.home-offer-card > a:hover,
.home-offer-card > a:focus-visible {
  color: var(--home-cyan);
}

.home-products {
  background: var(--home-paper);
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 53, 72, 0.07);
}

.home-product-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dce7ec;
}

.home-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-product-card:hover .home-product-card__image img {
  transform: scale(1.035);
}

.home-product-card__body {
  padding: 1.45rem 1.5rem 1.6rem;
}

.home-product-card__body > p:first-child {
  margin-bottom: 0.45rem;
  color: var(--home-blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.home-product-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.4;
}

.home-product-card__body > p:not(:first-child) {
  min-height: 5.8em;
  margin-bottom: 1rem;
  color: var(--home-muted);
  font-size: 0.92rem;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--home-blue) !important;
  font-weight: 900;
}

.home-text-link span {
  transition: transform 0.2s ease;
}

.home-text-link:hover span,
.home-text-link:focus-visible span {
  transform: translateX(4px);
}

.home-process {
  background: #fff;
}

.home-process-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.home-process-list li {
  position: relative;
  min-width: 0;
  min-height: 235px;
  padding: 1.5rem;
  border-top: 3px solid var(--home-cyan);
  border-right: 1px solid var(--home-line);
  background: #fff;
}

.home-process-list li:first-child {
  border-left: 1px solid var(--home-line);
}

.home-process-list li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 44px;
  right: -11px;
  display: grid;
  width: 22px;
  height: 22px;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  place-items: center;
  color: var(--home-blue);
  background: #fff;
  content: "›";
  font-size: 1rem;
  line-height: 1;
}

.home-process-list li > span {
  color: var(--home-cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-process-list h3 {
  margin: 1.15rem 0 0.8rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.home-process-list p {
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 0.88rem;
}

.home-planning-link {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--home-cyan);
  background: var(--home-cyan-soft);
}

.home-planning-link p {
  margin-bottom: 0;
}

.home-journal {
  background: var(--home-paper);
}

.home-section-heading--row {
  display: flex;
  max-width: none;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.home-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-journal-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #fff;
}

.home-journal-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce7ec;
}

.home-journal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-journal-card:hover .home-journal-card__image img {
  transform: scale(1.035);
}

.home-journal-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.home-journal-card__body > p:first-child {
  margin-bottom: 0.45rem;
  color: #758793;
  font-size: 0.78rem;
}

.home-journal-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.5;
}

.home-journal-card__body > p:not(:first-child) {
  color: var(--home-muted);
  font-size: 0.9rem;
}

.home-planning-feature {
  background: #fff;
}

.home-planning-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.home-planning-feature__visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--home-deep-2);
  box-shadow: 0 24px 56px rgba(15, 42, 56, 0.17);
}

.home-planning-feature__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, rgba(7, 30, 45, 0.48), rgba(7, 30, 45, 0.02) 64%);
}

.home-planning-feature__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-planning-feature__label {
  position: absolute;
  z-index: 1;
  left: clamp(1.3rem, 4vw, 2.5rem);
  bottom: clamp(1.3rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: clamp(1.7rem, 4.1vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.home-planning-feature__label small {
  margin-top: 0.75rem;
  color: var(--home-cyan);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.home-planning-feature__copy h2 {
  margin-bottom: 1.2rem;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.25;
}

.home-planning-feature__copy > p:not(.home-kicker) {
  color: var(--home-muted);
  line-height: 1.9;
}

.home-planning-feature__copy .home-button {
  margin-top: 0.75rem;
}

.home-contact {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(25, 183, 207, 0.12), transparent 45%),
    var(--home-deep-2);
}

.home-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.home-contact__copy h2 {
  color: #fff;
}

.home-contact__copy > p:last-child {
  color: #c1d3dc;
}

.home-contact__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-contact__links a {
  display: flex;
  min-width: 0;
  min-height: 84px;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
  line-height: 1.45;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  overflow-wrap: anywhere;
}

.home-contact__links a:hover,
.home-contact__links a:focus-visible {
  border-color: var(--home-cyan);
  background: rgba(25, 183, 207, 0.14);
}

.home-contact__links a span {
  color: var(--home-cyan);
  font-size: 1.2rem;
}

.home-contact__links .home-contact__general {
  grid-column: 1 / -1;
  color: var(--home-deep) !important;
  border-color: var(--home-cyan);
  background: var(--home-cyan);
}

.home-contact__links .home-contact__general span {
  color: var(--home-deep);
}

@media (max-width: 1199.98px) {
  .home-hero__inner {
    min-height: 640px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  }

  .home-hero-tile,
  .home-hero-tile img {
    min-height: 180px;
  }

  .home-challenge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-challenge-grid a {
    min-height: 200px;
  }

  .home-process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .home-process-list li {
    border: 1px solid var(--home-line);
    border-top: 3px solid var(--home-cyan);
  }

  .home-process-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .home-hero__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 3.4rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .home-hero__copy {
    max-width: 780px;
  }

  .home-hero__visual {
    transform: none;
  }

  .home-service-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-nav__item:nth-child(3),
  .home-service-nav__item:nth-child(4) {
    border-top: 1px solid var(--home-line);
  }

  .home-service-nav__item:nth-child(3) {
    border-left: 1px solid var(--home-line);
  }

  .home-product-grid,
  .home-journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-contact__inner {
    grid-template-columns: 1fr;
  }

  .home-planning-feature__inner {
    grid-template-columns: 1fr;
    max-width: 780px;
  }
}

@media (max-width: 767.98px) {
  .home-renewal {
    line-height: 1.7;
  }

  .home-hero__inner {
    gap: 2.7rem;
    padding: 3.8rem 1.15rem 3.5rem;
  }

  .home-hero__copy h1 {
    font-size: clamp(2.15rem, 10.4vw, 3.45rem);
    line-height: 1.18;
  }

  .home-hero__lead {
    font-size: 1.12rem;
  }

  .home-hero__visual {
    gap: 0.55rem;
  }

  .home-hero-tile,
  .home-hero-tile img {
    min-height: 155px;
  }

  .home-hero-tile:nth-child(2),
  .home-hero-tile:nth-child(4) {
    transform: none;
  }

  .home-hero-tile span {
    right: 0.65rem;
    bottom: 0.55rem;
    left: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .home-button-row,
  .home-button {
    width: 100%;
  }

  .home-section {
    padding: 4.2rem 0;
  }

  .home-section-heading h2,
  .home-contact__copy h2 {
    font-size: 2rem;
  }

  .home-challenge-grid,
  .home-offer-grid,
  .home-product-grid,
  .home-process-list,
  .home-journal-grid,
  .home-contact__links {
    grid-template-columns: 1fr;
  }

  .home-challenge-grid a {
    min-height: 180px;
  }

  .home-offer-card {
    min-height: 350px;
  }

  .home-product-card__body > p:not(:first-child) {
    min-height: 0;
  }

  .home-section-heading--row,
  .home-planning-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section-heading--row {
    display: flex;
  }

  .home-contact__links .home-contact__general {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .home-service-nav__grid {
    grid-template-columns: 1fr;
  }

  .home-service-nav__item {
    min-height: 100px;
    border-top: 1px solid var(--home-line);
    border-left: 1px solid var(--home-line);
  }

  .home-service-nav__item:first-child {
    border-top: 0;
  }

  .home-hero__visual {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero-tile,
  .home-hero-tile img {
    min-height: 132px;
  }

  .home-hero__local {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-renewal *,
  .home-renewal *::before,
  .home-renewal *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
