iframe[src^="https://www.youtube.com/embed/"],
iframe[src^="https://www.youtube-nocookie.com/embed/"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--paper, #f7eddc);
  border: 1px solid var(--line, #d9c8b8);
  border-radius: 12px;
}

/* Shared press viewer: cards work on every page where clients add them. */
.press-viewer-open{overflow:hidden}
.press-viewer{width:min(860px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:24px;margin:auto;border:1px solid var(--coffee);border-radius:10px;background:var(--rice);color:var(--ink);box-shadow:0 20px 65px rgba(38,28,23,.3)}
.press-viewer::backdrop{background:rgba(38,28,23,.65)}
.press-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}
.press-viewer-header h2{margin:0;font-size:24px;line-height:1.5;color:var(--coffee)}
.press-viewer-close{flex:none;width:42px;height:42px;border:1px solid var(--coffee);border-radius:50%;color:var(--coffee);background:transparent;font-size:28px!important;line-height:1;cursor:pointer}
.press-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}
.press-viewer-toolbar p{margin:0;font-size:13px;line-height:1.7;color:#59463b}
.press-viewer-zoom{flex:none;padding:8px 14px;border:1px solid var(--coffee);border-radius:5px;background:var(--paper);color:var(--coffee);cursor:pointer;font-size:14px!important}
.press-viewer-scroll{max-height:calc(100dvh - 205px);overflow:auto;overscroll-behavior:contain;background:#efe2cd;border-radius:4px}
.press-viewer-image{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.press-viewer-image img{display:block;width:100%;height:auto}
.press-viewer.is-zoomed .press-viewer-image{width:200%;cursor:zoom-out}
@media(max-width:767px){.press-viewer{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:16px}.press-viewer-header h2{font-size:20px}.press-viewer-toolbar{align-items:flex-start}.press-viewer-toolbar p{font-size:11px;max-width:150px}.press-viewer-scroll{max-height:calc(100dvh - 185px)}}
.press-viewer-close{display:grid;place-items:center;padding:0}.press-viewer-close svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}


/* Editable staff cards: two columns, with large replaceable image blocks. */
.tc-staff-team-placeholder{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:100%;max-width:none;min-height:380px;margin:28px 0 40px;padding:48px;border:1px solid rgba(104,68,50,.3);border-radius:12px;background:rgba(239,226,205,.32)}
.tc-staff-team-placeholder img{display:block;width:min(520px,80%);max-width:100%;height:auto;opacity:.65}
.tc-staff-team-placeholder figcaption{margin:0;font-size:16px;letter-spacing:.15em;text-align:center}
.tc-staff-grid.wp-block-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 48px;max-width:none;width:100%;margin:0}
.tc-staff-grid>.tc-staff-profile{box-sizing:border-box;display:grid;grid-template-columns:160px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:24px;row-gap:8px;align-items:start;min-width:0;margin:0;padding:0 0 28px;border-bottom:1px solid rgba(104,68,50,.24)}
.tc-staff-portrait{grid-column:1;grid-row:1/3;width:160px;height:160px;margin:0;overflow:hidden;border-radius:10px;background:#f1e5d3}
.tc-staff-portrait img{display:block;width:100%;height:100%;object-fit:contain}
.tc-staff-initial{grid-column:2;margin:10px 0 0!important;font-size:25px;font-weight:400;line-height:1.5}
.tc-staff-description{grid-column:2;margin:0!important;font-size:15px;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:767px){
.tc-staff-team-placeholder{min-height:220px;padding:28px 18px;margin:24px 0 28px;gap:16px}
.tc-staff-team-placeholder img{width:min(350px,92%)}
.tc-staff-team-placeholder figcaption{font-size:13px}
.tc-staff-grid.wp-block-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}
.tc-staff-grid>.tc-staff-profile{display:flex;flex-direction:column;gap:10px;padding-bottom:20px}
.tc-staff-portrait{width:100%;height:auto;aspect-ratio:1}
.tc-staff-portrait img{aspect-ratio:1}
.tc-staff-initial{margin:0!important;font-size:23px}
.tc-staff-description{font-size:14px;line-height:1.8}
}

/* Compact inner-page title mastheads on phones; landing-page heroes stay independent. */
@media(max-width:767px){
body.wp-theme-tomitaya-coffee .page-hero{box-sizing:border-box;min-height:280px;padding:86px 16px 58px}
body.wp-theme-tomitaya-coffee .page-hero-copy{width:100%;max-width:100%;margin:0 auto}
body.wp-theme-tomitaya-coffee .page-hero-copy h1{font-size:clamp(30px,8vw,36px);line-height:1.45;letter-spacing:.04em}
body.wp-theme-tomitaya-coffee .page-hero .scroll-cue{bottom:14px;gap:5px}
body.wp-theme-tomitaya-coffee .page-hero .scroll-cue i{height:18px}
}

/* Preserve desktop copy; set the requested two mobile headline lines. */
body.tc-index .tc-hero-mobile-break{display:none}
@media(max-width:767px){
body.tc-index .hero-copy h1 .tc-hero-line{display:block;white-space:nowrap}
body.tc-index .hero-copy h1 .tc-hero-punctuation{display:none}
body.tc-index .hero-copy h1 .tc-hero-mobile-break{display:none}
body.tc-index .hero-lantern{mask-image:linear-gradient(to right,transparent,#000 30%,#000 82%,transparent),linear-gradient(to bottom,transparent,#000 20%,#000 78%,transparent);mask-composite:intersect}
}

/* Two-column category cards on phones, retaining editable card content. */
@media(max-width:767px){
body.tc-index .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.tc-index .product-grid .product-card,body.tc-index .product-grid .product-card:last-child{grid-column:auto;min-width:0;min-height:190px;padding:12px;border-radius:14px}
body.tc-index .product-grid .product-card:last-child{grid-column:1/-1;min-height:170px}
body.tc-index .product-grid .product-card>div{width:100%;margin-bottom:30px}
body.tc-index .product-grid .product-card h3{font-size:clamp(14px,3.8vw,17px);line-height:1.5;letter-spacing:0;overflow-wrap:anywhere}
body.tc-index .product-grid .product-card small{font-size:9px;line-height:1.5;letter-spacing:.04em;margin-bottom:6px}
body.tc-index .product-grid .product-card .arrow{right:12px;bottom:12px;width:26px;height:26px;font-size:17px}
}

/* Slightly stronger voyage illustration on phones, preserving the text veil. */
@media(max-width:767px){body.wp-theme-tomitaya-coffee.tc-subscription .voyage-hero .voyage-map{opacity:.36}}

/* One shared mobile layout for the two editable story books. */
.tc-mobile-book-hint{display:none}
@media(max-width:767px){
body.wp-theme-tomitaya-coffee :is(.os-book.os-enhanced,.story-enhanced .story-book){box-sizing:border-box;display:flex;flex-direction:column;height:calc(100svh - 160px);min-height:0;padding:12px 12px 10px;scroll-margin-top:70px;transform:none!important}
body.wp-theme-tomitaya-coffee :is(.os-book-name,.story-book-name,.os-hint,.story-scroll-hint){display:none}
body.wp-theme-tomitaya-coffee :is(.os-pages,.story-enhanced .book-pages){flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr);overflow:hidden;touch-action:pan-y}
body.wp-theme-tomitaya-coffee :is(.os-enhanced .os-scene,.story-enhanced .story-scene){box-sizing:border-box;height:100%;min-height:0;display:flex;flex-direction:column;padding:10px 12px;overflow:hidden}
body.wp-theme-tomitaya-coffee :is(.os-art,.story-art){box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 clamp(80px,18svh,150px);height:clamp(80px,18svh,150px);min-height:0;padding:0 4px}
body.wp-theme-tomitaya-coffee :is(.os-art,.story-art)>img{position:static;display:block;width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain;pointer-events:none}
body.wp-theme-tomitaya-coffee :is(.os-copy,.story-copy){box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 0 0}
body.wp-theme-tomitaya-coffee :is(.os-copy h3,.story-copy h4){font-size:max(17px,calc(22px * var(--tc-book-scale,1)));line-height:1.4;letter-spacing:0;margin:0 0 10px;font-weight:400}
body.wp-theme-tomitaya-coffee :is(.os-copy>p:not(.os-chapter),.story-copy>p:not(.chapter-label),.story-care-promises){font-size:max(12px,calc(14px * var(--tc-book-scale,1)));line-height:1.7;letter-spacing:0;margin:0 0 8px;max-width:none}
body.wp-theme-tomitaya-coffee :is(.os-chapter,.chapter-label){font-size:10px;line-height:1.5;letter-spacing:0;margin:0 0 7px}
body.wp-theme-tomitaya-coffee :is(.os-controls,.story-controls){display:flex;justify-content:center;align-items:center;flex:none;gap:20px;margin:14px 0 0}
body.wp-theme-tomitaya-coffee :is(.os-controls,.story-controls) button{display:grid;place-items:center;width:40px;height:40px;padding:0;font-size:20px;line-height:1}
body.wp-theme-tomitaya-coffee :is(.os-status,.story-status){min-width:110px;margin:0;font-size:12px;text-align:center}
body.wp-theme-tomitaya-coffee .tc-mobile-book-hint{display:block;flex:none;margin:5px 0 0;text-align:center;font-size:10px;line-height:1.5;color:#eddbbc}
body.wp-theme-tomitaya-coffee .story-art .story-care-cycle{max-height:100%;height:100%;inset:0 4px}
body.wp-theme-tomitaya-coffee.story-controls-visible .back-to-top{opacity:0;pointer-events:none}
}

/* Equal customer-voice cards and aligned reading links. */
body.wp-theme-tomitaya-coffee .voice-grid{align-items:stretch}
body.wp-theme-tomitaya-coffee .voice-grid .voice-card{display:flex;flex-direction:column;height:100%;min-width:0;transform:none!important}
body.wp-theme-tomitaya-coffee .voice-grid .voice-art{flex:none}
body.wp-theme-tomitaya-coffee .voice-grid .voice-copy{display:flex;flex-direction:column;flex:1;min-height:0}
body.wp-theme-tomitaya-coffee .voice-grid .voice-copy>.voice-body{min-height:11.4em}
body.wp-theme-tomitaya-coffee .voice-grid .voice-read-more{margin-top:auto}
body.wp-theme-tomitaya-coffee .voice-grid .voice-letter[open]{display:flex;flex-direction:column;flex:1}
body.wp-theme-tomitaya-coffee .voice-grid .voice-letter[open]>div{display:flex;flex-direction:column;flex:1}

/* Keep grid cards on one baseline and reserve small-screen reading space. */
body.wp-theme-tomitaya-coffee .voice-grid .voice-card{margin:0}
@media(max-width:767px){body.wp-theme-tomitaya-coffee :is(.os-art,.story-art){flex-basis:var(--tc-book-art,clamp(80px,18svh,150px));height:var(--tc-book-art,clamp(80px,18svh,150px))}body.wp-theme-tomitaya-coffee.tc-mobile-book-reading .back-to-top{opacity:0;pointer-events:none}}

/* Uncropped mobile category art, with one arrow beside the heading. */
@media(max-width:767px){
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card,body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:last-child{display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-template-rows:92px 24px 48px;min-height:0;height:auto;padding:0;background:#f1e5d3;color:#4d3124;align-items:stretch}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:last-child{grid-template-rows:140px 24px 48px}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:after{display:none}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card>img{position:static;grid-column:1/-1;grid-row:1;width:100%;height:100%;object-fit:contain;transform:none}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card>div{display:contents;margin:0}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card small{grid-column:1/-1;grid-row:2;align-self:end;margin:5px 12px 0;font-size:9px;color:#76533d}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card h3{display:flex;align-items:center;grid-column:1;grid-row:3;margin:0;padding:0 0 0 12px;font-size:14px;line-height:1.4;color:#4d3124}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card .arrow{position:static;grid-column:2;grid-row:3;align-self:center;justify-self:start;margin:0;width:23px;height:23px;font-size:16px;color:#76533d}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card .arrow:before,body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card .arrow:after{content:none!important;display:none}
}

/* Staff photos keep their natural aspect ratio, without square letterboxing. */
body.wp-theme-tomitaya-coffee .tc-staff-portrait{height:auto;align-self:start}
body.wp-theme-tomitaya-coffee .tc-staff-portrait img{height:auto;object-fit:contain}

/* Natural staff image ratio and a balanced fixed mobile navigation row. */
body.wp-theme-tomitaya-coffee .tc-staff-portrait,body.wp-theme-tomitaya-coffee .tc-staff-portrait img{aspect-ratio:auto}
@media(max-width:767px){
body.wp-theme-tomitaya-coffee .mobile-fixed-nav{align-items:stretch}
body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a{display:grid;grid-template-rows:28px minmax(28px,auto);align-content:center;justify-items:center;gap:5px;padding:8px 3px}
body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a>svg{display:block;width:26px;height:26px;align-self:center;fill:none;stroke:currentColor;stroke-width:1.5}
body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a:nth-child(2)>svg{width:25px;height:25px}
body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a:nth-child(3)>svg{width:29px;height:29px}
body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a>span{display:flex;align-items:flex-start;justify-content:center;text-align:center;line-height:1.35;font-size:11px}
}

@media(max-width:767px){body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a{box-sizing:border-box;grid-template-rows:28px 30px}body.wp-theme-tomitaya-coffee .mobile-fixed-nav>a>svg{transform:none!important}}

/* Full-bleed category images with overlay headings and one adjacent arrow. */
@media(max-width:767px){
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card,body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:last-child{display:block;position:relative;aspect-ratio:16/10;height:auto;min-height:0;padding:0;color:#fff;background:#76533d}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:last-child{aspect-ratio:16/7}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:after{display:block;content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(34,21,15,.82),rgba(34,21,15,.12) 78%);pointer-events:none}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card>div{display:block;position:absolute;z-index:1;left:10px;right:38px;bottom:10px;width:auto;margin:0}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card small{display:block;margin:0 0 4px;font-size:8px;line-height:1.3;letter-spacing:.02em;color:#fff}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card h3{display:block;margin:0;padding:0;font-size:14px;line-height:1.4;color:#fff}
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card .arrow{position:absolute;z-index:1;right:9px;bottom:9px;width:23px;height:23px;color:#fff;margin:0}
}

/* Keep supplementary links quieter than the product cards on phones. */
@media(max-width:767px){
body.wp-theme-tomitaya-coffee.tc-index .product-grid .product-card:nth-child(3)>img{transform:scale(1.08);object-position:center}
body.wp-theme-tomitaya-coffee.tc-index .coffee-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:7px;min-height:64px;padding:10px;border-radius:10px;box-shadow:none}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link-icon{width:24px;height:24px;border:0;background:transparent}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link-icon svg{width:23px;height:23px;stroke-width:1.6}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link small{font-size:8px;line-height:1.3;letter-spacing:.04em;margin:0 0 3px}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link strong{font-size:13px;line-height:1.4;letter-spacing:0}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link .arrow{width:18px;height:18px;font-size:13px}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link .arrow:after,body.wp-theme-tomitaya-coffee.tc-index .coffee-link .arrow:before{content:none!important;display:none}
}

/* Align each supplementary arrow with the Japanese heading, not the eyebrow. */
@media(max-width:767px){
body.wp-theme-tomitaya-coffee.tc-index .coffee-link{grid-template-rows:12px 20px;row-gap:3px;align-content:center}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link>span:nth-child(2){display:contents}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link-icon{grid-column:1;grid-row:1/3;align-self:center}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link small{grid-column:2;grid-row:1;align-self:center;margin:0}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link strong{grid-column:2;grid-row:2;align-self:center}
body.wp-theme-tomitaya-coffee.tc-index .coffee-link .arrow{display:grid;place-items:center;grid-column:3;grid-row:2;align-self:center;justify-self:center;box-sizing:border-box;margin:0;padding:0;font:14px/1 Arial,sans-serif;letter-spacing:0;text-indent:0}
}

/* Hide the floating page-top mascot on every phone layout. */
@media(max-width:767px){body.wp-theme-tomitaya-coffee .back-to-top{display:none!important}}

/* Reserve the fixed mobile header, navigation and a small reading margin. */
@media(max-width:767px){body.wp-theme-tomitaya-coffee :is(.os-book.os-enhanced,.story-enhanced .story-book){height:calc(100svh - 180px)}}

/* Mobile books never pin the page or contain vertical scroll gestures. */
@media(max-width:767px){
body.wp-theme-tomitaya-coffee :is(.os-scroll-track,.os-scroll-stage,.story-scroll,.story-stage){position:static!important;height:auto!important;min-height:0!important;overflow:visible!important;transform:none!important}
body.wp-theme-tomitaya-coffee :is(.os-copy,.story-copy){overscroll-behavior:auto}
body.wp-theme-tomitaya-coffee :is(.os-book,.story-book,.os-pages,.book-pages){touch-action:pan-y pinch-zoom}
}

/* CF7 submit controls must retain a readable foreground against their background. */
body.wp-theme-tomitaya-coffee .wpcf7 form :is(input[type="submit"],button[type="submit"],.service-button:not(.service-button--outline)) {color:#fff!important;background:#684432!important;border:1px solid #684432;min-height:48px;padding:14px 24px;font-size:16px;line-height:1.5;font-weight:600;cursor:pointer;opacity:1}
body.wp-theme-tomitaya-coffee .wpcf7 form :is(input[type="submit"],button[type="submit"],.service-button:not(.service-button--outline)):hover{background:#4f3023!important}
body.wp-theme-tomitaya-coffee .wpcf7 form :is(input[type="submit"],button,.service-button):focus-visible{outline:3px solid #bd6b36;outline-offset:4px}
body.wp-theme-tomitaya-coffee .wpcf7 form :is(input[type="submit"],button[type="submit"]):disabled{color:#fff!important;background:#75675f!important;cursor:not-allowed}
