/* ============================================
   AsiaConnect LP — CSS
   名刺デザイン完全準拠版
   白背景・濃紺・ゴールドアクセント・罫線
   ============================================ */

:root {
  --navy:       #00164F;
  --navy-mid:   #0B1F5C;
  --navy-light: #1a3070;
  --gold:       #B58A2A;
  --gold-light: #C9A040;
  --white:      #FFFFFF;
  --bg-soft:    #F7F7F4;
  --bg-warm:    #F3F0EA;
  --rule:       #D8D8D8;
  --text:       #1A1A1A;
  --text-sub:   #5A5A5A;

  --serif-jp: 'Noto Serif JP', serif;
  --sans-jp:  'Noto Sans JP', sans-serif;
  --serif-en: 'Cormorant Garamond', serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w: 1100px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans-jp); color: var(--text); background: var(--white); line-height: 1.8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 88px 0; }

/* ─── Section header ─── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-en {
  font-family: var(--serif-en);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif-jp);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 16px;
}
.title-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans-jp);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; display: block; }

/* gold text */
.gold { color: var(--gold); font-weight: 700; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,22,79,0.1); }
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { display: flex; align-items: center; }
.logo-text {
  font-family: var(--serif-en);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-weight: 500;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--navy); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: all 0.3s; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 68px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-label {
  font-family: var(--serif-en);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.hero-title {
  font-family: var(--serif-jp);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 32px;
}
.hero-copy {
  margin-bottom: 36px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--bg-soft);
}
.copy-line {
  font-family: var(--serif-jp);
  font-size: 1rem;
  line-height: 2;
  color: var(--navy);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Card Visual ── */
.card-visual {
  border: 1px solid var(--rule);
  box-shadow: 0 8px 40px rgba(0,22,79,0.1);
  background: var(--white);
  overflow: hidden;
}
.card-top-bar {
  background: var(--navy);
  height: 8px;
}
.card-body { padding: 28px 28px 20px; }
.card-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card-company {
  font-family: var(--serif-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
}
.card-divider { height: 1px; background: var(--rule); margin: 12px 0; }
.card-tagline {
  font-size: 0.75rem;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.card-name {
  font-family: var(--serif-jp);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.card-contacts { display: flex; flex-direction: column; gap: 8px; }
.card-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-sub);
}
.card-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-bottom-bar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  font-family: var(--serif-jp);
}

/* ============================================
   PAIN
   ============================================ */
.pain { background: var(--bg-soft); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pain-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,22,79,0.08);
}
.pain-icon { width: 48px; height: 48px; margin: 0 auto 16px; }
.pain-icon svg { width: 100%; height: 100%; }
.pain-text {
  font-family: var(--serif-jp);
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.7;
}

/* ============================================
   REFRAME
   ============================================ */
.reframe-band {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0;
}
.reframe-title {
  font-family: var(--serif-jp);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.5;
}
.reframe-text {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 2;
  max-width: 680px;
}

/* ============================================
   POSITION
   ============================================ */
.position { background: var(--white); }
.position-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.position-text {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 28px;
}
.position-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
}
.highlight-line { display: none; }
.position-highlight p {
  font-family: var(--serif-jp);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
}
.pos-card {
  border: 1px solid var(--rule);
  padding: 28px 24px;
  background: var(--bg-soft);
}
.pos-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--sans-jp);
  font-weight: 500;
}
.pos-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.87rem;
  color: var(--text-sub);
  line-height: 1.7;
  align-items: flex-start;
}
.pos-item:last-child { border-bottom: none; }
.pos-check {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 28px 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,22,79,0.08);
}
.service-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--serif-jp);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.service-card p {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ============================================
   FLOW
   ============================================ */
.flow { background: var(--white); }
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.flow-step {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--rule);
  padding: 24px 18px;
  background: var(--bg-soft);
}
.step-num {
  font-family: var(--serif-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 12px;
}
.step-content h3 {
  font-family: var(--serif-jp);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.flow-arrow {
  color: var(--rule);
  font-size: 1.4rem;
  padding-top: 28px;
  flex-shrink: 0;
}

/* ============================================
   PRICING
   ============================================ */
.pricing { background: var(--bg-soft); }
.pricing-table-wrap { overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
}
.pricing-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}
.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
}
.pricing-table tr:hover td { background: var(--bg-soft); }
.free-row td { font-weight: 500; }
.gold-text { color: var(--gold); font-weight: 700; }
.pricing-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 2px solid var(--rule);
}
.pricing-note p {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ============================================
   PARTNER
   ============================================ */
.partner { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.partner-container {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  align-items: start;
}
.partner-icon { padding-top: 48px; }
.partner-text {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 2;
}

/* ============================================
   FIT
   ============================================ */
.fit { background: var(--bg-soft); }
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--rule);
  background: var(--white);
}
.fit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--text);
}
.fit-item:nth-child(odd) { border-right: 1px solid var(--rule); }
.fit-dash { color: var(--gold); font-weight: 700; flex-shrink: 0; }
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.industry-tags span {
  padding: 6px 16px;
  border: 1px solid var(--navy);
  font-size: 0.78rem;
  color: var(--navy);
  letter-spacing: 0.05em;
}

