/* Base Styles */
:root {
  --primary-color: #19b3c7;
  --secondary-color: #f39800;
  --bg-gray: #f8f9fa;
  --text-main: #333;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* ヘッダー高さに合わせて調整 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Header */
header {
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
}

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

.logo-wrap {
  display: flex;
  flex-direction: column;
  /* ←縦並び */
  line-height: 1.2;
}

.logo img {
  width: 150px;
}

.sub {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.pc-nav {
  display: flex;
  align-items: center;
}

.pc-nav a {
  text-decoration: none;
  color: var(--text-main);
  margin-left: 20px;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .logo img {
    width: 120px;
  }

  .logo-wrap .sub {
    display: none;
    /* スマホではヘッダーのサブテキストを非表示にしてスペースを空ける */
  }

  .pc-nav a:not(.btn-sm) {
    display: none;
    /* スマホでは「用途を選ぶ」等のリンクを非表示 */
  }

  .pc-nav a.btn-sm {
    margin-left: 6px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}

@media screen and (max-width: 420px) {
  .pc-nav a.btn-sm--doc {
    display: none;
    /* 超小型スマホでは「無料で相談する」のみ表示 */
  }
}




/* Header Buttons */
.pc-nav .btn-sm {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  font-size: 12px;
}

.pc-nav .btn-sm--doc {
  border: 1.5px solid #207994;
  color: #207994;
  background: #fff;
  transition: background 0.3s, color 0.3s;
}

.pc-nav .btn-sm--doc:hover {
  background: #207994;
  color: #fff;
}

.pc-nav .btn-sm--contact {
  background: linear-gradient(135deg, #207994 0%, #31a4c7 100%);
  color: #fff;
  transition: opacity 0.3s;
  margin-left: 20px;
}

.pc-nav .btn-sm+.btn-sm--contact {
  margin-left: 8px;
}

.pc-nav .btn-sm--contact:hover {
  opacity: 0.85;
}

/* =========================
   セクションフェードイン
   ========================= */
.js-section-fade {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.js-section-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-section-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   FINAL CTA
   ========================= */
#final-cta.final-cta {
  padding: 50px 20px 64px;
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
}

.final-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.final-cta__box {
  position: relative;
  overflow: hidden;
  padding: 46px 40px 32px;
  background: linear-gradient(135deg, #207994 0%, #31a4c7 100%);
  border-radius: 32px;
  box-shadow: 0 24px 54px rgba(15, 63, 117, 0.20);
}

.final-cta__box::before,
.final-cta__box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.final-cta__box::before {
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
}

.final-cta__box::after {
  bottom: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
}

.final-cta__head,
.final-cta__actions,
.final-cta__notes,
.final-cta__mini {
  position: relative;
  z-index: 1;
}

.final-cta__head {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
}

.final-cta__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.final-cta__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.final-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.final-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 58px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.final-cta__btn:hover {
  transform: translateY(-2px);
}

.final-cta__btn--primary {
  color: #0f3f75;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(8, 23, 46, 0.18);
}

.final-cta__btn--secondary {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.final-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.final-cta__notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 0;
}

.final-cta__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.final-cta__mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.final-cta__miniItem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #0f3f75;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(8, 23, 46, 0.12);
}

/* Tablet */
@media screen and (max-width: 991px) {
  #final-cta.final-cta {
    padding: 80px 20px 56px;
  }

  .final-cta__box {
    padding: 38px 28px;
    border-radius: 26px;
  }
}

/* SP */
@media screen and (max-width: 767px) {
  #final-cta.final-cta {
    padding: 56px 16px 40px;
  }

  .final-cta__box {
    padding: 28px 18px 18px;
    border-radius: 20px;
  }

  .final-cta__head {
    margin-bottom: 22px;
    text-align: left;
  }

  .final-cta__title {
    margin-bottom: 14px;
    line-height: 1.45;
  }

  .final-cta__lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .final-cta__actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .final-cta__btn {
    width: 100%;
    min-width: auto;
    min-height: 52px;
    font-size: 15px;
  }

  .final-cta__notes {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
  }

  .final-cta__note {
    font-size: 13px;
    line-height: 1.75;
  }

  .final-cta__mini {
    justify-content: flex-start;
    gap: 8px;
  }

  .final-cta__miniItem {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* =========================
   FOOTER
   ========================= */
.footer {
  background: #0f172a;
  color: #ffffff;
  padding: 40px 20px 24px;
}

/* 上段 */
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ブランドエリア（左側集約） */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ロゴ */
.footer__logo a {
  display: inline-block;
  transition: opacity 0.2s;
}

.footer__logo a:hover {
  opacity: 0.85;
}

.footer__logo img {
  margin-bottom: 0;
  width: 180px;
}

.footer__sub {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* ナビ */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: 0.2s;
}

.footer__nav a:hover {
  color: #ffffff;
}

/* ボタングループ */
.footer__btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #207994 0%, #31a4c7 100%);
  color: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 164, 199, 0.3);
}

.footer__btn--sub {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.footer__btn--sub:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 右側会社情報カラム */
.footer__company-column {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 320px;
}

.footer__company-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
}

.footer__company-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer__company-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer__company-logo a {
  display: inline-flex;
  transition: opacity 0.2s;
}

.footer__company-logo a:hover {
  opacity: 0.7;
}

.footer__company-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__company-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.footer__company-name a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  display: inline-block;
}

.footer__company-name a:hover {
  opacity: 0.7;
}

.footer__company-detail {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.footer__company-detail span {
  display: block;
}

.footer__company-detail span + span {
  margin-top: 4px;
}

/* 下部 */
.footer__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__privacy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__privacy:hover {
  color: #ffffff;
}

/* SP */
@media (max-width: 768px) {
  .footer {
    padding: 48px 16px 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
  }

  .footer__brand {
    width: 100%;
    gap: 16px;
  }

  .footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 18px;
    width: 100%;
  }

  .footer__btn-group {
    width: 100%;
    flex-direction: column;
  }

  .footer__btn {
    width: 100%;
  }

  .footer__company-column {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    margin-top: 0;
  }
}

/* Card Hover Animation */
.features__card,
.solution__card,
.issues__card,
.cases__card,
.price__card,
.flow__step {
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .45s cubic-bezier(.22, 1, .36, 1),
    border-color .45s ease;
}

.features__card:hover,
.solution__card:hover,
.issues__card:hover,
.cases__card:hover,
.price__card:hover,
.flow__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(40, 120, 167, .12);
}