/*
Theme Name: ASIABRIDGE Child
Theme URI: http://komaki-test08.com/
Description: SWELL child theme for ASIABRIDGE - Figma準拠 v1.0.3
Author: ASIABRIDGE
Template: swell
Version: 2.2
Text Domain: asiabridge-child
*/

:root {
  --ab-bg-base:        #FFFFFF;
  --ab-bg-card:        #FFFFFF;
  --ab-bg-section:     #FAF6F1;
  --ab-bg-soft:        #F5EFE7;
  --ab-text-primary:   #2A2118;
  --ab-text-secondary: #5C4D3F;
  --ab-text-muted:     #9B8C7E;
  --ab-brand-dark:     #3A2A1F;
  --ab-brand:          #6B4A2B;
  --ab-accent:         #ED6F2A;
  --ab-accent-hover:   #D85E1E;
  --ab-accent-soft:    #FCE7D6;
  --ab-line:           #E8E0D5;
  --ab-radius-sm:      4px;
  --ab-radius-md:      8px;
  --ab-radius-lg:      16px;
  --ab-shadow-sm:      0 2px 8px rgba(58,42,31,.06);
  --ab-shadow-md:      0 6px 20px rgba(58,42,31,.08);
  --ab-shadow-lg:      0 12px 40px rgba(58,42,31,.10);
  --ab-container:      1120px;
  --ab-container-px:   24px;
  --ab-font-jp:        "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --ab-font-en:        "Inter", "Helvetica Neue", Arial, sans-serif;
  --ab-font-zh:        "Noto Sans SC", "PingFang SC", sans-serif;
  --ab-font-display:   "Noto Serif JP", "Yu Mincho", serif;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--ab-bg-base);
  color: var(--ab-text-primary);
  font-family: var(--ab-font-jp);
  line-height: 1.85;
  letter-spacing: .03em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

body.lang-en { font-family: var(--ab-font-en); }
body.lang-zh { font-family: var(--ab-font-zh); }

a { color: var(--ab-brand); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--ab-accent); }
img { max-width: 100%; height: auto; display: block; }

.ab-container {
  max-width: var(--ab-container);
  margin-inline: auto;
  padding-inline: var(--ab-container-px);
}

.ab-section {
  padding-block: clamp(72px, 10vw, 140px);
  position: relative;
}

.ab-section--alt { background: var(--ab-bg-section); }
.ab-section--soft { background: var(--ab-bg-soft); }
.ab-section--brand { background: var(--ab-brand-dark); color: #fff; }

.ab-sechead {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.ab-sechead__en {
  display: inline-block;
  color: var(--ab-accent);
  font-family: var(--ab-font-en);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
  padding-right: 32px;
}
.ab-sechead__en::before,
.ab-sechead__en::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--ab-accent);
}
.ab-sechead__en::before { left: 0; }
.ab-sechead__en::after { right: 0; }

.ab-sechead__title {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--ab-text-primary);
  margin: 0;
}

.ab-sechead__lead {
  margin-top: 16px;
  font-size: .95rem;
  color: var(--ab-text-secondary);
  letter-spacing: .04em;
}

.ab-hero {
  position: relative;
  min-height: clamp(480px, 75vh, 760px);
  background:
    linear-gradient(180deg, rgba(45,28,15,.45) 0%, rgba(45,28,15,.65) 100%),
    radial-gradient(circle at 30% 60%, rgba(237,111,42,.4), transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(255,200,100,.3), transparent 60%),
    linear-gradient(135deg, #2A1810 0%, #5A3A1F 50%, #2A1810 100%);
  background-size: cover;
  color: #fff;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.ab-hero[style*="--ab-hero-image"] {
  background:
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.55)),
    var(--ab-hero-image, #2A1810) center/cover no-repeat;
}

.ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.ab-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--ab-container);
  margin-inline: auto;
  padding: 32px var(--ab-container-px);
  text-align: center;
}

.ab-hero__en {
  display: inline-block;
  font-family: var(--ab-font-en);
  font-size: .85rem;
  letter-spacing: .35em;
  color: var(--ab-accent);
  font-weight: 700;
  margin-bottom: 24px;
  padding: 6px 24px;
  border: 1px solid var(--ab-accent);
  border-radius: 999px;
}

