:root {
  --navy: #1a3050;
  --blue: #27769b;
  --blue-dark: #1e6382;
  --heading: #465f7e;
  --gold: #8a6c42;
  --gold-dark: #6f532f;
  --accent: #e6dcd0;
  --text: #2a2a2a;
  --muted: #6b7888;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
}

body {
  color: var(--text);
  background: #fff;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.brand-pattern {
  background-image: url("../images/willnext-firstview-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-card {
  position: relative;
  overflow: hidden;
  background-image: url("../images/card-bg-blue.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 48px rgba(26, 48, 80, 0.22);
}

.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 48, 80, 0.08), rgba(39, 118, 155, 0.16));
  pointer-events: none;
}

.brand-card > * {
  position: relative;
  z-index: 1;
}

.brand-card--light {
  color: var(--text);
  border-color: rgba(209, 222, 232, 0.95);
  box-shadow: 0 14px 38px rgba(26, 48, 80, 0.1);
}

.brand-card--light::after {
  background: rgba(255, 255, 255, 0.66);
}

.brand-card--light > p:first-child {
  color: var(--gold) !important;
}

.brand-card--light h3 {
  color: var(--heading) !important;
}

.brand-card--light p {
  color: #3f5063 !important;
}

.light-info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 220, 208, 0.92);
  box-shadow: 0 12px 30px rgba(26, 48, 80, 0.08);
}

.white-card {
  background: #fff;
  border: 1px solid rgba(230, 220, 208, 0.92);
  box-shadow: 0 14px 38px rgba(26, 48, 80, 0.08);
}

.section-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.section-title {
  color: var(--heading);
}

.hero-title {
  color: var(--heading);
  font-weight: 600 !important;
  letter-spacing: 0.015em;
  line-height: 1.28 !important;
  text-wrap: balance;
}

.hero-lead {
  color: rgba(42, 42, 42, 0.82);
}

