.dynamic-top {
  background: #f6f4ee;
  color: #111;
  overflow: hidden;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

/* SWELL default parts */
body.top #content,
body.top #content.l-content,
.top #content,
#content.l-content {
  max-width: none;
  width: 100%;
  padding-top: 0 !important;
  margin: 0 !important;
}

.l-content {
  padding-left: 0;
  padding-right: 0;
}

#main_visual,
#post_slider {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Hero */
.kv {
  position: relative;
  min-height: 100svh;
  margin-top: 0 !important;
  overflow: hidden;
}

.kv__image img {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: cover;
}

.kv__copy {
  position: absolute;
  left: 5vw;
  bottom: 8vh;
  z-index: 2;
  color: #fff;
}

.kv__copy p {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.kv__copy h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 170px);
  line-height: 0.9;
  letter-spacing: 0;
}

.kv__copy span {
  display: block;
}

/* Lead keywords */
.lead {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(72px, 9vw, 110px) 5vw;
  overflow: hidden;
}

.lead__marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.55em;
  max-width: 1080px;
  margin: 0;
  color: #1f4f7a;
  font-size: clamp(24px, 4.2vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  white-space: normal;
  word-break: keep-all;
}

.lead__marquee span {
  display: inline-block;
}

/* Story Flow */
.story-flow {
  position: relative;
  min-height: 180vh;
  padding: 120px 5vw;
  background: #f6f4ee;
  color: #111;
  overflow: hidden;
}

.story-flow__bg {
  position: absolute;
  top: 12vh;
  left: -6vw;
  white-space: nowrap;
  font-size: clamp(80px, 18vw, 260px);
  line-height: 1;
  font-weight: 800;
  color: rgba(31, 79, 122, 0.08);
  pointer-events: none;
}

.story-flow__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 8vw;
  max-width: 1200px;
  margin: 0 auto;
}

.story-flow__sticky {
  position: sticky;
  top: 120px;
  align-self: start;
}

.story-flow__label {
  margin: 0 0 24px;
  color: #1f4f7a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.story-flow__sticky h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.2;
  letter-spacing: 0;
}

.story-flow__items {
  display: grid;
  gap: 42px;
  padding-top: 20vh;
}

.story-flow__item {
  min-height: 320px;
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  color: #111;
}

.story-flow__num {
  display: inline-block;
  margin-bottom: 28px;
  color: #1f4f7a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.story-flow__item h3 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.25;
}

.story-flow__item p {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 2;
}

/* Catch copy */
.story-catch {
  --story-line: 0;
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.18;
  letter-spacing: 0;
  isolation: isolate;
}

.story-catch > span {
  position: relative;
  z-index: 1;
  display: block;
}

.story-catch::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.16em;
  z-index: 0;
  height: 0.22em;
  background: linear-gradient(90deg, #7c3aed, #2563eb, #06b6d4, #f59e0b, #ef4444);
  transform: skewX(-14deg) scaleX(var(--story-line));
  transform-origin: left center;
  opacity: 0.72;
  pointer-events: none;
}

.story-catch .story-web-line {
  display: inline-block;
  white-space: nowrap;
}

/* About */
.about {
  position: relative;
  padding: clamp(96px, 12vw, 150px) 5vw;
  background: #101820;
  color: #fff;
  overflow: hidden;
}

.about__text {
  position: relative;
  z-index: 2;
  width: min(760px, 86vw);
  margin: 0 auto;
}

.about__label,
.service-showcase__label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.about__label {
  color: #8fd3ff;
}

.about__text h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.35;
}

.about__text p {
  margin: 0;
  font-size: 18px;
  line-height: 2;
}

/* Our Service */
.service-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 5vw;
  background: #101820;
  color: #fff;
}

