/** @format */

:root {
  --color-navy: #0f2540;
  --color-navy-light: #1a3c61;
  --color-white: #ffffff;
  --color-gray-bg: #f4f6f8;
  --color-gray-text: #666666;
  --color-text: #333333;
  --font-main: "Noto Sans JP", sans-serif;
  --transition-speed: 0.6s;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  font-size: 16px;
  letter-spacing: 0.05em;
  scroll-behavior: smooth;
  word-wrap: break-word; /* Ensure long words break */
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* Utilities for Responsive Text */
.ib {
  display: inline-block;
}

.br-pc {
  display: block;
}

.br-sp {
  display: none;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-gray {
  background-color: var(--color-gray-bg);
  /* Moving Stripes Animation */
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.5) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.5) 75%,
    transparent 75%,
    transparent
  );
  background-size: 60px 60px;
  animation: grayStripes 6s linear infinite;
}

@keyframes grayStripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 30px;
  }
}

.section-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
  /* Deep Ocean Gradient Animation */
  background: linear-gradient(270deg, #0f2540, #163252, #0f2540);
  background-size: 400% 400%;
  animation: navyGradient 15s ease infinite;
}

@keyframes navyGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* White Section Animation (Tech Dust) */
.section:not(.section-gray):not(.section-navy):not(.hero):not(
    .contact
  )::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  animation: dotFloat 30s linear infinite;
  z-index: 0;
}

@keyframes dotFloat {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

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

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

.text-navy {
  color: var(--color-navy);
}

.text-gray {
  color: var(--color-gray-text);
}

.mt-4 {
  margin-top: 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  height: 70px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.btn-nav {
  font-size: 14px;
  padding: 8px 20px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: 50px;
}

/* Hero */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f9f9 0%, #edf1f4 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--color-navy);
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--color-gray-text);
}

.hero-sub p {
  margin-bottom: 10px;
}

.hero-sub-highlight {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.3rem;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(15, 37, 64, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 37, 64, 0.4);
  opacity: 1;
}

.btn-lg {
  padding: 20px 60px;
  font-size: 1.3rem;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--color-gray-text);
  margin-top: 10px;
}

/* Typography & Section Titles */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 700;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 20px;
  z-index: 2;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-navy);
}

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

.section-navy .section-title::after {
  background-color: var(--color-white);
}