.ab-hero__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: .12em;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.ab-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: .12em;
  opacity: .92;
  max-width: 720px;
  margin-inline: auto;
  line-height: 2;
}

.ab-hero__cta { margin-top: 48px; }

.ab-pagehero {
  position: relative;
  min-height: clamp(280px, 40vh, 380px);
  background:
    linear-gradient(180deg, rgba(45,28,15,.55), rgba(45,28,15,.7)),
    linear-gradient(135deg, #2A1810, #6B4A2B);
  color: #fff;
  display: grid;
  align-items: center;
  text-align: center;
}

.ab-pagehero__title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .14em;
  margin: 0 0 8px;
}

.ab-pagehero__en {
  font-family: var(--ab-font-en);
  font-size: .8rem;
  letter-spacing: .35em;
  color: var(--ab-accent);
  font-weight: 700;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  padding: 18px 56px;
  background: var(--ab-accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  transition: all .25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(237,111,42,.30);
  min-width: 240px;
}
.ab-btn:hover {
  background: var(--ab-accent-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(237,111,42,.45);
}
.ab-btn::after { content: "→"; font-size: 1.2em; }

.ab-btn--ghost {
  background: transparent;
  color: var(--ab-brand-dark) !important;
  border: 1.5px solid var(--ab-brand-dark);
  box-shadow: none;
}
.ab-btn--ghost:hover {
  background: var(--ab-brand-dark);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(58,42,31,.25);
}

.ab-btn--white {
  background: #fff;
  color: var(--ab-brand-dark) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.ab-concerns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.ab-concerns__item {
  background: #fff;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--ab-shadow-sm);
  border-top: 4px solid var(--ab-accent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ab-concerns__item:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow-md); }

.ab-concerns__check {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ab-accent-soft);
  color: var(--ab-accent);
  align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.ab-concerns__text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ab-text-primary);
  line-height: 1.7;
}

.ab-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.ab-stats__item {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid var(--ab-line);
}
.ab-stats__item:last-child { border-right: none; }

.ab-stats__number {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--ab-accent);
  line-height: 1;
  letter-spacing: -.03em;
  font-family: var(--ab-font-en);
}

.ab-stats__number small {
  font-size: 50%;
  margin-left: 4px;
  font-weight: 700;
  font-family: var(--ab-font-jp);
}

.ab-stats__label {
  font-size: .82rem;
  color: var(--ab-text-secondary);
  margin-top: 12px;
  letter-spacing: .08em;
  font-weight: 600;
}

.ab-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ab-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ab-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ab-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .ab-grid--3, .ab-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ab-grid--2, .ab-grid--3, .ab-grid--4 { grid-template-columns: 1fr; }
}

.ab-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--ab-shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.ab-card:hover { transform: translateY(-4px); box-shadow: var(--ab-shadow-md); }

.ab-card__thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ddd, #f5f5f5) center/cover no-repeat;
  position: relative;
}

.ab-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.ab-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .5em;
  color: var(--ab-text-primary);
  letter-spacing: .04em;
}

.ab-card__meta { font-size: .78rem; color: var(--ab-text-muted); letter-spacing: .06em; margin-bottom: 8px; }
.ab-card__excerpt { font-size: .88rem; color: var(--ab-text-secondary); line-height: 1.8; }

.ab-card--numbered { position: relative; padding-top: 32px; text-align: center; }
.ab-card--numbered .ab-card__num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px;
  background: var(--ab-accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ab-font-en);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(237,111,42,.35);
}
.ab-card--numbered .ab-card__icon { margin: 16px auto 8px; font-size: 2rem; }

.ab-feature {
  background: #fff;
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--ab-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ab-feature:hover { transform: translateY(-4px); box-shadow: var(--ab-shadow-md); }

.ab-feature__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--ab-accent-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ab-accent);
  font-size: 1.8rem;
}

.ab-feature__num {
  font-family: var(--ab-font-en);
  color: var(--ab-accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 8px;
}

.ab-feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ab-text-primary);
  letter-spacing: .04em;
}

.ab-feature__text {
  font-size: .88rem;
  color: var(--ab-text-secondary);
  line-height: 1.8;
}

.ab-person {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ab-shadow-sm);
}

