/* 共通スタイル */

:root {
  --blue: #0782cf;
  --deep: #07549c;
  --green: #9ac51a;
  --ink: #10213b;
  --navy: #061b35;
  --line: #d9e8f4;
  --soft: #f2f9fd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  background: #ffffff;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid #0782cf1c;
  box-shadow: 0 5px 20px #16416d0d;
}

.header > .container,
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  line-height: 1.15;
}

.logo strong {
  display: block;
  color: var(--deep);
  font-size: 23px;
  letter-spacing: -.04em;
}

.logo small {
  display: block;
  color: #54708d;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.logo-image {
  display: block;
  line-height: 0;
}

.logo-image img {
  display: block;
  width: 200px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 100%;
  font-size: 13px;
  font-weight: 800;
}

.nav a {
  display: grid;
  place-items: center;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .25s, background-color .25s, border-color .25s;
}

.btn:hover {
  background-color: #f2f9fd;
  transform: translateY(-2px);
}

.btn.fill {
  background: linear-gradient(135deg, var(--blue), #0763b8);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(7, 130, 207, 0.35);
}

.btn.fill:hover {
  background: linear-gradient(135deg, #0672b8, #055299);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 130, 207, 0.45);
}

.btn.fill-white {
  background: #ffffff;
  color: var(--deep) !important;
  border-color: #ffffff;
}

.btn.outline-white {
  color: #ffffff !important;
  border-color: #ffffff;
  background: transparent;
}

.btn.outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-actions,
.cta-actions {
  margin-top: auto !important;
  margin-bottom: auto !important;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-actions .btn,
.cta-actions .btn {
  width: fit-content;
}

.hero {
  background: #ffffff !important;
}

.hero:not(.home-hero) {
  display: grid;
  align-items: center;
  min-height: 510px;
  color: var(--ink) !important;
  background: #fff !important;
}

.hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 60px;
}

.hero:not(.home-hero) > .container {
  display: block;
}

.hero:not(.home-hero) .eyebrow {
  color: var(--deep) !important;
}

.eyebrow {
  margin: 0 0 5px;
  color: #b2db39;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0 0 15px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.3;
}

.hero p {
  margin: 0;
  max-width: 590px;
  font-size: 15px;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 34px 0;
}

.soft {
  background: #ffffff;
}

.title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 29px;
  line-height: 1.4;
}

.lead {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.grid3 {
  display: grid;
  gap: 20px;
}

.grid3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px #16416d0d;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.card h4 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 14px;
}

.card p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
  font-size: 13px;
}

.tag {
  display: inline-block;
  width: fit-content;
  margin: 0 0 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff8dc;
  color: #638900;
  font-size: 10px;
  font-weight: 900;
}

.cta {
  padding: 39px 0;
  background: radial-gradient(circle at 10% 110%, #9ac51a88, transparent 34%), linear-gradient(115deg, #06182c, #0878bf);
  color: #fff;
}

.cta > .container,
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  margin: 0;
  font-size: 25px;
}

.cta p {
  margin: 3px 0 0;
  font-size: 13px;
}

@media (max-width: 768px) {
  .header {
    display: block !important;
    height: auto !important;
    min-height: 60px;
    padding: 10px 16px;
  }

  .header > .container,
  .header-inner {
    height: auto !important;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo-image img {
    width: 140px !important;
    height: auto !important;
  }

  .nav {
    display: flex !important;
    gap: 12px;
    font-size: 12px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
  }
}

.scenes-hero-inner {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.scenes-hero__left {
  flex: 0 0 auto;
}

.scenes-hero__left h1 {
  margin: 0;
}

.scenes-hero__right {
  flex: 0 1 480px;
}

.scenes-hero__right p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.footer {
  padding: 32px 0;
  background: #0b1e36;
  color: #ffffff;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-logo-img {
  width: 94px;
  height: 32px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

.footer-company-name {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.8rem;
}

.footer nav a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer nav span {
  color: #94a3b8;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.8rem;
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.12s;
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] .card,
[data-reveal] .grid3 > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
  transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible .card,
[data-reveal].is-visible .grid3 > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] .grid3 > *:nth-child(1),
[data-reveal] .card:nth-child(1) {
  transition-delay: 0.1s;
}

[data-reveal] .grid3 > *:nth-child(2),
[data-reveal] .card:nth-child(2) {
  transition-delay: 0.2s;
}

[data-reveal] .grid3 > *:nth-child(3),
[data-reveal] .card:nth-child(3) {
  transition-delay: 0.3s;
}

[data-reveal] .grid3 > *:nth-child(4),
[data-reveal] .card:nth-child(4) {
  transition-delay: 0.4s;
}

[data-reveal] .grid3 > *:nth-child(5),
[data-reveal] .card:nth-child(5) {
  transition-delay: 0.5s;
}

[data-reveal] .grid3 > *:nth-child(6),
[data-reveal] .card:nth-child(6) {
  transition-delay: 0.6s;
}

.card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
  box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px rgba(7, 84, 156, 0.12) !important;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, #0782cf, #07549c);
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 84, 156, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.94);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, box-shadow .25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(7, 84, 156, 0.38);
}

.back-to-top__arrow {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.back-to-top__label {
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .back-to-top__arrow {
    font-size: 18px;
  }

  .back-to-top__label {
    font-size: 8px;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 14px;
  }

  .logo-image img {
    width: 175px;
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .hero > .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .scenes-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .scenes-hero__right {
    flex: auto;
    width: 100%;
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .header {
    position: relative;
  }

  .header > .container,
  .header-inner {
    gap: 10px;
  }

  .logo strong {
    font-size: 20px;
  }

  .logo-image img {
    width: 150px;
    height: 32px;
  }

  .hero {
    padding: 55px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .cta > .container,
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta h2 {
    font-size: 22px;
  }
}

.hero:not(.home-hero),
.features-hero {
  min-height: 0 !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.hero:not(.home-hero) .container,
.features-hero-inner {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.features-hero .hero-actions {
  margin-top: 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.card.contact-form:hover,
#wpcf7cpcnf:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.card.contact-form,
#wpcf7cpcnf {
  transition: none !important;
}
