@layer base, components, utilities;

@layer base {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    /* outline: 1px solid red; */
  }

  html {
    font-size: 62.5%;
    overflow-x: hidden;
  }

  body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: clamp(1.2rem, 1.2rem + 0.97vw, 2.2rem);
    line-height: 1.5;
    overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-break: keep-all;
    overflow-wrap: anywhere;
    letter-spacing: var(--ls-heading);
  }

  h1 {
    font-size: var(--heading-h1);
    line-height: var(--lh-h1);
  }

  h2 {
    font-size: var(--heading-h2);
    line-height: var(--lh-h2);
  }
  h3 {
    font-size: var(--heading-h3);
    line-height: var(--lh-h3);
  }
  h4 {
    font-size: var(--heading-h4);
    line-height: var(--lh-h4);
  }
  h5 {
    font-size: var(--heading-h5);
  }

  p {
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  :root {
    --primary-color: #fadd00;
    --secondary-color: #d4003f;
    --color-base: #f9f9f9;
    --color-corp: #009fa8;

    /* Layout tokens */
    --section-max-width: 1280px;
    --section-padding-inline: 16px;
    --section-gap: 40px;
    --section-inner-gap: 40px;
    --section-margin: 16px;

    --radius: 16px;
    --layout-spacing: 16px;
    --header-height: 52px;

    /* Type scale  */
    --heading-h1: 1.8rem;
    --heading-h2: 3.6rem;
    --heading-h3: 2.7rem;
    --heading-h4: 2rem;
    --heading-h5: 1.5rem;

    /* Line height */
    --lh-h1: 1.3;
    --lh-h2: 1.4;
    --lh-h3: 1.5;
    --lh-h4: 1.3;
    --lh-body: 1.7;

    /* Letter spacing */
    --ls-heading: 0.06em;
    --ls-body: 0.01em;

    /* Section header tokens */
    --section-header-font-size: var(--heading-h2);
    --section-header-font-weight: 900;
    --section-header-line-height: var(--lh-h2);
    --section-header-margin-bottom: var(--section-gap);
    --section-header-bar-width: 8px;
    --section-header-bar-gap: 16px;
  }
}

/* ===== 基底レイアウト ===== */

section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Full-bleed な子は align-self: stretch で親幅いっぱいに逃がす */

.section-inner {
  width: min(100% - calc(var(--layout-spacing) * 2), var(--section-max-width));
  margin-inline: auto;
  padding-inline: var(--section-padding-inline);
  display: flex;
  flex-direction: column;
  /* gap は外部から .gap-xs/sm/md/lg/xl で注入 */
}

.section-heading {
  width: min(100% - calc(var(--layout-spacing) * 2), var(--section-max-width));
  margin-inline: auto;
}

/* ===== Hero (単一セクション専用レイアウト) =====
   SP: branding → visual → description の縦並び
   PC: 左列に branding + description、右列に visual が両行をまたぐ */

.hero-body {
  display: grid;
  gap: 16px;
  grid-template-areas:
    "branding"
    "visual";
}