.ab-person__photo {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #d0c5b6, #e8ddcc) center/cover no-repeat;
  position: relative;
}

.ab-person__body { padding: 24px 28px; }

.ab-person__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: .04em;
}

.ab-person__role {
  font-family: var(--ab-font-en);
  font-size: .75rem;
  color: var(--ab-accent);
  letter-spacing: .2em;
  font-weight: 700;
  margin: 8px 0 16px;
}

.ab-person__bio {
  font-size: .88rem;
  color: var(--ab-text-secondary);
  line-height: 1.85;
}

.ab-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 720px) { .ab-gallery { grid-template-columns: repeat(2, 1fr); } }

.ab-gallery__item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c9b89a, #e8d9bf) center/cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease;
  display: block;
}
.ab-gallery__item:hover { transform: scale(1.02); }

.ab-gallery__item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.ab-faq { max-width: 760px; margin: 0 auto; }

.ab-faq__item {
  border: 1px solid var(--ab-line);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.ab-faq__q {
  padding: 20px 24px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  position: relative;
  padding-left: 64px;
  color: var(--ab-text-primary);
}
.ab-faq__q::before {
  content: "Q";
  position: absolute;
  left: 24px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--ab-accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ab-font-en);
  font-weight: 800;
  font-size: .85rem;
}

.ab-faq__a {
  padding: 0 24px 20px 64px;
  font-size: .9rem;
  color: var(--ab-text-secondary);
  line-height: 1.85;
  position: relative;
}

.ab-contact {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--ab-shadow-md);
  padding: clamp(32px, 5vw, 64px);
  max-width: 760px;
  margin-inline: auto;
}

.ab-contact label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ab-text-primary);
  letter-spacing: .04em;
}

.ab-contact input[type="text"],
.ab-contact input[type="email"],
.ab-contact input[type="tel"],
.ab-contact textarea,
.wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  padding: 14px 16px;
  font-size: .95rem;
  border: 1px solid var(--ab-line);
  border-radius: 4px;
  background: #FAF6F1;
  font-family: inherit;
  transition: all .2s ease;
}

.ab-contact input:focus, .ab-contact textarea:focus,
.wpcf7-form-control:not(.wpcf7-submit):focus {
  border-color: var(--ab-accent);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(237,111,42,.15);
}

.wpcf7-submit {
  display: inline-flex;
  padding: 18px 56px !important;
  background: var(--ab-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 6px 20px rgba(237,111,42,.30);
  min-width: 240px;
}
.wpcf7-submit:hover {
  background: var(--ab-accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(237,111,42,.45);
}

.l-header { background: #fff; border-bottom: 1px solid var(--ab-line); }

.c-gnav__list .menu-item > a {
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .88rem;
  color: var(--ab-text-primary);
  position: relative;
}
.c-gnav__list .menu-item > a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--ab-accent);
  transition: width .25s ease, left .25s ease;
}
.c-gnav__list .menu-item > a:hover { color: var(--ab-accent); }
.c-gnav__list .menu-item > a:hover::after { width: 100%; left: 0; }
.c-gnav__list .current-menu-item > a { color: var(--ab-accent); }
.c-gnav__list .current-menu-item > a::after { width: 100%; left: 0; }

.l-footer { background: var(--ab-brand-dark); color: rgba(255,255,255,.85); }
.l-footer a { color: #fff; }
.l-footer a:hover { color: var(--ab-accent); }

.ab-exhibition__hero img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 8px;
}

.ab-exhibition__meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  margin: 32px 0;
  font-size: .92rem;
  background: var(--ab-bg-soft);
  padding: 28px;
  border-radius: 8px;
  border-left: 4px solid var(--ab-accent);
}
.ab-exhibition__meta dt { color: var(--ab-text-secondary); font-weight: 700; }
.ab-exhibition__meta dd { margin: 0; color: var(--ab-text-primary); }

@media (max-width: 640px) {
  .ab-exhibition__meta { grid-template-columns: 1fr; gap: 4px 0; }
  .ab-exhibition__meta dt { font-size: .8rem; margin-top: 8px; }
}

