:root {
  --color-text: #222;
  --color-subtext: #444;
  --color-muted: #666;
  --color-primary: #2864f0;
  --color-primarytext: #0040D5;
  --color-primary-dark: #382576;
  --color-hero-start: #5045df;
  --color-hero-end: #eae8ff;
  --color-danger: #8b0000;
  --color-danger-bg: #fff3f3;
  --color-soft-blue: #ebf3ff;
  --color-panel: #f4f5f7;
  --color-white: #fff;
  --color-border: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --container-narrow: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  background: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

.page {
  overflow: clip;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 40px 0;
}

.section--danger {
  background: var(--color-danger-bg);
}

.section--blue {
  background: var(--color-soft-blue);
}

.section--deep-blue {
  background: var(--color-primary);
  color: var(--color-white);
}

.section__center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.9);
}

.section-title {
  margin: 0;
}

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

.section-title__accent {
  color: var(--color-primary-dark);
}

.section-title__accent--blue {
  color: var(--color-primarytext);
  font-weight: 700;
}

.section-title__danger {
  margin: 0;
}

.section-title__danger span {
  color: var(--color-danger);
  text-decoration: underline;
  padding-right: 2px;
}

.section-subtitle {
  margin: 8px 0 0;
  font-size: 1.0625rem;
  color: var(--color-subtext);
}

.section-copy {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--color-subtext);
}

.section-note {
  margin: 28px 0 0;
  color: var(--color-subtext);
  font-size: 0.9375rem;
}

.section-caption {
  margin: 16px 0 0;
  color: var(--color-muted);
  text-align: right;
}

.text-primary {
  color: var(--color-primarytext);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.site-header__logo {
  width: auto;
}

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin-left: auto;
  background: var(--color-primary-dark);
  border-radius: 999px;
  transition: 0.3s;
}

.menu-button span:last-child {
  width: 16px;
  margin-left: 0;
}

.open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.open .menu-button span:nth-child(2) {
  opacity: 0;
}