.hero-balloon {
  position: absolute;
  right: clamp(-4px, -1vw, -12px);
  bottom: clamp(-8px, -1.5vw, -16px);
  background: #fff;
  border: 2px solid #000;
  font-size: clamp(1.2rem, 0.9rem + 0.7vw, 1.8rem);
  padding: 0.65em 0.85em;
  border-radius: 1.3em;
  font-weight: 900;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-balloon .accent {
  color: var(--secondary-color);
}

.hero-balloon::before {
  content: "";
  position: absolute;
  top: -0.85em;
  left: 1.6em;
  width: 0;
  height: 0;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-bottom: 0.85em solid #000;
  z-index: -2;
}

.hero-balloon::after {
  content: "";
  position: absolute;
  top: -0.65em;
  left: calc(1.6em + 1px);
  width: 0;
  height: 0;
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
  border-bottom: 0.7em solid #fff;
  z-index: -1;
}

.hero-branding {
  grid-area: branding;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* align-items は指定しない = stretch (子が親幅いっぱい) */
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-partner {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start; /* hero-partner だけは内容サイズ維持 */
  margin-left: 32px;
}

.hero-partner span {
  font-size: 14px;
  font-weight: 700;
}

.hero-partner img {
  width: 100px;
  height: auto;
}

.hero-visual-wrapper {
  grid-area: visual;
  position: relative;
  max-width: 400px;
  margin-inline: auto;
}

.hero-visual {
  width: 100%;
  height: auto;
}

.hero-body .description {
  grid-area: description;
  text-align: center;
  display: none; /* SP では非表示 */
  margin-inline-start: 32px;
}

@media (min-width: 768px) {
  .hero-body {
    grid-template-columns: 6fr 4fr;
    grid-template-areas:
      "branding    visual"
      "description visual";
    column-gap: 0px;
    row-gap: 16px;
    align-items: center;
  }

  .hero-branding {
    gap: 8px;
  }

  .hero-partner span {
    font-size: 20px;
  }

  .hero-partner img {
    width: 160px;
  }

  .hero-visual-wrapper {
    max-width: 100%;
  }

  .hero-body .description {
    display: block;
    text-align: left;
  }
}

/* ===== レイアウトコンポーネント ===== */

/* overlapp: 複数子要素を同じセルに重ねる (grid 方式) */
.overlapp {
  display: grid;
  place-items: center;
}

.overlapp > * {
  grid-column: 1;
  grid-row: 1;
}

/* badge: 左端からぶら下がるリボン型バッジ (純 CSS 版) */
.badge {
  --f: 0.5em; /* 折り返し部 */
  --r: 0.8em; /* 矢尻の深さ */

  position: absolute;
  top: 8px;
  left: calc(-1 * var(--f));
  padding-inline: 0.25em;
  line-height: 1.8;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--secondary-color);
  border-bottom: var(--f) solid #0005;
  border-right: var(--r) solid #0000;
  clip-path: polygon(
    0 0,
    0 calc(100% - var(--f)),
    var(--f) 100%,
    var(--f) calc(100% - var(--f)),
    100% calc(100% - var(--f)),
    calc(100% - var(--r)) calc(50% - var(--f) / 2),
    100% 0
  );
}

@media (min-width: 768px) {
  .badge {
    font-size: 2.5rem;
  }
}

/* ribbon: 限定特典バッジ型ラベル (純 CSS 版) */
.ribbon {
  --s: 1.8em; /* 両端の尾の長さ */
  --d: 0.8em; /* 尾の下段（奥行き） */
  --c: 0.8em; /* 尾先端の切り欠き */

  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 0 calc(var(--s) + 0.5em) var(--d);
  line-height: 1.8;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  background:
    conic-gradient(
      at left var(--s) bottom var(--d),
      #0000 25%,
      #0008 0 37.5%,
      #0004 0
    )
    0 / 50% 100% no-repeat,
    conic-gradient(
      at right var(--s) bottom var(--d),
      #0004 62.5%,
      #0008 0 75%,
      #0000 0
    )
    100% / 50% 100% no-repeat;
  background-color: var(--secondary-color);
  clip-path: polygon(
    0 var(--d),
    var(--s) var(--d),
    var(--s) 0,
    calc(100% - var(--s)) 0,
    calc(100% - var(--s)) var(--d),
    100% var(--d),
    calc(100% - var(--c)) calc(50% + var(--d) / 2),
    100% 100%,
    calc(100% - var(--s) - var(--d)) 100%,
    calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
    calc(var(--s) + var(--d)) calc(100% - var(--d)),
    calc(var(--s) + var(--d)) 100%,
    0 100%,
    var(--c) calc(50% + var(--d) / 2)
  );
}

@media (min-width: 768px) {
  .ribbon {
    font-size: 4rem;
  }
}

/* ===== レイアウトユーティリティ ===== */

@layer utilities {
  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--section-inner-gap);
  }

  .row {
    display: flex;
    gap: var(--section-inner-gap);
    justify-content: center;
  }

  @media (max-width: 767px) {
    .row {
      flex-direction: column;
    }
  }

  /* ===== ユーティリティ ===== */

  /* Display */
  .flex {
    display: flex;
  }
  .inline-flex {
    display: inline-flex;
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-row {
    flex-direction: row;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }

  /* Width */
  .w-full {
    width: 100%;
  }
  .w-auto {
    width: auto;
  }
  .h-full {
    height: 100%;
  }
  .flex-1 {
    flex: 1 1 0%;
  }

  .items-center {
    align-items: center;
  }
  .items-start {
    align-items: flex-start;
  }
  .items-end {
    align-items: flex-end;
  }

  .self-auto {
    align-self: auto;
  }
  .self-start {
    align-self: flex-start;
  }
  .self-center {
    align-self: center;
  }
  .self-end {
    align-self: flex-end;
  }
  .self-stretch {
    align-self: stretch;
  }

  .justify-start {
    justify-content: flex-start;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-around {
    justify-content: space-around;
  }
  .justify-evenly {
    justify-content: space-evenly;
  }

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

  /* Typography: 強調テキスト用サイズ (body 本文は base = 継承、指定なし) */
  .text-xs {
    font-size: 12px;
    line-height: 1.5;
  }
  .text-sm {
    font-size: 14px;
    line-height: 1.5;
  }
  .text-base {
    font-size: 16px;
    line-height: 1.5;
  }
  .text-lg {
    font-size: 18px;
    line-height: 1.4;
  }
  .text-xl {
    font-size: 24px;
    line-height: 1.3;
  }
  .text-2xl {
    font-size: 28px;
    line-height: 1.25;
  }
  .text-3xl {
    font-size: 36px;
    line-height: 1.2;
  }
  .text-4xl {
    font-size: 44px;
    line-height: 1.1;
  }
  .text-5xl {
    font-size: 56px;
    line-height: 1;
  }

  @media (min-width: 768px) {
    .text-lg {
      font-size: 20px;
    }
    .text-xl {
      font-size: 32px;
    }
    .text-2xl {
      font-size: 44px;
    }
    .text-3xl {
      font-size: 56px;
    }
    .text-4xl {
      font-size: 72px;
    }
    .text-5xl {
      font-size: 96px;
    }
  }

  /* Font weight */
  .font-normal {
    font-weight: 400;
  }
  .font-medium {
    font-weight: 500;
  }
  .font-bold {
    font-weight: 700;
  }
  .font-black {
    font-weight: 900;
  }

  /* Letter spacing (tracking) */
  .tracking-tight {
    letter-spacing: -0.02em;
  }
  .tracking-normal {
    letter-spacing: 0;
  }
  .tracking-wide {
    letter-spacing: 0.02em;
  }
  .tracking-wider {
    letter-spacing: 0.05em;
  }

  /* Line height (leading) */
  .leading-none {
    line-height: 1;
  }
  .leading-tight {
    line-height: 1.2;
  }
  .leading-snug {
    line-height: 1.375;
  }
  .leading-normal {
    line-height: 1.5;
  }
  .leading-relaxed {
    line-height: 1.625;
  }
  .leading-loose {
    line-height: 2;
  }

  /* Color utilities */
  .text-primary {
    color: var(--primary-color);
  }
  .text-secondary {
    color: var(--secondary-color);
  }
  .text-white {
    color: #fff;
  }
  .text-black {
    color: #000;
  }

  /* Spacing (1 unit = 4px) */
  .pt-4 {
    padding-top: 16px;
  }
  .pt-8 {
    padding-top: 32px;
  }
  .pt-10 {
    padding-top: 40px;
  }
  .pt-16 {
    padding-top: 64px;
  }
  .pb-4 {
    padding-bottom: 16px;
  }
  .pb-8 {
    padding-bottom: 32px;
  }
  .pb-10 {
    padding-bottom: 40px;
  }
  .pb-16 {
    padding-bottom: 64px;
  }
  .mt-4 {
    margin-top: 16px;
  }
  .mt-8 {
    margin-top: 32px;
  }
  .mb-4 {
    margin-bottom: 16px;
  }
  .mb-8 {
    margin-bottom: 32px;
  }
  .gap-xs {
    gap: 8px;
  }
  .gap-sm {
    gap: 16px;
  }
  .gap-md {
    gap: 24px;
  }
  .gap-lg {
    gap: 32px;
  }
  .gap-xl {
    gap: 48px;
  }
  .gap-2xl {
    gap: 64px;
  }

  /* Numeric gap utilities (Tailwind 互換、1 unit = 4px, 静的) */
  .gap-0 {
    gap: 0;
  }
  .gap-1 {
    gap: 4px;
  }
  .gap-2 {
    gap: 8px;
  }
  .gap-3 {
    gap: 12px;
  }
  .gap-4 {
    gap: 16px;
  }
  .gap-6 {
    gap: 24px;
  }
  .gap-8 {
    gap: 32px;
  }
  .gap-10 {
    gap: 40px;
  }
  .gap-12 {
    gap: 48px;
  }

  /* z-index */
  .z-10 {
    z-index: 10;
  }
  .z-20 {
    z-index: 20;
  }
  .z-30 {
    z-index: 30;
  }

  /* Responsive padding-top (doubling pattern for vertical rhythm) */
  .pt-xs {
    padding-top: 8px;
  }
  .pt-sm {
    padding-top: 16px;
  }
  .pt-md {
    padding-top: 24px;
  }
  .pt-lg {
    padding-top: 32px;
  }
  .pt-xl {
    padding-top: 48px;
  }

  .p-lg {
    padding: 16px;
  }

  /* Responsive padding-bottom (same scale as pt-*) */
  .pb-xs {
    padding-bottom: 8px;
  }
  .pb-sm {
    padding-bottom: 16px;
  }
  .pb-md {
    padding-bottom: 24px;
  }
  .pb-lg {
    padding-bottom: 32px;
  }
  .pb-xl {
    padding-bottom: 48px;
  }
  .pb-2xl {
    padding-bottom: 80px;
  }

  @media (min-width: 768px) {
    .gap-md {
      gap: 32px;
    }
    .gap-lg {
      gap: 48px;
    }
    .gap-xl {
      gap: 64px;
    }
    .gap-2xl {
      gap: 80px;
    }

    .pt-xs {
      padding-top: 16px;
    }
    .pt-sm {
      padding-top: 32px;
    }
    .pt-md {
      padding-top: 48px;
    }
    .pt-lg {
      padding-top: 64px;
    }
    .pt-xl {
      padding-top: 96px;
    }

    .p-lg {
      padding: 64px;
    }

    .pb-xs {
      padding-bottom: 16px;
    }
    .pb-sm {
      padding-bottom: 32px;
    }
    .pb-md {
      padding-bottom: 48px;
    }
    .pb-lg {
      padding-bottom: 64px;
    }
    .pb-xl {
      padding-bottom: 96px;
    }
    .pb-2xl {
      padding-bottom: 128px;
    }
  }

  /* Visual */
  .rounded {
    border-radius: var(--radius);
  }
  .bg-gray {
    background-color: #ededed;
  }
  .bg-white {
    background-color: #fff;
  }
  .bg-brand {
    background-color: var(--primary-color);
  }
  .bg-lightgray {
    background-color: var(--color-base);
  }
  .p-4 {
    padding: 16px;
  }
  .p-8 {
    padding: 32px;
  }

  .grid {
    display: grid;
    gap: var(--section-inner-gap);
  }

  .text-left {
    text-align: left;
  }
  .mx-auto {
    margin-inline: auto;
  }
  .max-w-prose {
    max-width: 35ch;
  }
  .break-keep {
    word-break: keep-all;
  }
  .text-balance {
    text-wrap: balance;
  }

  .bg-brand-gradient {
    background-image: linear-gradient(
      to bottom,
      var(--primary-color),
      var(--secondary-color)
    );
  }
}

.section-lead {
  margin-top: 32px;
  text-align: center;
  margin-inline: auto;
  word-break: keep-all;
  text-wrap: balance;
}

.section-subtitle {
  font-size: var(--heading-h3);
  font-weight: 900;
  text-align: center;
  margin-inline: auto;
  border-bottom: 5px solid var(--primary-color);
  width: fit-content;
}

@media (min-width: 768px) {
  .section-lead {
    max-width: 62%;
  }
}

/* ===== セクション見出し ===== */

.section-header {
  position: relative;
  padding-left: calc(
    var(--section-header-bar-width) +
    var(--section-header-bar-gap)
  );
  font-size: var(--section-header-font-size);
  font-weight: var(--section-header-font-weight);
  line-height: var(--section-header-line-height);
  text-align: left;
}

.section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--section-header-bar-width);
  height: 100%;
  background: var(--primary-color);
}

