body.tb-front { margin: 0; background: #fff; }
.tb { --accent: #F5B83D; --ink: #1B1B1B; --muted: #555; --line: #E6E6E6; --cream: #FFF4DC;
  color: var(--ink); font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; }
.tb a { color: inherit; text-decoration: none; }
.tb h1, .tb h2, .tb h3 { margin: 0; color: var(--ink); font-family: inherit; }
.tb p { margin: 0; }
.tb-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }

.tb-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.tb-logo { font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.tb-logo span { color: var(--accent); }
.tb-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.tb-nav a:hover, .tb-link:hover { color: #8A6A1F; }
.tb-auth { display: flex; gap: 10px; align-items: center; }
.tb-link { padding: 12px 18px; font-size: 14px; font-weight: 500; }

.tb-btn { display: inline-block; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: opacity .15s; }
.tb-btn:hover { opacity: .85; }
.tb-btn--dark { background: var(--ink); color: #fff !important; padding: 12px 20px; font-size: 14px; border-radius: 10px; }
.tb-btn--accent { background: var(--accent); }
.tb-btn--white { background: #fff; font-weight: 500; }

.tb-hero { background: var(--cream); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin: 24px 0 48px; }
.tb-hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.tb-pill { align-self: flex-start; background: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.tb-hero h1 { font-size: 44px; line-height: 1.2; font-weight: 900; }
.tb-hero p { font-size: 17px; line-height: 1.8; color: #4A4A4A; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-hero__media { flex: 1 1 380px; min-height: 360px; border-radius: 20px; background: #F2D9A6 center / cover no-repeat; }

.tb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 64px; }
.tb-stat { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tb-stat strong { font-size: 30px; font-weight: 900; }
.tb-stat span { font-size: 14px; color: var(--muted); }

.tb-band { background: #F7F7F5; }
.tb-section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.tb-section h2 { font-size: 34px; font-weight: 900; }
.tb-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tb-section__head a { font-size: 15px; font-weight: 500; color: #1F3A5F; }

.tb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tb-card { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.tb-card:hover { transform: translateY(-3px); }
.tb-card__img { aspect-ratio: 16 / 9; background: #F2D9A6 center / cover no-repeat; }
.tb-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tb-card h3 { font-size: 20px; }
.tb-card p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.tb-tag { align-self: flex-start; background: var(--cream); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tb-tag--blue { background: #E7EEF7; }

.tb-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tb-steps li { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tb-step__no { font-size: 14px; font-weight: 900; color: #8A6A1F; }
.tb-steps a { font-size: 17px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.tb-steps li > span:last-child { font-size: 14px; color: var(--muted); }

.tb-dark { background: var(--ink); }
.tb-dark h2, .tb-dark h3 { color: #fff; }
.tb-dark .tb-section__head a { color: var(--accent); }
.tb-post { display: flex; flex-direction: column; gap: 10px; color: #fff; }
.tb-post__img { aspect-ratio: 4 / 3; border-radius: 16px; background: #333 center / cover no-repeat; }
.tb-post__date { font-size: 13px; color: #BDBDBD; }
.tb-post h3 { font-size: 18px; font-weight: 700; }

.tb-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .tb-wrap { padding-left: 20px; padding-right: 20px; }
  .tb-hero { padding: 32px 24px; border-radius: 20px; }
  .tb-hero h1 { font-size: 34px; }
  .tb-hero__media { min-height: 220px; }
  .tb-section { padding-top: 48px; padding-bottom: 48px; }
  .tb-section h2 { font-size: 26px; }
  .tb-nav { gap: 18px; order: 3; width: 100%; }
  .tb-pagehead h1 { font-size: 32px; }
  .tb-auth-panel { padding: 28px 20px; }
  .tb-auth-panel h1 { font-size: 30px; }
}

/* ---- shared sub-page parts ---- */
.tb-nav a.is-active { border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.tb-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tb-pagehead { padding-top: 24px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.tb-pagehead--compact { padding-bottom: 8px; }
.tb-pagehead h1 { font-size: 44px; font-weight: 900; line-height: 1.25; }
.tb-crumb { font-size: 13px; color: var(--muted); }
.tb-crumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tb-lead { max-width: 680px; font-size: 16px; line-height: 1.8; color: #4A4A4A; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.tb .tb-chip { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid #D0D0D0; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.tb .tb-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tb-chip__n { font-size: 12px; opacity: .7; }
.tb-section--tight { padding-top: 48px; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-tag--gray { background: #F2F2F2; font-weight: 500; }
.tb-card h2 { font-size: 20px; font-weight: 700; }
.tb-card[hidden] { display: none; }
.tb-cta { background: var(--cream); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.tb-cta h2 { font-size: 26px; font-weight: 900; }
.tb-cta p { font-size: 15px; color: #4A4A4A; margin-top: 8px; }
.tb-cta p a { text-decoration: underline; }
.tb-btn--lg { padding: 16px 28px; font-size: 16px; }
.tb-btn--block { display: block; text-align: center; }
.tb-textlink { font-size: 14px; font-weight: 700; color: #1F3A5F !important; }

/* course detail */
.tb-detail { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 72px; }
.tb-detail__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tb-detail__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.tb-title { font-size: 36px; font-weight: 900; line-height: 1.3; }
.tb-content { font-size: 16px; line-height: 1.9; color: #333; overflow-wrap: anywhere; }
.tb-content img, .tb-content iframe, .tb-content video { max-width: 100%; height: auto; border-radius: 12px; }
.tb-content iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.tb-box { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tb-box--cream { background: var(--cream); border-color: transparent; }
.tb-box__title { font-size: 18px !important; font-weight: 900; }
.tb-lessons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.tb-lessons li { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px; }
.tb-lessons li.is-current { background: var(--cream); }
.tb-lessons__no { font-size: 13px; font-weight: 900; color: #8A6A1F; width: 24px; }
.tb-lessons a { font-size: 15px; font-weight: 500; }
.tb-lessons a:hover { text-decoration: underline; }
.tb-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.9; color: #333; }

/* auth */
.tb-auth-panel { background: var(--cream); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; margin-bottom: 72px; }
.tb-auth-panel__intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.tb-auth-panel h1 { font-size: 40px; font-weight: 900; line-height: 1.3; }
.tb-auth-panel__form { flex: 1 1 400px; min-width: 0; background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.tb-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.tb-checks li::before { content: "✓"; color: #8A6A1F; font-weight: 900; margin-right: 10px; }
.tb-muted { font-size: 14px; color: var(--muted); }
.tb-muted a { text-decoration: underline; }
.tb-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: #F2F2F2; border-radius: 12px; padding: 4px; }
.tb-switch a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 15px; color: var(--muted); }
.tb-switch a.is-active { background: #fff; color: var(--ink); font-weight: 700; }
.tb-content--form .um { max-width: none !important; }

/* diary */
.tb-diary { padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.tb-feature { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--cream); border-radius: 24px; padding: 24px; }
.tb-feature__img { flex: 1 1 420px; aspect-ratio: 16 / 10; border-radius: 16px; background: #F2D9A6 center / cover no-repeat; }
.tb-feature__body { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; padding: 8px; }
.tb-feature__meta { font-size: 13px; color: #8A6A1F; font-weight: 700; }
.tb-feature h2 { font-size: 30px; font-weight: 900; }
.tb-feature p { font-size: 15px; line-height: 1.8; color: #4A4A4A; }
.tb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.tb-post--light { color: var(--ink); }
.tb-post--light h3 { color: var(--ink); font-size: 17px; line-height: 1.5; }
.tb-post--light .tb-post__date { color: var(--muted); }
.tb-post--light .tb-post__img { background-color: #F2D9A6; }
.tb-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tb-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #D0D0D0; }
.tb-pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

/* Course pages: lesson video buttons (replace old videoicon images) */
.tb-content .tb-vlink { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 0 12px; padding: 14px 18px 14px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; box-sizing: border-box; }
.tb-content a.tb-vlink:hover { border-color: var(--accent); background: var(--cream); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.tb-vlink__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); position: relative; }
.tb-vlink__icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -5px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); }
.tb-vlink__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.tb-vlink__text small { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #8A6A1F; }
.tb-vlink__text strong { font-size: 17px; font-weight: 700; }
.tb-vlink__go { margin-left: auto; flex: none; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.tb-vlink__go::after { content: " →"; }
.tb-vlink.is-current { background: var(--cream); border-color: var(--accent); }
.tb-vlink.is-current .tb-vlink__icon { background: var(--ink); }
.tb-vlink.is-current .tb-vlink__icon::after { border-color: transparent transparent transparent var(--accent); }
.tb-vlink.is-current .tb-vlink__go { background: transparent; color: #8A6A1F; padding-right: 0; }
.tb-vlink.is-current .tb-vlink__go::after { content: ""; }
@media (max-width: 720px) {
  .tb-content .tb-vlink { gap: 12px; padding: 12px; }
  .tb-vlink__icon { width: 40px; height: 40px; }
  .tb-vlink__text strong { font-size: 15px; }
  .tb-vlink__go { padding: 6px 10px; font-size: 12px; }
}
/* Generic pages & posts */
.tb-single { max-width: 880px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
.tb-single--wide { max-width: 1200px; }
.tb-single .tb-title { font-size: 36px; line-height: 1.3; font-weight: 900; }
.tb-content h2 { font-size: 26px; margin: 40px 0 16px; line-height: 1.4; }
.tb-content h3 { font-size: 21px; margin: 32px 0 12px; line-height: 1.4; }
.tb-content h4 { font-size: 18px; margin: 24px 0 10px; }
.tb-content p { margin: 0 0 1.2em; }
.tb-content ul, .tb-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.tb-content a:not(.tb-vlink):not(.elementor-button) { color: #8A6A1F; text-decoration: underline; text-underline-offset: 3px; }
.tb-content table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: 15px; }
.tb-content th, .tb-content td { border: 1px solid var(--line); padding: 10px 14px; }
.tb-content blockquote { margin: 0 0 1.2em; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--cream); border-radius: 0 12px 12px 0; }
.tb-content figure { margin: 0 0 1.5em; }
.tb-content .wp-block-image img, .tb-content figure img { display: block; }
.tb-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.tb-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.tb-postnav a:hover { color: #8A6A1F; }
.tb-postnav div:last-child { text-align: right; }
.tb-comments { margin-top: 40px; padding: 28px; border-radius: 20px; background: #F7F6F3; font-size: 15px; }
.tb-comments ol { list-style: none; padding: 0; }
.tb-comments textarea, .tb-comments input[type=text], .tb-comments input[type=email], .tb-comments input[type=url] { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.tb-comments input[type=submit] { background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; cursor: pointer; }
@media (max-width: 720px) {
  .tb-single .tb-title { font-size: 26px; }
  .tb-postnav { flex-direction: column; }
  .tb-postnav div:last-child { text-align: left; }
}.tb-single .elementor-widget-image img { max-width: min(100%, 640px); }
/* Payment page: QR codes at a scannable, compact size */
.page-id-4412 .tb-content img { max-width: min(100%, 300px) !important; height: auto; }

/* Content buttons (block editor & Elementor) in design B style */
.tb-content .wp-block-buttons { display: flex; justify-content: center; margin: 0 0 12px; }
.tb-content .wp-block-button__link,
.tb-content a.elementor-button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-width: 260px; box-sizing: border-box;
  padding: 14px 24px !important; border-radius: 12px !important; border: 1px solid var(--ink) !important;
  background: var(--ink) !important; background-image: none !important; color: #fff !important;
  font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.4 !important;
  text-decoration: none !important; box-shadow: none !important; transition: background .15s, color .15s; }
.tb-content .wp-block-button__link::after,
.tb-content a.elementor-button::after { content: "→"; }
.tb-content .wp-block-button__link:hover,
.tb-content a.elementor-button:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--ink) !important; }
.tb-content a.elementor-button .elementor-button-text { color: inherit !important; }
@media (max-width: 720px) {
  .tb-content .wp-block-button__link, .tb-content a.elementor-button { min-width: 0; width: 100%; }
}
/* Smart file-style buttons: one line, left aligned, arrow on the right. */
.tb-content .wp-block-button__link,
.tb-content a.elementor-button {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 340px; min-width: 0; margin: 0 auto;
  padding: 13px 18px !important; border-radius: 12px !important;
  background: #fff !important; color: var(--ink) !important; border: 1px solid #e4e0d8 !important;
  font-size: 14px !important; font-weight: 600 !important; text-align: left; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .15s; }
.tb-content .wp-block-button__link::after,
.tb-content a.elementor-button::after { content: "→"; margin-left: 0; color: #b08a2e; font-weight: 700; transition: transform .15s; }
.tb-content .wp-block-button__link:hover,
.tb-content a.elementor-button:hover { background: #fdf6e6 !important; border-color: var(--accent) !important; color: var(--ink) !important; transform: translateY(-1px); }
.tb-content .wp-block-button__link:hover::after,
.tb-content a.elementor-button:hover::after { transform: translateX(3px); }
.tb-content a.elementor-button .elementor-button-content-wrapper { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-content a.elementor-button .elementor-button-text { overflow: hidden; text-overflow: ellipsis; }
.tb-content a.elementor-button .elementor-button-icon { display: inline-flex; color: #c0392b; font-size: 15px; }
.tb-content a.elementor-button .elementor-button-icon svg { width: 15px; height: 15px; fill: currentColor; }
.tb-content .elementor-widget-button .elementor-widget-container { margin-bottom: 0; }
/* Ultimate Member buttons */
.tb .um input[type=submit].um-button, .tb .um a.um-button { background: var(--ink) !important; color: #fff !important; border: 1px solid var(--ink) !important;
  border-radius: 12px !important; font-family: inherit !important; font-weight: 700 !important; box-shadow: none !important; }
.tb .um a.um-button.um-alt, .tb .um input[type=submit].um-button.um-alt { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }
.tb .um input[type=submit].um-button:hover, .tb .um a.um-button:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--ink) !important; }
/* Purchase-status table */
.tb-content table[bordercolor] { border-color: var(--line) !important; border-radius: 12px; overflow: hidden; }
.tb-content table[bordercolor] tr:first-child { background: var(--cream) !important; font-weight: 700; color: var(--ink); }
/* Chef intro on course cards & course pages */
.tb-chef { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--cream); }
.tb-chef__name { font-size: 14px; font-weight: 700; color: #8A6A1F; }
.tb-chef__intro { font-size: 13px !important; line-height: 1.7; color: #444 !important; }
.tb-card__lessons { font-size: 13px; color: var(--muted); }
.tb-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; color: #444; }
.tb-timeline li { position: relative; padding-left: 16px; }
.tb-timeline li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Show images at their own size (never stretched past it) on generic pages */
.tb-single .tb-content img { width: auto !important; max-width: 100%; height: auto !important; }
.tb-single .elementor-widget-image img { max-width: min(100%, 640px) !important; }
body.page-id-4412 .tb-single .tb-content img { max-width: min(100%, 300px) !important; }

/* Profile: social QR codes side by side */
.page-id-528 .elementor-widget-html .elementor-widget-container > div[align="center"] { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; }

/* 日本研学 page video */
.tb-tour-video{padding-bottom:40px}
.tb-tour-video>div{text-align:left!important}
.tb-tour-video video{display:block;width:100%!important;max-width:880px;height:auto;border-radius:16px;background:#000}

/* Profile page */
.tb-profile{display:grid;grid-template-columns:1.1fr 1fr;gap:56px;align-items:center;padding-bottom:64px}
.tb-profile__photo{aspect-ratio:3/2;border-radius:24px;background:#eee center/cover no-repeat}
.tb-profile__text h1{font-size:36px;line-height:1.35;margin:16px 0 20px}
.tb-profile__text p{color:#555;line-height:1.9;margin:0 0 12px}
.tb-profile__text .tb-actions{margin-top:24px}
.tb-qrs{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tb-qr{background:#fff;border-radius:20px;padding:28px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.tb-qr img{width:150px;height:auto;margin-bottom:10px}
.tb-qr strong{font-size:17px}
.tb-qr span{font-size:13px;color:#777}
@media (max-width:820px){.tb-profile{grid-template-columns:1fr;gap:28px}.tb-profile__text h1{font-size:28px}.tb-qrs{grid-template-columns:1fr}}
.tb-profile .tb-pill{display:inline-block;background:#fdf3dc}
.tb-profile .tb-btn--white{border:1px solid #ddd}
.tb-qrs--pay{grid-template-columns:repeat(2,minmax(0,360px));justify-content:center}
.tb-qrs--pay .tb-qr img{width:240px}
@media (max-width:820px){.tb-qrs--pay{grid-template-columns:1fr}}
@media (max-width:820px){.tb-qrs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tb-qrs--pay{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-qr{padding:14px 8px;border-radius:14px}.tb-qr img,.tb-qrs--pay .tb-qr img{width:100%;max-width:150px}.tb-qrs--pay .tb-qr img{max-width:240px}.tb-qr strong{font-size:14px}.tb-qr span{font-size:11px}}

/* Tool / ingredient items (■ sections) as cards */
.tb-content .tb-item { margin: 0 0 14px !important; }
.tb-content .tb-item > .elementor-container { background: #fff; border: 1px solid #ece8df; border-radius: 16px; padding: 18px 20px; align-items: center; gap: 20px; flex-wrap: nowrap; }
.tb-content .tb-item .elementor-column { width: auto !important; flex: 1 1 0; min-width: 0; }
.tb-content .tb-item .elementor-column:has(.elementor-widget-image):not(:has(h1, h2, h3, h4, p)) { order: -1; flex: 0 0 220px; }
.tb-content .tb-item .elementor-widget-wrap { padding: 0 !important; align-content: center; }
.tb-content .tb-item .elementor-widget:not(:last-child) { margin-bottom: 8px !important; }
.tb-content .tb-item img { width: 100% !important; max-width: 220px !important; height: 150px !important; object-fit: contain; border-radius: 10px; background: transparent; display: block; margin: 0 !important; }
.tb-content .tb-item h1, .tb-content .tb-item h2, .tb-content .tb-item h3, .tb-content .tb-item h4 { text-align: left !important; font-size: 17px !important; line-height: 1.5 !important; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: var(--ink) !important; font-weight: 700 !important; }
.tb-content .tb-item .elementor-heading-title h3 { border-left: 0; padding-left: 0; margin: 0 !important; }
.tb-content .tb-item p, .tb-content .tb-item .elementor-widget-text-editor { text-align: left !important; font-size: 14px; color: #666 !important; margin: 0 !important; }
@media (max-width: 720px) {
  .tb-content .tb-item > .elementor-container { flex-wrap: wrap; padding: 14px; }
  .tb-content .tb-item .elementor-column { flex: 1 1 100% !important; }
  .tb-content .tb-item img { max-width: 100% !important; height: 180px !important; }
}

/* 面包物語 members page */
.tb-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tb-video { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.tb-video__media { background: #111; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.tb-video__media > * { width: 100%; height: 100%; }
.tb-video__media video, .tb-video__media iframe { width: 100% !important; height: 100% !important; object-fit: contain; display: block; border: 0; }
.tb-video__body { padding: 18px 22px 22px; }
.tb-video__no { font-size: 13px; font-weight: 700; color: #b08a2e; }
.tb-video__body h2 { font-size: 18px; line-height: 1.45; margin: 4px 0 0; }
.tb-video__pdf { display: inline-block; margin-top: 12px; padding: 8px 14px; border: 1px solid #e4e0d8; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tb-video__pdf:hover { border-color: var(--accent); background: #fdf6e6; }
.tb-lock { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 44px 40px; text-align: center; }
.tb-lock__icon { font-size: 34px; width: 72px; height: 72px; line-height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #fdf3dc; }
.tb-lock h2 { font-size: 24px; margin: 0 0 10px; }
.tb-lock > p { color: #666; line-height: 1.8; margin: 0 0 28px; }
.tb-lock__steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.tb-lock__steps li { border: 1px solid #ece8df; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tb-lock__steps strong { font-size: 16px; }
.tb-lock__steps span { font-size: 13px; color: #777; margin-bottom: 12px; }
.tb-lock__steps .tb-btn { margin-top: auto; }
@media (max-width: 720px) { .tb-videos, .tb-lock__steps { grid-template-columns: 1fr; } .tb-lock { padding: 32px 20px; } }
.tb-lock__steps .tb-btn{padding:12px 16px !important;min-height:48px;box-sizing:border-box}

/* Member profile (UM user page) */
.page-id-1389 .tb-title { display: none; }
.page-id-1389 .um-profile { max-width: none !important; }
.page-id-1389 .um-cover { border-radius: 20px; overflow: hidden; background: linear-gradient(120deg, #fdf3dc 0%, #f6e3b8 55%, #f2d48d 100%) !important; }
.page-id-1389 .um-cover-add { color: #b08a2e !important; }
.page-id-1389 .um-cover-e { max-height: 220px; }
.page-id-1389 .um-header { border-bottom: 0 !important; padding-bottom: 8px !important; }
.page-id-1389 .um-profile-photo a.um-profile-photo-img { border: 5px solid #fff !important; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.page-id-1389 .um-name a, .page-id-1389 .um-name { color: var(--ink) !important; font-size: 26px !important; font-weight: 800 !important; }
.page-id-1389 .um-profile-nav { background: transparent !important; border-top: 1px solid #ece8df; }
.tb-mycourses { margin: 32px 0 0; }
.tb-mycourses__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tb-mycourses__head h2 { font-size: 22px; margin: 0; }
.tb-mycourses__head span { font-size: 13px; font-weight: 700; color: #b08a2e; background: #fdf3dc; padding: 5px 12px; border-radius: 999px; }
.tb-mycourses ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tb-content .tb-mycourse, .tb-mycourse { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid #ece8df; border-radius: 14px; background: #fff; color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.tb-mycourse:hover { border-color: var(--accent); transform: translateY(-1px); }
.tb-mycourse__name { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-mycourse__badge { flex: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #f2f0ec; color: #888; }
.tb-mycourse.is-owned { background: #fffaf0; border-color: #f2d48d; }
.tb-mycourse.is-owned .tb-mycourse__badge { background: #e6f4ea; color: #1e7d3a; }
@media (max-width: 720px) { .tb-mycourses ul { grid-template-columns: 1fr; } }

/* QA page */
.tb-qa { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.tb-qa__list { display: flex; flex-direction: column; gap: 10px; }
.tb-faq { background: #fff; border-radius: 16px; border: 1px solid transparent; transition: border-color .15s; }
.tb-faq[open] { border-color: #f2d48d; }
.tb-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq__q, .tb-faq__qa { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.tb-faq__q { background: var(--ink); color: #fff; }
.tb-faq__qa { background: #fdf3dc; color: #b08a2e; }
.tb-faq__title { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.tb-faq__icon { flex: none; width: 14px; height: 14px; position: relative; }
.tb-faq__icon::before, .tb-faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: #b08a2e; border-radius: 2px; transition: transform .2s; }
.tb-faq__icon::after { transform: rotate(90deg); }
.tb-faq[open] .tb-faq__icon::after { transform: rotate(0deg); }
.tb-faq summary:hover .tb-faq__title { color: #8A6A1F; }
.tb-faq__a { display: flex; gap: 14px; padding: 0 20px 20px; }
.tb-faq__a > div { flex: 1; color: #555; font-size: 14px; line-height: 1.9; padding-top: 3px; }
.tb-faq__a p { margin: 0 0 6px; }
.tb-faq__a a { color: #8A6A1F; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.tb-qa__side { position: sticky; top: 24px; }
.tb-qa__note { font-size: 14px; color: #666; line-height: 1.8; margin: 0 0 14px; }
.tb-qa__wechat { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #777; margin: 0 0 14px; }
.tb-qa__wechat strong { font-size: 16px; color: var(--ink); }
@media (max-width: 900px) { .tb-qa { grid-template-columns: 1fr; } .tb-qa__side { position: static; } }
.tb-content--form .tb-mycourses ul{grid-template-columns:1fr}
.tb-content--form .tb-mycourses{margin-top:20px}