/* AkiTime Compact */
.akitime-compact {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-lead {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.arrow {
  color: #ccc;
  margin: 0 10px;
}

.story-desc {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 40px;
}

.akitime-showcase {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.akitime-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.akitime-icon-sm {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.akitime-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 5px;
}

.akitime-summary {
  font-size: 0.95rem;
  color: var(--color-gray-text);
  margin-bottom: 8px;
}

.akitime-status {
  font-size: 0.9rem;
  color: var(--color-navy);
  font-weight: 500;
}

.status-step {
  color: var(--color-gray-text);
}

.status-arrow {
  color: #ccc;
  margin: 0 5px;
}

.status-badge {
  display: inline-block;
  background: #e6f3ff;
  color: var(--color-navy);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 700;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-outline-navy {
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  background: transparent;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

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

.external-icon {
  font-size: 0.8em;
}

/* Responsive for AkiTime Compact */
@media (max-width: 768px) {
  .story-lead {
    font-size: 1.1rem;
  }
  
  .story-desc {
    font-size: 1rem;
  }

  .akitime-showcase {
    flex-direction: column;
    padding: 25px;
    text-align: center;
    gap: 20px;
  }

  .akitime-left {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .akitime-info {
    text-align: center;
  }

  .status-badge {
    margin-left: 0;
    margin-top: 5px;
  }
  
  .akitime-action {
    width: 100%;
  }
  
  .btn-sm {
    width: 100%;
    justify-content: center;
  }
}

/* Cards (Pain Points) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

/* Reason List */
.reason-content {
  max-width: 700px;
  margin: 0 auto;
}

.reason-list {
  text-align: left;
  margin-bottom: 40px;
  display: inline-block;
}

.reason-list li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.reason-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #cc0000;
  font-weight: bold;
}

.reason-highlight {
  font-size: 1.4rem;
  line-height: 1.6;
}

.reason-highlight strong {
  font-size: 1.6rem;
  background: linear-gradient(transparent 60%, #ffe600 60%);
  display: inline-block;
}

/* Mission */
.mission-content {
  font-size: 1.3rem;
  line-height: 2;
  position: relative;
  z-index: 2;
}

/* Service Features */
.service-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
}

.feature-item {
  text-align: center;
  flex: 1;
  min-width: 250px;
}

.feature-number {
  font-size: 3rem;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.service-desc {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Examples */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.example-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(15, 37, 64, 0.1);
}

.example-icon {
  width: 64px;
  height: 64px;
  background-color: #f0f8ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-navy);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.example-card:hover .example-icon {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.example-icon svg {
  width: 32px;
  height: 32px;
}

.example-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-navy);
  line-height: 1.5;
}

.example-desc {
  font-size: 0.95rem;
  color: var(--color-gray-text);
  line-height: 1.6;
}

/* Two Columns (Deliverables & Target) */
.two-columns {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.column {
  flex: 1;
  min-width: 320px;
  padding: 40px;
  background-color: var(--color-white);
  border-radius: 12px;
}

.section-gray .column {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.column-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.check-list li,
.cross-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-navy);
  font-weight: bold;
}

.cross-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-gray-text);
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  position: relative;
  z-index: 2;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background-color: #f9f9f9;
  font-weight: 700;
}

.comparison-table .highlight-th {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.comparison-table .highlight-td {
  background-color: #f0f8ff;
  font-weight: 700;
  color: var(--color-navy);
}

/* Pricing */
.price-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.price-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  width: 300px;
  position: relative;
}

.price-card.recommended {
  border: 3px solid var(--color-navy);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(15, 37, 64, 0.15);
  z-index: 1;
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-navy);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
}

.price span {
  font-size: 1rem;
}

.price-note {
  text-align: center;
  margin-top: 40px;
  color: var(--color-gray-text);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.faq-question {
  font-size: 1.2rem;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--color-gray-text);
  padding-left: 20px;
  display: none;
  margin-bottom: 20px;
}

.faq-answer.show {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Message */
.message-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.message-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.message-signature {
  text-align: right;
  margin-top: 40px;
  font-size: 1rem;
}

/* Contact */
.contact-lead {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.contact-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-gray-text);
}

/* Footer */
.footer {
  background-color: #081422;
  color: #8899a6;
  padding: 30px 0;
  font-size: 0.9rem;
}

/* Company Page */
.company-header-section {
  padding-top: 150px;
}

.company-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.company-table th {
  width: 30%;
  color: var(--color-navy);
  font-weight: 700;
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.business-content {
  max-width: 800px;
  margin: 0 auto;
}

.business-list {
  list-style: none;
  counter-reset: business-counter;
}

.business-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.business-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-navy);
  font-weight: 700;
}

/* Footer Nav */
.footer-nav {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-nav a {
  color: #8899a6;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-divider {
  margin: 0 10px;
  color: #4a5b6c;
}

/* Responsive for Company Page */
@media (max-width: 768px) {
  .company-wrapper {
    padding: 20px;
  }
  
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  
  .company-table th {
    padding-bottom: 5px;
    border-bottom: none;
  }
  
  .company-table td {
    padding-top: 0;
    padding-bottom: 20px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}
.delay-600 {
  transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
      font-size: 1.8rem;
  }
  
  /* Helper classes for line breaks */
  .br-pc {
    display: none;
  }
  
  .br-sp {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .two-columns {
    flex-direction: column;
    gap: 30px;
  }

  .price-grid {
    flex-direction: column;
    align-items: center;
  }

  .price-card.recommended {
    transform: scale(1);
  }
  
  /* Adjust font sizes for mobile readability */
  .hero-sub p {
      font-size: 1rem;
  }
  
  .card {
      padding: 20px;
      font-size: 1rem;
      min-height: auto;
  }
  
  .reason-list li {
      font-size: 1rem;
  }
  
  .reason-highlight {
      font-size: 1.2rem;
  }
  
  .reason-highlight strong {
      font-size: 1.4rem;
  }
  
  .mission-content {
      font-size: 1.1rem;
  }
  
  .akitime-card {
      padding: 40px 25px;
  }
  
  .akitime-logo {
      width: 80px;
      height: 80px;
  }
  
  .akitime-title {
      font-size: 2rem;
  }
  
  .akitime-desc {
      font-size: 1rem;
  }
  
  .akitime-features {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .akitime-feature-card {
      padding: 25px 15px;
  }
  
  .akitime-feature-icon-wrapper {
      width: 50px;
      height: 50px;
  }
  
  .feature-icon {
      width: 24px;
      height: 24px;
  }
}
