/* ============================================================
   海外投資協会 — Front-page LP (built from core blocks)
   Styles target custom classNames applied to core blocks so the
   whole page stays editable in the block editor.
   ============================================================ */

/* ---- Section frame ---- */
.lp-sec { padding: 60px 0; }
.lp-sec.is-cool { background: var(--surface-cool); }
.lp-sec.is-white { background: var(--white); }
.lp-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 22px; }
.lp-wrap.is-wide { max-width: var(--container-max); }

/* ---- Section header ---- */
.lp-serial { text-align: center; font-family: var(--font-serif); font-weight: 700; font-size: 48px; color: var(--gold-600); line-height: 1; margin: 0 0 10px; letter-spacing: 0.06em; }
.lp-h { text-align: center; font-family: var(--font-serif); font-weight: 600; font-size: 30px; color: var(--ink-900); position: relative; padding-bottom: 16px; margin: 0 0 32px; line-height: 1.4; }
.lp-h::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 48px; height: 3px; background: var(--gold-500); border-radius: 2px; }

/* ---- Generic card ---- */
.lp-card { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-sm); height: 100%; }
.lp-card.t-navy { border-top: 3px solid var(--navy-600); }
.lp-card.t-gold { border-top: 3px solid var(--gold-600); }
.lp-card.t-teal { border-top: 3px solid var(--teal-600); }
.lp-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--navy-050); display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.lp-icon.tint-gold { background: var(--gold-100); }
.lp-icon.tint-teal { background: var(--teal-050); }
.lp-icon img { width: 28px; height: 28px; object-fit: contain; }

/* ---- Check list ---- */
.lp-check { list-style: none; margin: 4px 0 0; padding: 0; }
.lp-check li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 14px; color: var(--ink-700); line-height: 1.6; }
.lp-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--navy-600); font-weight: 900; font-size: 14px; }
.lp-check.on-navy li { color: rgba(255,255,255,0.9); }
.lp-check.on-navy li::before { color: var(--gold-400); }

/* ============================================================
   HERO
   ============================================================ */
.lp-hero { position: relative; overflow: hidden; background: var(--navy-800); padding: 0 !important; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background-image: url(../img/hero.webp?v=3); background-size: cover; background-position: center right; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,34,54,0.92) 0%, rgba(20,49,77,0.62) 38%, rgba(20,49,77,0.20) 64%, rgba(20,49,77,0.05) 100%); }
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero__grid { max-width: var(--container-max); margin: 0 auto; padding: 62px 22px 68px; display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 44px; align-items: center; }
.lp-hero__title { font-family: var(--font-serif); font-weight: 700; font-size: 46px; line-height: 1.42; letter-spacing: 0.03em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.28); margin: 0; }
.lp-hero__lead { font-size: 16px; line-height: 1.8; color: var(--text-on-navy-muted); margin: 20px 0 28px; }

.lp-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }
.lp-entry { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 15px 16px; border-radius: var(--radius-md); color: #fff; box-shadow: var(--shadow-md); background: linear-gradient(180deg, var(--navy-500), var(--navy-700)); border: 1px solid var(--navy-700); transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out); }
.lp-entry.is-gold { background: linear-gradient(180deg, var(--gold-500), var(--gold-700)); border-color: var(--gold-700); color: var(--navy-900); }
.lp-entry:hover { filter: brightness(0.95); transform: translateY(-1px); }
.lp-entry__ic { flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.92); display: inline-flex; align-items: center; justify-content: center; }
.lp-entry__ic img { width: 24px; height: 24px; object-fit: contain; }
.lp-entry .lp-entry__t { flex: 1; font-weight: 700; font-size: 14.5px; line-height: 1.5; color: #fff; }
.lp-entry.is-gold .lp-entry__t { color: var(--navy-900); }

.lp-ai { margin-top: 14px; max-width: 560px; display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 13px 18px; border-radius: var(--radius-md); background: rgba(255,255,255,0.95); box-shadow: var(--shadow-md); }
.lp-ai img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.lp-ai__t { flex: 1; }
.lp-ai__t b { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink-900); }
.lp-ai__t span { display: block; font-size: 14px; color: var(--ink-500); }
/* AI診断バナー — ヒーロー右カラムの主役ビジュアル（正方形画像をカラム幅いっぱい・縦中央寄せ -> /sindan.html） */
.lp-ai-banner { display: block; width: 100%; max-width: 420px; justify-self: center; align-self: center; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--gold-400); transition: transform .18s ease, box-shadow .18s ease; }
.lp-ai-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(20,49,77,0.22); }
.lp-ai-banner img { display: block; width: 100%; height: auto; }

