/* ========================================
   Base Styles
   ======================================== */
:root {
  --color-navy: #00395b;
  --color-primary: #007fc8;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-navy);
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Responsive helpers 追加 */
.pc-only {
  display: inline;
}
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: inline;
  }
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 57, 91, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo-img {
  height: 24px;
  width: auto;
}

/* ヘッダーロゴのサイズ調整 */
.logo .logo-img {
  height: 18px; /* お好みの値に変更 */
}

/* フッターロゴのサイズ調整 */
.footer-logo .logo-img {
  height: 13px; /* お好みの値に変更 */
}

.logo-presents {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.mobile-menu-btn.active .hamburger {
  background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-btn.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-login {
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.nav-login:hover {
  background: var(--color-navy);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 10rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(0, 127, 200, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(0, 57, 91, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-container-center {
  justify-content: center;
}

.hero-content {
  flex: 1;
}

.hero-content-center {
  text-align: center;
  max-width: 900px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--color-gray-600);
  line-height: 1.8;
}

/* ========================================
   Triangle Layout (Hero内の逆三角形)
   ======================================== */
.triangle-layout {
  margin-top: 3.5rem;
  position: relative;
}

.triangle-top {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.triangle-bottom {
  display: flex;
  justify-content: center;
}

.triangle-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 57, 91, 0.08);
  text-align: left;
  width: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.triangle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 57, 91, 0.12);
}

.triangle-card-foundation {
  border: 2px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(0, 127, 200, 0.03) 0%, var(--color-white) 100%);
}

.triangle-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.triangle-card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.triangle-card-text {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ========================================
   Individual Services Section (個人向け)
   ======================================== */
.individual-services {
  padding: 6rem 1.5rem;
  background: var(--color-white);
}

.individual-services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.individual-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.individual-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 57, 91, 0.06);
  border: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.individual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 57, 91, 0.1);
}

.individual-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.individual-tag.tag-shakaijin {
  color: var(--color-primary);
  background: rgba(0, 127, 200, 0.1);
}

.individual-tag.tag-student {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.individual-tag.tag-common {
  color: var(--color-navy);
  background: rgba(0, 57, 91, 0.1);
}

.individual-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.individual-description {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.individual-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.individual-features li {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

.individual-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.individual-btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-align: center;
  transition: background 0.2s ease;
}

.individual-btn:hover {
  background: var(--color-navy);
}

/* ========================================
   Business Services Section (法人向け) - 更新
   ======================================== */
.business-services {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.business-services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.business-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.business-main-card {
  background: var(--color-white);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(0, 57, 91, 0.1);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.business-main-content {
  flex: 1;
}

.business-main-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.business-main-description {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.business-main-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.business-main-btn:hover {
  background: var(--color-navy);
}

.business-main-visual {
  flex-shrink: 0;
}

.business-visual-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(0, 127, 200, 0.1) 0%, rgba(0, 57, 91, 0.05) 100%);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.role-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 57, 91, 0.06);
  border: 1px solid var(--color-gray-100);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 57, 91, 0.1);
}

.role-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(0, 127, 200, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-primary);
}

.role-icon-agent {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.role-icon-corporate {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.role-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.role-features {
  list-style: none;
  text-align: left;
}

.role-features li {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

.role-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ロールカード内のCTAボタン調整 */
.role-card-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  display: block;
  text-align: center;
}

.role-card:nth-child(2) .role-features li::before {
  background: #059669;
}

.role-card:nth-child(3) .role-features li::before {
  background: #7c3aed;
}

/* ========================================
   Services Grid Section
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 57, 91, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 57, 91, 0.1);
}

.service-card.hidden {
  display: none;
}

.service-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(0, 127, 200, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.service-tag.tag-agent {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.service-tag.tag-corporate {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.service-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.service-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.service-btn.primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.service-btn.primary:hover {
  background: var(--color-navy);
}

.service-btn.outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.service-btn.outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   Challenges Section
   ======================================== */
.challenges {
  padding: 6rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(0, 127, 200, 0.05) 0%,
    rgba(0, 127, 200, 0.08) 50%,
    rgba(0, 127, 200, 0.05) 100%
  );
}

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

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.challenge-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 57, 91, 0.06);
  text-align: center;
}

.challenge-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.challenge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.challenge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.challenge-text {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ========================================
   Flow Section
   ======================================== */
.flow {
  padding: 6rem 1.5rem;
}

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

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.flow-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
}

.flow-step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.flow-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.flow-step-text {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  color: var(--color-primary);
}

.flow-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ========================================
   Section Common Styles
   ======================================== */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 3rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
  padding: 5rem 1.5rem;
  background: var(--color-navy);
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-content {
  flex: 1;
}

.cta-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* グレーアウト状態のボタン */
.cta-btn.disabled {
  background: #999;
  color: #ccc;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.cta-btn.disabled:hover {
  background: #999;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 4rem 1.5rem 2rem;
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-top {
  margin-bottom: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  /* 逆三角形レイアウトのレスポンシブ対応 */
  .triangle-top {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .triangle-card {
    width: 100%;
    max-width: 400px;
  }

  .individual-services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* 大カードのレスポンシブ対応 */
  .business-main-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .business-main-visual {
    order: -1;
  }

  .role-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-step {
    max-width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 57, 91, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero {
    padding: 8rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .triangle-layout {
    margin-top: 2.5rem;
  }

  .triangle-card {
    padding: 1.5rem;
  }

  .business-lead {
    font-size: 0.9375rem;
  }

  .business-main-title {
    font-size: 1.5rem;
  }

  .business-visual-icon {
    width: 100px;
    height: 100px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .individual-services,
  .business-services,
  .challenges,
  .flow {
    padding: 4rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* グレーアウト状態のロールカードボタン */
.business-main-btn.disabled {
  background: #9ca3af;
  color: #d1d5db;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.business-main-btn.disabled:hover {
  background: #9ca3af;
}