.service-showcase__bg {
  position: absolute;
  top: 40px;
  left: -4vw;
  white-space: nowrap;
  font-size: clamp(72px, 14vw, 190px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.service-showcase__head {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.service-showcase__label {
  color: #8fd3ff;
}

.service-showcase__head h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.service-showcase__head p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
}

.service-showcase__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.service-card {
  min-height: 520px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.service-card--primary {
  border-color: rgba(143, 211, 255, 0.35);
}

.service-card--warm {
  border-color: rgba(255, 191, 120, 0.38);
}

.service-card__num {
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
}

.service-card__eyebrow {
  margin: 0 0 14px;
  color: #8fd3ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card--warm .service-card__eyebrow {
  color: #ffc46b;
}

.service-card h3 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;
}

.service-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.9;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Shared */
.gradient-text {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #7c3aed 0%,
    #2563eb 28%,
    #06b6d4 50%,
    #22c55e 68%,
    #f59e0b 84%,
    #ef4444 100%
  );
  background-size: 180% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: storyGradient 6s ease-in-out infinite alternate;
}

.story-nowrap {
  white-space: nowrap;
}

@keyframes storyGradient {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .l-header {
    margin-bottom: 0 !important;
  }

  .kv {
    min-height: 100svh;
  }

  .kv__image img {
    height: 100svh;
    min-height: 560px;
  }

  .kv__copy {
    left: 24px;
    right: 24px;
    bottom: 72px;
  }

  .kv__copy p {
    font-size: 14px;
  }

  .lead {
    padding: 64px 20px 72px;
  }

  .lead__marquee {
    gap: 0.35em 0.5em;
    font-size: clamp(20px, 6vw, 30px);
    line-height: 1.25;
  }

  .story-flow {
    min-height: auto;
    padding: 88px 24px;
  }

  .story-flow__inner {
    display: block;
  }

  .story-flow__sticky {
    position: relative;
    top: auto;
    margin-bottom: 64px;
  }

  .story-catch {
    font-size: clamp(32px, 9.4vw, 44px);
    line-height: 1.22;
  }

  .story-flow__items {
    padding-top: 0;
  }

  .story-flow__item {
    min-height: auto;
  }

  .about {
    padding: 76px 24px 88px;
  }

  .about__text p {
    font-size: 16px;
  }

  .service-showcase {
    padding: 80px 20px 92px;
  }

  .service-showcase__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

.wp-page-content {
  padding: clamp(72px, 10vw, 120px) 5vw;
  background: #f6f4ee;
  color: #111;
}

.wp-page-content__inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Sub Pages */
.sub-page {
  background: #f6f4ee;
}

.sub-hero {
  position: relative;
  min-height: 68svh;
  overflow: hidden;
  color: #fff;
}

.sub-hero__image {
  position: absolute;
  inset: 0;
}

.sub-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 24, 32, 0.72), rgba(16, 24, 32, 0.22));
}

.sub-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-hero__body {
  position: relative;
  z-index: 1;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding-top: 28svh;
}

.sub-hero__body p {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sub-hero__body h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 100px);
  line-height: 0.95;
  letter-spacing: 0;
}

.sub-section {
  padding: clamp(88px, 11vw, 150px) 5vw;
  background: #f6f4ee;
  color: #111;
}

.sub-section--dark {
  background: #101820;
  color: #fff;
}

.sub-section__inner {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.sub-label {
  margin: 0 0 18px;
  color: #1f4f7a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sub-section--dark .sub-label {
  color: #8fd3ff;
}

.sub-section h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.12;
  letter-spacing: 0;
}

.sub-lead {
  max-width: 780px;
  margin: 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 2;
}

.value-grid,
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 56px;
}

.value-card,
.works-card {
  min-height: 260px;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.value-card--light,
.works-card {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

.value-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: #8fd3ff;
  font-size: 42px;
  font-weight: 800;
}

.value-card--light span {
  color: #1f4f7a;
}

.value-card h3,
.works-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.35;
}

.value-card p,
.works-card p {
  margin: 0;
  line-height: 1.9;
}

.company-section {
  padding-top: clamp(72px, 9vw, 120px);
}