@media (min-width: 768px) {
  :root {
    --section-padding-inline: clamp(20px, 3vw, 40px);
    --header-height: 72px;

    /* Type scale */
    --heading-h1: 3.6rem;
    --heading-h2: 7rem;
    --heading-h3: 4.4rem;
    --heading-h4: 3.4rem;
    --heading-h5: 2.6rem;

    --section-header-line-height: 1.1;
    --section-header-bar-width: 12px;
    --section-header-bar-gap: 28px;
    --radius: 32px;

    --layout-spacing: 24px;
  }
}

.blue {
  color: var(--secondary-color);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--primary-color);
  color: #000;
  padding: 10px 20px;
  z-index: 200;
  font-weight: bold;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  overflow: visible;
}

main {
  padding-top: var(--header-height); /* fixed header 分のオフセット */
}

main:focus {
  outline: none;
}

/* ===== Button system (MD-based) =====
   Size variants: xs (32) / sm (40) / md (40 SP → 56 PC responsive)
   Design variants: filled / outlined */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid transparent;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 5px 5px 10px -10px #333;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* xsmall: 32px (SP menu 用) */
.btn-xs {
  height: 32px;
  padding-inline: 12px;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1px;
}

/* small: 40px (SP hero CTA / PC header 用) */
.btn-sm {
  height: 40px;
  padding-inline: 16px;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1px;
}

/* medium: SP 40 (small spec) → PC 96 (large spec) */
.btn-md {
  height: 40px;
  padding-inline: 16px;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1px;
}

@media (min-width: 768px) {
  /* sm: Desktop で medium に昇格 */
  .btn-sm {
    height: 56px;
    padding-inline: 24px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
  }

  /* md: Desktop で large に昇格 */
  .btn-md {
    height: 80px;
    padding-inline: 48px;
    gap: 12px;
    font-weight: 400;
    font-size: 24px; /* 仮 (spec 未記載) */
    line-height: 32px;
    letter-spacing: 0;
  }
}

/* Icon sizing (Lucide が SVG を展開). 数値は spec に準拠。 */
.btn-xs svg {
  width: 20px;
  height: 20px;
}
.btn-sm svg {
  width: 20px;
  height: 20px;
}
.btn-md svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .btn-sm svg {
    width: 24px;
    height: 24px;
  } /* medium spec */
  .btn-md svg {
    width: 32px;
    height: 32px;
  } /* large (spec 未記載, line-height 32 に合わせ) */
}

/* Design variants */
.btn-filled {
  background: var(--primary-color);
  border-color: #000;
  color: #000;
}
.btn-filled:hover {
  background: #ffca00;
}

.btn-outlined {
  background: #fff;
  border-color: var(--primary-color);
  color: #000;
}
.btn-outlined:hover {
  background: #fff8c5;
}

/* ===== SPレイアウト ===== */