/* ============================================
   NOT FIT
   ============================================ */
.notfit { background: var(--white); }
.notfit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}
.notfit-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.87rem;
  color: var(--text-sub);
  position: relative;
  padding-left: 40px;
}
.notfit-item::before {
  content: '×';
  position: absolute;
  left: 18px;
  color: var(--rule);
  font-weight: 300;
}
.notfit-item:nth-child(odd) { border-right: 1px solid var(--rule); }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-soft); }
.contact-sub {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin-top: 12px;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-direct { display: flex; flex-direction: column; gap: 16px; }
.direct-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: border-color 0.25s;
  flex-wrap: wrap;
}
.direct-link:hover { border-color: var(--navy); }
.direct-icon {
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.direct-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  font-weight: 500;
}
.direct-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--serif-jp);
}

/* ── Form ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}
.req {
  font-size: 0.65rem;
  background: var(--navy);
  color: var(--white);
  padding: 2px 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans-jp);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  outline: none;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--navy); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.75rem; color: var(--text-sub); text-align: center; }
.form-success {
  display: none;
  padding: 20px;
  background: rgba(181,138,42,0.08);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.9;
}
.form-success.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--navy); }
.footer-band { padding: 52px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-company {
  font-family: var(--serif-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}
.footer-info { text-align: right; }
.footer-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}
.footer-bottom {
  padding: 18px 40px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================
   TABLET
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 28px; }
  .hero-container { grid-template-columns: 1fr; gap: 48px; padding: 52px 0; }
  .hero-right { display: flex; justify-content: center; }
  .card-visual { max-width: 420px; width: 100%; }
  .position-container { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-container { grid-template-columns: 1fr; gap: 24px; }
  .partner-icon { padding-top: 0; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-info { text-align: left; }
  .footer-bottom { padding: 18px 28px; }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* Header */
  .header-inner { padding: 0 20px; height: 60px; }
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 72vw; max-width: 300px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--rule);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 32px;
    transition: right 0.35s var(--ease);
    z-index: 999;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }
  .nav.open { right: 0; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 998;
  }
  .nav-overlay.open { display: block; }
  .nav-link { font-size: 0.95rem; color: var(--navy); }

  /* Hero */
  .hero { padding-top: 60px; }
  .hero-container { padding: 44px 0; }
  .hero-buttons { flex-direction: column; }
  .btn { padding: 13px 24px; }

  /* Pain */
  .pain-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Flow */
  .flow-steps { flex-direction: column; gap: 0; }
  .flow-step { min-width: unset; border-bottom: none; border-right: none; }
  .flow-step + .flow-step { border-top: 1px solid var(--rule); }
  .flow-arrow { display: none; }

  /* Fit / Notfit */
  .fit-grid { grid-template-columns: 1fr; }
  .fit-item:nth-child(odd) { border-right: none; }
  .notfit-list { grid-template-columns: 1fr; }
  .notfit-item:nth-child(odd) { border-right: none; }

  /* Footer */
  .footer-bottom { padding: 18px 20px; }
}