.company-table {
  margin: 52px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.company-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.company-table dt {
  color: #1f4f7a;
  font-weight: 800;
}

.company-table dd {
  margin: 0;
  line-height: 1.8;
}

.company-table a {
  color: inherit;
}

.service-showcase--page {
  padding-top: clamp(96px, 12vw, 150px);
}

.works-card p {
  margin-bottom: 18px;
  color: #1f4f7a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.works-card span {
  display: inline-block;
  margin-top: 28px;
  color: rgba(17, 17, 17, 0.5);
  font-weight: 800;
}

@media (max-width: 768px) {
  .sub-hero {
    min-height: 56svh;
  }

  .sub-hero__body {
    padding-top: 24svh;
  }

  .sub-section {
    padding: 76px 24px;
  }

  .value-grid,
  .works-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
}

/* Contact */
.contact-section__inner {
  max-width: 920px;
}

.contact-required-note {
  color: #1f4f7a;
  font-weight: 800;
}

.contact-form-box {
  margin-top: 52px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sb-contact-form {
  display: grid;
  gap: 24px;
}

.sb-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.sb-field label span {
  color: #ef4444;
}

.sb-input,
.sb-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid rgba(16, 24, 32, 0.22);
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.sb-textarea {
  min-height: 190px;
  resize: vertical;
}

.sb-submit-wrap {
  margin-top: 8px;
}

.sb-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 32px;
  border: 0;
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .contact-form-box {
    margin-top: 36px;
  }

  .sb-submit {
    width: 100%;
  }
}

/* Service page catch */
.service-page-catch > span {
  display: block;
}

.service-page-catch .gradient-text {
  display: inline;
}

.service-page-catch__line {
  display: block;
}

.service-gradient-action {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #9f7aea 0%,
    #38bdf8 26%,
    #22d3ee 52%,
    #facc15 76%,
    #fb7185 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: serviceTextGradient 5s ease-in-out infinite alternate;
  isolation: isolate;
}

.service-gradient-action::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.06em;
  z-index: -1;
  height: 0.22em;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #2563eb 28%,
    #06b6d4 52%,
    #f59e0b 76%,
    #ef4444 100%
  );
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.32);
  transform: scaleX(0) skewX(-12deg);
  transform-origin: left center;
  animation: serviceUnderlineDraw 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  opacity: 0.76;
}

@keyframes serviceTextGradient {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes serviceUnderlineDraw {
  from {
    transform: scaleX(0) skewX(-12deg);
  }

  to {
    transform: scaleX(1) skewX(-12deg);
  }
}

@media (min-width: 769px) {
  .service-showcase--page .service-showcase__head {
    max-width: 1120px;
  }

  .service-page-catch {
    font-size: clamp(44px, 5vw, 68px) !important;
    line-height: 1.12 !important;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .service-page-catch__line {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .service-page-catch__line {
    white-space: normal;
  }
}

/* Story Bridge Footer */
.sb-footer {
  background: #080808;
  color: #fff;
  padding: clamp(64px, 8vw, 120px) 5vw 32px;
}

.sb-footer__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
}

.sb-footer__logo {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition:
    transform 0.8s ease,
    filter 0.8s ease;
}

.sb-footer__logo::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(143, 211, 255, 0.42),
    rgba(143, 211, 255, 0)
  );
  filter: blur(8px);
  opacity: 0.65;
  transform: scaleX(0.85);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  pointer-events: none;
}

.sb-footer__brand p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

.sb-footer__nav {
  display: grid;
  gap: 14px;
  align-content: start;
}

.sb-footer__nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sb-footer__company {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

.sb-footer__company p {
  margin: 0 0 8px;
}

.sb-footer__company-name {
  color: #fff;
  font-weight: 800;
}

.sb-footer__bottom {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

@media (max-width: 768px) {
  .sb-footer__inner {
    grid-template-columns: 1fr;
  }

  .sb-footer__bottom {
    margin-top: 32px;
  }
}

.sb-footer__logo-img {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  animation: sbLogoFloat 8s ease-in-out infinite;
}

.sb-footer__logo:hover {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 18px 28px rgba(143, 211, 255, 0.22));
}

.sb-footer__logo:hover::after {
  opacity: 1;
  transform: scaleX(1.08);
}

@keyframes sbLogoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-gradient-action,
  .service-gradient-action::after,
  .sb-footer__logo,
  .sb-footer__logo-img,
  .sb-footer__logo::after {
    animation: none;
    transition: none;
  }

  .service-gradient-action::after {
    transform: scaleX(1) skewX(-12deg);
  }
}