.lp-panel { background: rgba(255,255,255,0.98); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 26px 22px 22px; margin-top: 24px; border-top: 3px solid var(--gold-500); }
.lp-panel__h { margin: 0 0 18px; text-align: center; font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--navy-700); letter-spacing: 0.03em; }
.lp-mean { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #ffffff 0%, var(--navy-050) 100%); border: 1px solid var(--navy-100); margin-bottom: 12px; box-shadow: var(--shadow-xs); text-decoration: none; color: inherit; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.lp-mean:last-child { margin-bottom: 0; }
.lp-mean:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy-300); }
/* clickable affordance — chevron at the right edge (links to the matching content page) */
a.lp-mean::after { content: ""; flex: none; width: 9px; height: 9px; border-top: 2px solid var(--navy-300); border-right: 2px solid var(--navy-300); transform: rotate(45deg); transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
a.lp-mean:hover::after { border-color: var(--gold-600); transform: rotate(45deg) translate(2px, -2px); }
a.lp-mean:hover b { color: var(--gold-700); }
/* icon plate — 2x size, perfectly centered */
.lp-mean__ic { flex: none; width: 66px; height: 66px; border-radius: var(--radius-md); background: linear-gradient(160deg, var(--navy-050) 0%, #ffffff 100%); border: 1px solid var(--navy-200); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; }
.lp-mean__ic img { width: 46px; height: 46px; object-fit: contain; display: block; margin: 0; }
/* text — larger */
.lp-mean > span:last-child { flex: 1; min-width: 0; }
.lp-mean b { display: block; font-weight: 700; font-size: 16px; color: var(--navy-700); margin-bottom: 3px; letter-spacing: 0.01em; }
.lp-mean > span:last-child > span { display: block; font-size: 14px; color: var(--ink-500); line-height: 1.55; }

/* ============================================================
   Generic grids / panels reused across sections
   ============================================================ */
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

/* stat blocks */
.lp-stat { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-align: center; align-items: center; color: #fff; }
.lp-stat.s-navy { background: linear-gradient(165deg, var(--navy-600), var(--navy-800)); }
.lp-stat.s-gold { background: linear-gradient(165deg, var(--gold-500), var(--gold-700)); }
.lp-stat.s-teal { background: linear-gradient(165deg, var(--teal-500), var(--teal-700)); }
.lp-stat .lbl { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255,255,255,0.9); }
.lp-stat .val { font-family: var(--font-serif); font-weight: 900; font-size: var(--fs-stat); color: #fff; line-height: 1; }
.lp-stat .cap { font-size: 14px; color: rgba(255,255,255,0.78); }

/* navy bridge / dark panel */
.lp-dark { background: var(--navy-700); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); color: #fff; }
.lp-dark .em { font-family: var(--font-serif); font-weight: 700; font-size: 20px; line-height: 1.6; color: #fff; }
.lp-dark .em b { color: var(--gold-400); font-weight: 700; }
.lp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.lp-badge { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: 0.03em; color: #fff; background: var(--gold-600); padding: 5px 11px; border-radius: var(--radius-pill); }

/* persona */
.lp-persona { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; }
.lp-persona__strip { padding: 13px 18px; text-align: center; font-family: var(--font-serif); font-weight: 700; font-size: 18px; }
.lp-persona__strip.p-navy { background: var(--navy-050); color: var(--navy-700); border-bottom: 2px solid var(--navy-600); }
.lp-persona__strip.p-gold { background: var(--gold-100); color: var(--gold-700); border-bottom: 2px solid var(--gold-600); }
.lp-persona__strip.p-teal { background: var(--teal-100); color: var(--teal-700); border-bottom: 2px solid var(--teal-600); }
.lp-persona__img { height: 118px; background: var(--surface-cool); display: flex; align-items: center; justify-content: center; }
.lp-persona__img img { height: 92px; object-fit: contain; margin: 0; }
.lp-persona__body { padding: 16px 18px; }

/* feature card */
.lp-feat { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-sm); height: 100%; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.lp-feat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lp-feat.t-navy { border-top: 3px solid var(--navy-600); }
.lp-feat.t-gold { border-top: 3px solid var(--gold-600); }
.lp-feat.t-teal { border-top: 3px solid var(--teal-600); }
.lp-feat__hd { display: flex; align-items: center; gap: 12px; }
.lp-feat__hd h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-h3); line-height: 1.35; }
.lp-feat.t-navy .lp-feat__hd h3 { color: var(--navy-600); }
.lp-feat.t-gold .lp-feat__hd h3 { color: var(--gold-600); }
.lp-feat.t-teal .lp-feat__hd h3 { color: var(--teal-600); }
.lp-feat p { font-size: 14px; line-height: 1.7; color: var(--text-body); margin: 0; }

/* process steps */
.lp-step { background: var(--surface-cool); border: 1px solid var(--line-200); border-radius: var(--radius-md); padding: 16px 14px; height: 100%; }
.lp-step__n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.lp-step b { display: block; font-weight: 700; font-size: 14px; color: var(--navy-700); margin-bottom: 5px; }
.lp-step span { display: block; font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* flowing 4-step process (1 → 4) */
.lp-flow { display: flex; align-items: stretch; gap: 6px; width: 100%; }
.lp-fstep { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(180deg, var(--white), var(--navy-050)); border: 1px solid var(--navy-100); border-radius: var(--radius-lg); padding: 22px 12px 20px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.lp-fstep:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lp-fstep__n { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, var(--navy-500), var(--navy-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 22px; margin-bottom: 14px; box-shadow: 0 0 0 5px var(--navy-050), 0 5px 12px rgba(16,40,62,0.28); }
.lp-fstep b { display: block; font-weight: 700; font-size: 17px; color: var(--navy-700); margin-bottom: 7px; line-height: 1.45; }
.lp-fstep span { display: block; font-size: 14.5px; color: var(--ink-600); line-height: 1.7; }
.lp-farrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: var(--gold-500); }
.lp-farrow svg { width: 24px; height: 24px; }
@media (max-width: 920px) {
  .lp-flow { flex-direction: column; gap: 2px; }
  .lp-farrow { transform: rotate(90deg); padding: 4px 0; }
}

.lp-criteria { background: var(--surface-cool); border-radius: var(--radius-lg); padding: 22px; margin-top: 26px; }
.lp-crit { text-align: center; }
.lp-crit__ic { width: 104px; height: 104px; margin: 0 auto 12px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--navy-200); display: flex; align-items: center; justify-content: center; }
.lp-crit__ic img { width: 60px; height: 60px; object-fit: contain; }
.lp-crit span { font-size: 18px; color: var(--ink-700); line-height: 1.55; font-weight: 600; }
.lp-criteria__more { text-align: center; margin-top: 22px; }
.lp-criteria__more a { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--navy-700); background: var(--white); border: 1px solid var(--navy-300); border-radius: var(--radius-pill); padding: 12px 26px; text-decoration: none; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.lp-criteria__more a:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.lp-criteria__more .lp-arrow { transition: transform var(--dur) var(--ease-out); }
.lp-criteria__more a:hover .lp-arrow { transform: translateX(3px); }

/* cases & voices */
.lp-case { border-radius: var(--radius-md); padding: 14px; border: 1px solid var(--line-200); }
.lp-case.c-navy { background: var(--navy-050); border-color: var(--navy-100); }
.lp-case.c-gold { background: var(--gold-100); border-color: var(--gold-200); }
.lp-case.c-teal { background: var(--teal-050); border-color: var(--teal-100); }
.lp-case .tag { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.lp-case.c-navy .tag { color: var(--navy-700); }
.lp-case.c-gold .tag { color: var(--gold-700); }
.lp-case.c-teal .tag { color: var(--teal-700); }
.lp-case .ttl { font-family: var(--font-serif); font-weight: 700; font-size: 14px; color: var(--ink-900); line-height: 1.5; margin-bottom: 8px; }
.lp-case .bd { font-size: 14px; color: var(--ink-700); line-height: 1.7; }
.lp-voice { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.lp-voice img { flex: none; width: 40px; height: 40px; object-fit: contain; margin: 0; }
.lp-voice .v { font-size: 14px; color: var(--ink-700); line-height: 1.7; }
.lp-voice .a { font-size: 14px; color: var(--ink-500); margin-top: 5px; }

/* CTA cards */
.lp-cta-card { border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; height: 100%; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.lp-cta-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lp-cta-card.c-teal { background: var(--teal-050); border: 1px solid var(--teal-100); }
.lp-cta-card.c-navy { background: var(--navy-050); border: 1px solid var(--navy-100); }
.lp-cta-card.c-gold { background: var(--gold-100); border: 1px solid var(--gold-200); }
.lp-cta-card__hd { display: flex; align-items: center; gap: 12px; }
.lp-cta-card__hd img { width: 40px; height: 40px; object-fit: contain; margin: 0; }
.lp-cta-card__hd b { font-family: var(--font-serif); font-weight: 700; font-size: 16.5px; }
.lp-cta-card.c-teal .lp-cta-card__hd b { color: var(--teal-700); }
.lp-cta-card.c-navy .lp-cta-card__hd b { color: var(--navy-700); }
.lp-cta-card.c-gold .lp-cta-card__hd b { color: var(--gold-700); }
.lp-cta-card p { font-size: 14px; color: var(--ink-700); line-height: 1.7; margin: 0; flex: 1; }

/* button styling for LP (core/button) — self-contained so it renders without WP core block CSS */
.lp-btn-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.lp-btn { display: inline-block; }
.lp-btn .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1.2; border-radius: var(--radius-md); font-family: var(--font-sans); font-weight: 700; font-size: 15.5px; letter-spacing: 0.02em; padding: 14px 30px; border: 1px solid transparent; box-shadow: var(--shadow-sm); cursor: pointer; transition: filter var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.lp-btn .wp-block-button__link:hover { filter: brightness(0.93); box-shadow: var(--shadow-md); }
.lp-btn.is-navy .wp-block-button__link { background: linear-gradient(180deg, var(--navy-500), var(--navy-700)); color: #fff; border-color: var(--navy-700); }
.lp-btn.is-gold .wp-block-button__link { background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); border-color: var(--gold-700); }
.lp-btn.is-teal .wp-block-button__link { background: linear-gradient(180deg, var(--teal-500), var(--teal-700)); color: #fff; border-color: var(--teal-700); }
.lp-btn.is-line .wp-block-button__link { background: var(--line-green); color: #fff; border-color: var(--line-green-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .lp-hero__grid { grid-template-columns: 1fr; }
  .lp-grid-2, .lp-grid-3, .lp-grid-4 { grid-template-columns: 1fr; }
  .lp-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .lp-hero__title { font-size: 34px; }
  /* 1カラム化したら AI診断バナーは中央寄せで幅を抑える */
  .lp-ai-banner { max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .lp-entries { grid-template-columns: 1fr; }
  .lp-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