body:has(.ab-front) .p-mainVisual,
body:has(.ab-front) .l-mainVisual,
body:has(.ab-front) .c-mainVisual,
body:has(.ab-front) .l-articleList,
body:has(.ab-front) .p-articleList,
body:has(.ab-front) .l-sidebar,
body:has(.ab-front) .p-postList,
body:has(.ab-front) .c-postList { display: none !important; }

body:has(.ab-front) .l-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ab-front {
  background: var(--ab-bg-base);
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 880px) {
  .ab-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ab-stats__item { border-right: none; border-bottom: 1px solid var(--ab-line); padding-bottom: 16px; }
  .ab-stats__item:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .ab-section { padding-block: 56px; }
  .ab-hero__title { letter-spacing: .08em; }
}

/* Append additional rules for inner pages */

/* Hide SWELL sidebar on pages with our hero */
body:has(.ab-pagehero) .l-sidebar,
body:has(.ab-pagehero) .p-mainVisual,
body:has(.ab-pagehero) .l-mainVisual,
body:has(.ab-pagehero) .c-mainVisual { display: none !important; }

body:has(.ab-pagehero) .l-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body:has(.ab-pagehero) .l-mainContent {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--ab-bg-base);
}

/* Remove SWELL default page title (we use our own hero) */
body:has(.ab-pagehero) .p-articleTitle,
body:has(.ab-pagehero) .c-pageTitle,
body:has(.ab-pagehero) .l-pageTitle,
body:has(.ab-pagehero) .p-articleHead { display: none !important; }

/* Article content within page */
.ab-page__article h2,
.l-mainContent h2:not(.ab-sechead__title):not(.ab-hero__title):not(.ab-pagehero__title) {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ab-text-primary);
  letter-spacing: .04em;
  margin: 48px 0 24px;
  border-left: 4px solid var(--ab-accent);
  padding-left: 16px;
}

.ab-page__article h3,
.l-mainContent h3:not(.ab-sechead__title):not(.ab-card__title):not(.ab-feature__title):not(.ab-person__name) {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--ab-text-primary);
}

.ab-page__article p {
  margin: 16px 0;
  color: var(--ab-text-secondary);
  line-height: 2;
}

/* Style the FAQ items that we now have content blocks */
.ab-faq__item .ab-faq__a { display: block; }

/* Page hero positioning fix */
.ab-pagehero { width: 100%; }
.ab-pagehero .ab-container { text-align: center; }

/* === SWELL h2 default style override === */
.ab-page__article .ab-sechead__title,
.l-mainContent .ab-sechead__title,
.ab-page__article h2.ab-sechead__title,
body .ab-sechead__title {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  color: var(--ab-text-primary) !important;
  font-size: clamp(1.6rem, 2.8vw, 2rem) !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.ab-pagehero__title {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  margin: 0 0 8px !important;
  box-shadow: none !important;
}

.ab-hero__title {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* SWELL h2 inside our sections - reset */
.ab-section .ab-sechead__title,
.ab-section h2 {
  background: transparent !important;
  border-left: none !important;
  border-bottom: none !important;
  padding-left: 0 !important;
  color: var(--ab-text-primary);
}

.ab-section--brand h2 { color: #fff !important; }

/* Card titles reset */
.ab-feature__title, .ab-card__title, .ab-person__name, .ab-concerns__text {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.ab-feature__title { color: var(--ab-text-primary) !important; }
.ab-card__title { color: var(--ab-text-primary) !important; }
.ab-person__name { color: var(--ab-text-primary) !important; }

/* FAQ Q area override */
.ab-faq__q {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}


.l-mainContent h2.ab-sechead__title,.post_content h2.ab-sechead__title,body .ab-sechead__title,.ab-sechead h2{background:transparent !important;background-color:transparent !important;background-image:none !important;border:none !important;border-top:none !important;border-bottom:none !important;box-shadow:none !important;padding:0 !important;margin:0 !important;text-align:center !important;color:var(--ab-text-primary) !important;font-size:clamp(1.6rem,2.8vw,2rem) !important;font-weight:700 !important;}.ab-section--brand h2.ab-sechead__title{color:#fff !important;}
.ab-sechead__title,.ab-sechead h2,h2.ab-sechead__title{outline:none !important;outline-width:0 !important;text-decoration:none !important;}.ab-sechead__title::before,.ab-sechead__title::after{display:none !important;content:none !important;}


/* === Image placeholders via Unsplash === */
.ab-front .ab-hero{background:linear-gradient(180deg,rgba(45,28,15,.45) 0%,rgba(45,28,15,.65) 100%),url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=2000') center/cover no-repeat !important;}

.ab-front .ab-person:nth-of-type(1) .ab-person__photo{background-image:url('https://images.unsplash.com/photo-1560250097-0b93528c311a?w=600');background-size:cover;background-position:center top;}
.ab-front .ab-person:nth-of-type(2) .ab-person__photo{background-image:url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=600');background-size:cover;background-position:center top;}

/* Default gallery placeholder images */
.ab-gallery__item:not([style*='background-image']):nth-of-type(1){background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.4)),url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800') center/cover no-repeat !important;}
.ab-gallery__item:not([style*='background-image']):nth-of-type(2){background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.4)),url('https://images.unsplash.com/photo-1591115765373-5207764f72e7?w=800') center/cover no-repeat !important;}
.ab-gallery__item:not([style*='background-image']):nth-of-type(3){background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.4)),url('https://images.unsplash.com/photo-1559223607-a43c990c692c?w=800') center/cover no-repeat !important;}
.ab-gallery__item:not([style*='background-image']):nth-of-type(4){background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.4)),url('https://images.unsplash.com/photo-1505373877841-8d25f7d46678?w=800') center/cover no-repeat !important;}
.ab-gallery__item:not([style*='background-image']):nth-of-type(5){background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.4)),url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=800') center/cover no-repeat !important;}
.ab-gallery__item:not([style*='background-image']):nth-of-type(6){background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.4)),url('https://images.unsplash.com/photo-1511578314322-379afb476865?w=800') center/cover no-repeat !important;}