.desktop-nav {
  gap: 0.3rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, rgba(238, 248, 252, 0.72), rgba(255, 255, 255, 0.92), rgba(246, 241, 235, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.desktop-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.55rem 0.9rem;
  color: var(--heading);
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.desktop-nav > a:hover {
  border-color: rgba(39, 118, 155, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  box-shadow: 0 7px 18px rgba(26, 48, 80, 0.09);
  transform: translateY(-1px);
}

.desktop-nav > a:last-child {
  border-color: rgba(138, 108, 66, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: var(--gold-dark);
}

.desktop-nav > a:last-child:hover {
  border-color: rgba(138, 108, 66, 0.38);
  background: #fff;
  color: var(--gold-dark);
}

.mobile-nav {
  padding: 0.55rem 0.75rem 0.8rem;
}

.mobile-nav > a {
  margin-top: 0.35rem;
  border: 1px solid rgba(209, 222, 232, 0.72);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 0.95rem;
  color: var(--heading);
}

.mobile-nav > a:last-child {
  border-color: rgba(138, 108, 66, 0.24);
  color: var(--gold-dark);
}

.hero-feature-card::after {
  background: rgba(255, 255, 255, 0.78);
}

.hero-feature-card {
  box-shadow: 0 14px 34px rgba(26, 48, 80, 0.14);
}

.media-strategy-card::after {
  background: rgba(255, 255, 255, 0.78);
}

.media-strategy-card {
  display: flex;
  flex-direction: column;
}

.media-strategy-card__step {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(209, 222, 232, 0.95);
  box-shadow: 0 7px 18px rgba(26, 48, 80, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-strategy-card__step:hover {
  border-color: rgba(39, 118, 155, 0.28);
  box-shadow: 0 10px 24px rgba(26, 48, 80, 0.09);
  transform: translateX(2px);
}

.media-strategy-card__step > p:first-child {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.media-strategy-card__step > p:first-child::before {
  content: "";
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: linear-gradient(135deg, #eaf7fb, #f7f1e9);
}

.media-strategy-card__logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 15.5rem;
  margin-top: 1.25rem;
  overflow: hidden;
}

.media-strategy-card__logo img {
  width: min(21rem, 88%);
  height: auto;
  opacity: 0.72;
  mix-blend-mode: multiply;
  transform: translateY(-2.3rem);
}

.media-cards-grid {
  align-items: stretch;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(39, 118, 155, 0.25);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cta-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(39, 118, 155, 0.32);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(70, 95, 126, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cta-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eef8fc;
  color: var(--blue);
  font-weight: 800;
}

.price-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: 1rem;
  padding: 1.5rem;
}

.price-card--featured {
  border-color: rgba(39, 118, 155, 0.58);
  box-shadow: 0 20px 50px rgba(39, 118, 155, 0.16);
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.plan-price__number {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.plan-price__yen {
  margin-left: 0.1rem;
  font-size: 1rem;
  font-weight: 700;
}

.plan-price__tax {
  margin-left: 0.45rem;
  border-radius: 9999px;
  background: #eef8fc;
  color: var(--blue-dark);
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #eef8fc;
  color: var(--blue);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.sample-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(230, 220, 208, 0.92);
  box-shadow: 0 12px 30px rgba(26, 48, 80, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 48, 80, 0.15);
}

.sample-button {
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: #f7f9fb;
}

.sample-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.sample-card[hidden] {
  display: none;
}

.filter-button {
  border: 1px solid rgba(70, 95, 126, 0.22);
  border-radius: 9999px;
  background: #fff;
  color: var(--heading);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.media-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(230, 220, 208, 0.82);
}

.media-row:last-child {
  border-bottom: 0;
}

.media-list-card {
  background:
    radial-gradient(circle at 92% 4%, rgba(39, 118, 155, 0.09), transparent 28%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
  border-color: rgba(209, 222, 232, 0.95);
  box-shadow: 0 18px 46px rgba(26, 48, 80, 0.11);
}

.media-list-card__header {
  margin-bottom: 0.8rem;
  padding: 0.1rem 0.2rem 0.7rem;
}

.media-list-card .media-row {
  grid-template-columns: minmax(9.5rem, 0.8fr) minmax(0, 1.2fr);
  margin-top: 0.65rem;
  border: 1px solid rgba(209, 222, 232, 0.82);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem 1rem;
  box-shadow: 0 7px 18px rgba(26, 48, 80, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-list-card .media-row:hover {
  border-color: rgba(39, 118, 155, 0.28);
  box-shadow: 0 10px 24px rgba(26, 48, 80, 0.09);
  transform: translateX(2px);
}

.media-list-card .media-row h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.media-list-card .media-row h3::before {
  content: "";
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #eaf7fb, #f7f1e9);
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(230, 220, 208, 0.88);
  vertical-align: top;
}

.comparison-table th {
  color: var(--heading);
  font-weight: 700;
}

.faq-item {
  border: 1px solid rgba(230, 220, 208, 0.92);
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.1rem;
  color: var(--heading);
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  border-top: 1px solid rgba(230, 220, 208, 0.75);
  padding: 1rem 1.1rem 1.2rem;
  color: rgba(42, 42, 42, 0.82);
  line-height: 1.9;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 22, 39, 0.84);
}

.image-modal.is-open {
  display: flex;
}

.image-modal__panel {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.image-modal__panel img {
  width: 100%;
  height: auto;
  display: block;
}

.image-modal__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal-heading {
    opacity: 0;
    transform: translateY(16px);
  }

  .reveal-heading.is-visible {
    animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 6rem;
  }

  .media-row {
    grid-template-columns: 1fr;
  }

  .media-list-card .media-row {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    min-width: 680px;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid rgba(39, 118, 155, 0.3);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(26, 48, 80, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #27769b;
  color: #fff;
  box-shadow: 0 16px 32px rgba(39, 118, 155, 0.28);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(39, 118, 155, 0.38);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.9rem;
    height: 2.9rem;
  }
}
/* Mobile web-production hero alignment */
@media (max-width: 639px) {
  .web-production-hero-label,
  .web-production-hero-title {
    text-align: center;
  }

  .web-production-hero-title {
    max-width: 11.6em;
    margin-inline: auto;
  }
}