/* Brand 036: scoped to MTLink; shared cards use their own accents. */
body.mtlink-theme{--navy:#286b50;--navy2:#20523f;--ink:#213f32;--muted:#506b5e;--yellow:#286b50;--aqua:#286b50;--pale:#f0f8f3;--line:#cfdfd5;color:var(--ink)}
.mtlink-theme .mtlink-brand{display:flex;align-items:center;gap:12px;color:#20523f;font-family:"Segoe UI",Arial,sans-serif;font-size:1.85rem;font-weight:800;letter-spacing:-.065em;line-height:1.05}
.mtlink-theme .mtlink-brand small{display:block;font-size:.55rem;letter-spacing:.17em;color:#527b65;margin-top:5px}
.mtlink-theme .mtlink-brand img{flex:none;border-radius:12px}
.mtlink-theme .hero,.mtlink-theme .works-page-hero{background:linear-gradient(115deg,#d5efdf,#edf8ef);color:#214b39}
.mtlink-theme .hero:after,.mtlink-theme .hero:before{opacity:.12}
.mtlink-theme .hero h1,.mtlink-theme .hero-intro,.mtlink-theme .works-page-lead,.mtlink-theme .hero-eyebrow,.mtlink-theme .works-page-hero .eyebrow{color:#234c39}
.mtlink-theme .pill-light{background:#fff9;border-color:#a8cfb8;color:#285a43}
.mtlink-theme .hero .btn-yellow,.mtlink-theme .btn-primary,.mtlink-theme .nav-cta{background:#286b50;color:#fff;border-color:#286b50;box-shadow:none}
.mtlink-theme .hero .btn-ghost,.mtlink-theme .btn-outline{color:#285a43;border-color:#9abcaa;background:#fff}
.mtlink-theme .btn-primary:hover,.mtlink-theme .nav-cta:hover{background:#20523f}
.mtlink-theme .tint,.mtlink-theme .works-contact{background:#eff8f2}
.mtlink-theme .eyebrow,.mtlink-theme .service-num,.mtlink-theme .text-link,.mtlink-theme .price,.mtlink-theme .site-header nav a:not(.nav-cta){color:#286b50}
.mtlink-theme .chipset span{background:#e4f3e9;color:#286b50}
.mtlink-theme .calendar-cell.available,.mtlink-theme .calendar-cell.is-selected{background:#e4f3e9;color:#20523f;border-color:#9abcaa}
.mtlink-theme .calendar-available,.mtlink-theme .calendar-pager-link{color:#286b50}
.mtlink-theme .footer{background:#20523f;color:#fff}
.mtlink-theme .footer a,.mtlink-theme .footer small{color:#e4f3e9}
.partner-section{padding:32px 0;background:#fff}
.partner-card{display:flex;align-items:center;gap:20px;padding:24px 28px;border:1px solid #cfdfd5;border-radius:18px;background:#eff8f2}
.partner-card img{width:66px;height:66px;flex:none;object-fit:contain}
.partner-card .partner-copy{flex:1;min-width:0}
.partner-card h2{margin:0 0 5px;font-size:1.45rem;color:#20523f}
.partner-card p{margin:0;color:#506b5e;font-size:.9rem}
.partner-card .eyebrow{font-size:.68rem;letter-spacing:.16em;color:#286b50;margin-bottom:6px}
.partner-card .btn{color:#20523f;background:white;border:1px solid #9abcaa}
.partner-card.partner-tt{background:#edf6ff;border-color:#cddfed}
.partner-card.partner-tt h2,.partner-card.partner-tt .eyebrow,.partner-card.partner-tt .btn{color:#165b96}
.partner-card.partner-tt p{color:#526a80}
.partner-card.partner-tt .btn{border-color:#bbd6eb}
@media(max-width:720px){.partner-card{flex-wrap:wrap;padding:20px;gap:14px}.partner-card img{width:48px;height:48px}.partner-card .btn{width:100%;white-space:normal}.mtlink-theme .mtlink-brand{font-size:1.55rem}.mtlink-theme .mtlink-brand img{width:40px;height:40px}}

/* 038: hero text readability */
body:not(.mtlink-theme) .hero .hero-eyebrow{color:#fff;opacity:1}
body.mtlink-theme .hero .hero-eyebrow{color:#20523f;opacity:1}
body.mtlink-theme .hero .hero-intro{color:#213f32;font-weight:600;line-height:1.95;opacity:1;max-width:780px}

/* 039: match TUBUREN's horizontal support and action layout */
.mt-support-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.mt-split-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,64px)}
.mt-card-details{min-width:0}
.mt-card-details>p{color:var(--muted);font-size:.9rem;line-height:1.9}
.mt-card-details .card-meta{min-height:0;margin-bottom:0}
.mtlink-theme .mt-card-icon{background:#e4f3e9;color:#286b50;font-weight:700}
.mt-action-panel{min-width:0;background:var(--service-panel,#f0f7fc);border:1px solid var(--line);border-radius:16px;padding:clamp(18px,3vw,32px)}
.mt-action-panel h3{font-size:1.3rem;margin:8px 0}
.mt-action-panel p:not(.eyebrow){color:var(--muted)}
.mt-action-panel .btn{width:100%;white-space:normal;font-size:1.08rem;min-height:54px;margin:12px 0 4px}
.mt-action-panel .note{margin-bottom:0}
.mtlink-theme .mt-quote-price{font-size:clamp(1.5rem,3vw,2.3rem)}
@media(max-width:720px){.mt-split-card{grid-template-columns:1fr;gap:20px}.mt-action-panel .btn{font-size:1rem}}

/* 041: unify the portfolio contact section with the MTLink palette. */
.mtlink-theme .works-contact-inner{background:transparent}
.mtlink-theme .works-contact-inner p:not(.eyebrow){color:var(--muted)}

/* 042: shared member identity, independent of either service. */
body.shared-member-theme{--navy:#67528c;--navy2:#51416e;--ink:#342c49;--muted:#615a70;--pale:#f5f1fa;--line:#ded6e9;color:var(--ink);background:#faf8fd}
.shared-member-theme .shared-member-header{background:#fff}
.shared-member-brands,.shared-brand{display:flex;align-items:center;gap:12px}
.shared-brand{text-decoration:none;font-weight:800;font-size:1.35rem;white-space:nowrap}
.shared-brand img{border-radius:10px;flex:none}
.shared-brand-tt{color:#155b99}.shared-brand-mt{color:#286b50}
.shared-brand-divider{height:35px;width:1px;background:#ded6e9}
.shared-member-home{color:#67528c;font-weight:700;text-decoration:none;font-size:.9rem}
.shared-member-theme .eyebrow,.shared-member-theme .text-link{color:#67528c}
.shared-member-theme .btn-primary{background:#67528c;color:white;border-color:#67528c;box-shadow:none}
.shared-member-theme .btn-primary:hover{background:#51416e}
.shared-member-theme .btn-outline{color:#67528c;border-color:#b9a9d0}
.shared-member-theme .card,.shared-member-theme .time-request-panel{background:white;border-color:#ded6e9;box-shadow:0 8px 30px #51416e0b}
.shared-member-theme .booking-form input:not([type=checkbox]),.shared-member-theme .booking-form select,.shared-member-theme .booking-form textarea{border-color:#c9bedb}
.shared-member-theme .booking-form input:focus,.shared-member-theme .booking-form textarea:focus,.shared-member-theme .booking-form select:focus{outline:3px solid #e9e0f5;border-color:#67528c}
.shared-member-theme .guidance,.shared-member-theme .slot-highlight,.shared-member-theme .member-identity{background:#f3eef9}
.shared-member-theme .footer{background:#51416e;color:white}
.shared-member-theme .footer a,.shared-member-theme .footer small{color:#eee6fa}
.shared-member-theme .member-actions a[href="/schedule.php"]{background:#126fc8;border-color:#126fc8;color:white}
.shared-member-theme .member-actions a[href="/schedule.php?service=digital"]{background:#286b50;border-color:#286b50;color:white}
@media(max-width:650px){.shared-member-header .header-inner{height:auto;min-height:68px;padding-block:12px;flex-wrap:wrap;justify-content:center;gap:8px}.shared-member-brands,.shared-brand{gap:8px}.shared-brand{font-size:1.1rem}.shared-brand img{width:32px;height:32px}.shared-member-home{width:100%;text-align:center;font-size:.8rem}}

/* 044: readable public typography across both brands and shared member pages. */
body:not(.mtlink-theme):not(.shared-member-theme):not(.admin-theme){--muted:#425970}
body.mtlink-theme{--muted:#405d4d}
body.shared-member-theme{--muted:#514760}
body:not(.admin-theme) main :is(.section,.works-main,.partner-section,.i2u-home-teaser,.profile-intro) p:not(.eyebrow):not(.note):not(.service-num):not(.price):not(.profile-summary-note):not(.profile-hero-lead):not(.profile-digital-panel p):not(.profile-hello):not(.hero-footnote):not(.state):not(.profile-small-label):not(.achievement-card p){
  font-size:1rem;font-weight:500;line-height:1.9;color:var(--muted)
}
body:not(.admin-theme) main :is(.service-card,.price-card,.tt-home-reservation,.mt-action-panel,.card,.guidance,.works-contact-inner) :is(.note,.card-meta),
body:not(.admin-theme) main :is(.note,.works-disclaimer,.profile-footnote,.profile-cta-note){
  font-size:.9rem;font-weight:500;line-height:1.8;color:var(--muted)
}
body:not(.admin-theme) main .profile-result-item small,
body:not(.admin-theme) main .profile-summary-row span{color:var(--muted);font-size:.9rem;font-weight:500}
body:not(.mtlink-theme) .hero .hero-intro,body:not(.mtlink-theme) .profile-hero-lead{color:#fff;font-size:1.03rem;font-weight:500}
body.mtlink-theme .hero .hero-intro,body.mtlink-theme .works-page-lead{color:#234c39;font-size:1.03rem;font-weight:600}
body:not(.admin-theme) main .partner-card.partner-tt .partner-copy p:not(.eyebrow){color:#425970}
body:not(.admin-theme) main .partner-card:not(.partner-tt) .partner-copy p:not(.eyebrow){color:#405d4d}

body:not(.admin-theme) main.simple-page p:not(.eyebrow):not(.note):not(.state){font-size:1rem;font-weight:500;line-height:1.85}

/* 045: service cards share typography, dimensions and action layout. */
.mtlink-theme{--service-panel:#eff8f2}
body:not(.admin-theme) main .mt-card-details>p:not(.eyebrow),body:not(.admin-theme) main .mt-action-panel>p:not(.eyebrow):not(.note){font-size:1rem;font-weight:500;line-height:1.9}
body:not(.admin-theme) main .mt-card-details .card-meta,body:not(.admin-theme) main .mt-action-panel .note{font-size:.9rem;font-weight:500;line-height:1.8}
.mt-action-panel .price-row{font-size:.9rem;gap:8px;flex-wrap:wrap}

/* 046: keep contrast on dark results cards. */
body:not(.admin-theme) main .achievement-card .achievement p{color:#fff;font-size:1rem;font-weight:500;line-height:1.9}

/* 047: compact home heroes and venue details. */
body:not(.admin-theme) main>.hero .hero-grid{min-height:0;padding-block:clamp(30px,4vw,52px);grid-template-columns:1fr}
body:not(.admin-theme) main>.hero .hero-copy{max-width:100%}
body:not(.admin-theme) main>.hero h1{font-size:clamp(2rem,3.5vw,3.3rem);line-height:1.28;margin-bottom:14px;letter-spacing:-.045em}
body:not(.admin-theme) main>.hero .hero-eyebrow{margin:16px 0 8px}
body:not(.admin-theme) main>.hero .hero-intro{margin-bottom:12px}
body:not(.admin-theme) main>.hero .hero-actions{margin:16px 0 8px}
body:not(.admin-theme) main>.hero .hero-footnote{margin-bottom:0}
.venue-fees{margin-top:14px}
.venue-fees .price-row{padding:8px 0;font-size:.9rem;display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between}
.venue-fees .note{margin:8px 0 0}
.mt-split-card{gap:clamp(20px,3vw,44px)}
.mt-action-panel{padding:clamp(18px,2.5vw,28px)}

/* 048: member headings use the same compact scale as the public sites. */
.shared-member-theme main h1{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.3;letter-spacing:-.035em}
.shared-member-theme main.simple-page{padding-block:clamp(30px,4vw,52px) 60px}

/* 051: Japanese headings stand on their own; retain useful service identifiers. */
body:not(.admin-theme) main :is(.eyebrow:not(.booking-service-label),.service-num,.profile-small-label){display:none}
body:not(.admin-theme) main>.hero .hero-copy>.pill{margin-bottom:14px}

/* 052: consistent logo subtitle typography. */
.mtlink-theme .mtlink-brand small{font-size:.49rem;letter-spacing:.12em;font-weight:700;margin-top:5px;white-space:nowrap}

/* 053: clearer Japanese section headings and profile introduction. */
body:not(.admin-theme) main :is(#support,#services)> .wrap > h2,
body:not(.admin-theme) main #support .section-title h2,
body:not(.admin-theme) main #about .about-grid h2{
  font-family:Meiryo,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  font-size:clamp(1.55rem,2.5vw,2.1rem);
  font-weight:700;letter-spacing:0;line-height:1.5;
}
body:not(.admin-theme) main #about .about-grid>div:first-child :is(.lead,.note){
  font-family:Meiryo,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  color:#30465a;font-weight:500;letter-spacing:0;line-height:1.85;
  overflow-wrap:break-word;line-break:strict;
}
body:not(.admin-theme) main #about .about-grid>div:first-child .lead{font-size:1.05rem}
body:not(.admin-theme) main #about .about-grid>div:first-child .note{font-size:.95rem}

/* 056: mobile headings wrap at natural phrase boundaries. */
@media(max-width:720px){
  body:not(.admin-theme) main :is(h1,h2,h3){
    text-wrap:balance;line-break:strict;word-break:normal;overflow-wrap:normal;
  }
  body:not(.admin-theme) main .mobile-phrase{
    display:inline-block;max-width:100%;white-space:normal;vertical-align:baseline;
  }
  body:not(.admin-theme) main .mt-card-details h3{
    font-size:clamp(1.15rem,5.2vw,1.4rem);line-height:1.45;letter-spacing:0;
  }
  body:not(.admin-theme) main .work-project-head>div:last-child{min-width:0}
  body:not(.admin-theme) main .profile-hero h1{overflow-wrap:normal}
}

/* 057: compact, aligned reciprocal site cards. */
.partner-section{padding:24px 0}
.partner-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 22px}
.partner-card .partner-logo{display:flex;align-items:center;justify-content:center;flex:none;border-radius:12px}
.partner-card .partner-logo img{display:block;width:56px;height:56px}
.partner-card .partner-logo:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.partner-card h2{font-size:1.25rem;line-height:1.35;margin:0 0 4px}
body:not(.admin-theme) main.partner-section .partner-copy p:not(.eyebrow),
body:not(.admin-theme) main .partner-section .partner-card .partner-copy p:not(.eyebrow){font-size:.95rem!important;font-weight:600!important;line-height:1.65!important;letter-spacing:0}
.partner-card>.btn{justify-self:end;white-space:nowrap;padding:12px 16px;font-size:.85rem}
@media(max-width:720px){
  .partner-card{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px}
  .partner-card .partner-logo img{width:48px;height:48px}
  .partner-card>.btn{grid-column:1/-1;width:100%;justify-self:stretch;white-space:normal;text-align:center}
  .partner-card .partner-copy p{line-break:strict;overflow-wrap:break-word}
}

/* 058: readable linked partner text and shared production credit. */
.partner-card .partner-text-link{display:block;color:inherit;text-decoration:none}
.partner-card .partner-text-link:hover h2{text-decoration:underline;text-underline-offset:3px}
.partner-card .partner-text-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:4px}
.footer .powered-by-link{margin:0;padding:0;color:inherit;font-size:inherit;text-decoration:none}
.footer .powered-by-link:hover{text-decoration:underline}