/* CPT exhibition page hero (when no thumbnail) */
body.single-exhibition .ab-pagehero:not([style*='background']){background:linear-gradient(180deg,rgba(45,28,15,.55),rgba(45,28,15,.7)),url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=2000') center/cover no-repeat !important;}

/* Footer enhancements */
.l-footer{padding:64px 0 32px !important;background:var(--ab-brand-dark) !important;border-top:4px solid var(--ab-accent) !important;}
.l-footer .footer__copy,.l-footer .p-footerCopy{padding:24px 0 0 !important;border-top:1px solid rgba(255,255,255,.1) !important;margin-top:32px !important;text-align:center;font-size:.8rem;letter-spacing:.1em;}


/* === Hide SWELL default footer === */
.l-footer{display:none !important;}

/* === Custom Footer === */
.ab-footer{background:var(--ab-brand-dark);color:rgba(255,255,255,.85);border-top:4px solid var(--ab-accent);}
.ab-footer__top{padding:80px 0 48px;}
.ab-footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;}
@media(max-width:880px){.ab-footer__grid{grid-template-columns:1fr 1fr;gap:40px 24px;}}
@media(max-width:560px){.ab-footer__grid{grid-template-columns:1fr;}}

.ab-footer__brand{}
.ab-footer__logo{font-size:1.4rem;font-weight:700;color:#fff;margin:0 0 12px;letter-spacing:.06em;}
.ab-footer__tagline{font-size:.85rem;color:var(--ab-accent);margin:0 0 20px;letter-spacing:.04em;}
.ab-footer__address{font-style:normal;font-size:.82rem;line-height:2;color:rgba(255,255,255,.75);}

.ab-footer__nav{}
.ab-footer__navtitle{font-family:var(--ab-font-en);font-size:.78rem;font-weight:700;letter-spacing:.2em;color:var(--ab-accent);margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.15);}
.ab-footer__navlist{list-style:none;padding:0;margin:0;}
.ab-footer__navlist li{margin-bottom:10px;}
.ab-footer__navlist a{color:rgba(255,255,255,.85);font-size:.85rem;letter-spacing:.04em;display:inline-block;transition:color .2s ease,padding-left .2s ease;}
.ab-footer__navlist a:hover{color:var(--ab-accent);padding-left:6px;}

