/* Envoys Club partner landing (partners-ja.html, Japanese restaurants and agencies).
 * Shared system lives in landing-shared.css. The header stays an ordinary bar. */

body.partner-page {
  font-family: "Noto Sans JP", "Envoys SUIT", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}
html:lang(ja) body.partner-page * { word-break: auto-phrase !important; }
.partner-shell { display: block; }

/* ── Hero ────────────────────────────────────────── */
.p-hero .c-hero-frame {
  background:
    linear-gradient(180deg, rgba(25,26,24,.46) 0%, rgba(25,26,24,.62) 70%, rgba(25,26,24,.92) 100%),
    linear-gradient(90deg, rgba(25,26,24,.8) 0%, rgba(25,26,24,.62) 45%, rgba(25,26,24,.46) 100%),
    url("assets/hero/dining-counter.webp") 70% center / cover no-repeat;
  background-color: var(--ink);
}
.p-hero h1 { font-size: clamp(38px, 6.4vw, 92px); line-height: 1.36; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 28px; }
.p-hero h1 span { display: block; }
.p-hero .hero-desc { max-width: 30em; }
.p-hero .hero-wrap { padding-bottom: 72px; }
.p-note {
  position: relative; width: min(560px, 100%); margin: 0 0 56px; display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border-radius: 18px; text-align: left;
  background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
@media (min-width: 1180px) { .p-note { position: absolute; right: max(var(--gutter), calc((100% - var(--content-max)) / 2)); bottom: 72px; margin: 0; width: 420px; } }
.p-note-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.p-note-mark svg { width: 16px; height: 16px; stroke: currentColor; }
.p-note-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.p-note strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.45; }
.p-note p:last-child { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .p-note { animation: note-in .9s var(--ease) .55s both; }
  @keyframes note-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* ── Who does what (replaces the creator page's problem panels) ── */
.partner-page .c-head h2 { letter-spacing: -0.02em; line-height: 1.34; }
.p-split { padding: 128px 0 120px; background: var(--canvas); }
.p-split .c-head h2 { font-size: clamp(28px, 4vw, 48px); max-width: 18em; }
.split-table { width: 100%; margin-top: 72px; border-collapse: collapse; border-top: 2px solid var(--ink); }
.split-table th, .split-table td { text-align: left; vertical-align: top; padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); }
.split-table thead th { padding: 20px 28px 20px 0; }
.split-table .who { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.split-table .who-us { background: var(--orange); color: var(--ink); }
.split-table .who-shop { background: var(--ink); color: #fff; }
.split-table tbody th { width: 30%; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.split-table tbody td { width: 35%; font-size: clamp(18px, 1.9vw, 24px); font-weight: 700; line-height: 1.55; letter-spacing: -0.01em; }
.split-note { margin-top: 28px; max-width: 40em; font-size: 16px; line-height: 1.8; color: var(--muted); }
@media (max-width: 768px) {
  .p-split { padding: 88px 0 80px; }
  .split-table, .split-table tbody, .split-table tr, .split-table th, .split-table td { display: block; width: 100%; }
  .split-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .split-table { margin-top: 48px; }
  .split-table tbody tr { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
  .split-table th, .split-table td { padding: 0; border: 0; }
  .split-table tbody th { width: 100%; margin-bottom: 14px; }
  .split-table tbody td { width: 100%; padding: 10px 0 0; }
  .split-table tbody td::before { content: attr(data-who); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; color: var(--orange-ink); }
}

/* ── Product stage on a warm light surface ───────── */
.p-stage { background: var(--sand); color: var(--ink); }
.p-stage .c-kicker { color: var(--orange-ink); }
.p-stage .c-lead, .p-stage .stage-resp, .p-stage .stage-inline figcaption, .p-stage .stage-device-note { color: var(--muted); }
.p-stage .stage-num { color: var(--orange-ink); letter-spacing: .02em; }
.p-stage .stage-step { border-top-color: var(--line); }
.p-stage .c-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.p-stage .stage-pain { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; letter-spacing: -0.01em; }

.p-stage .stage-device { --stage-glow: rgba(255,77,0,.3); }
.p-stage .stage-inline .ui { box-shadow: 0 30px 60px -30px rgba(25,26,24,.35); border: 1px solid var(--line); }
.p-stage .stage-device-screen .stage-screen { box-shadow: 0 44px 90px -34px rgba(25,26,24,.5), 0 0 0 1px rgba(25,26,24,.08); }
.stage-role { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--orange); font-size: 14px; line-height: 1.7; color: var(--ink); max-width: 32em; }
.stage.is-live.stage-flip { grid-template-columns: 380px minmax(0, 1fr); }
.stage.is-live.stage-flip .stage-device-wrap { order: -1; }

/* sample UI parts specific to the partner scenes */
.ui-photo-tall { height: 168px; }
.ui-cand { display: grid; gap: 2px; }
.ui-cand strong { font-size: 14px; font-weight: 800; line-height: 1.5; }
.ui-cand span { font-size: 12.5px; color: var(--muted); }
.ui-cal { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; align-items: center; }
.ui-cal b { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.ui-cal em { font-style: normal; font-size: 11.5px; line-height: 1.4; color: var(--muted); font-weight: 700; }
.ui-cal { gap: 8px 6px; }
.ui-cal i { display: block; height: 58px; border-radius: 12px; background: #f2efe9; }
.ui-cal i.is-on { background: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 18px; }
.stage-device-screen .stage-screen > .ui-confirm { margin-top: 14px; }
.ui-confirm { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ui-confirm span:first-child { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 12px; }
.ui-film { align-items: flex-end; justify-content: flex-start; }
.ui-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.9); }
.ui-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* ── Journey: spec-sheet columns ─────────────────── */
.p-flow { padding: 128px 0; background: var(--canvas); }
.flow-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 2px solid var(--ink); }
.flow-card { display: flex; flex-direction: column; padding: 28px 28px 8px 0; }
.flow-card + .flow-card { padding-left: 28px; border-left: 1px solid var(--line); }
.flow-no { order: -1; font-size: clamp(56px, 6vw, 88px); line-height: 1.45; font-weight: 800; letter-spacing: -0.04em; color: var(--orange-ink); }
.flow-art { order: 0; margin-top: 24px; aspect-ratio: 5 / 3.2; border-radius: 22px; padding: 18px; display: grid; place-items: center; background: var(--sand); transition: transform .5s var(--ease); }
.flow-card:hover .flow-art { transform: translateY(-6px); }
.flow-art svg { width: 100%; height: 100%; }
.flow-card h3 { margin-top: 22px; font-size: 21px; line-height: 1.45; font-weight: 800; letter-spacing: -0.01em; }
.flow-card p { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────── */
.p-faq { padding: 128px 0; background: var(--canvas); }
.p-faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.p-faq-head { position: sticky; top: 120px; }
.partner-faq-list { border-top: 1px solid var(--ink); }
.partner-faq-list details { border-bottom: 1px solid var(--line); }
.partner-faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 4px; cursor: pointer; font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; line-height: 1.55; }
.partner-faq-list summary::-webkit-details-marker { display: none; }
.partner-faq-list summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191a18' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease), background-color .25s ease; }
.partner-faq-list details[open] summary::after { transform: rotate(180deg); background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.partner-faq-list details p { padding: 0 56px 30px 4px; font-size: 15.5px; line-height: 1.9; color: var(--muted); }

/* ── Closing ─────────────────────────────────────── */
.partner-page .cta-title { font-size: clamp(30px, 6vw, 84px); line-height: 1.4; letter-spacing: -0.03em; max-width: 13em; }
.partner-page .cta-title span { display: block; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1080px) {
  .flow-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow-card:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
}
@media (max-width: 959px) {
  .p-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .p-faq-head { position: static; }
  .p-flow, .p-faq { padding-top: 88px; padding-bottom: 96px; }
}
@media (max-width: 768px) {
  .p-note { margin-bottom: 32px; padding: 14px 16px; }
  .p-hero h1 { margin-bottom: 20px; }
  .p-hero .c-eyebrow { flex-direction: column; gap: 10px; }
  .flow-cards { grid-template-columns: minmax(0, 1fr); }
  .flow-card, .flow-card + .flow-card { padding: 28px 0 8px; border-left: 0; margin-top: 0; }
  .flow-card + .flow-card { border-top: 1px solid var(--line); }
  .partner-faq-list details p { padding-right: 8px; }
}
@media print {
  .scroll-progress, .site-header, .mobile-menu, .stage-device-wrap { display: none !important; }
  [data-reveal], .pain-card { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .p-stage { background: #fff; color: #000; }
}

.nw { white-space: nowrap; }
#partner-criteria .c-head h2 { font-size: clamp(30px, 3.6vw, 48px); }

/* Japanese display face: Kaisei Tokumin (SIL OFL, Google Fonts) at 700, lighter than its 800. */
.partner-page { --font-display: "Kaisei Tokumin", "Noto Sans JP", serif; --display-weight: 700; }
.partner-page .p-hero h1, .partner-page .flow-card h3, .partner-page .split-table tbody th { font-family: var(--font-display); font-weight: var(--display-weight); }
.partner-page .hero-title, .partner-page .c-head h2, .partner-page .pain-hook, .partner-page .stage-pain, .partner-page .cta-title, .partner-page .criteria-list li { letter-spacing: 0; }

/* ── B2B sections (D-078) ─────────────────────────── */
.p-hero .c-btn-ghost { color: #fff; }
.p-problems { padding: 128px 0 112px; background: var(--canvas); }
.problem-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 2px solid var(--ink); }
.problem-list li { padding: 32px 28px 8px 0; }
.problem-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.problem-no { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--orange-ink); }
.problem-list h3 { margin-top: 12px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(21px, 2vw, 26px); line-height: 1.5; }
.problem-list p { margin-top: 12px; font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.market-note { margin-top: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 8px 40px; padding: 36px 40px; border-radius: 24px; background: var(--ink); color: #fff; }
.market-figure { grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 1; color: var(--on-photo-accent); white-space: nowrap; }
.market-figure span { font-size: .42em; margin: 0 .08em; color: #fff; }
.market-text { font-size: 17px; line-height: 1.7; font-weight: 700; }
.market-source { font-size: 12.5px; color: #b9bcb5; }

.p-service { padding: 120px 0; background: var(--sand); }
.service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.p-service .flow-art { background: var(--peach); }

.p-reasons { padding: 120px 0; }
.reason-list { margin-top: 48px; display: grid; }
.reason-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid rgba(25,26,24,.16); }
.reason-list li:last-child { border-bottom: 1px solid rgba(25,26,24,.16); }
.reason-list i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.reason-list svg { width: 22px; height: 22px; stroke: currentColor; }
.reason-list h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.reason-list p { margin-top: 8px; max-width: 46em; font-size: 16px; line-height: 1.85; color: var(--muted); }

.p-case { padding: 128px 0; background: var(--canvas); }
.case-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.case-grid .c-head { position: sticky; top: 120px; }
.case-label { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1.5px dashed var(--orange-ink); border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--orange-ink); }
.case-timeline { position: relative; display: grid; gap: 0; border-left: 2px solid var(--line); }
.case-timeline li { position: relative; padding: 0 0 36px 32px; }
.case-timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--canvas); }
.case-when { display: block; font-size: 14px; font-weight: 800; color: var(--orange-ink); }
.case-timeline p { margin-top: 6px; font-size: 16.5px; line-height: 1.85; }

.p-pricing { padding: 112px 0; background: var(--sand); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.pricing-box { padding: 36px 40px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.pricing-kicker { font-size: 13px; font-weight: 800; color: var(--orange-ink); letter-spacing: .04em; }
.pricing-box ul { margin-top: 14px; display: grid; }
.pricing-box li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.pricing-note { margin-top: 18px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }

.step-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; counter-reset: step; }
.step-row li { position: relative; padding: 28px 24px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.step-row li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: translateY(-50%) rotate(45deg); }
.step-no { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--orange-ink); }
.step-row h3 { margin-top: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; line-height: 1.45; }
.step-row p { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--muted); }

.p-contact { padding: 128px 0; background: var(--ink); color: #fff; }
.p-contact .c-lead { color: var(--on-dark-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-dl { margin-top: 32px; background: #fff; color: var(--ink); }
.contact-dl:hover { background: var(--sand); }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding: 36px; border-radius: 24px; background: #fff; color: var(--ink); }
.inquiry-form .field { display: grid; gap: 8px; }
.inquiry-form .field-wide { grid-column: 1 / -1; }
.inquiry-form label { font-size: 14px; font-weight: 700; }
.inquiry-form label b { margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--peach); color: var(--orange-ink); font-size: 11.5px; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: 13px 14px; border: 1.5px solid rgba(25,26,24,.22); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--orange-ink); box-shadow: 0 0 0 3px rgba(255,77,0,.18); }
.inquiry-form .field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-form .consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--muted); }
.inquiry-form .consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 0; accent-color: var(--orange-ink); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions button:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 14px; font-weight: 700; color: var(--muted); }
.form-status.is-error { color: #b42318; }
.form-done { padding: 28px; border-radius: 16px; background: var(--peach); font-size: 17px; font-weight: 700; line-height: 1.7; }
.inquiry-form [hidden] { display: none !important; }

@media (max-width: 1080px) {
  .step-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-row li:nth-child(2)::after { display: none; }
}
@media (max-width: 959px) {
  .case-grid, .pricing-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case-grid .c-head { position: static; }
  .problem-list, .service-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .problem-list li, .problem-list li + li { padding: 28px 0 8px; border-left: 0; }
  .problem-list li + li { border-top: 1px solid var(--line); }
  .market-note { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .market-figure { grid-row: auto; }
  .p-problems, .p-service, .p-reasons, .p-case, .p-pricing, .p-contact { padding: 88px 0; }
}
@media (max-width: 640px) {
  .step-row { grid-template-columns: minmax(0, 1fr); }
  .step-row li::after { display: none; }
  .inquiry-form { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .pricing-box { padding: 28px 22px; }
}