.open .menu-button span:nth-child(3) {
  width: 24px; /* 元の16pxを戻す */
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  height: 100vh;
  background: #fff;
  transition: 0.3s;
  padding: 80px 20px;
  z-index: 1000;
  padding: 24px 16px;
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.nav.open {
  right: 0;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding-bottom: 40px;
}

.nav-logo__icon {
  height: 60px;
}

.nav-logo__text {
  height: 8px;
}

.nav-img {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.nav-list li a:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.nav-item__arrow {
  font-size: 20px;
  color: #999;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin-left: auto;
  background: var(--color-primary-dark);
  border-radius: 999px;
}

.hero {
  padding: 48px 0 0;
  background: linear-gradient(
    180deg,
    var(--color-hero-start) 30%,
    var(--color-hero-end) 100%
  );
}

.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__content {
  color: var(--color-white);
}

.hero__text {
  margin: 40px 0 0;
  max-width: 640px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero__image {
  object-fit: cover;
}

.hero__svg {
  height: 10px;
  margin-bottom: 16px;
}

.hero__brandline {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 24px;
}

.hero__brandline img {
  width: 100%;
  height: auto;
  display: block;
}

.panel {
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel--neutral {
  background: var(--color-panel);
}

.panel--white {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.panel__title {
  margin: 0 0 16px;
}

.panel__title--purple {
  color: var(--color-primary-dark);
}

.panel__text {
  margin: 0;
  color: var(--color-text);
}

.necessity-layout {
  display: block;
  margin: 24px 24px 120px 0;
  position: relative;
}

.card__text {
  text-align: left;
}

.necessity-card {
  width: 100%;
  position: relative;
  z-index: 1;
}

.necessity-layout__image {
  position: absolute;
  right: -24px;
  bottom: -112px;
  height: 128px;
  width: 200px;
  z-index: 2;
}

.necessity-layout__image img {
  width: 100%;
  height: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.case-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.case-card {
  overflow: hidden;
  text-align: center;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.case-card img {
  max-width: 280px;
}

.feature-hero__logo {
  height: 60px;
  display: flex;
  justify-content: center;
}

.feature-hero__content {
  margin-top: 24px;
}

.feature-hero__content h2 {
  color: var(--color-text);
}

.feature-hero-stack {
  position: relative;
  margin-top: 24px;
}

.feature-hero-visual {
  position: relative;
}

.feature-hero-stack__top {
  position: relative;
  z-index: 0;
  margin-right: 80px;
}

.feature-hero-stack__bottom {
  position: relative;
  z-index: 2;
  margin-left: 80px;
}

.feature-hero-visual {
  position: relative;
  z-index: 1;
  margin: 56px 0;
}

.feature-hero-visual__images {
  display: flex;
  justify-content: center;
  gap: 56px;
}

.feature-hero-visual__images img {
  width: 148px;
  height: auto;
  display: block;
}

.feature-hero-visual__images img:first-child {
  transform: translateY(80px);
}

.feature-hero-visual__images img:last-child {
  transform: translateY(-80px);
}

.feature-hero-visual__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.feature-hero-visual__badge img {
  width: 140px;
}

.info-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.center-badge {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 80px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.functions-card {
  position: relative;
  background: var(--color-panel);
  border-radius: var(--radius-md);
  padding: 72px 24px 48px 24px;
  text-align: left;
  z-index: 1;
  width: 90%;
}

.functions-card:nth-child(2) {
  margin-top: -24px;
  margin-left: auto;
}

.functions-card:nth-child(3) {
  margin-top: -24px;
}

.functions-card--framed {
  border: 8px solid var(--color-white);
}

.functions-card__tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 20px;
  border-radius: 16px 0 16px 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 700;
}

.functions-card__title {
  margin: 0 0 16px;
}

.functions-card__text {
  margin: 0;
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--color-soft-blue);
}

.functions-note__title {
  margin: 24px 0;
}

.mini-card {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 48px 16px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 63, 213, 0.06);
}

.mini-card img {
  max-width: 80px;
}

.mini-card p {
  margin: 0;
  padding-top: 32px;
  color: var(--color-primary);
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
}

.option-title {
  margin: 40px 0 0;
  font-size: 1rem;
  color: var(--color-subtext);
  letter-spacing: 0.08em;
}

.option-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.option-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.option-item {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.merit-list {
  display: grid;
  gap: 8px;
}

.merit-card {
  position: relative;
  padding: 20px 0;
  border-radius: 16px;
  background: var(--color-primary);
}

.merit-card__header {
  display: flex;
  align-items: end;
  position: relative;
  gap: 12px;
}

.merit-card__number {
  z-index: 0;
  width: 100%;
  position: relative;
}

.merit-card__number img {
  position: relative;
  width: 100%;
}

.merit-card__lead {
  position: absolute;
  display: flex;
  justify-content: end;
  align-items: end;
  width: 100%;
  bottom: 2px;
  padding-right: 8px;
  color: var(--color-primary);
  z-index: 1;
}

.merit-card__body {
  margin-top: 16px;
  text-align: left;
  padding: 0 16px;
}

.merit-card__title {
  margin: 0;
  font-size: 18px;
  color: var(--color-white);
  line-height: 1.5;
}

.merit-card__sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.merit-card__text {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.merit-card__feature {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.merit-card__icon {
  width: 80px;
  flex-shrink: 0;
  margin-top: 16px;
  padding-right: 8px;
}

.site-footer {
  padding: 48px 0 32px;
  background: var(--color-white);
}

.site-footer__inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.site-footer__logo {
  max-width: 220px;
}

.site-footer__lead {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
}

.site-footer__label {
  margin: 0;
  color: #888;
  font-size: 0.75rem;
  width: 100%;
  margin: 32px 0 60px 0;
  display: flex;
  justify-content: center;
}

.site-footer__link {
  cursor: pointer;
}

.br {
  display: block;
}

.br-sp {
  display: block;
}

.img-pc {
  display: none;
}

.img-sp {
  display: block;
}

.text-left-sp {
  text-align: left;
}

@media (min-width: 768px) {

  .section {
    padding: 80px 0;
  }

  .br-sp {
    display: inline;
  }

  .br-pc {
    display: block;
  }

  .copy--center {
    text-align: center;
  }

  .text-left-sp {
    text-align: center;
  }

  .menu-button {
    display: none;
  }

  .nav {
    position: static;
    height: auto;
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-list li a {
    padding: 8px 4px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
  }

  .nav-item__arrow {
    display: none;
  }

  .nav-logo,
  .nav-img,
  .nav-company {
    display: none;
  }

  .hero {
    padding-top: 64px;
    background: linear-gradient(
      90deg,
      var(--color-hero-start) 30%,
      var(--color-hero-end) 100%
    );
  }
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }

  .section-title__necessity {
    padding-left: 4px;
  }

  .necessity-layout {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 120px;
    margin-top: 72px;
  }

  .necessity-card {
    position: relative;
    z-index: 2;
    width: 70%;
    max-width: 700px;
  }

  .necessity-layout__image {
    position: absolute;
    right: 0;
    top: -10%;
    width: 48%;
    z-index: 1;
  }

  .case-grid {
    display: flex;
    gap: 32px;
    margin-top: 56px;
    justify-content: center;
  }

  .case-card {
    max-width: 280px;
  }

  .case-card img {
    width: 100%;
  }

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

  .panel__title {
    text-align: center;
  }

  .panel__title--purple {
    text-align: left;
  }

  .feature-hero__logo {
    height: 120px;
  }

  .feature-hero__content__copy {
    margin-top: 24px;
  }

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

  .merit-card__header {
    gap: 16px;
  }

  .merit-card__number img {
    width: 100%;
  }

  .merit-card__title {
    font-size: 22px;
  }

  .merit-card__sub {
    font-size: 15px;
  }

  .merit-card__text {
    font-size: 15px;
  }

  .merit-card__feature {
    gap: 16px;
  }

  .merit-card__icon img {
    width: 64px;
  }
  
  .merit-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {

  .img-pc {
    display: block;
  }

  .img-sp {
    display: none;
  }

  .container {
    width: min(100% - 64px, var(--container));
  }

  .site-header__inner {
    min-height: 64px;
  }

  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-hero {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-hero-stack {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-top: 80px;
  }

  .feature-hero-stack__top,
  .feature-hero-stack__bottom,
  .feature-hero-visual {
    margin: 0;
    position: static;
  }

  .feature-hero-visual__images img:first-child,
  .feature-hero-visual__images img:last-child,
  .feature-hero-visual__images img {
    transform: none;
  }

  .feature-hero-stack__top {
    grid-column: 1;
    transform: translateY(-80px);
    z-index: 2;
  }

  .feature-hero-visual {
    grid-column: 2;
    display: flex;
    justify-content: center;
  }

  .feature-hero-stack__bottom {
    grid-column: 3;
    transform: translateY(80px);
  }

  .feature-hero-visual__images {
    display: flex;
    gap: 24px;
  }

  .feature-hero-visual__images img {
    width: 300px;
    height: auto;
  }

  .feature-hero-visual__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .stack-list {
    margin-top: 40px;
  }

  .functions-card {
    width: 60%;
  }

  .functions-card:nth-child(1) .functions-card__text {
    margin-right: 40%;
  }

  .functions-card:nth-child(2) {
    margin-top: -80px;
    margin-left: auto;
  }

  .functions-card:nth-child(2) .functions-card__text {
    margin-left: 40%;
  }

  .functions-card:nth-child(3) {
    margin-top: -80px;
  }

  .functions-card:nth-child(3) .functions-card__text {
    margin-right: 10%;
  }

  .functions-card__title {
    margin: 0 0 24px;
  }

  .merit-list {
    margin-top: 24px;
  }

  .merit-card {
    padding: 32px;
  }

  .merit-card__lead {
    font-size: 16px;
    padding-right: 24px;
  }
  
  .option-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}