/* ============================================================
   BEELINE BtoB Portal LP — Custom Styles
   Colors: Dark #0F0F0F | Red #E60012 | Cream #F8F5EF
============================================================ */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- HEADER ---- */
#site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* ---- HERO BACKGROUND ---- */
.hero-bg {
  background-color: #0a0a0a;
  background-image: url('../img/top01.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Dark gradient overlay for text readability */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.40) 40%,
      rgba(0, 0, 0, 0.50) 70%,
      rgba(0, 0, 0, 0.65) 100%
    );
}

/* ---- SCROLL LINE ANIMATION ---- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background-color: #E60012;
  color: #ffffff;
  letter-spacing: 0.15em;
  transition: background-color 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background-color: #c4000f;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  letter-spacing: 0.15em;
  transition: border-color 0.3s, background-color 0.3s, transform 0.2s;
}
.btn-outline:hover {
  border-color: #E60012;
  background-color: rgba(230, 0, 18, 0.1);
  transform: translateY(-1px);
}

.btn-outline-red {
  display: inline-block;
  border: 1px solid #E60012;
  color: #E60012;
  letter-spacing: 0.15em;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline-red:hover {
  background-color: #E60012;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---- GOLD BUTTONS (hero) ---- */
.btn-gold {
  display: inline-block;
  background-color: #C9A84C;
  color: #0F0F0F;
  letter-spacing: 0.15em;
  transition: background-color 0.3s, transform 0.2s;
}
.btn-gold:hover {
  background-color: #b8960c;
  transform: translateY(-1px);
}

.btn-outline-gold {
  display: inline-block;
  border: 1px solid #C9A84C;
  color: #C9A84C;
  letter-spacing: 0.15em;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline-gold:hover {
  background-color: rgba(201, 168, 76, 0.15);
  border-color: #E0C070;
  color: #E0C070;
  transform: translateY(-1px);
}

/* ---- CONCEPT CARDS ---- */
.concept-card {
  border: 1px solid rgba(230, 0, 18, 0.15);
  background: #ffffff;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.concept-card:hover {
  border-color: rgba(230, 0, 18, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(230, 0, 18, 0.08);
}

.icon-wrap {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(230, 0, 18, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 0, 18, 0.05);
}

/* ---- PRODUCT CARDS (Active) ---- */
.product-card-active {
  background: #ffffff;
  border: 1px solid rgba(230, 0, 18, 0.15);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.product-card-active:hover {
  border-color: rgba(230, 0, 18, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(230, 0, 18, 0.2);
}

/* ---- PRODUCT CARDS (Coming Soon) ---- */
.product-card-soon {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: not-allowed;
}

.product-image-wrap {
  background: #f0f0f0;
}

/* ---- BADGES ---- */
.badge-active {
  background: rgba(230, 0, 18, 0.15);
  color: #E60012;
  border: 1px solid rgba(230, 0, 18, 0.3);
  padding: 3px 10px;
  font-size: 10px;
}

.badge-soon {
  background: rgba(240, 240, 240, 0.9);
  color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.badge-soon-label {
  color: rgba(0, 0, 0, 0.35);
  font-size: 10px;
}

/* ---- WHY BEELINE CARDS ---- */
.why-card {
  background: #ffffff;
  border: 1px solid rgba(230, 0, 18, 0.12);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.why-card:hover {
  border-color: rgba(230, 0, 18, 0.4);
  box-shadow: 0 8px 32px rgba(230, 0, 18, 0.06);
}

.why-number {
  min-width: 60px;
}

/* ---- PROCESS ---- */
.step-circle {
  width: 64px;
  height: 64px;
  border: 1px solid #E60012;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 0, 18, 0.08);
  color: #E60012;
  position: relative;
  z-index: 1;
}

.process-bg-pattern {
  background-image:
    radial-gradient(circle, rgba(230, 0, 18, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---- CONTACT FORM ---- */
.contact-form {
  background: #ffffff;
  padding: 48px;
  border: 1px solid rgba(230, 0, 18, 0.15);
}
@media (max-width: 640px) {
  .contact-form { padding: 28px 20px; }
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #444444;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required-badge {
  background: #E60012;
  color: #ffffff;
  font-size: 10px;
  padding: 1px 6px;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0dcd4;
  background: #fdfbf7;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
  border-color: #E60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}
.form-input::placeholder {
  color: #aaa;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ---- BACK TO TOP ---- */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  background-color: #c4000f;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-in-up {
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
  opacity: 1 !important;
  transform: translateY(0);
}

/* ---- MOBILE MENU ---- */
#menu-toggle.open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menu-toggle.open .menu-bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- FAQ ACCORDION ---- */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
}
.faq-item:first-child {
  border-top: 1px solid #e5e5e5;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}
.faq-question:hover .faq-q-label {
  color: #E60012;
}
.faq-q-label {
  color: #E60012;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.faq-q-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #0F0F0F;
  line-height: 1.6;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #e0dcd4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  background-color: #E60012;
  border-color: #E60012;
}
.faq-icon-bar {
  position: relative;
  width: 10px;
  height: 10px;
}
.faq-icon-bar::before,
.faq-icon-bar::after {
  content: '';
  position: absolute;
  background-color: #888;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.faq-icon-bar::before { width: 10px; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-icon-bar::after  { width: 1px; height: 10px; top: 0; left: 50%; transform: translateX(-50%); }
.faq-item.open .faq-icon-bar::before { background-color: #fff; }
.faq-item.open .faq-icon-bar::after  { background-color: #fff; transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding-bottom: 24px;
  padding-left: 36px;
  font-size: 14px;
  color: #888888;
  line-height: 1.9;
}

/* ---- FOOTER ---- */
.footer-link:hover i { color: #c4000f; }

/* ---- SUCCESS STATE ---- */
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success .success-icon {
  width: 64px;
  height: 64px;
  border: 1px solid #E60012;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-bg::after { background-size: 40px 40px; }
}