.ab-footer__bottom{padding:24px 0;background:rgba(0,0,0,.25);border-top:1px solid rgba(255,255,255,.08);}
.ab-footer__bottominner{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;}
.ab-footer__copy{margin:0;font-size:.78rem;letter-spacing:.06em;color:rgba(255,255,255,.6);}
.ab-footer__creditline{margin:0;font-family:var(--ab-font-en);font-size:.7rem;letter-spacing:.3em;color:var(--ab-accent);}
@media(max-width:560px){.ab-footer__bottominner{flex-direction:column;text-align:center;}}


/* === Hide service card icons (emoji) on TOP === */
.ab-card--numbered .ab-card__icon{display:none !important;}
.ab-card--numbered{padding-top:48px;}
.ab-card--numbered .ab-card__body{padding-top:16px;}


/* Fix: number badge clipped by overflow:hidden */
.ab-card--numbered{overflow:visible !important;margin-top:24px;}
.ab-grid--4{padding-top:8px;}


/* === Exhibition horizontal card layout (Figma準拠) === */
.ab-exh-list{display:flex;flex-direction:column;gap:32px;}
.ab-exh-card{display:grid;grid-template-columns:380px 1fr;background:#fff;border-radius:8px;overflow:hidden;box-shadow:var(--ab-shadow-sm);transition:transform .25s ease,box-shadow .25s ease;}
.ab-exh-card:hover{transform:translateY(-3px);box-shadow:var(--ab-shadow-md);}
@media(max-width:780px){.ab-exh-card{grid-template-columns:1fr;}}
.ab-exh-card__photo{aspect-ratio:1.2/1;background:#ddd center/cover no-repeat;}
.ab-exh-card__body{padding:32px 36px;display:flex;flex-direction:column;gap:14px;}
.ab-exh-card__tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.ab-exh-card__month{display:inline-flex;align-items:center;justify-content:center;background:var(--ab-accent);color:#fff;font-weight:800;font-size:.78rem;padding:4px 12px;border-radius:999px;letter-spacing:.04em;}
.ab-exh-card__cat{font-size:.78rem;color:var(--ab-text-secondary);font-weight:600;}
.ab-exh-card__plan{font-size:.72rem;background:var(--ab-brand-dark);color:#fff;padding:3px 10px;border-radius:4px;font-weight:700;letter-spacing:.04em;}
.ab-exh-card__title{font-size:1.35rem;font-weight:800;color:var(--ab-text-primary);margin:0;letter-spacing:.04em;line-height:1.4;}
.ab-exh-card__meta{display:flex;flex-wrap:wrap;gap:16px;font-size:.85rem;color:var(--ab-text-secondary);align-items:center;}
.ab-exh-card__meta span{display:inline-flex;align-items:center;gap:6px;}
.ab-exh-card__meta .sep{color:var(--ab-line);}
.ab-exh-card__desc{font-size:.88rem;color:var(--ab-text-secondary);line-height:1.85;margin:0;}
.ab-exh-card__stats{display:flex;flex-wrap:wrap;gap:16px;padding-top:14px;border-top:1px solid var(--ab-line);font-size:.82rem;color:var(--ab-text-secondary);font-weight:600;}
.ab-exh-card__stats span{letter-spacing:.04em;}
.ab-exh-card__more{margin-top:auto;font-size:.85rem;font-weight:700;color:var(--ab-accent);letter-spacing:.06em;display:inline-flex;align-items:center;gap:8px;}
.ab-exh-card__more::after{content:"→";transition:transform .2s ease;}
.ab-exh-card:hover .ab-exh-card__more::after{transform:translateX(4px);}


/* ============ Figma Hero Image (front-page) ============ */
body.home .ab-hero,
body:has(.ab-front) .ab-hero {
    background-image:
        linear-gradient(180deg, rgba(45,28,15,.55), rgba(45,28,15,.75)),
        url('/wp-content/uploads/2026/04/figma-asiabridge_TOP-IMG_6-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #fff !important;
}
body.home .ab-hero__title,
body:has(.ab-front) .ab-hero__title,
body.home .ab-hero__lead,
body:has(.ab-front) .ab-hero__lead,
body.home .ab-hero__en,
body:has(.ab-front) .ab-hero__en {
    color: #fff !important;
}
body:has(.ab-front) .ab-hero__en {
    border-color: #fff !important;
}

/* Page hero default backgrounds (Figma-style brown) */
.ab-pagehero {
    background:
        linear-gradient(180deg, rgba(45,28,15,.65), rgba(45,28,15,.85)),
        url('/wp-content/uploads/2026/04/figma-asiabridge_TOP-IMG_6-scaled.jpg') center/cover no-repeat !important;
}


/* ============ ASIABRIDGE Logo (header + footer) ============ */
:root {
    --ab-logo-url: url('/wp-content/uploads/2026/04/logo4.png');
}

/* SWELL header logo replacement: render logo image inside .c-headLogo a */
.c-headLogo a {
    display: inline-block !important;
    background: var(--ab-logo-url) center/contain no-repeat !important;
    width: 180px !important;
    height: 56px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}
.c-headLogo a > * { display: none !important; }
@media (max-width: 600px) {
    .c-headLogo a { width: 140px !important; height: 44px !important; }
}

/* Custom footer brand: replace text-only logo block with image */
.ab-footer__logo {
    display: block !important;
    background: var(--ab-logo-url) left center/contain no-repeat !important;
    width: 200px !important;
    height: 60px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    margin: 0 0 16px !important;
}


/* Footer logo: white card to ensure visibility (logo4 has white BG) */
.ab-footer__brand .ab-footer__logo {
    background-color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    width: 220px !important;
    height: 64px !important;
    box-sizing: border-box !important;
    background-image: url('/wp-content/uploads/2026/04/logo4.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 0 0 16px !important;
}


/* ============ Blog Cards (archive.php) ============ */
.ab-blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    margin-top: 32px;
}
@media (max-width: 900px) { .ab-blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ab-blog-list { grid-template-columns: 1fr; } }

.ab-blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.ab-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.ab-blog-card__link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}
.ab-blog-card__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f0e6d6 center/cover no-repeat;
}
.ab-blog-card__body { padding: 20px 22px; }
.ab-blog-card__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .8rem;
    margin-bottom: 12px;
}
.ab-blog-card__cat {
    display: inline-block;
    padding: 2px 10px;
    background: var(--ab-accent, #ED6F2A);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .05em;
}
.ab-blog-card__date { color: #888; }
.ab-blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 12px;
    color: var(--ab-brand-dark, #3A2A1F);
}
.ab-blog-card__excerpt {
    font-size: .85rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ab-blog-card__more {
    display: inline-block;
    font-size: .85rem;
    color: var(--ab-accent, #ED6F2A);
    font-weight: 600;
}

/* Single post body */
.ab-post h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ab-accent, #ED6F2A);
}
.ab-post h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--ab-brand-dark, #3A2A1F);
}
.ab-post p { line-height: 2; margin: 0 0 16px; }
.ab-post ul, .ab-post ol { line-height: 2; padding-left: 1.4em; margin: 0 0 16px; }


/* ============ Hero Slider (Swiper) ============ */
.ab-hero.ab-hero-slider {
    height: 80vh;
    min-height: 540px;
    max-height: 720px;
    padding: 0 !important;
    background: none !important;
}
.ab-hero-swiper { height: 100%; width: 100%; }
.ab-hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
}
.ab-hero-slide .ab-hero__inner {
    max-width: 1100px;
    width: 90%;
    text-align: center;
    color: #fff;
}
.ab-hero-slide .ab-hero__en,
.ab-hero-slide .ab-hero__title,
.ab-hero-slide .ab-hero__lead {
    color: #fff !important;
}
.ab-hero-slide .ab-hero__en {
    border-color: #fff !important;
}
.ab-hero-slide .ab-hero__title {
    font-size: clamp(1.6rem, 3.6vw, 2.8rem);
    font-weight: 700;
    margin: 24px 0 20px;
}
.ab-hero-slide .ab-hero__lead {
    line-height: 2;
    font-size: clamp(.9rem, 1.2vw, 1.05rem);
    margin: 0 auto 32px;
    max-width: 720px;
}

/* Swiper navigation */
.ab-hero-swiper .swiper-button-prev,
.ab-hero-swiper .swiper-button-next {
    color: #fff !important;
    background: rgba(0,0,0,.25);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.ab-hero-swiper .swiper-button-prev:hover,
.ab-hero-swiper .swiper-button-next:hover {
    background: rgba(0,0,0,.5);
}
.ab-hero-swiper .swiper-button-prev::after,
.ab-hero-swiper .swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* Swiper pagination dots */
.ab-hero-swiper .swiper-pagination {
    bottom: 24px !important;
}
.ab-hero-swiper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255,255,255,.5) !important;
    opacity: 1 !important;
    margin: 0 6px !important;
    transition: all .3s;
}
.ab-hero-swiper .swiper-pagination-bullet-active {
    background: var(--ab-accent, #ED6F2A) !important;
    width: 32px !important;
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    .ab-hero.ab-hero-slider {
        height: auto;
        min-height: 480px;
    }
    .ab-hero-swiper .swiper-button-prev,
    .ab-hero-swiper .swiper-button-next {
        display: none !important;
    }
}

/* Disable old single-image body:has hero rule for slider pages (overrides) */
body:has(.ab-front) .ab-hero.ab-hero-slider {
    background-image: none !important;
}


/* Slider position fix - ensure pagination is at bottom */
.ab-hero-swiper {
    position: relative !important;
}
.ab-hero-swiper .swiper-pagination.ab-hero-pagination {
    position: absolute !important;
    bottom: 24px !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    z-index: 10 !important;
    text-align: center;
}
/* SWELL might inject top-pagination dots; ensure swiper container has padding only at slide level */


/* ============ Hide SWELL post slider above MV ============ */
.p-postSlider,
.p-mainVisual__slider,
[class*="p-postSlider"]:not(.ab-hero-swiper):not(.ab-hero-swiper *) {
    display: none !important;
}

/* ============ Fix Swiper navigation button shape ============ */
.ab-hero-swiper .swiper-button-prev,
.ab-hero-swiper .swiper-button-next {
    color: #fff !important;
    background-color: rgba(0,0,0,.4) !important;
    background-image: none !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: -24px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background-color .2s !important;
}
.ab-hero-swiper .swiper-button-prev:hover,
.ab-hero-swiper .swiper-button-next:hover {
    background-color: rgba(0,0,0,.65) !important;
}
.ab-hero-swiper .swiper-button-prev::after {
    content: "‹" !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-right: 2px;
}
.ab-hero-swiper .swiper-button-next::after {
    content: "›" !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-left: 2px;
}
.ab-hero-swiper .swiper-button-prev,
.ab-hero-swiper .swiper-button-next {
    z-index: 11 !important;
}
.ab-hero-swiper .swiper-button-prev { left: 24px !important; right: auto !important; }
.ab-hero-swiper .swiper-button-next { right: 24px !important; left: auto !important; }


/* ============ Subtle Fade-Up Animation ============ */
.ab-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.ab-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger child animations for grid items */
.ab-grid > .ab-fade-up:nth-child(2),
.ab-blog-list > .ab-fade-up:nth-child(2),
.ab-exh-list > .ab-fade-up:nth-child(2) {
    transition-delay: 0.08s;
}
.ab-grid > .ab-fade-up:nth-child(3),
.ab-blog-list > .ab-fade-up:nth-child(3),
.ab-exh-list > .ab-fade-up:nth-child(3) {
    transition-delay: 0.16s;
}
.ab-grid > .ab-fade-up:nth-child(4),
.ab-blog-list > .ab-fade-up:nth-child(4),
.ab-exh-list > .ab-fade-up:nth-child(4) {
    transition-delay: 0.24s;
}
.ab-grid > .ab-fade-up:nth-child(5),
.ab-blog-list > .ab-fade-up:nth-child(5),
.ab-exh-list > .ab-fade-up:nth-child(5) {
    transition-delay: 0.32s;
}
.ab-grid > .ab-fade-up:nth-child(6),
.ab-blog-list > .ab-fade-up:nth-child(6),
.ab-exh-list > .ab-fade-up:nth-child(6) {
    transition-delay: 0.4s;
}
/* Stats: stagger numbers individually */
.ab-stats > .ab-fade-up:nth-child(2) { transition-delay: 0.1s; }
.ab-stats > .ab-fade-up:nth-child(3) { transition-delay: 0.2s; }
.ab-stats > .ab-fade-up:nth-child(4) { transition-delay: 0.3s; }

/* Don't animate hero slider (already animated by Swiper) */
.ab-hero-slide .ab-fade-up,
.ab-hero .ab-fade-up,
.ab-pagehero .ab-fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ab-fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