@media (max-width: 767px) {
  .pc {
    display: none;
  }

  /* ------------------------
    sp buttons
  ------------------------ */

  .floating-btn {
    padding: 15px;
    width: 60%;
    border-radius: 60px;
    background: var(--primary-color);
    border: 2px solid #000;
    box-shadow: 5px 5px 10px -10px #333333;
    display: inline-block;
    text-align: center;
    position: fixed;
    bottom: 5%;
    right: 5%;
    z-index: 8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
    animation: pulse 5s infinite;
    animation: none;
  }

  .floating-btn a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .floating-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: pulse 5s infinite;
  }

  .floating-btn.stop {
    position: absolute;
    bottom: calc(100% + 20px);
  }

  /* ------------------------
    sp header
  ------------------------ */

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    padding: 4px var(--layout-spacing);
  }

  .header-inner {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo div:nth-of-type(1) {
    max-width: 150px;
  }

  .logo div:nth-of-type(2) {
    max-width: 120px;
    display: flex;
    align-items: center;
    margin-top: -8px;
  }

  .logo div:nth-of-type(2) a span {
    color: #000;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 3px;
  }

  .logo div:nth-of-type(2) img {
    width: 50px;
    margin-left: 3px;
  }

  /* ------------------------
    sp hamburger
  ------------------------ */

  .hamburger-menu {
    position: relative;
  }

  /* ハンバーガーボタン: 44x44 hit target (WCAG 2.5.5)
     内側のアイコン領域は 30x12 を中央配置 */
  .menu-btn {
    background: none;
    border: none;
    padding: 0;
    position: fixed;
    top: calc((var(--header-height) - 44px) / 2);
    right: var(--layout-spacing);
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 100;
  }

  /* 三本線 (アイコン領域: 左右 7px の内側余白で 30px 幅) */
  .menu-btn span {
    display: block;
    position: absolute;
    left: 7px;
    right: 7px;
    height: 3px;
    background: #333;
    transition: 0.3s;
  }

  .menu-btn span:nth-child(1) {
    top: 10px;
  }

  .menu-btn span:nth-child(2) {
    top: 21px;
  }

  .menu-btn span:nth-child(3) {
    top: 32px;
  }

  /* ×に変形 (3 本が中央 top:21 に集約) */
  .menu-btn.is-open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

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

  .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  /* メニュー本体 */
  .menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: 0.3s;
    padding-top: 60px;
    visibility: hidden;
  }

  /* メニュー開く */
  .menu-content.is-open {
    right: 0;
    visibility: visible;
  }

  .menu-content ul {
    list-style: none;
    padding: 20px;
  }

  .menu-content li {
    padding: 10px;
  }

  .menu-content li:nth-of-type(7) {
    margin-top: 10px;
  }

  .menu-content a {
    text-decoration: none;
    color: #333;
  }

  .menu-content .btn {
    width: 100%;
  }

  /* ------------------------
    sp logos
  ------------------------ */
  .logos {
    background: #fff;
    text-align: center;
  }

  .logos .container p {
    /* font-size: 0.7rem; */
    font-weight: 900;
  }

  /* ------------------------
    sp middle banner
  ------------------------ */
  .overlapp-bg {
    color: #ffee70;
  }

  /* ------------------------
    sp perk
  ------------------------ */

  .perk {
    text-align: center;
  }

  .lead_flex {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .star::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(img/markecontact_star.webp) no-repeat center / contain;
    margin-bottom: 10px;
  }

  .star::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(img/markecontact_star.webp) no-repeat center / contain;
    margin-bottom: -10px;
  }

  .benefits_card {
    background-image: linear-gradient(
      to bottom,
      var(--primary-color),
      var(--secondary-color)
    );
    padding: 4px;
    border-radius: 12px;
    position: relative;
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);*/
  }

  .benefits_card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 12px 12px 12px 100px;
    height: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
  }

  .benefits-sp {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .benefits-sp .icon {
    order: 1;
    width: 48px;
  }

  .benefits_card p {
    font-weight: 900;
  }

  /* ------------------------
    sp problems
  ------------------------ */

  #problems {
    position: relative;
    isolation: isolate;
  }

  #problems::after {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: auto;
    width: min(
      100% -
      calc(var(--layout-spacing) * 2),
      var(--section-max-width)
    );
    background: #fff;
    z-index: -1;
  }

  .problems-bg {
    align-self: stretch;
    background-color: #7e7d7d;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    position: relative;
    z-index: 1;
  }

  .problem-flame {
    display: none;
  }

  .problem-box {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px 20px;
    position: relative;
  }

  .problem-box h4 {
    width: 80%;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 5px 5px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    display: inline-block;
  }

  .problem-box ul {
    width: 90%;
    margin: auto;
    padding-left: 10px;
    line-height: 1.5;
    font-weight: bold;
    text-align: left;
  }

  .meeting-illustration {
    width: 60%;
    margin: 0 auto;
  }

  /* ------------------------
    sp about
  ------------------------ */

  .answer {
    padding: 50px 20px;
  }

  .intro .lead {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .spbig {
    font-size: 2rem;
  }

  .meeting-illustration2 {
    width: 80%;
    margin: 10px auto;
  }

  .desc {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-top: 20px;
  }

  .desc span {
    font-weight: bold;
  }

  .desc2 {
    font-size: 2rem;
    line-height: 1.6;
    font-weight: 900;
  }

  .reason {
    text-align: left;
  }

  .bar {
    position: relative;
    padding-left: 30px;
  }

  .bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: var(--primary-color);
  }

  .reason-left {
    min-width: 56px;
    float: left;
    margin-right: 12px;
  }

  .number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .reason-header {
    margin-bottom: 16px;
    display: flow-root;
  }

  .reason-header h3 {
    font-weight: 900;
  }

  .reason-illust {
    width: 80%;
    margin: 0 auto;
  }

  .reason-illust img {
    clip-path: inset(32px 0);
    margin-block: -32px;
  }

  /* =========================
    sp case
  ========================= */
  .cards {
    padding: 0;
    margin: 0;
  }

  .case_card {
    background: #f7f7f7;
    border-radius: 20px;
    padding: 15px;
    margin: 0;
    position: relative;
  }

  .case-badge {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-block;
    padding: 8px 12px;
    flex-direction: column;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.8;
  }

  .case-badge span {
    font-size: 1.2rem;
  }

  .case_card h3 {
    font-weight: 900;
  }

  .case_card p:nth-of-type(1) {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  .case_card p:nth-of-type(2) {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  .case_card p span {
    font-weight: bold;
  }

  .arrow {
    width: 10%;
    margin: 20px auto;
  }

  .result {
    text-align: center;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--secondary-color);
  }

  .other {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 20px;
    margin: 0;
  }

  .other h4 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .other div ul li {
    line-height: 2.3;
    margin-left: 20px;
  }

  /* =========================
    sp support
  ========================= */

  /* ── SP vertical timeline ── */
  .flow {
    width: 100%;
    position: relative;
    padding-left: 52px;
  }

  .flow::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-corp);
  }

  .arrow2 {
    display: none;
  }

  .flow-card {
    border: none;
    border-radius: 0;
    padding: 0 0 32px;
    position: relative;
  }

  .flow-sp {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .flow-title {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .flow-number {
    position: absolute;
    left: -52px;
    top: 0;
    background: var(--color-corp);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    flex-shrink: 0;
  }

  .icon-area {
    width: 56px;
    flex-shrink: 0;
  }

  .flow-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .flow-card h4 {
    font-size: 2rem;
    font-weight: bold;
  }

  .flow-card p {
    font-size: 1.4rem;
    text-align: left;
  }

  /* =========================
    sp service
  ========================= */

  .service-item {
    background-color: var(--primary-color);
    border-radius: 15px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .service-icon {
    width: 48px;
    flex-shrink: 0;
  }

  .service-item p {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
  }

  /* =========================
    sp table
  ========================= */

  .comparison_toptxt {
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
  }

  .comparison_toptxt span {
    font-size: 2rem;
  }

  table {
    width: 100%;
    font-size: 1.2rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
  }

  th,
  td {
    border: none;
    padding: 8px 4px;
    vertical-align: middle;
    font-size: 1.1rem;
  }

  .nob {
    padding-bottom: 2px;
  }

  .not {
    padding-top: 2px;
  }

  tr:nth-child(odd) td {
    background: #f9f9f9;
  }

  tr:nth-child(even) td {
    background: #fff;
  }

  th {
    background: transparent;
    font-weight: 700;
    color: #000;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
  }

  th:first-child {
    width: 18%;
  }

  .highlight-col {
    background: #fff292 !important;
    font-weight: bold;
  }

  .highlight-border {
    border: none !important;
  }

  .highlight-top {
    border: none !important;
  }

  .highlight-bottom {
    border: none !important;
  }

  .highlight-head {
    background: var(--primary-color) !important;
    width: 40%;
  }

  .comparison_logo {
    max-width: 150px;
    margin: 0 auto;
    margin-bottom: -5px;
  }

  .comparison-dimension {
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
  }

  .comparison-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 1.6rem;
  }

  .comparison-dl dt {
    font-weight: 700;
    color: #666;
    white-space: nowrap;
  }

  .comparison-dl dd {
    margin: 0;
  }

  .comparison-dl dt:has(+ .highlight-col),
  .comparison-dl dd.highlight-col {
    background: var(--primary-color) !important;
    font-weight: 900;
    color: #000;
  }

  .comparison-dl dd.highlight-col {
    min-height: calc(1.6rem * 2 + 8px);
  }

  .comparison-card {
    padding: 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: var(--radius);
  }

  .nob {
    border-bottom: none;
  }

  .not {
    border-top: none;
  }

  .comparison-figure {
    margin: 0;
  }

  .comparison-figure figcaption {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 8px;
  }

  /* =========================
    sp contact
  ========================= */

  .contact iframe {
    height: 2500px;
  }

  /* =========================
    sp question
  ========================= */

  .question {
    background-color: #efefef;
  }

  .accordion-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    overflow: hidden;
  }

  .question-q {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 20px;
    min-height: 8.3rem;
    cursor: pointer;
    font-weight: bold;
  }

  .question-q .qicon {
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex: 0 0 30px;
  }

  .question-q .qtxt {
    text-align: left;
    flex: 1;
  }

  .question-arrow {
    width: 16px;
    transition: transform 0.3s ease;
    flex: 0 0 16px;
  }

  .accordion-item.open .question-arrow {
    transform: rotate(180deg);
  }

  .question-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .question-a-inner {
    padding: 0 20px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .question-a .aicon {
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex: 0 0 30px;
  }

  .question-a .atxt {
    text-align: left;
  }

  /* =========================
    sp footer
  ========================= */

  footer {
    background: var(--primary-color);
    color: #000;
    text-align: center;
    padding: 60px 0;
  }

  .footer_logo {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .logo_item {
    width: 120px;
  }

  .logo_item:nth-of-type(2) {
    width: 135px;
  }

  .footer-inner p {
    font-size: 1rem;
  }

  .footer-inner p a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
  }

  .footer_logo p {
    font-size: 1.8rem;
    font-weight: 900;
    padding-bottom: 9px;
  }
}

/* ===== PCレイアウト ===== */

@media (min-width: 768px) {
  .sp {
    display: none;
  }

  /* ------------------------
    Buttons
  ------------------------ */

  .floating-btn {
    padding: 20px;
    width: 25%;
    border-radius: 60px;
    background: var(--primary-color);
    border: 2px solid #000;
    box-shadow: 5px 5px 10px -10px #333333;
    display: inline-block;
    text-align: center;
    position: fixed;
    bottom: 10%;
    right: 5%;
    z-index: 8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
    animation: pulse 5s infinite;
    animation: none;
  }

  .floating-btn a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .floating-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: pulse 5s infinite;
  }

  .floating-btn.stop {
    position: absolute;
    bottom: calc(100% + 20px);
  }

  /* ------------------------
    Header
  ------------------------ */

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    padding: 10px 20px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo div:nth-of-type(1) {
    max-width: 200px;
  }

  .logo div:nth-of-type(2) {
    max-width: 180px;
    display: flex;
    gap: 3px;
    align-items: center;
    margin-top: -12px;
  }

  .logo div:nth-of-type(2) a span {
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 6%;
  }

  .logo div:nth-of-type(2) img {
    width: 70px;
  }

  /* ------------------------
    Logos
  ------------------------ */

  .logos {
    background: #fff;
    text-align: center;
  }

  .logos .container p {
    font-weight: 900;
  }

  /* ------------------------
    Middle Banner
  ------------------------ */
  .overlapp-bg {
    color: #fff;
  }

  /* =========================
    perk
  ========================= */

  .perk {
    text-align: center;
  }

  .lead_flex {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .star::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url(img/markecontact_star.webp) no-repeat center / contain;
    margin-bottom: 10px;
  }

  .star::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url(img/markecontact_star.webp) no-repeat center / contain;
    margin-bottom: -20px;
  }

  .benefits_card {
    background-image: linear-gradient(
      to bottom,
      var(--primary-color),
      var(--secondary-color)
    );
    flex: 1;
    padding: 4px;
    border-radius: 12px;
    position: relative;
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);*/
  }

  .benefits_card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
  }

  .benefits_card p {
    font-size: 2.3rem;
    font-weight: 900;
  }

  .icon {
    width: 60%;
    margin: 20px auto;
  }

  /* =========================
    problems
  ========================= */

  #problems {
    position: relative;
    isolation: isolate;
  }

  #problems::after {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: auto;
    width: min(
      100% -
      calc(var(--layout-spacing) * 2),
      var(--section-max-width)
    );
    background: #fff;
    z-index: -1;
  }

  .problems-bg {
    align-self: stretch;
    background: #7e7d7d;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    position: relative;
    z-index: 1;
  }

  .problem-box {
    width: 450px;
    min-height: 300px;
    position: relative;
  }

  .problem-flame {
    width: 450px;
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .problem-box h4 {
    width: 80%;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    background: var(--primary-color);
    color: #000;
    padding: 10px 25px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: inline-block;
  }

  .problem-box ul {
    width: 80%;
    position: absolute;
    top: 50px;
    left: 55%;
    transform: translateX(-50%);
    font-weight: bold;
    text-align: left;
  }

  .meeting-illustration {
    max-width: 40%;
  }

  /* =========================
    about
  ========================= */

  .answer {
    padding: 100px 20px 50px 20px;
  }

  .intro .lead {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 40px;
  }

  .meeting-illustration2 {
    width: 40%;
    margin: 0 auto;
  }

  .desc {
    font-size: 2.8rem;
    margin-top: 20px;
  }

  .desc span {
    font-weight: bold;
  }

  .desc2 {
    font-size: 4.2rem;
    font-weight: 900;
  }

  .reason {
    text-align: left;
  }

  .bar {
    position: relative;
    padding-left: 70px;
  }

  .bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: var(--primary-color);
  }

  .reason-left {
    min-width: 96px;
    display: flex;
    justify-content: center;
  }

  .number {
    width: 96px;
    height: 96px;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 4.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
  }

  .reason-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
  }

  .reason-header h3 {
    font-weight: 700;
  }

  .reason-description {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-left: 16px;
  }

  .reason-description .reason-text {
    width: 60%;
  }

  .reason-description .reason-text p {
    margin-bottom: 10px;
    font-weight: normal;
  }

  .reason-description .reason-text p:nth-of-type(2) {
    font-weight: bold;
  }

  .reason-illust {
    width: 35%;
    max-height: 240px;
    overflow: hidden;
  }

  .reason-illust img {
    object-fit: cover;
    object-position: center;
    height: 240px;
    width: 100%;
  }

  /* =========================
    case
  ========================= */

  .cards {
    padding: 0;
    margin: 0;
  }

  .case_card {
    background: #f7f7f7;
    border-radius: 20px;
    padding: 25px 20px 40px;
    width: 32%;
    position: relative;
  }

  .case-badge {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-block;
    padding: 8px 12px;
    flex-direction: column;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.8;
  }

  .case-badge span {
    font-size: 1.2rem;
  }

  .case_card h3 {
    font-weight: 900;
  }

  .case_card p:nth-of-type(1) {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  .case_card p:nth-of-type(2) {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  .case_card p span {
    font-weight: bold;
  }

  .arrow {
    width: 10%;
    margin: 20px auto;
  }

  .result {
    text-align: center;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--secondary-color);
  }

  .other {
    background: #f7f7f7;
    padding: 32px;
    border-radius: var(--radius);
    margin: 0;
  }

  .other h3 {
    font-size: 2.4rem;
    text-align: left;
    margin-bottom: 30px;
  }

  .other div {
    display: flex;
    gap: 32px;
    margin: 0;
  }

  .other ul {
    list-style-position: inside;
  }

  .other ul li {
    line-height: 2.3;
  }

  /* =========================
    support
  ========================= */

  /* ── PC horizontal timeline ── */
  .flow {
    width: 100%;
    padding: 0;
    position: relative;
    padding-top: 56px;
  }

  .flow::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-corp);
  }

  .arrow2 {
    display: none;
  }

  .flow-card {
    flex: 1;
    position: relative;
    text-align: center;
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
  }

  .flow-number {
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-corp);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 900;
  }

  .flow-icon {
    width: 80px;
    margin: 0 auto;
  }

  .flow-sp {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .icon-area {
    width: auto;
  }

  .flow-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .flow-card h4 {
    font-size: 2.2rem;
    margin-bottom: 0;
    font-weight: bold;
  }

  .flow-card h4:nth-of-type(3) {
    letter-spacing: -0.2rem;
  }

  .flow-card p {
    text-align: left;
    font-size: 1.6rem;
  }

  /* =========================
    service
  ========================= */

  .service-grid {
    align-items: flex-start;
  }

  .service-item {
    background-color: var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    flex: 1;
  }

  .service-icon {
    width: 60%;
    margin: 0 auto;
  }

  .service-item p {
    font-size: 2.3rem;
    font-weight: bold;
  }

  /* =========================
    table
  ========================= */

  .comparison_toptxt {
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
  }

  .comparison_toptxt span {
    font-size: 2.5rem;
  }

  table {
    width: 100%;
    font-size: 1.8rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
  }

  th,
  td {
    border: none;
    padding: 18px 12px;
    vertical-align: middle;
  }

  tr:nth-child(odd) th,
  tr:nth-child(odd) td {
    background: #f9f9f9;
  }

  tr:nth-child(even) th,
  tr:nth-child(even) td {
    background: #fff;
  }

  th {
    background: #efefef;
    font-weight: bold;
  }

  th:first-child {
    width: 20%;
  }

  .highlight-col {
    background: #fff292 !important;
    font-weight: bold;
  }

  .highlight-border {
    border: none !important;
  }

  .highlight-top {
    border: none !important;
  }

  .highlight-bottom {
    border: none !important;
  }

  .highlight-head {
    background: var(--primary-color) !important;
  }

  .comparison_logo {
    max-width: 150px;
    margin: 0 auto;
    margin-bottom: -5px;
  }

  .comparison-figure figcaption {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 16px;
  }

  /* =========================
    contact
  ========================= */

  .contact iframe {
    height: 1900px;
  }

  /* =========================
    question
  ========================= */

  .question {
    background-color: #efefef;
  }

  .accordion-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    overflow: hidden;
  }

  .question-q {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
    padding: 32px;
    cursor: pointer;
    font-weight: bold;
  }

  .question-q .qicon {
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex: 0 0 30px;
  }

  .question-q .qtxt {
    text-align: left;
    flex: 1;
  }

  .question-arrow {
    width: 20px;
    transition: transform 0.3s ease;
    flex: 0 0 20px;
  }

  .accordion-item.open .question-arrow {
    transform: rotate(180deg);
  }

  .question-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .question-a-inner {
    padding: 0 32px 32px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .question-a .aicon {
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex: 0 0 30px;
  }

  .question-a .atxt {
    text-align: left;
  }

  /* =========================
    footer
  ========================= */

  footer {
    background: var(--primary-color);
    color: #000000;
    text-align: center;
    padding: 60px 0;
  }

  .footer_logo {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .logo_item {
    width: 250px;
  }

  .footer-inner p {
    font-size: 2rem;
  }

  .footer-inner p a {
    font-size: 2rem;
    color: #000;
    text-decoration: none;
  }

  .footer_logo p {
    font-size: 3rem;
    font-weight: 900;
    padding-bottom: 14px;
  }
}

@media screen and (min-width: 768px) and (max-width: 980px) {
  .problem-flame {
    width: 350px;
  }

  .problem-box h4 {
    font-size: 1.6rem;
  }

  .problem-box ul {
    font-size: 1.6rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .floating-btn {
    width: 35%;
  }

  .reason-description .reason-text p:nth-of-type(2) {
    font-size: 2rem;
  }

  .comparison_toptxt span {
    font-size: 2.2rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 971px) {
}

/* ===== case_card コンポーネント ===== */

/* バッジ: 丸スタイルを上書き */
.case-badge {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  padding: 8px 12px;
  display: inline-block;
  text-align: left;
  margin-bottom: 12px;
}

.case-badge span {
  font-size: inherit;
}

.case_card {
  display: flex;
  flex-direction: column;
}

.case-card-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary-color);
  margin-bottom: 16px;
}

.case-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
}

@media (min-width: 768px) {
  .case-card-heading {
    min-height: 400px;
  }

  .case-details {
    min-height: 256px;
  }

  .case-result {
    min-height: 100px;
  }
}

.case-details dt {
  font-weight: 900;
  white-space: nowrap;
}

.case-details dd {
  margin: 0;
  font-weight: normal;
}

.case-result {
  text-align: center;
}

.case-studies {
  padding-bottom: 40px;
}

/* ===== Button group / caption ===== */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

/* 外部注入で alignment を上書き */
.btn-group.items-end {
  align-items: flex-end;
}
.btn-group.items-center {
  align-items: center;
}
.btn-group.items-start {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .btn-group {
    gap: 40px;
  }
}

.case-result p {
  font-weight: 900;
  color: var(--secondary-color);
}

/* =========================
  アニメーション
========================= */

/* スライダーアニメーション */
.logo-slider {
  overflow: hidden;
  width: 100%;
  container: logo-slider / inline-size;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.logo-track img {
  height: 80px;
  width: auto;
  margin: 0 20px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* reduce-motion 時は, 無限スクロールせず,
 * 複製部分を隠して全ロゴを折り返して表示し, 静止する
 */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    --logo-gap: clamp(10px, 2cqw, 16px);

    animation: none !important;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--logo-gap);
  }

  .logo-track img[aria-hidden="true"] {
    display: none;
  }

  .logo-track img {
    min-width: 0;
    margin: 0;
    height: auto;
    object-fit: contain;
  }

  /* SP 相当: コンテナ幅 <= 600px なら 4枚/行 */
  @container logo-slider (max-width: 600px) {
    .logo-track img {
      flex-basis: calc((100% - var(--logo-gap) * 3) / 4);
      max-height: 48px;
    }
  }

  /* タブレット以上: コンテナ幅 > 600 5枚/行 */
  @container logo-slider (min-width: 601px) {
    .logo-track img {
      flex-basis: calc((100% - var(--logo-gap) * 4) / 5);
      max-height: 80px;
    }
  }
}

/* フェードインするアニメーション */
.fade-in-element {
  opacity: 0;
  transform: translateY(100px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 画像がぽわんと出てくるアニメーション */
.pop-in-element {
  opacity: 0;
  transform: scale(0.8); /* 最初は小さく表示 */
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
}

.pop-in-element.visible {
  opacity: 1;
  transform: scale(1); /* アニメーション後は元の大きさに戻る */
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.pop-in-element.visible {
  animation: pop-in 1s ease-out;
}

/* マーカーアニメーション */
.marker-line {
  display: inline;
  background-image: linear-gradient(
    to top,
    var(--primary-color) 50%,
    transparent 50%
  );
  background-size: 0% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  transition: background-size 0.6s ease;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.marker-line.is-active {
  background-size: 100% 100%;
}

/* 追従ボタンのアニメーション */
@keyframes pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  8% {
    transform: translateY(0) scale(1.12);
  }
  16% {
    transform: translateY(0) scale(0.98);
  }
  24% {
    transform: translateY(0) scale(1.05);
  }
  32% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ===== デバッグ (本番前に削除) ===== */

.debug section {
  outline: 2px dashed rgba(255, 0, 0, 0.5);
  background-color: rgba(255, 0, 0, 0.03);
}

/* 汎用レイアウト utility にも debug を */
.debug .flex,
.debug .stack,
.debug .row {
  outline: 1px dashed rgba(100, 100, 100, 0.5);
  background-color: rgba(100, 100, 100, 0.03);
}

.debug .header {
  outline: 2px dashed rgba(200, 0, 200, 0.6);
  background-color: rgba(200, 0, 200, 0.05);
}

.debug .header-inner {
  outline: 2px dashed rgba(120, 0, 200, 0.6);
  background-color: rgba(120, 0, 200, 0.05);
}

.debug .logo {
  outline: 2px dashed rgba(0, 120, 200, 0.6);
  background-color: rgba(0, 120, 200, 0.05);
}

.debug .logo div {
  outline: 1px dashed rgba(0, 180, 200, 0.6);
}

.debug .menu-btn {
  outline: 2px dashed rgba(200, 120, 0, 0.6);
  background-color: rgba(200, 120, 0, 0.1);
}

.debug .section-heading {
  outline: 2px dashed rgba(255, 120, 0, 0.5);
  background-color: rgba(255, 120, 0, 0.03);
}

.debug .section-header {
  outline: 2px dashed rgba(0, 0, 255, 0.5);
  background-color: rgba(0, 0, 255, 0.05);
}

.debug .section-inner {
  outline: 2px dashed rgba(0, 180, 0, 0.5);
  background-color: rgba(0, 180, 0, 0.03);
}

.debug .hero-body {
  outline: 2px dashed rgba(0, 180, 100, 0.6);
  background-color: rgba(0, 180, 100, 0.05);
}

.debug .hero-branding {
  outline: 2px dashed rgba(100, 180, 0, 0.6);
  background-color: rgba(100, 180, 0, 0.05);
}

.debug .hero-logo {
  outline: 2px solid rgba(255, 0, 0, 0.8);
  outline-offset: -2px;
  background-color: rgba(255, 0, 0, 0.08);
}

.debug .hero-partner {
  outline: 1px dashed rgba(180, 180, 0, 0.6);
}

.debug .hero-visual {
  outline: 3px solid rgba(0, 100, 255, 0.8);
  outline-offset: -3px;
  background-color: rgba(0, 100, 255, 0.1);
}

.debug .hero-body .description {
  outline: 1px dashed rgba(180, 0, 180, 0.6);
  background-color: rgba(180, 0, 180, 0.05);
}

.debug .logos {
  outline: 2px dashed rgba(255, 100, 0, 0.6);
  background-color: rgba(255, 100, 0, 0.05);
}

.debug .logos > .container {
  outline: 2px dashed rgba(200, 50, 0, 0.6);
  background-color: rgba(200, 50, 0, 0.05);
}

.debug .logos p {
  outline: 1px dashed rgba(120, 0, 120, 0.6);
  background-color: rgba(120, 0, 120, 0.05);
}

.debug .logo-slider {
  outline: 2px dashed rgba(0, 100, 255, 0.6);
  background-color: rgba(0, 100, 255, 0.05);
}

.debug .logo-track {
  outline: 2px dashed rgba(0, 200, 255, 0.6);
  background-color: rgba(0, 200, 255, 0.05);
}

.debug .btn-group {
  outline: 2px dashed rgba(180, 0, 100, 0.6);
  background-color: rgba(180, 0, 100, 0.05);
}

/* perk debug */
.debug .perk {
  outline: 2px dashed rgba(255, 40, 40, 0.7);
}
.debug .perk .ribbon {
  outline: 2px dashed rgba(200, 0, 0, 0.7);
  background-color: rgba(200, 0, 0, 0.08);
}
.debug .perk .small-title {
  outline: 2px dashed rgba(255, 140, 0, 0.7);
  background-color: rgba(255, 140, 0, 0.08);
}
.debug .perk .lead_flex {
  outline: 2px dashed rgba(180, 180, 0, 0.7);
  background-color: rgba(180, 180, 0, 0.08);
}
.debug .perk .benefits {
  outline: 2px dashed rgba(0, 160, 0, 0.7);
  background-color: rgba(0, 160, 0, 0.06);
}
.debug .perk .benefits_card {
  outline: 2px solid rgba(0, 120, 200, 0.7);
  background-color: rgba(0, 120, 200, 0.06);
}
.debug .perk .benefits-sp {
  outline: 1px dashed rgba(0, 200, 200, 0.7);
  background-color: rgba(0, 200, 200, 0.05);
}
.debug .perk .badge {
  outline: 2px solid rgba(200, 0, 200, 0.7);
  background-color: rgba(200, 0, 200, 0.08);
}
.debug .perk .icon {
  outline: 1px dashed rgba(120, 0, 200, 0.7);
  background-color: rgba(120, 0, 200, 0.05);
}

.debug .middle-banner {
  outline: 2px dashed rgba(255, 0, 0, 0.7);
  background-color: rgba(255, 0, 0, 0.05);
}

.debug .middle-banner > .container {
  outline: 2px dashed rgba(200, 0, 0, 0.7);
  background-color: rgba(200, 0, 0, 0.05);
}

.debug .overlapp {
  outline: 2px dashed rgba(0, 150, 255, 0.7);
  background-color: rgba(0, 150, 255, 0.08);
}

.debug .bgtxt {
  outline: 2px solid rgba(180, 120, 0, 0.8);
  background-color: rgba(180, 120, 0, 0.1);
}

.debug .fronttxt {
  outline: 2px solid rgba(0, 160, 80, 0.8);
  background-color: rgba(0, 160, 80, 0.1);
}

.debug .btmtxt {
  outline: 2px dashed rgba(160, 0, 200, 0.7);
  background-color: rgba(160, 0, 200, 0.05);
}

.debug .flow {
  outline: 2px dashed rgba(0, 160, 160, 0.5);
  background-color: rgba(0, 160, 160, 0.03);
}

.debug .flow-card {
  outline: 2px solid rgba(255, 0, 255, 0.4);
  background-color: rgba(255, 0, 255, 0.03);
}

.debug .case-studies {
  outline: 2px solid rgba(255, 0, 0, 0.4);
}

.debug .cards {
  outline: 2px dashed rgba(0, 0, 255, 0.4);
}

.debug .other {
  outline: 2px dashed rgba(255, 120, 0, 0.5);
}

.debug .other h3 {
  outline: 1px solid rgba(255, 0, 0, 0.5);
  background-color: rgba(255, 0, 0, 0.05);
}

.debug .other div {
  outline: 1px solid rgba(0, 0, 255, 0.5);
  background-color: rgba(0, 0, 255, 0.05);
}

.debug .problems-bg {
  outline: 2px dashed rgba(255, 0, 255, 0.5);
  background-color: rgba(255, 0, 255, 0.03);
}

.debug .problem-box {
  outline: 2px solid rgba(0, 160, 160, 0.5);
  background-color: rgba(0, 160, 160, 0.05);
}

.debug .problem-flame {
  outline: 1px dashed rgba(0, 200, 200, 0.5);
}

/* reason debug */
.debug .reason-box {
  outline: 2px dashed rgba(255, 0, 100, 0.6);
  background-color: rgba(255, 0, 100, 0.04);
}
.debug .reason-header {
  outline: 2px dashed rgba(200, 0, 150, 0.6);
  background-color: rgba(200, 0, 150, 0.05);
}
.debug .reason-left {
  outline: 1px dashed rgba(180, 0, 100, 0.6);
}
.debug .reason-description {
  outline: 2px dashed rgba(0, 150, 100, 0.6);
  background-color: rgba(0, 150, 100, 0.05);
}
.debug .reason-text {
  outline: 1px dashed rgba(0, 200, 120, 0.6);
}
.debug .reason-illust {
  outline: 2px solid rgba(100, 100, 200, 0.6);
  background-color: rgba(100, 100, 200, 0.05);
}

.debug .meeting-illustration {
  outline: 2px solid rgba(160, 0, 160, 0.5);
}

.debug #answer {
  outline: 2px dashed rgba(255, 0, 0, 0.5);
}

.debug .other ul {
  outline: 1px solid rgba(0, 180, 0, 0.5);
  background-color: rgba(0, 180, 0, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
